Limit the number of log entries displayed by default.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
84b31826
SM
12009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
2
3 * process.c (Fmake_network_process): Fix up the tests for
4 "connectionless socket", so they DTRT for seqpacket sockets as well.
5
f00c449b
SM
62009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
7
8 * process.c (Qseqpacket): New symbol.
9 (HAVE_SEQPACKET): New macro.
10 (Fmake_network_process): Accept new :type `seqpacket'.
11 (init_process): Add `seqpacket' feature when applicable.
12 (syms_of_process): Initialize Qseqpacket.
13
8096a0ff
YM
142009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15
16 * font.c (font_load_for_lface, font_open_by_name): Don't store name
17 if entity is Qnil.
18
3e0de07f
SM
192009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
20
21 * print.c (print_preprocess): Preprocess the key_and_value table of
22 hashtables, even tho they're "hidden" (bug#5082).
23
abeafb2a
JD
242009-11-29 Jan Djärv <jan.h.d@swipnet.se>
25
26 * frame.c (frame_make_pointer_invisible)
27 (frame_make_pointer_visible): Declare f before statements.
28
4bf47195
EZ
292009-11-28 Eli Zaretskii <eliz@gnu.org>
30
31 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
32 omitted dependencies on lisp.h.
33
c525b3f2
JD
342009-11-27 Jan Djärv <jan.h.d@swipnet.se>
35
ece2d4ed
JD
36 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
37 is NULL.
38
39 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
40
41 * frame.c (frame_make_pointer_invisible)
3e0de07f 42 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
43 frame.
44
c525b3f2
JD
45 * search.c (simple_search): Remove warning by making *p const.
46
2f00e299
DN
472009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
48
49 * xdisp.c (power_letter): Remove duplicate const.
50
084b049b
JD
512009-11-25 Jan Djärv <jan.h.d@swipnet.se>
52
a1fadc6f
JD
53 * term.c (delete_tty): Remove check for last terminal (bug#4970).
54
084b049b
JD
55 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
56 defaults (bug #5025).
57
28259cac
SM
582009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
59
60 * insdel.c (adjust_markers_for_delete): Move it in the
61 right direction! (bug#4803)
62
e8e14166
YM
632009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
64
65 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
66
67 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
68
86677b58
GM
692009-11-24 Glenn Morris <rgm@gnu.org>
70
71 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
72
581e51e8
JD
732009-11-23 Jan Djärv <jan.h.d@swipnet.se>
74
cfc86c7a
JD
75 * Makefile.in: Must create deps for ecrt0.o in its rule.
76
581e51e8
JD
77 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
78 because that is what Gtk+ font dialog understands.
79
80 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
81 of Fcopy_sequence.
82 (font_open_by_name): Put name given into QCname for font-object returned.
83
84 * frame.c (x_set_font): Save original font name as frame parameter
85 font-parameter.
86
87 * xsettings.c (set_default_xft_settings): New function.
88 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
89 is found.
90
8b264ecb
AS
912009-11-22 Andreas Schwab <schwab@linux-m68k.org>
92
93 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
94 searching backwards through multibyte buffer.
95
872870b2
JD
962009-11-21 Jan Djärv <jan.h.d@swipnet.se>
97
98 * xterm.c: #include xgselect.h.
99 (x_initialize): Call xgselect_initialize.
100
101 * xsettings.c (something_changedCB): C++ comments => C comments.
102 (init_gconf): Do not deal with any GLib file descriptors, xg_select
103 does that now.
104
105 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
106 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
107 (scroll_bar_button_cb): Remove.
108 (create_menus): C++ comments => C comments. Don't bind grab-notify
109 event.
110 (xg_create_scroll_bar): Don't bind button-press-event and
111 button-release-event.
112
113 * process.c: Include xgselect.h if defined (USE_GTK) ||
114 defined (HAVE_GCONF).
115 (wait_reading_process_output): Call xg_select for the same condition.
116
117 * xgselect.c (xg_select): New function to better integrate with
118 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
119
120 * xgselect.h: New file, declare xg_select, xgselect_initialize.
121
122 * Makefile.in (XOBJ): Add xgselect.o.
123
62a6e103
AS
1242009-11-21 Andreas Schwab <schwab@linux-m68k.org>
125
126 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
127 ignored second argument. All callers changed.
128 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
129 (RE_STRING_CHAR_AND_LENGTH): Likewise.
130 * xdisp.c (string_char_and_length): Likewise.
131
b0ca0f33
DN
1322009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
133
134 * xterm.c (x_new_font):
135 * print.c (print_object):
136 * cmds.c (Fself_insert_command): Move declarations before statements.
137
dd5a6279
CY
1382009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
139
140 * s/cygwin.h: Remove unneeded linker flags.
141
4a8e097d
JD
1422009-11-20 Jan Djärv <jan.h.d@swipnet.se>
143
0d1d0d26
JD
144 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
145
146 * xsettings.h: Declare xsettings_get_system_font.
147
148 * xsettings.c (xsettings_get_system_font): New function.
149 (init_gconf): No use initiating gconf unless we have Xft also.
150 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
151 HAVE_GCONF.
152
4a8e097d
JD
153 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
154 add a blank entry so it doesn't collapse into nothing.
155
8ab1650e
SM
1562009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
157
158 * lread.c (Funintern): Comment out last change.
159
82c602f0
RS
1602009-11-19 Richard Stallman <rms@gnu.org>
161
162 * lread.c (Funintern): Error if symbol is t or nil.
163
87e32266
SM
1642009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
165
166 * insdel.c (make_gap_larger): Don't make as many assumptions about the
167 representation of Lisp integers.
168 Reported by MJ Chan <mjchan.inbox@gmail.com>.
169
1b9ac145
AS
1702009-11-17 Andreas Schwab <schwab@linux-m68k.org>
171
172 * lisp.h: Remove declaration of Ffont_get_system_font.
173 * xfns.c: Move include of "xsettings.h".
174 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
175
dfb3c4c6
JD
1762009-11-17 Jan Djärv <jan.h.d@swipnet.se>
177
87e32266
SM
178 * xsettings.c (something_changedCB, Ffont_get_system_font):
179 Check use_system_font.
dfb3c4c6
JD
180 (syms_of_xsettings): DEFVAR font-use-system-font.
181
9370c1d8
AS
1822009-11-17 Andreas Schwab <schwab@linux-m68k.org>
183
25fe851a
AS
184 * xfns.c (x_default_font_parameter): Remove dead assignment.
185
9370c1d8
AS
186 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
187
637fa988
JD
1882009-11-17 Jan Djärv <jan.h.d@swipnet.se>
189
87e32266 190 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 191 not have FC_LCD_*. #define them if not there.
a6eb20d8 192
87e32266 193 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 194
637fa988
JD
195 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
196
197 * xterm.c (handle_one_xevent): Call xft_settings_event for
198 ClientMessage, PropertyNotify and DestroyNotify.
199 (x_term_init): If we have XFT, get DPI from Xft.dpi.
200 Call xsettings_initialize.
201
202 * xftfont.c (xftfont_fix_match): New function.
203 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
204 Call xftfont_fix_match after XftFontMatch.
205
206 * xfont.c (xfont_driver): Initialize all members.
207
87e32266
SM
208 * xfns.c (x_default_font_parameter):
209 Try font from Ffont_get_system_font.
637fa988
JD
210 Do not get font from x_default_parameter if we got one from
211 Ffont_get_system_font.
87e32266 212 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
213
214 * w32font.c (w32font_driver): Initialize all members.
215
216 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
217
218 * lisp.h: Declare syms_of_xsettings.
219
87e32266
SM
220 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
221 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
222
223 * ftfont.c (ftfont_filter_properties): New function.
224
225 * frame.c (x_set_font): Remove unused variable lval.
226
87e32266 227 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
228
229 * font.c (font_put_extra): Don't return if val is nil, it means
230 boolean option is off.
231 (font_parse_fcname): Collect all extra properties in extra_props
232 and call filter_properties for all drivers with extra_props and
233 font as parameter.
87e32266
SM
234 (font_open_entity): Do not use cache, it does not pick up new
235 fontconfig settings like hinting.
637fa988
JD
236 (font_load_for_lface): If spec had a name in it, store it in entity.
237
238 * emacs.c (main): Call syms_of_xsettings
239
240 * config.in: HAVE_GCONF is new.
241
242 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
243 xsettings.o is new.
244
5a942932
KH
2452009-11-17 Kenichi Handa <handa@m17n.org>
246
247 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
248 back to the default font in case that no suitable font is found.
249
b7c7a4d1
SM
2502009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
251
252 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
253 Suggested by Chad Brown <yandros@mit.edu>.
254 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
255
072f1e39
JD
2562009-11-16 Jan Djärv <jan.h.d@swipnet.se>
257
258 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
259
5d1e70a2
AS
2602009-11-14 Andreas Schwab <schwab@linux-m68k.org>
261
87e32266 262 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 263
a53cfbe5
JD
2642009-11-14 Jan Djärv <jan.h.d@swipnet.se>
265
473a99b7
JD
266 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
267 has a parent.
268
a53cfbe5
JD
269 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
270 dependency files in deps/. Include those files into Makefile.
271
272 * config.in: Generated (AUTO_DEPEND).
273
f04bb9b2
MA
2742009-11-13 Michael Albinus <michael.albinus@gmx.de>
275
b7c7a4d1 276 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
277 Vdbus_registered_functions_table, because it contains also
278 properties. Fix docstring.
b7c7a4d1 279 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 280
8f11f7ec
SM
2812009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
282
283 * alloc.c (mark_object): Don't reprocess marked strings.
284 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
285 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
286
8a605fe8
KH
2872009-11-13 Kenichi Handa <handa@m17n.org>
288
8f11f7ec 289 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
290 semantics of Vword_combining_categories.
291 (Vword_combining_categories): Describe the slight change of the
292 semantics.
293
241c4680
EZ
2942009-11-13 Eli Zaretskii <eliz@gnu.org>
295
296 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
297
298 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
299
5d58e44c
SM
3002009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
301
302 * xdisp.c (syms_of_xdisp): Fix typo in last change.
303
5e13f9d3
JB
3042009-11-12 Juanma Barranquero <lekktu@gmail.com>
305
306 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
307
cf54c754
DR
3082009-11-11 David Reitter <david.reitter@gmail.com>
309
310 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
311 variables to fix 2009-11-09 change.
312
a4ada374
DN
3132009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
314
91433552
DN
315 * process.c (ifflag_def): Make flag_sym constant.
316 (Fnetwork_interface_info): Use a constant pointer.
317 (ifflag_table):
318 * xfns.c (cursor_bits):
319 * xdisp.c (power_letter):
320 * termcap.c (speeds, esctab):
321 * sysdep.c (baud_convert):
322 * keyboard.c (lispy_accent_codes, modifier_names):
323 * image.c (xbm_format, xpm_format, pbm_format, png_format)
324 (jpeg_format, tiff_format, gif_format, svg_format)
325 (interlace_start, interlace_increment, gs_format):
326 * gtkutil.c (separator_names):
327 * fringe.c (swap_nibble):
328 * fns.c (base64_value_to_char, base64_char_to_value):
329 * fileio.c (make_temp_name_tbl):
330 * coding.c (suffixes): Make constant.
331
f4265f6c
DN
332 * frame.c (make_initial_frame):
333 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
334 build_string.
335 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
336
04420943
DN
337 * s/freebsd.h:
338 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
339
0a5d24ae
DN
340 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
341 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
342
a4ada374
DN
343 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
344 * xterm.c (syms_of_xterm):
345 * xfaces.c (syms_of_xfaces):
346 * xdisp.c (syms_of_xdisp):
347 * lread.c (syms_of_lread):
348 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
349 build_string.
91433552 350
a4ada374
DN
351 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
352
af98fc7f
SM
3532009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
354
8ab1650e 355 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 356
e90292a9
JD
3572009-11-10 Jan Djärv <jan.h.d@swipnet.se>
358
359 * keyboard.h: Declare timer_check.
360
361 * keyboard.c (timer_check_2): New function that does what the old
362 timer_check did.
363 (timer_check): Call timer_check_2 until -1 or a non-zero time is
364 returned, i.e. don't return -1 with timers pending.
365
366 * process.c: Remove extern declaration of timer_check.
367
368 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
369 even if timer_check returned -1.
370
af98fc7f
SM
371 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
372 xg_dialog_data.
e90292a9
JD
373 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
374 the event loop.
375 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
376 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
377 Destroy the dialog after xg_dialog_run.
378
045b83c0
SM
3792009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
380
381 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
382
1fb99a3a
JD
3832009-11-10 Jan Djärv <jan.h.d@swipnet.se>
384
385 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
386
04e452cb
JB
3872009-11-09 Juanma Barranquero <lekktu@gmail.com>
388
389 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
390
ef7417fd
SM
3912009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
392
393 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
394 w32menu.c, and nsmenu.m.
395 Simplify the obsolete case where position is nil.
396 (cleanup_popup_menu): New function, moved from nsmenu.m.
397 (struct skp): Remove slot `notreal'.
398 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
399 adjust callers.
400 (single_menu_item): Adjust call to parse_menu_item.
401 (syms_of_menu): Defsubr x-popup-menu.
402 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
403 (keymap_panes): Don't export any more.
404 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
405 (xmenu_show): Declare.
406 * keyboard.c (parse_menu_item): Remove arg `notreal'.
407 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
408 * keyboard.h (parse_menu_item): Update declaration.
409 * xmenu.c (Fx_popup_menu): Remove.
410 (syms_of_xmenu): Don't defsubr x-popup-menu.
411 * w32menu.c (Fx_popup_menu): Remove.
412 (syms_of_w32menu): Don't defsubr x-popup-menu.
413 * nsmenu.m (cleanup_popup_menu): Remove.
414 (ns_menu_show): Rename from ns_popup_menu and remove all the code
415 moved to menu.c's Fx_popup_menu.
416 (Fx_popup_menu): Remove.
417 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
418 menu_items (it's done in menu.c already).
419
424d6179
SM
4202009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
421
422 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
423 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
424
c0df13a6 4252009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
426
427 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 428 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
429 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
430 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
431
2de9f71c
SM
4322009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
433
434 Let integers use up 2 tags to give them one extra bit and thus double
435 their range.
436 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
437 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
438 New macros.
439 (enum Lisp_Type): Use them. Give explicit values.
440 (Lisp_Type_Limit): Remove.
441 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
442 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
443 Pay attention to USE_2_TAGS_FOR_INTS.
444 (INTEGERP): Use LISP_INT_TAG_P.
445 * fns.c (internal_equal): Simplify the default case.
446 (sxhash): Use case_Lisp_Int.
447 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
448 any more.
449 (Ftype_of): Use case_Lisp_Int.
450 (store_symval_forwarding): Take into account the fact that Ints can
451 now have more than one tag.
452 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
453 buffer_slot_type_mismatch):
454 * xfaces.c (face_attr_equal_p):
455 * print.c (print_object):
456 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
457 Use case_Lisp_Int.
458
323637a2
EZ
4592009-11-06 Eli Zaretskii <eliz@gnu.org>
460
7ac65b38
EZ
461 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
462
323637a2
EZ
463 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
464 warning.
465
e511451f
JD
4662009-11-06 Jan Djärv <jan.h.d@swipnet.se>
467
468 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
469
470 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
471
472 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
473 ButtonPressRelease and MotionNotify (bug#4870).
474
5e2327cf
DN
4752009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
476
5adc433e
DN
477 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
478
d67b4f80
DN
479 * xterm.c (syms_of_xterm):
480 * xselect.c (syms_of_xselect):
481 * xmenu.c (syms_of_xmenu):
482 * xfns.c (syms_of_xfns):
483 * xfaces.c (syms_of_xfaces):
484 * xdisp.c (syms_of_xdisp):
485 * window.c (syms_of_window):
486 * w32fns.c (syms_of_w32fns):
487 * undo.c (syms_of_undo):
488 * textprop.c (syms_of_textprop):
489 * terminal.c (syms_of_terminal):
490 * syntax.c (syms_of_syntax):
491 * sound.c (syms_of_sound):
492 * search.c (syms_of_search):
493 * print.c (syms_of_print):
494 * minibuf.c (syms_of_minibuf):
495 * macros.c (syms_of_macros):
496 * keymap.c (syms_of_keymap, initial_define_key)
497 (initial_define_lispy_key):
498 * keyboard.c (syms_of_keyboard):
499 * insdel.c (syms_of_insdel):
500 * image.c (syms_of_image):
501 * fringe.c (syms_of_fringe):
502 * frame.c (syms_of_frame):
503 * fontset.c (syms_of_fontset):
504 * fns.c (syms_of_fns):
505 * fns.c (syms_of_fns):
506 * fileio.c (syms_of_fileio):
507 * fileio.c (syms_of_fileio):
508 * eval.c (syms_of_eval):
509 * doc.c (syms_of_doc):
510 * dispnew.c (syms_of_display):
511 * dired.c (syms_of_dired):
512 * dbusbind.c (syms_of_dbusbind):
513 * data.c (syms_of_data):
514 * composite.c (syms_of_composite):
515 * coding.c (syms_of_coding):
516 * cmds.c (syms_of_cmds):
517 * charset.c (define_charset_internal, syms_of_character):
518 * ccl.c (syms_of_ccl):
519 * category.c (syms_of_category, init_category_once):
520 * casetab.c (syms_of_casetab):
521 * casefiddle.c (syms_of_casefiddle):
522 * callint.c (syms_of_callint):
523 * bytecode.c (syms_of_bytecode):
524 * buffer.c (keys_of_buffer, syms_of_buffer):
525 * alloc.c (syms_of_alloc):
526 * process.c (syms_of_process, init_process):
527 * lread.c (syms_of_lread, init_obarray):
528 * font.c (build_style_table):
529 * emacs.c (syms_of_emacs, main): Replace calls to intern with
530 intern_c_string, calls to make_pure_string with
531 make_pure_c_string. Use pure_cons instead of Fcons.
532
5e2327cf
DN
533 * process.c (socket_options): Make it const.
534 (set_socket_option, init_process): Use a const pointer.
535
536 * lread.c (intern_c_string): New function.
537 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
538 (defvar_int): Uset it. Make the name const char*.
539
540 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
541 (defvar_int): Update prototypes.
542 (DEFUN, EXFUN): Support for prototypes is now required.
543 (intern_c_string): New prototype.
544 (struct Lisp_Subr): Make symbol_name constant.
545
546 * font.c (struct table_entry): Remove unused member. Make NAMES
547 constant.
548 (weight_table, slant_table, width_table): Make constant.
549
550 * emacs.c (struct standard_args): Make name and longname constant.
551
552 * character.h (DEFSYM): Use intern_c_string.
553
a56eaaef
DN
5542009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
555
556 * alloc.c (make_pure_c_string): New function.
557
558 * eval.c (Fautoload): Purecopy all arguments.
559
f6a07420
KH
5602009-11-05 Kenichi Handa <handa@m17n.org>
561
562 * fileio.c (Finsert_file_contents): Be sure set coding-system of
563 the buffer in case of replace.
564
5d28d4b1
DN
5652009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
566
567 * puresize.h (BASE_PURESIZE): Increase to 1620000.
568
b349d111
SM
5692009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
570
d528b1ce
SM
571 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
572 when applicable (bug#4851).
573
b349d111
SM
574 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
575 (P_): Support for prototypes is now required.
576
c38eb027
CY
5772009-10-31 Chong Yidong <cyd@stupidchicken.com>
578
579 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
580 (Bug#4827).
581
0405f8d9
EZ
5822009-10-30 Eli Zaretskii <eliz@gnu.org>
583
d528b1ce 584 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 585
ca0a881a
DN
5862009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
587
588 * puresize.h (BASE_PURESIZE): Increase to 1470000.
589
d528b1ce
SM
590 * lread.c (Fload): Purecopy the file name when building
591 Vpreloaded_file_list.
ca0a881a 592
47e0e0e4
JR
5932009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
594
595 * w32fns.c (syms_of_w32fns): Change default value of
596 w32-scroll-lock-modifier to nil. (Bug#2827)
597
057bce6f
JB
5982009-10-26 Juanma Barranquero <lekktu@gmail.com>
599
782a943e 600 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 601
242bc74c
AS
6022009-10-26 Andreas Schwab <schwab@redhat.com>
603
604 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
605
522d013a
JB
6062009-10-26 Juanma Barranquero <lekktu@gmail.com>
607
608 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
609 For delta < 0, skip check that only makes sense when the mini-window
610 is going to be enlarged. (Bug#4534)
611
18060980
CY
6122009-10-25 Chong Yidong <cyd@stupidchicken.com>
613
614 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
615 string in menu maps (Bug#4471).
616
fec8f0fe
CY
6172009-10-24 Chong Yidong <cyd@stupidchicken.com>
618
619 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
620 FRAME_NS_VIEW on terminal frames (Bug#4765).
621
10d66ec0
AS
6222009-10-24 Andreas Schwab <schwab@linux-m68k.org>
623
1cae01f7
AS
624 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
625 DBUS_TYPE_UINTnn separately to get proper sign extension.
626
58a12889
AS
627 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
628 can properly handle unsigned types.
d528b1ce 629 (make_uid, make_gid): Remove.
58a12889 630
987c9327
AS
631 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
632 types again.
633
522d013a 634 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
635 (system_process_attributes): Likewise.
636
905a9ed3
DN
6372009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
638
639 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
640
641 * eval.c (Fautoload): Purecopy the filename. Simplify.
642
643 * category.c (Fdefine_category): Purecopy docstring.
644
a599b3e8
AS
6452009-10-23 Andreas Schwab <schwab@linux-m68k.org>
646
7b792fc9
AS
647 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
648
a599b3e8
AS
649 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
650
b35ac83e
CY
6512009-10-23 Chong Yidong <cyd@stupidchicken.com>
652
653 * window.c (Fwindow_edges, Fwindow_pixel_edges)
654 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
655 (Bug#4775).
656
e8903e00
SM
6572009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
658
659 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
660 (init_fileio_once):
661 * lisp.h (init_fileio_once): Remove.
662 * emacs.c (main): Don't call init_fileio_once.
663
8f43cbf3
DN
6642009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
665
666 * puresize.h (BASE_PURESIZE): Increase to 1430000.
667
26898943
AS
6682009-10-21 Andreas Schwab <schwab@linux-m68k.org>
669
670 * doprnt.c (doprnt): Fix overflow check.
671
5c646d5a
JD
6722009-10-21 Jan Djärv <jan.h.d@swipnet.se>
673
3132a7ea
JD
674 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
675
5c646d5a
JD
676 * xterm.h (x_wait_for_event): Declare it.
677
678 * xterm.c (pending_event_wait): New variable.
679 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
680 see pending_event_wait.eventtype.
681 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
682 (x_new_font): Call change_frame_size with new rows/columns before we
683 try to resize the frame.
5c646d5a 684 (x_wait_for_event): New function.
d528b1ce
SM
685 (x_set_window_size_1): Don't change gravity unless change_gravity
686 is set.
5c646d5a
JD
687 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
688 don't change frame size, instead wait for the ConfigureNotify.
689 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
690 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
691 (x_initialize): Initialize pending_event_wait.
692
693 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
694 size.
695
696 * widget.c (EmacsFrameSetValues): Add comment.
697 (EmacsFrameSetCharSize): Just call x_set_window_size.
698
699 * gtkutil.c (xg_frame_set_char_size): Flush events and call
700 x_wait_for_event.
d528b1ce 701 (flush_and_sync): Remove again.
5c646d5a
JD
702 (xg_get_font_name): Suggest monospace if no previous font is known.
703
e9c1637d
SM
7042009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
705
706 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 707 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 708
5a72cccb
YM
7092009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
710
711 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
712 processing pending events when event is filtered for input method.
ab04798f 713 (Bug#3681)
5a72cccb 714
2629aa37
JB
7152009-10-20 Juanma Barranquero <lekktu@gmail.com>
716
717 * fns.c: Add #endif accidentally removed in previous change.
718
c3417a74
DN
7192009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
720
721 * fns.c: Remove code for unsupported system: MAC_OS.
722 * image.c: Likewise. Include setjmp.h.
723
9685cef2
JD
7242009-10-19 Jan Djärv <jan.h.d@swipnet.se>
725
726 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
727 pixel -1 (bug #4742).
728
d7306fe6
DN
7292009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
730
019d2c4c
DN
731 * process.c (create_pty): Remove conditionals for no longer
732 supported systems: UNIPLUS and RTU.
733
ee6bacd4
DN
734 * xterm.c:
735 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
736
d7306fe6
DN
737 * alloc.c: Do not define struct catchtag.
738 * eval.c: Move struct catchtag definition ...
739 * lisp.h: ... here.
740
741 * image.c: Move png.h #include earlier to avoid warnings.
742
743 * xterm.c:
744 * xsmfns.c:
745 * xselect.c:
746 * xrdb.c:
747 * xmenu.c:
748 * xftfont.c:
749 * xfont.c:
750 * xfns.c:
751 * xfaces.c:
752 * xdisp.c:
753 * window.c:
754 * widget.c:
755 * w32xfns.c:
756 * w32uniscribe.c:
757 * w32term.c:
758 * w32select.c:
759 * w32reg.c:
760 * w32proc.c:
761 * w32menu.c:
762 * w32inevt.c:
763 * w32heap.c:
764 * w32font.c:
765 * w32fns.c:
766 * w32console.c:
767 * w32.c:
768 * w16select.c:
769 * vm-limit.c:
770 * unexsol.c:
771 * unexec.c:
772 * unexcw.c:
773 * unexaix.c:
774 * undo.c:
775 * tparam.c:
776 * textprop.c:
777 * terminfo.c:
778 * terminal.c:
779 * termcap.c:
780 * term.c:
781 * syntax.c:
782 * sound.c:
783 * sheap.c:
784 * search.c:
785 * scroll.c:
786 * region-cache.c:
787 * regex.c:
788 * ralloc.c:
789 * process.c:
790 * print.c:
b024548b
DN
791 * nsterm.m:
792 * nsselect.m:
793 * nsmenu.m:
794 * nsimage.m:
795 * nsfont.m:
796 * nsfns.m:
d7306fe6
DN
797 * msdos.c:
798 * minibuf.c:
799 * menu.c:
800 * marker.c:
801 * macros.c:
802 * keymap.c:
803 * keyboard.c:
804 * intervals.c:
805 * insdel.c:
806 * indent.c:
807 * gtkutil.c:
808 * ftxfont.c:
809 * ftfont.c:
810 * fringe.c:
811 * frame.c:
812 * fontset.c:
813 * font.c:
814 * fns.c:
815 * floatfns.c:
816 * filelock.c:
817 * fileio.c:
818 * emacs.c:
819 * editfns.c:
820 * dosfns.c:
821 * doprnt.c:
822 * doc.c:
823 * dispnew.c:
824 * dired.c:
825 * dbusbind.c:
826 * data.c:
827 * composite.c:
828 * coding.c:
829 * cmds.c:
830 * cm.c:
831 * chartab.c:
832 * charset.c:
833 * character.c:
834 * ccl.c:
835 * category.c:
836 * casetab.c:
837 * casefiddle.c:
838 * callproc.c:
839 * callint.c:
840 * bytecode.c:
841 * buffer.c:
842 * atimer.c: Include setjmp.h. (Bug#4643)
843
fd5f21e6
SM
8442009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
845
4c0354d7
SM
846 Remove leftover table unibyte_to_multibyte_table.
847 * character.c (unibyte_to_multibyte_table): Remove.
848 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
849 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
850 * character.h (UNIBYTE_TO_CHAR): New macro.
851 (MAKE_CHAR_MULTIBYTE): Use it.
852 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
853 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
854 (message_dolog, set_message_1):
855 * search.c (Freplace_match):
856 * editfns.c (Fcompare_buffer_substrings):
857 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
858 (concat):
859 * insdel.c (copy_text, count_size_as_multibyte):
860 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
861 * term.c (produce_glyphs):
862 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
863 * regex.c (RE_CHAR_TO_MULTIBYTE):
864 * cmds.c (internal_self_insert):
865 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
866
fd5f21e6
SM
867 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
868
4418646e
DN
8692009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
870
871 * puresize.h (BASE_PURESIZE): Increase to 1310000.
872
35f5c1d2
JB
8732009-10-16 Juanma Barranquero <lekktu@gmail.com>
874
875 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
876
a0cd8f6b
AR
8772009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
878
879 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
880 still needed under Tiger.
881
882 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
883
884 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
885 __Apple__.
886
887 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
888
01a8d3fa
KH
8892009-10-15 Kenichi Handa <handa@m17n.org>
890
891 * print.c (print_object): Escape a symbol like "2E10" too.
892
bf6c75c9 8932009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
894
895 Cleanups and changes for 64-bit compile under Snow Leopard.
896 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
897
898 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
899
c5959062 900 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
901 (ns_findfonts, nsfont_list_family): Use long format in printf, and
902 cast argument.
903 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 904 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
905
906 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
907
908 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
909 where appropriate.
910
911 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
912 where appropriate.
6e4780c5
JB
913 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
914 Use stringWithUTF8String.
bf6c75c9
AR
915 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
916
6e4780c5
JB
917 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
918 Add formal protocol mention to inheritance.
bf6c75c9
AR
919 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
920
6e4780c5
JB
921 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
922 Fix printf format.
bf6c75c9
AR
923 (ns_query_color): Use CGFloat where appropriate.
924 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
925 (EmacsScroller-mouseDown:) Use long format in printf, and cast
926 argument.
927
3d87f118
AR
928 * config.in (NS_HAVE_NSINTEGER): Drop.
929
a95c8102
AR
930 * dbusbind.c (dbus-method-return-internal)
931 (dbus-method-error-internal): Use long format in printf, and cast
932 argument.
933
934 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
935 in printf, and cast argument.
936
6873acca 937 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
938 cast argument.
939
9ec6f100
GM
9402009-10-11 Glenn Morris <rgm@gnu.org>
941
942 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
943
5be883cd
JD
9442009-10-08 Jan Djärv <jan.h.d@swipnet.se>
945
946 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
947 menu bar with a small width so it doesn't enlarge the frame.
948
d7a39b51
JB
9492009-10-08 Juanma Barranquero <lekktu@gmail.com>
950
951 * fontset.c (Fset_fontset_font): Fix typos in error messages.
952
0c2b6f8e
GM
9532009-10-06 Glenn Morris <rgm@gnu.org>
954
955 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
956 SOME_MACHINE_LISP (this enters indirectly via DOC).
957
e02131a2
EZ
9582009-10-05 Eli Zaretskii <eliz@gnu.org>
959
960 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
961
b4744254
EZ
9622009-10-04 Eli Zaretskii <eliz@gnu.org>
963
964 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
965 Doc fix.
966
dbf64827
JB
9672009-10-03 Martin Rudalics <rudalics@gmx.at>
968
969 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
970
e9a0aef8
MA
9712009-10-02 Michael Albinus <michael.albinus@gmx.de>
972
d528b1ce 973 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
974 used anymore outside fileio.c.
975
976 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
977
64eb2b56
JB
9782009-10-01 Juanma Barranquero <lekktu@gmail.com>
979
980 * lisp.h (Qdelete_directory_internal):
981 Declare, instead of Qdelete_directory.
982
983 * w32fns.c (Fsystem_move_file_to_trash): Use it.
984
9d28c33e
SM
9852009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
986
987 * eval.c (Fcalled_interactively_p): Add `kind' argument.
988
9d8f3bd9
MA
9892009-10-01 Michael Albinus <michael.albinus@gmx.de>
990
9d28c33e 991 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
992 Fdelete_directory. It is not a command anymore. It has no file
993 name handler.
994
9694740b
SM
9952009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
996
997 * xdisp.c (get_next_display_element): Use an enum in last change.
998
748e162f
KH
9992009-09-28 Kenichi Handa <handa@m17n.org>
1000
9694740b 1001 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1002 unibyte_display_via_language_environment in handling
1003 Vnobreak_char_display.
1004
17efd58d
AR
10052009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1006
1007 * nsterm.h (ns_app_name): New extern variable.
1008
1009 * nsterm.m (ns_app_name): New variable.
1010 (ns_term_init): Set and use it.
1011 (ns_term_shutdown): Use it.
1012
1013 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1014 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1015
1016 * nsfns.m (ns_set_name_iconic, ns_set_name)
1017 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1018 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1019
9694740b
SM
1020 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1021 Remove double-casting in client_data comparison.
31c2d412 1022
3208cb35
YM
10232009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1024
1025 * keyboard.c (make_lispy_event): Remember last wheel direction.
1026 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1027
b7d552d6
GM
10282009-09-26 Glenn Morris <rgm@gnu.org>
1029
1030 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1031 internal.elc. Add term/pc-win.elc.
1032 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1033 term/x-win.elc.
1034 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1035 term/w32-win.elc.
1036 (NS_SUPPORT): New.
1037 (lisp): Add NS_SUPPORT.
1038 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1039
4ff670a8
DR
10402009-09-25 David Reitter <david.reitter@gmail.com>
1041
1042 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1043 on Mac OS X 10.6+ (bug#4513).
1044
feabfb6c
JB
10452009-09-24 Juanma Barranquero <lekktu@gmail.com>
1046
1047 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1048 some parts of Emacs code (like font selection) don't grok them.
1049 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1050
de59072a
AS
10512009-09-24 Andreas Schwab <schwab@redhat.com>
1052
1053 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1054
a489517b
JB
10552009-09-24 Juanma Barranquero <lekktu@gmail.com>
1056
1057 * dired.c (Fdirectory_files): Fix typo in docstring.
1058
0592970c
AR
10592009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1060
1061 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1062 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1063 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1064 under GNUstep.
1065 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1066
1067 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1068 glyph advancement.
1069
48e8a88b
AR
10702009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1071
1072 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1073 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1074
1075 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1076 deleted (bug #4492).
1077
e14f0a78
AR
1078 * nsfont.m (Vns_reg_to_script): New lisp variable.
1079 (syms_of_nsfont): Declare it.
1080 (ns_registry_to_script): New function.
1081 (ns_get_req_script): Call it.
1082 (ns_findfonts): Don't give up on non-unicode registry.
1083
1084 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1085
5b650faa
SM
10862009-09-20 Tom Tromey <tromey@redhat.com>
1087
1088 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1089 batch mode (bug#4228).
1090
a489517b 10912009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1092
1093 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1094 carefully. (Bug #4339)
0bae4e09 1095
fcfe06f3
CY
10962009-09-18 Chong Yidong <cyd@stupidchicken.com>
1097
d798ba87 1098 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1099
31642728
AR
11002009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1101
1102 * emacs.c (inhibit_x_resources): Update doc string for NS.
1103 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1104 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1105
1106 * nsterm.h (ns_no_defaults): Remove.
1107
1108 * nsterm.m (ns_no_defaults): Remove.
1109 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1110 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1111 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1112 don't update the NSWindow itself.
1113 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1114 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1115
1116 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1117 ns_use_qd_smoothing.
1118
1119 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1120 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1121 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1122 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1123
8686ac71
JB
11242009-09-17 Juanma Barranquero <lekktu@gmail.com>
1125
1126 * emacs.c (inhibit_x_resources): New variable.
1127 (main) [HAVE_NS]: Don't process --quick command line option.
1128 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1129
1130 * lisp.h (inhibit_x_resources): Declare it extern.
1131
1132 * w32reg.c (x_get_string_resource):
1133 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1134
e227ba05
EZ
11352009-09-17 Eli Zaretskii <eliz@gnu.org>
1136
362654a6
JB
1137 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1138 Add lisp/term/internal.elc.
e227ba05 1139
742d40e8
SM
11402009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1141
1142 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1143 (bug#4461).
1144
005bd5a2
DN
11452009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1146
1147 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1148
1149 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1150 (OBJECTS_MACHINE): Remove, unused.
1151
f9af9719
SM
11522009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1153
1154 * frame.c (x_get_resource_string): Remove unused.
1155
0307c7d2
JD
11562009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1157
1158 * xterm.c (x_new_font): Call change_frame_size before calling
1159 x_set_window_size, in case frame size won't change.
1160
1161 * frame.c (x_set_font): Remove dead code.
1162
428b13d6
SM
11632009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1164
1165 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1166
5766c380
SM
11672009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1168
1169 * lread.c (Fload): Don't output a message after loading an obsolete
1170 package any more (done in Lisp now).
1171
2fd0161b
CY
11722009-09-12 Chong Yidong <cyd@stupidchicken.com>
1173
1174 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1175
bc5e75b6
SM
11762009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1177
1178 * keymap.c (Fwhere_is_internal): Use nconc2.
1179
c31c985e
AM
11802009-09-11 Alan Mackenzie <acm@muc.de>
1181
1182 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1183 batch mode.
1184
78012bd2
AS
11852009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1186
1187 * xdisp.c (display_mode_element): Detect cycles.
1188
9d889332
SM
11892009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1190
1191 * keymap.c (where_is_internal): Don't erroneously return nil right after
1192 filling the cache.
1193 (where_is_internal_1): Fix up typo.
1194
7ab5d780
GM
11952009-09-11 Glenn Morris <rgm@gnu.org>
1196
1197 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1198 share a common doc-string.
1199
5238a749
SM
12002009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1201
66d77eda
SM
1202 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1203 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1204
5238a749
SM
1205 * keymap.c (QCadvertised_binding): New constant.
1206 (syms_of_keymap): Initialize it.
1207 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1208 if applicable.
1209
19f48442
SM
12102009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1211
50d4ba39
SM
1212 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1213 (parse_menu_item): Streamline since bindings are recomputed all the
1214 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1215 more and don't support lmenu's menu-alias any more either.
1216
a88a5372
SM
1217 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1218 (where_is_internal): Strip it down to only traverse the keymaps.
1219 Move the cache handling from Fwhere_is_internal to here.
1220 (Fwhere_is_internal): Move the handling of remapping and the choice of
1221 the best binding from where_is_internal to here.
1222 Unify the cached/noncached paths, so remapping is also handled
1223 correctly when the cache is used, and so the cache can be used to
1224 speed up remap-handling when applicable.
1225 Give preference to non-remapped bindings.
1226 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1227 non-remapped bindings.
1228 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1229 command remapping.
1230
19f48442
SM
1231 * xdisp.c (display_mode_element): Move list length limit from 50 to
1232 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1233
599498c3 12342009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1235
1236 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1237
f9b7b5ac
SM
12382009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1239
a53af587
JB
1240 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1241 (Bug#4334)
1242
f9b7b5ac
SM
1243 * keymap.c (where_is_internal): Filter out shadowed remappings.
1244 Assume that where_is_internal returns unshadowed bindings to simplify
1245 the code and get rid of the gotos. Use ASIZE.
1246
04f4b72d
JD
12472009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1248
4da146f2
JD
1249 * xterm.c (x_focus_changed): If we get a focusout and pointer
1250 is invisible, make it visible.
1251
04f4b72d
JD
1252 * xterm.h: Remove condition for declaration of
1253 x_*_window_to_frame.
1254
7cef7ce3
SM
12552009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1256
1257 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1258 initial terminal as well.
1259
a54fa5b7
JD
12602009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1261
1262 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1263 x_menubar_window_to_frame.
a54fa5b7
JD
1264
1265 * xterm.c: Remove declarations also in xterm.h
1266 (XTmouse_position): Do not return valid positions
1267 for clicks in the menubar and the toolbar for Gtk+.
1268
1269 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1270 if the widget for the event has the same top level as a frame,
1271 return the frame.
1272 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1273 internal windows, bug #4122.
1274 (x_non_menubar_window_to_frame): Remove.
1275
5a021dd0
GM
12762009-09-02 Glenn Morris <rgm@gnu.org>
1277
1278 * buffer.c (default-major-mode): Move most of the doc from here...
1279 (major-mode): ... to here.
1280
548fe2f3
NR
12812009-08-30 Nick Roberts <nickrob@snap.net.nz>
1282
1283 * process.c (wait_reading_process_output): Keep the descriptor
1284 when pty is used by a non-child process, e.g., in I/O buffer of
1285 GDB this allows inferior to be restarted.
1286
e0840eef
EZ
12872009-08-29 Eli Zaretskii <eliz@gnu.org>
1288
1289 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1290 both branches into one.
1291
82e98df4
SM
12922009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1293
1294 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1295 (main): Use enable-multibyte-characters rather than
1296 default-enable-multibyte-characters. Output a warning message when
1297 running a unibyte session.
1298
890617cb
YM
12992009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1300
1301 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1302 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1303 (copy_data_segment): Also copy __program_vars section.
1304 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1305 (dump_it) [LC_DYLD_INFO]: Use it.
1306
1307 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1308
e7adeadc
EZ
13092009-08-28 Eli Zaretskii <eliz@gnu.org>
1310
1311 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1312 $(SRC)/buildobj.h.
1313 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1314 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1315 $(SRC)/buildobj.h.
1316 (clean): Add buildobj.h.
1317
3ed8bbdc
TZ
13182009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1319
1320 * print.c (print_object): Set escapeflag to 1 when printing
1321 hashtable keys and values.
1322
155a6764
SM
13232009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1324
1325 * lread.c (read_integer): Use doubles (and potentially return a float
1326 number) as we do in string-to-number.
1327 (read1): Use strtol to read integers, signal errors on strtol's
1328 overflow and use floats if strtol's output is too large for
1329 Elisp integers.
1330
877610de
EZ
13312009-08-27 Eli Zaretskii <eliz@gnu.org>
1332
1333 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1334 (make-buildobj-SH): Fix last change.
1335 (SRC): Move to before where it's first used.
1336
ef73e7be
KH
13372009-08-27 Kenichi Handa <handa@m17n.org>
1338
550c8289
KH
1339 * process.c (send_process): Use encode_coding_object instead of
1340 encode_coding_string to perform eol-conversion even if the string
1341 is unibyte.
1342
60afa08d
KH
1343 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1344 character.
1345
ef73e7be 1346 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1347 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1348
7b3a82d7
DN
13492009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1350
5654bf63
DN
1351 * callproc.c (Fcall_process): Remove always true #if.
1352
7b3a82d7
DN
1353 * lisp.h: Replace #if 0 code for checking with text pointing to
1354 the --enable-checking configure flag.
1355
1356 * emacs.c (main): Mention the --enable-profiling configure flag
1357 instead of using CFLAGS.
1358
878bde49
KR
13592009-08-26 Ken Raeburn <raeburn@raeburn.org>
1360
1361 * Makefile.in (buildobj.h): New target.
1362 (doc.o): Depend on it.
1363 (temacs${EXEEXT}): Don't generate buildobj.lst.
1364 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1365 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1366 ($(BLD)/doc.$(O)): Depend on it.
1367 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1368 provided by Eli Zaretskii.)
1369 ($(TEMACS)): Don't generate buildobj.lst.
1370 * doc.c: Include buildobj.h.
1371 (buildobj): New static variable.
1372 (Fsnarf_documentation): Use it, instead of opening and reading
1373 buildobj.lst.
1374
1574224c
MA
13752009-08-25 Michael Albinus <michael.albinus@gmx.de>
1376
1377 * dbusbind.c (Fdbus_call_method)
1378 (Fdbus_call_method_asynchronously): Use English numeric format for
1379 timeout values in doc string.
1380
d9da2f45
KH
13812009-08-25 Kenichi Handa <handa@m17n.org>
1382
ef73e7be
KH
1383 * alloc.c (mark_char_table): New function.
1384 (mark_object): Use mark_char_table for a char-table.
1385
d9da2f45
KH
1386 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1387 (CHAR_TABLE_REF): Use it.
1388
c8edcc01
KR
13892009-08-23 Ken Raeburn <raeburn@raeburn.org>
1390
1391 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1392 before invoking the newly build emacs to check for load-path
1393 shadowing.
1394
7763401b
GM
13952009-08-22 Glenn Morris <rgm@gnu.org>
1396
1397 * Makefile.in (bootstrap_exe): New variable.
1398 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1399 Use ${bootstrap_exe}.
1400
729eadda
EZ
14012009-08-22 Eli Zaretskii <eliz@gnu.org>
1402
1403 * coding.h (encode_coding_string): Don't encode unibyte strings.
1404 (Bug#4047)
1405
eb4c6ace
MA
14062009-08-22 Michael Albinus <michael.albinus@gmx.de>
1407
1408 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1409
1410 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1411 intended as hotfix only.
1412 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1413
36e34d1b
AR
14142009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1415
1416 * nsterm.m (ns_get_color): Update documentation properly for last
1417 change, and clean up loose ends in the code left by it. Fix
1418 longstanding bug with 16-bit hex parsing, and add support for
1419 yet another X11 format (rgb:r/g/b) for compatibility.
1420 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1421 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1422
f983eb8a
SM
14232009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1424
1425 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1426
3f56d3c6
MA
14272009-08-20 Michael Albinus <michael.albinus@gmx.de>
1428
1429 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1430 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1431 (xd_initialize, xd_pending_messages): Check, whether
1432 $DBUS_SESSION_BUS_ADDRESS is set.
1433
fb641d68
YM
14342009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1435
1436 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1437
1438 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1439
cf59a374
GM
14402009-08-20 Glenn Morris <rgm@gnu.org>
1441
1442 * emacs.c (system-type): Doc fix.
1443
1373f3be
SM
14442009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1445
1446 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1447 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1448
058ed861
MA
14492009-08-18 Michael Albinus <michael.albinus@gmx.de>
1450
1373f3be
SM
1451 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1452 New functions.
058ed861
MA
1453 (xd_initialize): Revert change from 2009-08-16.
1454
563a866e 14552009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1456
1457 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1458 font-group vector, return nil.
5fc05db0 1459
e42bdf01
CY
14602009-08-17 Chong Yidong <cyd@stupidchicken.com>
1461
1462 * process.c (status_notify): Don't perform redisplay.
1463 (Fdelete_process, list_processes_1, process_send_signal):
1464 Expliticly perform redisplay.
1465 (wait_reading_process_output): Always check process status, but
1466 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1467
4230ab74
KR
14682009-08-17 Ken Raeburn <raeburn@raeburn.org>
1469
1373f3be 1470 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1471 (XFLOAT_INIT): New macro for storing a float value.
1472 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1473 * fns.c (sxhash): Copy out the value of a float in order to
1474 examine its bytes.
1475 * dbusbind.c (xd_append_arg): Likewise.
1476
4230ab74
KR
1477 * emacs.c (main): Don't call syms_of_data twice.
1478
a0645cdd
MA
14792009-08-16 Michael Albinus <michael.albinus@gmx.de>
1480
1481 * dbusbind.c (xd_initialize): Add connection file descriptor to
1482 input_wait_mask, in order to let select() detect, whether a new
1483 message has been arrived.
ca4f31ea 1484 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1485
485db0ba
MA
14862009-08-15 Michael Albinus <michael.albinus@gmx.de>
1487
1373f3be
SM
1488 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1489 New functions.
485db0ba
MA
1490
1491 * lisp.h (xd_pending_messages): Declare.
1492
1493 * keyboard.c (readable_events): Call xd_pending_messages.
1494
b5b98ff4
CY
14952009-08-15 Chong Yidong <cyd@stupidchicken.com>
1496
1373f3be 1497 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1498
f8354c6e
CY
1499 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1500
b5b98ff4
CY
1501 * buffer.c (set_buffer_internal_1)
1502 (swap_out_buffer_local_variables): Check for unbound local
1503 variables (Bug#4138).
1504
8b9fc636
EZ
15052009-08-14 Eli Zaretskii <eliz@gnu.org>
1506
1507 * process.c (create_pty): Fix last change.
1508
ce959360
CY
15092009-08-13 Chong Yidong <cyd@stupidchicken.com>
1510
1511 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1512 (xbm_load_image): Caller changed.
64b807c9 1513 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1514
c7baf7e9
NR
15152009-08-13 Nick Roberts <nickrob@snap.net.nz>
1516
1517 * process.c (create_pty): New function.
1518 (Fstart_process): Use it to allow Emacs to just associate a pty
1519 with the buffer. See associated change in gdb-mi.el.
1520 (list_processes_1): Deal with no program name.
1521 (start_process_unwind): Use pid == -2 to mean no process.
1522
1ac9108a
SM
15232009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1524
1525 * cmds.c (nonundocount): New global variable.
1526 (keys_of_cmds): Initialize it.
1527 (Fself_insert_command): Use it to combine upto 20 sequential chars
1528 into a single undo entry, just like the Qself_insert_command code in
1529 keyboard.c does.
1530 Call frame_make_pointer_invisible, also like the Qself_insert_command
1531 code in keyboard.c does.
1532 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1533 than its own local replacement for it.
1534
e267324c
KR
15352009-08-10 Ken Raeburn <raeburn@raeburn.org>
1536
1ac9108a 1537 * fns.c (concat): Don't re-set string length to its current value.
77437343 1538
1ac9108a
SM
1539 * coding.h (decode_coding_string, encode_coding_string):
1540 Use SBYTES macro.
f0bed503 1541
1ac9108a 1542 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1543 (doprnt): Merge with doprnt1, discarding lispstrings code.
1544 * lisp.h (doprnt_lisp): Don't declare.
1545
416e006d
JL
15462009-08-07 Juri Linkov <juri@jurta.org>
1547
1548 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1549
6f7d5780
DN
15502009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1551
1552 * print.c (syms_of_print): Undo previous change.
1553
f19a0f5b
TZ
15542009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1555
1556 * lread.c (read1, syms_of_lread): Read hashtables back from the
1557 readable format.
1558
1559 * print.c (print_preprocess, print_object): Print hashtables fully
1560 and readably.
1561 (syms_of_print): Provide 'hashtable-print-readable.
1562
b9173dc2
AR
15632009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1564
1565 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1566 no family set.
1567 (nsfont_open): Handle case when entity has no family.
1568
1586503c
AR
15692009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1570
1571 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1572 element, not a list, for match case.
1573
087048cd
KH
15742009-07-28 Kenichi Handa <handa@m17n.org>
1575
1576 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1577 rigidly.
1578
1579 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1580 font_parse_xlfd. Check font properties more rigidly.
1581
780c2506
DN
15822009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1583
31fd7c5c
JB
1584 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1585 bsd-common.h.
780c2506 1586
a8c0cc18
KH
15872009-07-27 Kenichi Handa <handa@m17n.org>
1588
1589 * xfaces.c (face_with_height): Call font_clear_prop.
1590
4fbe2306
CY
15912009-07-26 Chong Yidong <cyd@stupidchicken.com>
1592
111d9af3
CY
1593 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1594
1595 * xterm.c (x_term_init): Use Qx.
1596
4fbe2306
CY
1597 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1598
1ac9108a 1599 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1600 (ns_get_color): Revert 2009-07-16 change.
1601
beb0b7f9
EZ
16022009-07-25 Eli Zaretskii <eliz@gnu.org>
1603
1604 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1605 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1606
2baf5e76
KR
16072009-07-25 Ken Raeburn <raeburn@raeburn.org>
1608
1ac9108a
SM
1609 * coding.h (decode_coding_string, encode_coding_string):
1610 Use SCHARS macro.
8890e5f5 1611
2baf5e76 1612 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1613 (load_depth): Delete.
2baf5e76
KR
1614 (Qload_in_progress): New variable.
1615 (load_unwind): Don't reference load_depth or load_in_progress.
1616 (Fload): Likewise; specbind Qload_in_progress instead.
1617 (init_lread): Don't initialize load_depth.
1618 (syms_of_lread): Initialize and protect Qload_in_progress.
1619
1395c6f5
AR
16202009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1621
1622 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1623
4e2f36cf
AR
16242009-07-23 Yavor Doganov <yavor@gnu.org>
1625
1626 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1627
5dd9a6f7
AR
16282009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1629
1630 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1631 Bugs 3792, 3720, 2402.
1632 (ns_lookup_indexed_color): Check for bad index.
1633 (ns_index_color): Init unused slot to 0.
1634 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1635 Bug 3714, possibly 3082.
5dd9a6f7 1636
c902b920
JR
16372009-07-22 Jason Rumney <jasonr@gnu.org>
1638
1ac9108a
SM
1639 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1640 Position IME window at cursor (Bug#2570).
c902b920
JR
1641 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1642 (globals_of_w32fns): Dynamically load functions required above.
1643
1644 * w32term.c (w32_draw_window_cursor): Send message to reposition
1645 any IME window.
1646
090101cf
CY
16472009-07-21 Chong Yidong <cyd@stupidchicken.com>
1648
1649 * fileio.c: Revert 2009-07-16 changes.
1650 (Vauto_save_include_big_deletions): New variable.
1651 (Fdo_auto_save): Disable auto-save only if
1652 auto-save-include-big-deletions is nil.
1653
e6583e3d
CY
16542009-07-21 Chong Yidong <cyd@stupidchicken.com>
1655
1656 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1657 the overflowed pixels into account (Bug#3879).
1658
ece435a5
KR
16592009-07-21 Ken Raeburn <raeburn@raeburn.org>
1660
1661 * lread.c (load_depth): New variable.
1662 (Fload, load_unwind, init_lread): Set it to the load recursion
1663 depth; set load_in_progress as a simple boolean based on the
1664 current load_depth. (Bug#3892)
1665
40b2d973
AR
16662009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1667
1668 * nsfont.m (ns_has_attribute): Remove.
1669 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1670
10be7e0d
JL
16712009-07-18 Juri Linkov <juri@jurta.org>
1672
1673 * process.c (Fset_process_query_on_exit_flag): Mention killing
1674 a buffer in docstring.
1675
fa055055
KH
16762009-07-17 Kenichi Handa <handa@m17n.org>
1677
1678 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1679
042f7b69
YM
16802009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1681
1682 * nsfns.m (Fns_set_alpha): Remove function.
1683 (syms_of_nsfns): Don't defsubr it.
1684
1685 * nsterm.m (ns_get_color): Remove incompatible color formats.
1686 (ns_color_to_lisp): Generate #rrggbb color format string.
1687
4be941e3
RS
16882009-07-16 Richard Stallman <rms@gnu.org>
1689
1690 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1691 (Fset_buffer_auto_saved): Handle save_length = -2.
1692
4e6b227d
CY
16932009-07-16 Chong Yidong <cyd@stupidchicken.com>
1694
1695 * xterm.c (Qx_gtk_map_stock): New var.
1696
1697 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1698 of calling intern each time.
1699
a1856973
YM
17002009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1701
1702 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1703 does tiling.
1704
1705 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1706
497e54d8
KH
17072009-07-14 Kenichi Handa <handa@m17n.org>
1708
72d36834
KH
1709 * font.c (font_vconcat_entity_vectors): New function.
1710 (struct font_sort_data): New member font_driver_preference.
1711 (font_compare): Check font_driver_preference.
1712 (font_sort_entities): The format of the first argument changed.
1713 (font_delete_unmatched): Likewise.
1714 (font_list_entities): The return type changed.
1715 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1716 (font_find_for_lface): Adjuste for the above changes.
1717 Don't suppress the checking of C even if the repertory supports it.
1718 (Flist_fonts): Adjust for the above changes.
72d36834 1719
1ac9108a
SM
1720 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1721 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1722 Reject a font who has adstyle property that is different from a
1723 langname derived from registry property.
1ac9108a 1724 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1725
b6046155
EZ
17262009-07-13 Eli Zaretskii <eliz@gnu.org>
1727
1728 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1729 local copy of dirfilename.
1730
fb6b6049
KH
17312009-07-13 Kenichi Handa <handa@m17n.org>
1732
e2402a5e
KH
1733 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1734 against max_char.
1735
fb6b6049
KH
1736 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1737 calling XSYMBOL (sym).
1738
65156807
EZ
17392009-07-11 Eli Zaretskii <eliz@gnu.org>
1740
1ac9108a
SM
1741 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1742 New function.
1743 (directory_files_internal) [WINDOWSNT]:
1744 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1745 the filesystem of the directory is fast or slow.
1746
1747 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1748 file name.
1749 (is_slow_fs): New function.
1750 (stat): Use it to determine whether to issue more system calls to
1751 get accurate file attributes, when w32-get-true-file-attributes is
1752 `local'.
1753
e0ab5fcf
JD
17542009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1755
1756 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1757 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1758 parameter font-parameter as default to the font dialog.
1759
784ceded
KH
17602009-07-10 Kenichi Handa <handa@m17n.org>
1761
1762 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1763
fb8edc0b
EZ
17642009-07-09 Eli Zaretskii <eliz@gnu.org>
1765
1ac9108a 1766 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1767
fb8edc0b
EZ
1768 * w32.c (stat): Treat UNC file names as residing on remote
1769 drives. (Bug#3542)
1770
635c75b1
KH
17712009-07-09 Kenichi Handa <handa@m17n.org>
1772
1773 * fontset.c (fontset_find_font): Fix previous change.
1774
c1d5ce94
MA
17752009-07-08 Michael Albinus <michael.albinus@gmx.de>
1776
1777 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1778 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1779 error flag.
1780
edb61b39
KH
17812009-07-08 Kenichi Handa <handa@m17n.org>
1782
374bf7e4
KH
1783 * fontset.c (fontset_find_font): Fix the logic of handling
1784 charset_matched.
1785 (font_for_char): Delete unused var.
1786 (generate_ascii_font_name): Delete it.
1787
edb61b39
KH
1788 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1789
1790 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1791 (encode_coding_sjis): Fix the code range check.
1792
0f3f018c
CY
17932009-07-07 Chong Yidong <cyd@stupidchicken.com>
1794
1795 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1796 (Fexpand_file_name): Copy string data properly (Bug#3772).
1797
fcaf6f3a
JD
17982009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1799
1800 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1801 first MapNotify.
1802
6809ca75
KH
18032009-07-07 Kenichi Handa <handa@m17n.org>
1804
1805 * character.h (unibyte_has_multibyte_table): Delete extern.
1806 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1807
1808 * charset.c (Fset_charset_priority): Update charset_unibyte.
1809 (syms_of_charset): Initialize charset_unibyte.
1810
1811 * character.c (unibyte_has_multibyte_table): Delete it.
1812 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1813 charset_unibyte.
1814 (multibyte_char_to_unibyte_safe): Likewise.
1815 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1816
1ac9108a 1817 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1818 (x_produce_glyphs): Likewise.
1819
1820 * .gdbinit (xcharset): Fix the treating $arg0.
1821
ad9e2d54
EZ
18222009-07-04 Eli Zaretskii <eliz@gnu.org>
1823
1824 Emulation of `getloadavg' on MS-Windows.
1825 * w32.c: Include float.h
1826 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1827 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1828 (get_native_system_info, get_system_times): New functions.
1829 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1830 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1831 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1832 g_b_init_get_system_times, and num_of_processors.
1833
0a3472c7
JR
18342009-07-03 Jason Rumney <jasonr@gnu.org>
1835
1836 * w32term.c (w32_initialize): Use standard types.
1837
80904120
EZ
18382009-07-03 Eli Zaretskii <eliz@gnu.org>
1839
1840 * dired.c (Ffile_attributes): Decode user and group names by the
1841 locale's encoding. (Bug#3443)
1842
6978862d
DN
18432009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1844
f8d23104
DN
1845 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1846 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1847
1848 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1849
1850 * term.c (init_tty): Remove spurious #ifdef.
1851
6978862d
DN
1852 * m/mips.h: Mention this file is also used for netbsd.
1853 * m/pmax.h: Remove file.
1854
e044e4fc
JD
18552009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1856
1857 * xterm.h (struct x_display_info): Add invisible_cursor.
1858 (struct x_output): Add current_cursor.
1859
1860 * xterm.c (XTtoggle_invisible_pointer): New function.
1861 (x_define_frame_cursor): Don't define cursor if invisible or the
1862 same as before. Set current_cursor.
1863 (x_create_terminal): Set toggle_invisible_pointer_hook.
1864
1865 * xfns.c (make_invisible_cursor): New function.
1866 (x_set_mouse_color): Call make_invisible_cursor.
1867 Set current_cursor.
1868 (x_window): Set current_cursor.
1869
1870 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1871
1872 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1873 inserting a character.
1874 (read_avail_input): Call frame_make_pointer_visible.
1875
1876 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1877 (frame_make_pointer_invisible, frame_make_pointer_visible):
1878 New functions.
e044e4fc
JD
1879 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1880
1881 * frame.h: Declare frame_make_pointer_invisible and
1882 frame_make_pointer_visible.
1883 (struct frame): Add pointer_invisible.
1884
574c8efa
JD
18852009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1886
7b507248
JD
1887 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1888 frame isn't visible.
1889 (xg_frame_resized): If width/height is -1, get size of window
1890 from X server.
1891
1892 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1893 for MapNotify.
1894
835bdaa7 1895 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1896 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1897 (flush_and_sync): Reintroduce.
574c8efa 1898
3f1c6666 18992009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1900
31fd7c5c 1901 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1902
1903 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1904 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1905
1906 * frame.h: Declare Qsticky.
1907
cad9ef74
JD
1908 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1909
1910 * nsfns.m (ns_frame_parm_handlers): Ditto.
1911
1912 * frame.c: Declare Qsticky.
1913 (frame_parms): Add sticky.
1914
1915 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1916
1917 * xterm.h: Declare x_set_sticky.
1918
1919 * xterm.c (x_set_sticky): New function.
1920
69b16610
JD
1921 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1922 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1923 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1924
1925 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1926
1927 * frame.c: Qmaximized is new.
1928 (x_set_frame_parameters): Do not handle fullscreen specially.
1929 Only set width and height if explicitly set.
1930 (x_set_fullscreen): Handle Qmaximized.
1931 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1932 (syms_of_frame): Initialize Qmaximized.
1933
1ac9108a
SM
1934 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1935 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1936
1937 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1938 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1939 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1940 set gravity to NorthWestGravity when USE_GTK.
1941 (set_wm_state): New function.
31fd7c5c 1942 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1943 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1944 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1945 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1946 to x_real_positions and x_fullscreen_adjust.
1947
1948 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1949 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1950 flush_and_sync.
1951 (xg_height_changed): New function.
1952 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1953 and gtk_window_set_policy. Set frame gravity after parsing the
1954 geometry string.
3f1c6666
JD
1955 (xg_update_frame_menubar, free_frame_menubar)
1956 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1957 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1958 Remove calls to xg_frame_set_char_size.
1959
fd503d99
KH
19602009-07-01 Kenichi Handa <handa@m17n.org>
1961
1962 * keyboard.c (decode_keyboard_code): New function.
1963 (tty_read_avail_input): Decode the input bytes if necessary.
1964
1ac9108a
SM
1965 * coding.c (setup_coding_system):
1966 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1967 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1968 use Qno_conversion.
1969
24ed93fb
YM
19702009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1971
1972 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1973
99061dfc
CY
19742009-06-30 Chong Yidong <cyd@stupidchicken.com>
1975
1ac9108a 1976 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1977
ff90fbde
JR
19782009-06-30 Jason Rumney <jasonr@gnu.org>
1979
1980 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1981 is already loaded.
1982 Set user model ID if supported (bug#1849).
1983
5f445726
JM
19842009-06-29 Jim Meyering <meyering@redhat.com>
1985
1986 Remove useless if-before-xfree test.
1987 * nsfont.m (nsfont_close): Remove useless test.
1988 * term.c (delete_tty): Likewise.
1989 * w32.c (system_process_attributes): Likewise.
1990 * w32font.c (w32font_close): Likewise.
1991 * xfaces.c (x_free_gc): Likewise.
1992 * xselect.c (buffer): Likewise.
1993
b9607587
AS
19942009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1995
1996 * process.c (send_process): Keep decoded string in a local
1997 variable and protect it from GC. (Bug#3521)
1998
89ba96f4
EZ
19992009-06-28 Eli Zaretskii <eliz@gnu.org>
2000
2001 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2002 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2003
098a1589
CY
20042009-06-28 Chong Yidong <cyd@stupidchicken.com>
2005
485422be
CY
2006 * xdisp.c (start_display, handle_face_prop)
2007 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2008 (redisplay_window, try_window_id, produce_image_glyph):
2009 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2010
098a1589
CY
2011 * xterm.c (x_update_window_begin, x_new_focus_frame)
2012 (x_scroll_bar_handle_click, handle_one_xevent)
2013 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2014 (x_make_frame_visible, x_make_frame_invisible)
2015 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2016 code chunks that are now obsolete.
2017
78c38319
MA
20182009-06-28 Michael Albinus <michael.albinus@gmx.de>
2019
2020 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2021 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2022 for hours, when optimzation is enabled.
2023 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2024 (xd_read_message): Make them static.
2025
4189ed40
CY
20262009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2027
2028 * term.c (turn_on_face): Allow simultaneously bold and dim
2029 terminal faces (Bug#3530).
2030
cd9b5e16
CY
20312009-06-27 Chong Yidong <cyd@stupidchicken.com>
2032
4e23bedb
CY
2033 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2034
cd9b5e16
CY
2035 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2036 truncation glyphs (Bug#3686).
2037
07cc3c35
GM
20382009-06-27 Glenn Morris <rgm@gnu.org>
2039
2040 * m/pmax.h: Restore file, with only netbsd portions.
2041
31fd7c5c 20422009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2043
cd9b5e16 2044 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2045
42d4a64f
KH
20462009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2047
2048 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2049 the arg FORCE_SYMBOL.
2050
930fe55b 20512009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2052
2053 * fontset.c (fontset_find_font): When a usable rfont_def is found
2054 in a fallback font-group, make it the first element of the group.
2055
57ebc3fd
CY
20562009-06-24 Chong Yidong <cyd@stupidchicken.com>
2057
2058 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2059
f084f942
KH
20602009-06-24 Kenichi Handa <handa@m17n.org>
2061
2062 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2063 set for C.
2064 (fontset_font): Record the availability of a font for C both in
2065 the realized fontsets of the current one and the default one.
2066
2f686c87
DN
20672009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2068
2069 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2070 conditional, it is always defined on AIX.
2071
666e158e
MB
20722009-06-23 Miles Bader <miles@gnu.org>
2073
2074 * window.c (Vrecenter_redisplay): New variable.
2075 (syms_of_window): Initialize it.
2076 (Qtty): New extern declaration.
2077 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2078
c6da7cd2
JM
20792009-06-23 Jim Meyering <meyering@redhat.com>
2080
1ac9108a
SM
2081 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2082 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2083 pointer dereferences are guaranteed to be valid.
c6da7cd2 2084
678dca3d
KH
20852009-06-23 Kenichi Handa <handa@m17n.org>
2086
74d75424
KH
2087 * emacs.c (main): Call init_font ().
2088
2089 * font.h (Vfont_log): Extern it.
2090 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2091
2092 * font.c (font_sort_entities, font_list_entities)
2093 (font_matching_entity, font_open_entity)
2094 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2095 (Vfont_log): Delete static.
2096 (font_log_env_checked): Delete this variable.
2097 (font_add_log): Don't check font_log_env_checked.
2098 (font_deferred_log): Check Vfont_log.
2099 (init_font): New function.
2100
678dca3d
KH
2101 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2102
2103 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2104
2105 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2106
2107 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2108
2109 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2110 (face_for_char): Don't call font_deferred_log here.
2111 (font_for_char): Likewise.
2112
8a668709
CY
21132009-06-22 Chong Yidong <cyd@stupidchicken.com>
2114
9a01ee33
CY
2115 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2116 rather than its background_width for drawing the overline and
2117 underline (Bug#489).
2118
2119 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2120 rather than its background_width for drawing the overline and
2121 underline (Bug#489).
ec7c9926
CY
2122 (xg_default_icon_file): New variable.
2123 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2124 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2125
8a668709
CY
2126 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2127 (load_overlay_strings): Remove externs.
2128 (fast_find_position): Function deleted.
2129 (mouse_face_from_buffer_pos): New function, based on
2130 fast_find_position. Correctly handle before-strings,
2131 display-strings, and after-strings (Bug#1220).
2132 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2133
4d4c02d8
CY
21342009-06-21 Chong Yidong <cyd@stupidchicken.com>
2135
1ac9108a 2136 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2137 (move_it_in_display_line_to, move_it_in_display_line_to)
2138 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2139
70243478
CY
21402009-06-21 Chong Yidong <cyd@stupidchicken.com>
2141
2142 * Branch for 23.1.
2143
13087e59
JR
21442009-06-21 Jason Rumney <jasonr@gnu.org>
2145
2146 * w32term.c (keyboard_codepage): New static variable.
2147 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2148 (w32_read_socket) [WM_CHAR]: Use it to decode character
2149 input (bug#3237).
2150 (w32_initialize): Initialize it.
2151 (codepage_for_locale): New function.
2152
4735b74e
KR
21532009-06-20 Ken Raeburn <raeburn@raeburn.org>
2154
2155 * process.c (status_message): Pass Faset index argument as a lisp
2156 object, so as to work with USE_LISP_UNION_TYPE.
2157
0e727afa
YM
21582009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2159
2160 * coding.c (Ffind_coding_systems_region_internal):
2161 Cache checked characters.
2162
cf299835
KH
21632009-06-18 Kenichi Handa <handa@m17n.org>
2164
1ac9108a 2165 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2166
90f20d94
AS
21672009-06-18 Andreas Schwab <aschwab@redhat.com>
2168
2169 * xdisp.c (redisplay_internal): Check that the frame is still
2170 live after redisplay of its windows.
2171 (redisplay_windows): Check that the window is still live.
2172
7f1faf1c
KH
21732009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2174
2175 * coding.c (detect_coding_utf_16): Fix previous change.
2176
cc13543e
KH
21772009-06-16 Kenichi Handa <handa@m17n.org>
2178
2179 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2180 UTF-16 by checking the dispersion of Eth and Oth bytes.
2181
977b85f4
AS
21822009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2183
2184 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2185
66bd43d1
KH
21862009-06-15 Kenichi Handa <handa@m17n.org>
2187
2188 * process.c (status_message): Fix previous change. Be sure to
2189 decode a localized string.
2190
cb5ca9c5
YM
21912009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2192
2193 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2194 add comment explaining why.
2195
ec7709ba 21962009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2197
ec7709ba 2198 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2199
4b7f335c
AR
22002009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2201
2202 * nsfont.m (ns_attribute_value): Remove.
2203 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2204 (ns_has_attribute): Shrink the normal range.
2205 (ns_findfonts): Don't worry about requested spec in determining
2206 need for synthItal.
e41820ee 2207 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2208
73b26103
SZ
22092009-06-14 Seiji Zenitani <zenitani@mac.com>
2210
2211 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2212
5753e4da
KH
22132009-06-11 Kenichi Handa <handa@m17n.org>
2214
2215 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2216 overhang for the static composition case.
2217
3561b671
KH
22182009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2219
5753e4da
KH
2220 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2221 overhang for the automatic composition case.
2222
3561b671
KH
2223 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2224 composition case.
2225
852bbd41
CY
22262009-06-10 Chong Yidong <cyd@stupidchicken.com>
2227
2228 * xdisp.c (get_next_display_element): When handling wrap-prefix
2229 and line-prefix, treat \n as a control character (bug#3502).
2230
9903d1e6
KH
22312009-06-10 Kenichi Handa <handa@m17n.org>
2232
2233 * font.c (font_parse_family_registry): Fix for one-char foundry.
2234 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2235
0bcbaaaa
CY
22362009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2237
2238 * process.c (status_message): Fix handling of multibyte signal
2239 string (Bug#3499).
2240
40aa3f13
JM
22412009-06-09 Jim Meyering <meyering@redhat.com>
2242
1f80c7e2
CY
2243 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2244 color name is missing.
40aa3f13 2245
72d51285
KH
22462009-06-09 Kenichi Handa <handa@m17n.org>
2247
2248 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2249 FROM-CODE and TO-CODE are codepoints of CHARSET.
2250
c1d04d84
AR
22512009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2252
2253 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2254
22552009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2256
2257 Changes to support :script/:lang/:otf in NS font driver.
2258 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2259 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2260 indicate not part of font driver interface, and change callers.
2261 (ns_get_family): Remove pointless null check.
2262 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2263 ns_spec_to_descriptor, ns_descriptor_to_entity.
2264 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2265 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2266 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2267 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2268 (ns_get_req_script, ns_accumulate_script_ranges)
2269 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2270 New functions.
2271 (nsfont_list, nsfont_match): Use ns_findfonts.
2272 (nsfont_open): Use font descriptor instead of traits.
2273 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2274 (dump_glyphstring): Rename to ns_dump_glyphstring.
2275
c7eb9816
AR
2276 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2277
c1d04d84
AR
2278 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2279
2280 * fontset.c (fontset_from_font): Remove NS-specific code.
2281
ec7709ba 22822009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2283
2284 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2285 nonactive windows.
2286
31fd7c5c 22872009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2288
1ac9108a 2289 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2290
68852c13 22912009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2292
2293 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2294
6756cd1d
CY
22952009-06-07 Chong Yidong <cyd@stupidchicken.com>
2296
2297 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2298 account for the overflowing of newlines into the last glyph on the
2299 display line (Bug#3482).
2300
28bf482a
DR
23012009-06-05 David Reitter <david.reitter@gmail.com>
2302
ec7709ba
JB
2303 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2304 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2305 Fns_selection_exists_p, Fns_selection_owner_p.
2306
fdb55376
JR
23072009-06-03 Jason Rumney <jasonr@gnu.org>
2308
2309 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2310 available. (Bug#3379)
2311
05129fbe
KH
23122009-05-29 Kenichi Handa <handa@m17n.org>
2313
1ac9108a
SM
2314 * coding.c (get_translation_table):
2315 Check Venable_character_translation.
05129fbe 2316
ec7709ba 23172009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2318
ec7709ba
JB
2319 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2320 (x_make_frame_visible): Move frame to front rather than calling
15891144 2321 ns_raise_frame().
ec7709ba 2322 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2323 isn't key window.
ec7709ba 2324 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2325 drawRect may be called by NSView even if the frame is hidden.
2326
ec7709ba
JB
2327 * nsfns.m (Fx_create_frame): Follow other ports in
2328 determining visibility; default to t. Ensure async_visible is set.
15891144 2329
21f73755
EZ
23302009-05-23 Eli Zaretskii <eliz@gnu.org>
2331
2332 * dired.c (Ffile_attributes): Doc fix.
2333
34001e41
CY
23342009-05-22 Chong Yidong <cyd@stupidchicken.com>
2335
2336 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2337
46306a17
SM
23382009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2339
2340 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2341 and xfont_scratch_props.
2342 (syms_of_xfont): Do it here instead.
2343 (xfont_find_ccl_program): Delete, unused.
2344 (xfont_open): Delete unused var `i'.
2345
ef6e0694
KH
23462009-05-21 Kenichi Handa <handa@m17n.org>
2347
2348 * fontset.c (Qlatin): Don't make it static.
2349
46306a17
SM
2350 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2351 New functions.
ef6e0694
KH
2352 (xfont_scripts_cache, xfont_scratch_props): New variables.
2353 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2354 (xfont_list_pattern): Argument changed. Callers changed.
2355 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2356 (xfont_list): Don't reject a font spec with :script property.
2357 (xfont_has_char): Fix setting of encoding.
2358 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2359 xfont_scratch_props.
2360
23612009-05-19 Kenichi Handa <handa@m17n.org>
2362
46306a17 2363 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2364 Callers changed.
2365
23662009-05-18 Kenichi Handa <handa@m17n.org>
2367
2368 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2369
ac71ced7
SM
23702009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2371
2372 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2373 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2374
1c6d1051
YM
23752009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2376
2377 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2378 (x_delete_terminal): Dissociate resource database from display and
2379 then call XrmDestroyDatabase before closing display.
2380
9b9b779c
AR
23812009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2382
2383 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2384 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2385 whether selected frame is viable before raising it (based on patch
2386 by David Reitter), and improve commentary.
2387 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2388
cccd42d5
KH
23892009-05-15 Kenichi Handa <handa@m17n.org>
2390
2391 * font.c (Ffont_spec): Check arguments.
2392
337fbd17
CY
23932009-05-14 Chong Yidong <cyd@stupidchicken.com>
2394
2395 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2396 weight when testing attributes (Bug#3282).
2397
47a6002f
JD
23982009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2399
2400 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2401 what we expect to get in the next ConfigureNotify event.
2402
9cb363db
YM
2403 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2404 before Xft one (Bug#1696).
2405
b9126609
CY
24062009-05-07 David Reitter <david.reitter@gmail.com>
2407
2408 * nsfns.m (Fx_display_planes): Compute bitplanes using
2409 NSBitsPerPixelFromDepth (Bug#3207).
2410
27a69fd9
CY
24112009-05-10 Chong Yidong <cyd@stupidchicken.com>
2412
2413 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2414
00f37552
TTN
24152009-05-10 Ulrich Mueller <ulm@gentoo.org>
2416
2417 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2418
2d82a920
DR
24192009-05-07 David Reitter <david.reitter@gmail.com>
2420
ec7709ba
JB
2421 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2422 Respect mouse face background.
2d82a920 2423
46b0d52d
DR
24242009-05-07 David Reitter <david.reitter@gmail.com>
2425
ec7709ba
JB
2426 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2427 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2428 in ns_update_begin and ns_update_end.
2429
ce1b23bb
SM
24302009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2431
5996e1b7
SM
2432 * nsfns.m (ns_get_screen): Rewrite.
2433 Don't presume selected-frame is of type `ns'.
2434
ba98e3a0
SM
2435 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2436 all drivers.
2437
ce1b23bb
SM
2438 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2439
bcda200f
YM
24402009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2441
2442 * keyboard.h (add_user_signal): Fix typo in extern.
2443
2444 * lisp.h (add_user_signal): Remove extern.
2445
2446 * unexelf.c (unexec): Consider a section to precede the .bss section
2447 if its addresses overlap that of .bss.
2448 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2449 instead of dumping process.
2450
864660a2
SM
24512009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2452
2453 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2454
50da4e56
SM
24552009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2456
2457 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2458
51520a1a
DN
24592009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2460
2461 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2462 any statements.
2463
409ea3a1
AS
24642009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2465
59c4c60f
AS
2466 * process.c (read_process_output): Make sure the current buffer is
2467 always restored.
2468
409ea3a1
AS
2469 * coding.c (record_conversion_result): Don't modify
2470 Vlast_code_conversion_error for successful result.
2471 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2472
56f00ed2
KH
24732009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2474
2475 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2476 (load_charset_map): Remove unnecessary code.
56f00ed2 2477
4491c9d2
DR
24782009-04-30 David Reitter <david.reitter@gmail.com>
2479
35f5b128 2480 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2481 through f24.
2482
6970f632
CY
24832009-04-30 Chong Yidong <cyd@stupidchicken.com>
2484
2485 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2486
2487 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2488 face_at_buffer_position.
2489 (face_before_or_after_it_pos, get_next_display_element)
2490 (note_mouse_highlight): Update face_at_buffer_position call.
2491
2492 * term.c (term_mouse_highlight):
2493 * msdos.c (IT_note_mouse_highlight):
2494 * fontset.c (Finternal_char_font):
35f5b128 2495 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2496
2497 * dispextern.h (face_at_buffer_position): Update prototype.
2498
0c616f63
KH
24992009-04-30 Kenichi Handa <handa@m17n.org>
2500
35f5b128 2501 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2502
ad3aaf33
AS
25032009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2504
2505 * callproc.c (Fcall_process): Fix GC protection. Make sure
2506 current buffer is always restored.
2507
c3c963a0
YM
25082009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2509
2510 * atimer.c (init_atimer): Also clear stopped_atimers.
2511
2512 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2513
7e3386cb
YM
2514 * process.c (create_process): Clean up merger residues of
2515 2008-07-17 change.
2516
91f68422
CY
25172009-04-29 Ulrich Mueller <ulm@gentoo.org>
2518
2519 * lread.c (Vread_circle): New variable.
2520 (read1): Disable recursive read if Vread_circle is nil.
2521
24b34550
KH
25222009-04-29 Kenichi Handa <handa@m17n.org>
2523
2524 * fontset.h (set_default_ascii_font): Delete extern.
2525
2526 * fontset.c (set_default_ascii_font): Delete this unused function.
2527
2528 * frame.c (x_set_font): When ARG is a font-object, check if the
2529 font-object matches with the ASCII font-spec of the frame's
9c358bda 2530 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2531
77bf07e1
AS
25322009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2533
2534 * fns.c (Flocale_info): Protect vector from GC during decoding.
2535
2536 * process.c (Fstart_process): Protect argv strings from GC during
2537 encoding.
2538
2c55aacf
AS
25392009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2540
2541 * sysdep.c: Include <ctype.h>.
2542
b892d3c9
DR
25432009-04-27 David Reitter <david.reitter@gmail.com>
2544
35f5b128 2545 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2546 Remove commented-out code.
2547
9d0644c4
JB
25482009-04-26 Johan Bockgård <bojohan@gnu.org>
2549
2550 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2551
b7053016
JR
25522009-04-25 Jason Rumney <jasonr@gnu.org>
2553
2554 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2555
4e8231f3
YM
25562009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2557
2558 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2559 Swap bytes in short integer if fringe bitmap width > 8.
2560
493dcf2c
KH
25612009-04-23 Kenichi Handa <handa@m17n.org>
2562
2563 * xfaces.c (Fx_list_fonts): If a font size is specified in
2564 PATTERN, set it in returned scalable fonts.
2565
401e9e57
CY
25662009-04-22 Chong Yidong <cyd@stupidchicken.com>
2567
708e05dc
CY
2568 * keyboard.c (Fset_input_meta_mode): Doc fix.
2569
2570 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2571
1ac9108a 2572 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2573
2574 * coding.c (Fterminal_coding_system): Doc fix.
2575
2576 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2577 (Fx_display_pixel_height, Fx_display_planes)
2578 (Fx_display_color_cells, Fx_server_max_request_size)
2579 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2580 (Fx_display_mm_height, Fx_display_mm_width)
2581 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2582 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2583 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2584 (check_x_display_info): Handle terminal objects instead of
2585 terminal ids.
2586
401e9e57
CY
2587 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2588 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2589 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2590 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2591
df80c7f0
KH
25922009-04-21 Kenichi Handa <handa@m17n.org>
2593
5a8f12af 2594 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2595 (font_score): Check AVGWIDTH too.
908567ef 2596
df80c7f0
KH
2597 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2598 worst case.
1ac9108a
SM
2599 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2600 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2601
705af33f
JR
26022009-04-19 Jason Rumney <jasonr@gnu.org>
2603
2604 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2605 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2606
2607 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2608 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2609 get_phys_cursor_geometry.
2610
b71ac3dd 2611 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2612 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2613 using get_phys_cursor_geometry.
2614
2615 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2616 correctly calculated.
2617
dc2933eb
JD
26182009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2619
1ac9108a
SM
2620 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2621 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2622 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2623 is deprecated.
2624
973e7849
AS
26252009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2626
2627 * font.c (font_put_frame_data): Use xfree instead of free.
2628
314d66f4
JB
26292009-04-17 Juanma Barranquero <lekktu@gmail.com>
2630
2631 * w32font.c (Qja, Qko): Remove declarations.
2632 (syms_of_w32font): Don't DEFSYM them.
2633
cf702558
CY
26342009-04-17 Chong Yidong <cyd@stupidchicken.com>
2635
2636 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2637
2638 * font.h (Qja, Qko): Extern them.
2639
2640 * ftfont.c (Qja, Qko): Remove declarations.
2641
2642 * xfont.c (Qja, Qko): Remove declarations.
2643
b50504f5
KH
26442009-04-17 Kenichi Handa <handa@m17n.org>
2645
bde25748
KH
2646 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2647 string from a vector to handle Latin-1 characters correctly.
2648
b50504f5
KH
2649 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2650 entity even if the cache hits.
2651
f4646fff
AS
26522009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2653
2654 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2655 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2656
e7deaab0
AS
2657 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2658 * lisp.h: Adjust prototypes.
2659
0a0e7d49
CY
26602009-04-16 Chong Yidong <cyd@stupidchicken.com>
2661
2662 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2663 change (Bug#3003).
2664
3c908a57
KH
26652009-04-16 Kenichi Handa <handa@m17n.org>
2666
1ac9108a 2667 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2668
2669 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2670 adstyle.
2671
2672 * ftfont.c (Qja, Qko): Don't make them static.
2673 (enum ftfont_cache_for): New enum.
2674 (fc_charset_table): Undo the previous change.
2675 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2676 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2677 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2678 non-scarable font, try to get AVERAGE_WIDTH.
2679 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2680 Change ft_face_cache from a list of a hash-table. Don't check
2681 `ja' and `ko' adstyle here.
2682 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2683 FTFONT_CACHE_FOR_CHARET.
2684 (ftfont_get_charset): Undo the previous change.
1ac9108a 2685 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2686 (ftfont_close): Likewise.
2687 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2688
2689 * font.c (font_sort_entites): Change the meaning of the arg
2690 BEST-ONLY. Don't optimize for VEC of lenght 1.
2691 (font_select_entity): Just return the value of font_sort_entites.
2692
2693 * xfaces.c (merge_face_vectors): Reflect font properties in
2694 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2695 font_clear_prop if a face attribute doesn't change.
2696
3c908a57
KH
2697 * charset.h (charset_ksc5601): Extern it.
2698
2699 * charset.c (charset_ksc5601): New variable.
2700 (Fdefine_charset_internal): Set charset_ksc5601.
2701 (init_charset_once): Initialize charset_ksc5601 to -1.
2702
d65859c3
DN
27032009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2704
2705 * fileio.c (history_delete_duplicates): Remove unused declaration.
2706
2707 * callint.c (history_delete_duplicates): New declaration.
2708 (Fcall_interactively): Remove command history duplicates when
2709 history_delete_duplicates is true.
2710
3ba010e5
EZ
27112009-04-14 Eli Zaretskii <eliz@gnu.org>
2712
2713 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2714
06f19b91
KH
27152009-04-14 Kenichi Handa <handa@m17n.org>
2716
2717 * font.c (Ffont_info): Fix docstring. Fix the second element of
2718 the returned value (bug#2949).
2719
2cce8bfc
CY
27202009-04-14 Chong Yidong <cyd@stupidchicken.com>
2721
2722 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2723
d156542d
KH
27242009-04-14 Kenichi Handa <handa@m17n.org>
2725
2726 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2727 encoding charset is ascii_compatible.
2728
2729 * charset.c (Fdefine_charset_internal): Make charset
2730 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2731 code_offset is 0, and covers all ASCII characters.
2732
86fa089e
SM
27332009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2734
2735 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2736 (ns_string_to_pasteboard_internal):
2737 * nsmenu.m (process_dialog):
2738 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2739 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2740 * lisp.h (Fx_load_color_file): Declare.
2741
a8a3728b
KH
27422009-04-13 Kenichi Handa <handa@m17n.org>
2743
1ac9108a 2744 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2745 (font_select_entity): Suppress the code to optimize for the same
2746 kind of fonts.
2747 (font_load_for_lface): Get a font that supports at least ASCII
2748 characters.
2749
2750 * ftfont.c (Qja, Qko): New variables.
2751 (fc_charset_table): Delete uniquifier data for iso8859-1.
2752 (ftfont_get_latin1_charset): New function.
2753 (get_adstyle_property): New function.
2754 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2755 bitmap fonts.
2756 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2757 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2758 `ko' or `ja'.
2759 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2760 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2761 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2762 property.
2763 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2764 (syms_of_ftfont): DEFSYM Qja and Qko.
2765
483670b5
KH
27662009-04-09 Kenichi Handa <handa@m17n.org>
2767
12b55765
KH
2768 * charset.c (map_charset_chars): For a charset of `superset'
2769 method, fix calculation of code range.
2770
483670b5
KH
2771 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2772 from the list of extra properties.
2773 (font_clear_prop): Be sure to delete `:name' font property.
2774
57d3b93b
KH
27752009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2776
b4b2c2ca
YM
2777 * dispnew.c (redraw_overlapping_rows): Fix detection of
2778 overlapping for topmost and bottommost rows.
2779
1ac9108a 2780 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2781
472c3609
JR
27822009-04-06 Jason Rumney <jasonr@gnu.org>
2783
2784 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2785
ab193662
KH
27862009-04-06 Kenichi Handa <handa@m17n.org>
2787
2788 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2789
2790 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2791
0c26f026
KH
27922009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2793
2794 * ftfont.c (ftfont_open): Fix checking of the return value of
2795 FT_Load_Char. Fix setting font->underline_thickness.
2796
e173bbce
CY
27972009-04-04 Chong Yidong <cyd@stupidchicken.com>
2798
2799 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2800 (Fterminal_parameters, Fterminal_parameter)
2801 (Fset_terminal_parameter): In doc string, refer to terminal
2802 objects rather than terminal ids.
2803
693a2698
EZ
28042009-04-04 Eli Zaretskii <eliz@gnu.org>
2805
2806 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2807 ret_lim_data. (Bug#2867)
2808
d5221487
CY
28092009-04-03 Chong Yidong <cyd@stupidchicken.com>
2810
2811 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2812 so they don't get wider than the window, matching 2006-01-23
2813 change to the partner function in xdisp.c (Bug#2800).
2814
223509a3
KH
28152009-04-03 Kenichi Handa <handa@m17n.org>
2816
2817 * print.c (print_object): Make each lowest sub_char_table start a
2818 new line (Bug#2866).
2819
74fcd0b1
KH
28202009-04-02 Kenichi Handa <handa@m17n.org>
2821
2822 * fontset.c (fontset_font): Record no-font when a fontset
2823 explicitly tells not to try another font-specs.
2824
c542407d
SM
28252009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2826
2827 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2828
e3869731
KH
28292009-03-30 Kenichi Handa <handa@m17n.org>
2830
d8d2f142
KH
2831 * fontset.c (fontset_from_font): Specify only registry in a
2832 font-spec for all characters supported by that registry.
2833
e3869731
KH
2834 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2835 even if HAVE_M17N_FLT is not defined.
2836
5da5f805
CY
28372009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2838
2839 * ftfont.c: Conditionalize prototyping and use of
2840 ftfont_variation_glyphs.
2841
ab226c50
SM
28422009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2843
9628fed7
SM
2844 * frame.c (delete_frame): Work around compiler bug.
2845
2846 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2847 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2848 Some more EMACS_INT.
2849 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2850
2851 * xdisp.c (dump_glyph): Fix typo.
2852
ae19ba7c
SM
2853 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2854 (adjust_markers_gap_motion, adjust_markers_for_delete)
2855 (adjust_markers_for_insert, adjust_point)
2856 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2857 (make_gap, copy_text, count_size_as_multibyte, insert)
2858 (insert_and_inherit, insert_before_markers)
2859 (insert_before_markers_and_inherit, insert_1)
2860 (count_combining_before, count_combining_after, insert_1_both)
2861 (insert_from_string, insert_from_string_before_markers)
2862 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2863 (insert_from_buffer_1, adjust_after_replace)
2864 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2865 (replace_range_2, del_range, del_range_1, del_range_byte)
2866 (del_range_both, del_range_2, modify_region)
2867 (prepare_to_modify_buffer, signal_before_change)
2868 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2869 for buffer positions and sizes.
2870 * lisp.h: Adjust prototypes accordingly.
2871
2872 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2873 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2874 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2875
ab226c50
SM
2876 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2877
46dfb8fb
JD
28782009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2879
2880 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2881 lines and columns so we keep the same pixel height and width.
2882
2883 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2884 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2885 (x_handle_net_wm_state): New function to update frame parameter
2886 fullscreen.
2887 (x_term_init): Initialize atoms for _NET_WM_STATE.
2888
2889 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2890
d347e494
SM
28912009-03-27 Kevin Ryde <user42@zip.com.au>
2892
2893 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2894 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2895 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2896 (Fgpm_mouse_stop): Pass that new parameter.
2897 * termhooks.h (close_gpm): Adjust prototype.
2898
84db11d6
SM
28992009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2900
c95a5008
SM
2901 * lisp.h (Fx_focus_frame): Declare.
2902
84db11d6
SM
2903 * callint.c (Fcall_interactively): For '^' just delegate the work to
2904 handle-shift-selection.
2905 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2906
0a1958d6
CY
29072009-03-24 Chong Yidong <cyd@stupidchicken.com>
2908
0bfdff23
CY
2909 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2910
0a1958d6
CY
2911 * data.c (Qinteractive_form): New variable.
2912 (Finteractive_form): Use it.
2913
2914 * eval.c (Fcommandp): Use Qinteractive_form.
2915
58aec0d6
JR
29162009-03-24 Jason Rumney <jasonr@gnu.org>
2917
2918 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2919 Calculate total size precisely. Decode environment variables
2920 before substituting. (Bug#38)
2921
553dd618
KH
29222009-03-24 Kenichi Handa <handa@m17n.org>
2923
2924 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2925 encoding (Bug#2722).
553dd618 2926
c39ea606
JD
29272009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2928
2929 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2930 that gdpy is set.
2931
bc9b2b5e
AM
29322009-03-22 Alan Mackenzie <acm@muc.de>
2933
2934 * callint.c (Finteractive): Clarify the doc string - even
2935 promptless elements need \n separators.
2936
9f995a76
JR
29372009-03-22 Jason Rumney <jasonr@gnu.org>
2938
2939 * w32term.c (syms_of_w32term): Doc fix for
2940 x-use-underline-position-properties.
2941
22749e9a
EZ
29422009-03-21 Eli Zaretskii <eliz@gnu.org>
2943
2944 * w32.c (getpwuid): Change argument type to unsigned.
2945 (struct w32_id): Change type of `rid' member to unsigned.
2946 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2947 argument ID to unsigned. All callers changed.
2948 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2949
e00553bf
EZ
29502009-03-20 Eli Zaretskii <eliz@gnu.org>
2951
2952 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2953 negative, produce a float value.
2954
2955 * dired.c (make_uid, make_gid): New functions.
2956 (Ffile_attributes): Use them to avoid negative UID and GID.
2957
f761d6b6
JB
29582009-03-20 Juanma Barranquero <lekktu@gmail.com>
2959
2960 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2961 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2962 Fix typos in docstrings.
2963
d507f8d7
KH
29642009-03-19 Kenichi Handa <handa@m17n.org>
2965
2966 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2967 changed, use font_load_for_lface to get a new font object.
2968 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2969
2970 * frame.c (x_set_font): Handle the case that ARG is a cons.
2971
c68845e0
GM
29722009-03-19 Glenn Morris <rgm@gnu.org>
2973
2974 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2975
bfa49dd1
CY
29762009-03-19 Chong Yidong <cyd@stupidchicken.com>
2977
2978 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2979
8458d4c1
KH
29802009-03-19 Kenichi Handa <handa@m17n.org>
2981
2982 * charset.c (load_charset_map_from_file): When a mapfile can't be
2983 loaded, signal an error.
2984
78e7d1fe
EZ
29852009-03-18 Eli Zaretskii <eliz@gnu.org>
2986
2987 * dired.c (Ffile_attributes): Make sure UID and GID are always
2988 positive, even if the value is too large for a positive EMACS_INT.
2989 Doc fix.
2990
2991 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2992
5da9fdfa
YM
29932009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2994
2995 * xmenu.c (xdialog_show): Move Fredisplay call ...
2996 (Fx_popup_dialog): ... here.
2997
7519c40d
SM
29982009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2999
3000 * dired.c (file_name_completion): Disable the first optimization just
3001 installed, since it is not implemented correctly.
3002
2cd298e2
SM
30032009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3004
3005 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3006 only if the entry can affect bestmatch.
2cd298e2
SM
3007 Stop the search early, as Ftry_completion already does.
3008
48d37adf
CY
30092009-03-17 Chong Yidong <cyd@stupidchicken.com>
3010
e10c9c93 3011 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3012
9286b16a
CY
30132009-03-15 Chong Yidong <cyd@stupidchicken.com>
3014
3015 * keyboard.c (parse_menu_item): Don't display remappings as menu
3016 equivalent bindings (Bug#788).
3017
f7b146dc
JR
30182009-03-15 Jason Rumney <jasonr@gnu.org>
3019
3020 * w32term.h (WM_EMACS_PAINT): New message.
3021 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3022 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3023 before passing to lisp thread. (Bug#950)
3024
f761d6b6 30252009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3026
d93f9575
CY
3027 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3028 variable as it was never reset.
3029 (ns_term_init): Remove initialization of Lisp-settable defaults
3030 and ns_expand_space.
3031 (-setPanelFromDefaultValues): Remove ns_expand_space.
3032 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3033 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3034 i.e. no additional spacing, similar to Carbon port.
3035
d93f9575
CY
3036 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3037 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3038
305018ec
JD
30392009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3040
3041 * sound.c (alsa_configure): Remove call to deprecated
3042 snd_pcm_sw_params_set_xfer_align.
3043
f761d6b6 30442009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3045
3046 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3047 after clicking in a detached tool bar.
3048 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3049
46e722a9
SM
30502009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3051
348db3dd
SM
3052 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3053 int/Lisp_Object mixup).
46e722a9 3054
a3d16f39
KH
30552009-03-13 Kenichi Handa <handa@m17n.org>
3056
3057 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3058 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3059 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3060 (set_fontset_font): Change ARG to a vector. Handle range_list in
3061 ARG correctly.
3062 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3063 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3064 the above change.
3065 (fontset_from_font): Fix previous change.
fe24f56a 3066 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3067 entry. If FONTSET is the default fontset, don't set the extra
3068 slot of the returning char-table.
3069
b066e6b6
JB
30702009-03-12 Juanma Barranquero <lekktu@gmail.com>
3071
3072 * nsfns.m (Fx_close_connection): Doc fix.
3073 (Fns_do_applescript): Reflow docstring.
3074 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3075 (Fx_display_pixel_width, Fx_display_pixel_height)
3076 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3077 Fix typos in docstrings.
3078 (Fns_set_alpha): Fix typos in error messages.
3079
d472514e 30802009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3081
d472514e 3082 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3083 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3084 were used for such events.
3085
d472514e
JB
3086 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3087 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3088
d472514e 3089 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3090 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3091
fb930676
KH
30922009-03-11 Kenichi Handa <handa@m17n.org>
3093
ff85581a
KH
3094 * font.h (font_open_by_spec): Extern it.
3095
c50b7e98
KH
3096 * font.c (font_open_by_spec): New function.
3097 (font_open_by_name): Use font_open_by_spec.
3098
fb930676
KH
3099 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3100 fontset of the frame.
3101
3102 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3103 modify the default font of frames that use this fontset.
3104 (num_auto_fontsets): New variable.
3105 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3106 name. Be sure to set FONTSET_ASCII to the correct font name.
3107 (update_auto_fontset_alist): New function.
3108
df4e8455
JB
31092009-03-11 Juanma Barranquero <lekktu@gmail.com>
3110
3111 * makefile.w32-in: Update dependencies.
3112
0a375797
AR
31132009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3114
3115 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3116
61313fa3
SM
31172009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3118
3119 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3120
b55103fb
CY
31212009-03-10 Chong Yidong <cyd@stupidchicken.com>
3122
3123 * lread.c (Feval_buffer): Doc fix.
3124
dde2559c
KH
31252009-03-09 Kenichi Handa <handa@m17n.org>
3126
3127 * charset.c (Qfile_name_handler_alist): Extern it.
3128 (load_charset_map_from_file): Temporarily bind
3129 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3130
df4e8455 31312009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3132
47f588bb
GM
3133 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3134 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3135
4ddf94bd
AR
31362009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3137
4c9bdfc2
AR
3138 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3139 (x_set_window_size): Change back to calculated method of setting
3140 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3141 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3142 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3143
fe41ae9e
AR
3144 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3145
4c9bdfc2
AR
3146 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3147 accelerator in parens under GNUstep.
3148
825d0875
KH
31492009-03-06 Kenichi Handa <handa@m17n.org>
3150
3151 These changes are to detect incorrect composition sequence without
f3b3be74 3152 looking ahead the source. (Bug#2370)
825d0875
KH
3153
3154 * coding.h: Include "composite.h".
3155 (enum compisition_state): New enum.
3156 (struct compisition_status): New struct.
3157 (struct iso_2022_spec): New member cmp_status.
3158 (struct emacs_mule_spec): New struct.
3159 (struct coding_system): New members ctext_extended_segment_len and
3160 embedded_utf_8. Change the union member
3161 spec.emacs_mule_full_support to spec.emacs_mule.
3162
3163 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3164 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3165 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3166 (ADD_COMPOSITION_DATA): New arg nbytes.
3167 (emacs_mule_char): New arg cmp_status.
3168 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3169 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3170 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3171 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3172 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3173 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3174 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3175 (EMACS_MULE_COMPOSITION_END): New macro.
3176 (emacs_mule_finish_composition): New function.
3177 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3178 (decode_coding_emacs_mule): Avoid long looking ahead while
3179 handling composition.
3180 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3181 (ENCODE_COMPOSITION_RULE): New macro.
3182 (finish_composition): New function.
3183 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3184 (DECODE_COMPOSITION_START): New implementation.
3185 (DECODE_COMPOSITION_END): Likewise.
3186 (STORE_COMPOSITION_RULE): New macro.
3187 (decode_coding_iso_2022): Avoid long looking ahead while handling
3188 composition, CTEXT extended segment, and embedded UTF-8.
3189 (setup_coding_system): For a coding of type iso-2022, reset
3190 CODING_ISO_EXTSEGMENT_LEN (coding) and
3191 CODING_ISO_EMBEDDED_UTF_8 (coding).
3192 (get_translation): Delete arguments last_block, from_nchars,
3193 to_nchars. Callers changed.
3194 (produce_chars): Don't modify charbuf. Adjusted for the change of
3195 get_translation.
98a326f7 3196 (produce_composition): Adjust for the new annotation sequence.
825d0875 3197 (handle_composition_annotation): Likewise.
98a326f7 3198 (consume_chars): Adjust for the change of get_translation.
825d0875 3199
ccbc4452
AR
32002009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3201
4ddf94bd 3202 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3203
988a7ddb
KH
32042009-03-05 Kenichi Handa <handa@m17n.org>
3205
3206 * font.c (font_select_entity): New function.
3207 (font_find_for_lface): Use font_select_entity to select a font.
3208
3209 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3210 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3211 font with C restriction.
3212
98a326f7 32132009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3214
be1bce46 3215 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3216
10ea2b82
JR
32172009-03-04 Jason Rumney <jasonr@gnu.org>
3218
2c93b248 3219 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3220 characters that have already been read. (Bug#2569)
2c93b248 3221
10ea2b82
JR
3222 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3223 Log an error message if check_image_size failed.
3224 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3225 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3226
71a0c011
EZ
32272009-03-02 Eli Zaretskii <eliz@gnu.org>
3228
3229 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3230 when decoding process output.
3231
2f63bba8
RS
32322009-03-01 Richard M Stallman <rms@gnu.org>
3233
3234 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3235
3236 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3237
0a9564cb
EZ
32382009-02-28 Eli Zaretskii <eliz@gnu.org>
3239
3240 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3241 (decode_coding_emacs_mule, decode_coding_iso_2022)
3242 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3243 (decode_coding_raw_text, decode_coding_charset)
3244 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3245 Honor inhibit-eol-conversion. (Bug #2186)
3246
449148b3
JR
32472009-02-28 Jason Rumney <jasonr@gnu.org>
3248
3249 * coding.c (detect_coding_charset): If not checking latin extra,
3250 fail on characters between 0x80 and 0xA0. (Bug#2354)
3251
a4aee864
EZ
32522009-02-28 Eli Zaretskii <eliz@gnu.org>
3253
3254 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3255 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3256
d88bee5a
GM
32572009-02-27 Glenn Morris <rgm@gnu.org>
3258
3259 * callint.c (Finteractive): Doc fix.
3260
a808f22d
KH
32612009-02-27 Kenichi Handa <handa@m17n.org>
3262
3263 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3264
caf8d60c
CY
32652009-02-27 Chong Yidong <cyd@stupidchicken.com>
3266
3267 * font.c (font_style_to_value): Set value for unknown symbols to
3268 100 instead of 255.
b61137ea
CY
3269 (weight_table, slant_table, width_table): Treat "unspecified" as
3270 the default value.
caf8d60c 3271
1a0de25c
JB
32722009-02-26 Juanma Barranquero <lekktu@gmail.com>
3273
3274 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3275
8fc45744
JB
32762009-02-25 Juanma Barranquero <lekktu@gmail.com>
3277
107bd7d1
JB
3278 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3279 error as soon as a recursive load is detected.
8fc45744 3280
f097e223
AR
32812009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3282
3283 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3284 before caching.
3285
8810a12f
KH
32862009-02-24 Kenichi Handa <handa@m17n.org>
3287
3288 * fontset.c (fontset_find_font): Fix the condition for checking
3289 unavailable font.
3290
2c7d1565
GM
32912009-02-24 Glenn Morris <rgm@gnu.org>
3292
3293 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3294 whitespace that confuses documentation.
3295
a20878b6
MB
32962009-02-23 Miles Bader <miles@gnu.org>
3297
3298 * process.c (Flist_system_processes, Fprocess_attributes)
3299 (syms_of_process): Rename `system-process-attributes' to
3300 `process-attributes'.
3301
b3b58c01
AS
33022009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3303
1b3b981b
AS
3304 * coding.h (struct coding_system): Make safe_charsets a pointer to
3305 unsigned char.
3306 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3307 being 255.
3308 (SAFE_CHARSET_P): Likewise.
3309 (setup_iso_safe_charsets): Properly setup safe_charsets.
3310 (Fdefine_coding_system_internal): Likewise.
3311 (setup_coding_system): Likewise. Remove unneeded casts.
3312 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3313 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3314 unneeded casts.
3315
b3b58c01
AS
3316 * insdel.c (del_range_2): Don't modify gap contents when called
3317 from decode_coding_object. (Bug#1809)
3318
0b6f228c
CY
33192009-02-21 Chong Yidong <cyd@stupidchicken.com>
3320
3321 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3322 Qfont_object.
3323 (Ftype_of): Recognize font objects.
3324
3325 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3326
3327 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3328 moved to data.c.
3329
52f8870b
AR
33302009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3331
3332 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3333 async_iconified. Based on a patch by Christian Lynbech
3334 <christian.lynbech@tieto.com>.
3335 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3336
7087d5e9
GM
33372009-02-20 Glenn Morris <rgm@gnu.org>
3338
3339 * syntax.c (Fskip_chars_forward): Fix doc typo.
3340
41d2ceef
CY
33412009-02-20 Chong Yidong <cyd@stupidchicken.com>
3342
3343 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3344
1a3b7ca6
CY
33452009-02-19 Chong Yidong <cyd@stupidchicken.com>
3346
3347 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3348
73cce38d
KH
33492009-02-19 Kenichi Handa <handa@m17n.org>
3350
3351 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3352 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3353
a51092ee
DN
33542009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3355
3356 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3357
c423ecca
KH
33582009-02-18 Kenichi Handa <handa@m17n.org>
3359
3360 * font.c (font_check_otf_features): Fix handling of `nil' element.
3361 (Ffont_spec): Describe :lang and :otf in the docstring.
3362
4c1958f4
AS
33632009-02-16 Andreas Schwab <schwab@suse.de>
3364
3365 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3366 string.
3367
5704f39a
KH
33682009-02-16 Kenichi Handa <handa@m17n.org>
3369
3370 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3371 (Bug#1723)
5704f39a 3372
8f0085aa
CY
33732009-02-14 Chong Yidong <cyd@stupidchicken.com>
3374
a057d86a 3375 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3376
3377 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3378 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3379
aff01dd9
EZ
33802009-02-14 Eli Zaretskii <eliz@gnu.org>
3381
3382 * msdos.c (MAX_SCREEN_BUF): New macro.
3383 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3384 Encode the entire run of glyphs sharing the same face, instead of
3385 doing that one glyph at a time (fixes a bug with displaying
3386 double-size characters).
3387
ba301db3
AR
33882009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3389
3390 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3391
3392 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3393 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3394 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3395
3396 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3397 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3398
51d861de
SM
33992009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3400
3401 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3402 invisible areas.
3403
7fed8996
JR
34042009-02-12 Jason Rumney <jasonr@gnu.org>
3405
631ea4fb
JR
3406 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3407 (add_font_entity_to_list): Call check_face_name even when family
3408 is unspecified.
3409
cb4a3e42
JR
3410 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3411 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3412 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3413
7fed8996 3414 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3415 raster fonts. (Bug#2219)
7fed8996 3416
895416e3
KH
34172009-02-12 Kenichi Handa <handa@m17n.org>
3418
3419 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3420 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3421 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3422 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3423 (find_automatic_composition): While looking forward and backward,
3424 check static composition. Fix where to stop looking forward.
3425 (composition_adjust_point): Fix checking of static composition.
3426 (Fcomposition_get_gstring): Pay attention to
1dacf998 3427 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3428
3429 * lisp.h (fast_looking_at): Extern it.
3430
3431 * search.c (fast_looking_at): New function.
3432
51d861de 3433 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3434 <struct glyph>.u.cmp.to.
3435 (append_composite_glyph): Likewise.
3436
51d861de 3437 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3438 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3439 composition.
51d861de 3440 (append_composite_glyph): Adjust for the change of
895416e3
KH
3441 <strcut glyph>.u.cmp.to.
3442
8510724d
JB
34432009-02-11 Juanma Barranquero <lekktu@gmail.com>
3444
3445 * casetab.c (init_casetab_once):
3446 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3447 * font.c (font_update_lface):
3448 * fontset.c (Fnew_fontset):
3449 * ftfont.c (ftfont_drive_otf):
3450 * xfont.c (xfont_open):
3451 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3452
294fa707
SM
34532009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3454
3455 * fileio.c (Fwrite_region): !NILP -> CONSP.
3456
b5bfebec
AS
34572009-02-10 Andreas Schwab <schwab@suse.de>
3458
3459 * process.c (send_process): Properly relocate pointer into data
adab88bd 3460 when using encoded data. (Bug#2272)
b5bfebec 3461
cb84a2be
KH
34622009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3463
3464 * coding.c (detect_coding_charset): Fix previous change.
3465
89e09428
JR
34662009-02-08 Jason Rumney <jasonr@gnu.org>
3467
3468 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3469 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3470
4470a277
AS
34712009-02-07 Andreas Schwab <schwab@suse.de>
3472
3473 * unexelf.c (unexec): Fix error message.
3474
3175b12a
AR
34752009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3476
3477 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3478 when modal window is active. (Bug #2152)
3175b12a
AR
3479 (applicationShouldTerminate:): Remove now-unneeded while loop
3480 around NSRunAlertPanel.
3481
3482 * nsmenu.m (popupSession): New file-global variable.
3483 (pop_down_menu): End the popupSession before closing dialog.
3484 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3485 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3486 don't query NSApp for events (just sleep instead).
3487
8434d0b8
EZ
34882009-02-07 Eli Zaretskii <eliz@gnu.org>
3489
51d861de
SM
3490 * coding.c (syms_of_coding) <translation-table-for-input>:
3491 Modify doc string to discourage use for character code unification.
8434d0b8 3492
aa82edfd
CY
34932009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3494
3495 * atimer.c (run_timers): Update pending_atimers.
3496
2d283c7c
CY
34972009-02-06 Chong Yidong <cyd@stupidchicken.com>
3498
eb306cab
CY
3499 * image.c (svg_load_image): Fix last change.
3500
2d283c7c
CY
3501 * xfns.c (Fx_create_frame): Signal an error if no font is
3502 found (Bug#2147).
3503
4d8e170e
JB
35042009-02-05 Juanma Barranquero <lekktu@gmail.com>
3505
3506 * character.c (syms_of_character) <script-representative-chars>:
3507 Fix typo in docstring.
3508
c96169a0
AR
35092009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3510
3511 * nsmenu.m (pop_down_menu): New function.
3512 (ns_popup_dialog): Call it on unwind.
3513 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3514 call timer_check() (Bug#2154).
3515 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3516 handling_signal is set.
3517 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3518
31fd7c5c 3519 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3520
3521 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3522
3523 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3524
51d861de
SM
3525 * keyboard.c (poll_for_input_1, handle_async_input):
3526 Set handling_signal under HAVE_NS.
c96169a0 3527
aacd8ba1
GM
35282009-02-04 Glenn Morris <rgm@gnu.org>
3529
3530 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3531
4cb75c4b
KH
35322009-02-04 Kenichi Handa <handa@m17n.org>
3533
3534 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3535
3536 * charset.c (Fchar_charset): New optional arg restriction.
3537
3538 * coding.h (coding_system_charset_list): Extern it.
3539
3540 * coding.c (coding_system_charset_list): New function.
3541
3542 * composite.c: Include coding.h and termhooks.h.
3543 (composition_gstring_p): Fix for the terminal case.
3544 (composition_gstring_width): Likewise.
3545 (fill_gstring_body): Likewise.
3546 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3547 the frame.
3548 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3549 is within a composition.
867d4bb3 3550 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3551
3552 * term.c (encode_terminal_code): Fix handling of composition.
3553 (produce_composite_glyph): For static composition, get pixel_width
3554 from struct composition.
3555
826ba17e
AS
35562009-02-02 Andreas Schwab <schwab@suse.de>
3557
3558 * unexelf.c (unexec): Handle unaligned bss offset.
3559
8ad093db
AR
35602009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3561
3562 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3563 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3564
8ad093db
AR
3565 * keyboard.c (handle_interrupt): Don't call
3566 quit_throw_to_read_char() under NS.
d0a76a6e 3567
8ad093db
AR
3568 * blockinput.h: Remove NS-specific code.
3569
4d18a7a2
DN
35702009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3571
db878925
DN
3572 * dispnew.c (window_change_signal): Don't try to get the size of a
3573 suspended tty frame.
3574 * term.c (Fresume_tty): Resize if the size has changed while the
3575 tty was suspended.
3576
4d18a7a2
DN
3577 * alloc.c (mark_stack): Properly conditionalize previous change.
3578
8984df7c
JB
35792009-01-30 Juanma Barranquero <lekktu@gmail.com>
3580
3581 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3582 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3583 Remove; this code is not used on Windows.
3584
75f4f1ac
EZ
35852009-01-30 Eli Zaretskii <eliz@gnu.org>
3586
3587 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3588 EOLs that also has stray ^M characters.
3589
07a1e794
JB
35902009-01-30 Juanma Barranquero <lekktu@gmail.com>
3591
3592 * atimer.c (run_timers, alarm_signal_handler):
3593 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3594 * w32inevt.c (w32_console_read_socket):
3595 * w32term.c (w32_read_socket):
3596 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3597
a8b11cc9
CY
35982009-01-30 Chong Yidong <cyd@stupidchicken.com>
3599
3600 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3601 Initialize it as a relative filename pattern.
3602 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3603 (Fcall_process_region): Simplify temp file creation using
3604 temporary-file-directory.
3605
c279587b
EZ
36062009-01-29 Eli Zaretskii <eliz@gnu.org>
3607
3608 * msdos.c: Rename pending_signals to msdos_pending_signals.
3609 (sig_suspender, sigprocmask): Adjust.
3610
a8fe3242
CY
36112009-01-29 Chong Yidong <cyd@stupidchicken.com>
3612
3613 * keyboard.c (pending_signals): New var.
3614 (poll_for_input, input_available_signal, init_keyboard): Set it.
3615 (process_pending_signals): New function.
3616
3617 * lisp.h (QUIT): Check pending_signals instead of
3618 interrupt_input_pending. Use process_pending_signals.
3619
51d861de 3620 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3621
51d861de 3622 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3623
3624 * sysdep.c (emacs_write): Use process_pending_signals.
3625
3626 * xterm.c (XTread_socket): Update pending_signals.
3627
3628 * w32term.c (w32_read_socket): Update pending_signals.
3629
3630 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3631
6570a1c4
KH
36322009-01-29 Kenichi Handa <handa@m17n.org>
3633
3634 * xftfont.c (xftfont_has_char): New function.
3635 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3636
d72a4afa
AR
36372009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3638
3639 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3640 under GNUstep.
3641 (ns_query_color): New declaration.
3642
3643 * nsterm.m (ns_confirm_quit): New variable.
3644 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3645 (EmacsApp-applicationShouldTerminate:): Use it.
3646 (EmacsPrefsController): Let user set it.
3647 (ns_query_color): New function.
3648 (ns_defined_color): Use it.
3649 (ns_initialize): Drop.
3650 (ns_term_init): Add two lines from ns_initialize(), and set
3651 input_interrupt_mode to nil.
3652
3653 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3654 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3655
9fe78804
KH
36562009-01-28 Kenichi Handa <handa@m17n.org>
3657
3658 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3659 (fontset_get_font_group): Remember that no font-group is specified
3660 for C.
9fe78804 3661
fa57de36
CY
36622009-01-27 Chong Yidong <cyd@stupidchicken.com>
3663
930600e9
CY
3664 * fns.c (concat): Check for string overflow (bug#1787).
3665
fa57de36
CY
3666 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3667 Quadruple undo limits (bug#1501).
3668
7179ce7b
KH
36692009-01-27 Kenichi Handa <handa@m17n.org>
3670
3671 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3672 directly use GT_Get_Char_index.
3673
3674 * xftfont.c (struct xftfont_info): New member `index'.
3675
3676 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3677 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3678
5be8fcc0
CY
36792009-01-26 Kenichi Handa <handa@m17n.org>
3680
3681 * fontset.c (fontset_find_font): Fix handling of non-cons return
3682 value of fontset_get_font_group.
3683 (fontset_font): Revert last change.
3684
19ae3e61
JR
36852009-01-26 Jason Rumney <jasonr@gnu.org>
3686
3687 * w32font.c (w32font_list_internal): Return quickly if registry is
3688 unknown. Simplify final return.
3689 (add_font_entity_to_list): Break complex logic down into more
3690 manageable chunks. Move unknown registry check to
3691 w32font_list_internal.
3692
8612b71a
AR
36932009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3694
3695 Changes to remove Feval calls from GUI under NS.
3696
d8038940
JB
3697 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3698 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3699 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3700
3701 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3702 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3703 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3704 instead of NON_ASCII_KEYSTROKE_EVENT.
3705 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3706 (EmacsApp-applicationShouldTerminate:): Query user.
3707 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3708 instead of Feval.
3709
3710 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3711
3712 * keyboard.c (kbd_buffer_get_event): Check for it.
3713 (keys_of_keyboard): Define lispy keys for
3714 ns-put/unput-working-text.
3715
3716 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3717 versions.
3718 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3719
6288ae55
CY
37202009-01-25 Chong Yidong <cyd@stupidchicken.com>
3721
3722 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3723 setting current_buffer directly. (Bug#2044)
6288ae55 3724
289e7f8f
CY
37252009-01-24 Chong Yidong <cyd@stupidchicken.com>
3726
5ce87308 3727 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3728 any work. (Bug#1952, bug#1990).
5ce87308 3729
64cc3cf6 3730 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3731
b3243e6f
AR
37322009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3733
3734 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3735 (ns_no_defaults): New declaration.
3736 (main): Use it.
e0d2e69a 3737
d900b2af 3738 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3739
d900b2af 3740 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3741
d900b2af
AR
3742 * nsterm.m (ns_no_defaults): New variable.
3743 (ns_initialize): Don't read defaults when ns_no_defaults.
3744 (EmacsView-readSelectionFromPasteboard:)
3745 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3746 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3747 (ns_dumpglyphs_stretch): New function.
3748 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3749 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3750
e0d2e69a
AR
3751 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3752
3ac71f5d
CY
37532009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3754
3755 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3756 call for Sparc64.
3757
3fe53a83
AR
37582009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3759
3760 * nsfns.m:
3761 * nsgui.h:
3762 * nsmenu.m:
3763 * nsselect.m:
3764 * nsterm.h:
3765 * nsterm.m: Remove '23' comments that indicated code added during
3766 update from emacs-20 -> emacs-23.
3767
10f87c6f 37682009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3769
3770 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3771 ns_alternate_modifier. (Bug#1217)
a3b53a85 3772
c7cef62d
AR
3773 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3774 Display all shortcuts, including those w/o super modifier.
3775
575fb8bd
AR
3776 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3777
918b848b
CY
37782009-01-22 Chong Yidong <cyd@stupidchicken.com>
3779
3780 * fileio.c (Vwrite_region_post_annotation_function)
3781 (Vwrite_region_annotation_buffers): New vars.
3782 (build_annotations_unwind): Just reset
3783 Vwrite_region_annotation_buffers.
3784 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3785 Call write-region-post-annotation-function.
3786 (build_annotations): Add to Vwrite_region_annotation_buffers if
3787 buffer changes.
3788
a39e2539
AR
37892009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3790
3791 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3792 Tiger.
51d861de
SM
3793 * nsfns.m (ns_do_applescript):
3794 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3795
35ed44db
AR
37962009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3797
3798 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3799
cbe0b5bf
AR
38002009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3801
3802 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3803
6049d3a0
AR
3804 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3805
3806 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3807 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3808 handle Ctrl-tab. (Bug#1841)
3809 (ns_get_color): Use unsigned long long for scanned hex string value.
3810 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3811 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3812 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3813 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3814 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3815 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3816 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3817
d3810c21 3818 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3819 DPI. (Bug#1316)
d3810c21
AR
3820 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3821 values in onTiger section.
4c7077c3 3822
e301e634
CY
38232009-01-19 Chong Yidong <cyd@stupidchicken.com>
3824
7f82490b
CY
3825 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3826 Check return value of font_spec_from_name.
64cc3cf6 3827 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3828
3829 * font.c (font_spec_from_name): Return Qnil if font name could not
3830 be parsed.
3831 (font_parse_name): Treat a `?' character as part of an XLFD.
3832
e301e634
CY
3833 * fns.c (Fsubstring): Doc fix.
3834
1c0db158
KH
38352009-01-19 Kenichi Handa <handa@m17n.org>
3836
51d861de 3837 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3838 (ftfont_list): Likewise.
3839
acf20901
JB
38402009-01-18 Juanma Barranquero <lekktu@gmail.com>
3841
fff4e459
JB
3842 * dbusbind.c (Fdbus_register_signal):
3843 * process.c (conv_sockaddr_to_lisp):
3844 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3845
acf20901
JB
3846 * callproc.c (Fgetenv_internal): Doc fix.
3847
e7abcdfb
CY
38482009-01-16 Chong Yidong <cyd@stupidchicken.com>
3849
3850 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3851 it is not even used.
3852
b60861e6
GM
38532009-01-16 Glenn Morris <rgm@gnu.org>
3854
3855 * font.c (Ffont_variation_glyphs): Silence compiler.
3856
8db52afe
JB
38572009-01-15 Juanma Barranquero <lekktu@gmail.com>
3858
3859 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3860 Reported by David Robinow <drobinow@gmail.com>.
3861
4cddb209
KH
38622009-01-15 Kenichi Handa <handa@m17n.org>
3863
51d861de 3864 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3865
f247f67b
JR
38662009-01-14 Jason Rumney <jasonr@gnu.org>
3867
3868 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3869 never a fontset. (Bug#1562)
f247f67b 3870
f56a4450
KH
38712009-01-14 Kenichi Handa <handa@m17n.org>
3872
3873 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3874 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3875
4e99855e
CY
38762009-01-13 Chong Yidong <cyd@stupidchicken.com>
3877
3878 * font.c (font_clear_prop): If clearing the family, clear the font
3879 width index too.
3880
fff4e459 3881 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3882
24f01470
JB
38832009-01-12 Juanma Barranquero <lekktu@gmail.com>
3884
3885 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3886 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3887 functions, use sizeof.
3888
a41240a3
MR
38892009-01-12 Martin Rudalics <rudalics@gmx.at>
3890
3891 * keyboard.c (read_char): Fix case where last_nonmenu_event
3892 returned a bad value with submenus. (Bug#447)
3893
944636b8
CY
38942009-01-12 Chong Yidong <cyd@stupidchicken.com>
3895
3896 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3897 family, clear the font width index too.
3898
0dad7c6f
JR
38992009-01-11 Jason Rumney <jasonr@gnu.org>
3900
3901 * keyboard.c (cmd_error_internal): Exit when errors occur before
3902 frame creation and not in daemon mode. (Bug#1836)
3903
7c2363af
CY
39042009-01-10 Chong Yidong <cyd@stupidchicken.com>
3905
3906 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3907 of a display vector, backtrack.
3908 (try_window_reusing_current_matrix): Check glyph type before
3909 referencing charpos member.
3910
97b1b294
EZ
39112009-01-10 Eli Zaretskii <eliz@gnu.org>
3912
3913 Fix Bug #876:
3914
3915 * coding.c (inhibit_null_byte_detection): New variable.
3916 (detect_coding, detect_coding_system): Don't pay attention to null
3917 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3918 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3919 <inhibit-iso-escape-detection>: Doc fix.
3920
4624b6e3
JR
39212009-01-09 Jason Rumney <jasonr@gnu.org>
3922
3923 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3924 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3925 Only report Unicode Plane 2 fonts as unicode-sip.
3926
323b840c
CY
39272009-01-09 Chong Yidong <cyd@stupidchicken.com>
3928
51d861de
SM
3929 * xfaces.c (Fx_font_family_list): Delete function.
3930 Move compatibility version to faces.el.
323b840c 3931
51d861de 3932 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3933
eba7400d
MR
39342009-01-09 Martin Rudalics <rudalics@gmx.at>
3935
3936 * frame.c (x_set_frame_parameters): Remember requested value for
3937 fullscreen before it's reset by the parameter handler.
3938
4b09796d
GM
39392009-01-09 Glenn Morris <rgm@gnu.org>
3940
3941 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3942 (last_command_event): ... and update all users.
4b09796d
GM
3943 (last_input_char): For clarity, rename to...
3944 (last_input_event): ... and update all users.
3945 (last-command-char, last-input-char): Move to subr.el as aliases.
3946 * cmds.c, commands.h: Update for last_command_char rename.
3947
14ccea62
CY
39482009-01-08 Chong Yidong <cyd@stupidchicken.com>
3949
51d861de 3950 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3951
5f004711
JR
39522009-01-08 Jason Rumney <jasonr@gnu.org>
3953
3954 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3955 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3956 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3957 Don't declare.
fff4e459 3958 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3959 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3960
b71f6f73
KH
39612009-01-07 Kenichi Handa <handa@m17n.org>
3962
50b06221 3963 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3964 remember the coding system used for decoding in
50b06221
KH
3965 coding_system (Bug#1039).
3966
b71f6f73 3967 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3968 breaking the loop. (Bug#870)
b71f6f73
KH
3969 (decode_coding_utf_16, decode_coding_emacs_mule)
3970 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3971 (decode_coding_charset): Likewise.
3972
56f668f7
MR
39732009-01-05 Martin Rudalics <rudalics@gmx.at>
3974
3975 * frame.c (x_set_frame_parameters): Make sure height (width) get
3976 applied when fullwidth (fullheight) is set. (Bug#1522)
3977
5da9424d
JB
39782009-01-04 Juanma Barranquero <lekktu@gmail.com>
3979
3980 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3981 (utc_base): Declare as ULONGLONG, not long double.
3982 (convert_time_raw): Delete.
3983 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3984 (initialize_utc_base): New function.
3985 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3986 (convert_from_time_t): Use initialize_utc_base; compute result with
3987 64-bit arithmetic.
3988 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3989
c4605e09
EZ
39902009-01-03 Eli Zaretskii <eliz@gnu.org>
3991
9acef61c 3992 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3993 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3994 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3995 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3996 [!subprocesses]: Define.
3997 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3998 (Flist_system_processes, Fsystem_process_attributes)
3999 [!subprocesses]: Call list_system_processes and
4000 system_process_attributes instead of returning Qnil.
4001
9acef61c
JB
4002 * dosfns.c (system_process_attributes, list_system_processes):
4003 New functions.
c4605e09
EZ
4004
4005 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4006
4007 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4008 Don't use the default (no-op) implementation.
4009
8b7d0a16
JR
40102009-01-03 Jason Rumney <jasonr@gnu.org>
4011
a6d46bc1
JR
4012 * keyboard.c (parse_modifiers_uncached): Wheel events are
4013 clicks (bug#687).
4014
8b7d0a16
JR
4015 * w32term.c (x_query_colors, x_query_color): New functions.
4016
4017 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4018 (svg_load_image): Cast returned pointers from dynamically loaded
4019 functions. Eliminate W32 specific code.
4020
bfe11752
DN
40212009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4022
89e2438a
DN
4023 * nsfns.m (x_set_foreground_color, x_set_background_color)
4024 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4025 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4026 x_ prefix instead of ns_. Update references.
4027 (syms_of_nsfns): Add a FIXME comment.
4028
4029 * nsterm.m (x_set_cursor_type): New prototype.
4030 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4031
bfe11752
DN
4032 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4033 for Solaris instead of incorrectly providing Qutime and Qcutime.
4034
031da700
EZ
40352009-01-02 Eli Zaretskii <eliz@gnu.org>
4036
4037 * w32.c (process_times): Compute sum of utime and stime.
4038 (system_process_attributes): Add Qtime to the alist.
4039
4040 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4041 and add them to the alist.
4042
4043 * process.c (top level) <Qtime, Qctime>: New variables.
4044 (syms_of_process): staticpro them.
4045 (Fsystem_process_attributes): Add their documentation to the doc
4046 string.
4047
4048 * process.h: Declare Qtime and Qctime.
4049
df23bf08
JR
40502009-01-02 Jason Rumney <jasonr@gnu.org>
4051
9acef61c 4052 * image.c (Qgobject): New symbol.
df23bf08
JR
4053 (syms_of_image): Initialize it.
4054 (init_svg_functions): Load some functions from gobject library.
4055
5bbdf7aa
DN
40562009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4057
4058 * frame.c (make_terminal_frame): Remove redundant code and useless
4059 block.
4060
63136da6
AS
40612009-01-01 Andreas Schwab <schwab@suse.de>
4062
4063 * process.c (conv_sockaddr_to_lisp): Add workaround for
4064 getsockname bug on BSD.
4065
9ef69046
CY
40662009-01-01 Chong Yidong <cyd@stupidchicken.com>
4067
d6fafbe0
CY
4068 * xfns.c (x_create_tip_frame): Set border width of the X window.
4069
51d861de 4070 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4071
f9c34147
JR
40722009-01-01 Jason Rumney <jasonr@gnu.org>
4073
9acef61c 4074 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4075 Don't block input, as per earlier xterm.c changes.
4076
f5497e45
AR
40772008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4078
4079 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4080 (ns_appkit_version_int): New function.
4081 (x-server-version): Use ns_appkit_version_int and follow 21+
4082 convention of returning 3 integers.
4083
c19cab20
KH
40842008-12-30 Kenichi Handa <handa@m17n.org>
4085
4086 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4087 (CHAR_SURROGATE_PAIR_P): New macro.
4088
4089 * font.h (struct font_driver): New member get_variation_glyphs.
4090
9acef61c 4091 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4092 (Ffont_variation_glyphs): New function.
4093 (syms_of_font): Defsubr it.
4094
4095 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4096 ftfont_variation_glyphs.
4097 (setup_otf_gstring): New function.
4098 (ftfont_drive_otf): Use it.
4099 (ftfont_shape_by_flt): Handle variation selector.
4100 (ftfont_variation_glyphs): New function.
4101
28cd591f
MR
41022008-12-30 Martin Rudalics <rudalics@gmx.at>
4103
4104 * frame.c (Vemacs_iconified): Remove.
4105
7f714baf
JR
41062008-12-30 Jason Rumney <jasonr@gnu.org>
4107
4108 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4109 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4110
9d2d22ab
CY
41112008-12-30 Chong Yidong <cyd@stupidchicken.com>
4112
4113 * indent.c (Fvertical_motion): Don't advance iterator if we have
4114 reseated to the desired position.
4115
4116 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4117 checking for pos match.
4118
545312c2
KH
41192008-12-30 Kenichi Handa <handa@m17n.org>
4120
1ede3eb6
KH
4121 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4122 just get the low 8-bit of the code.
4123
545312c2
KH
4124 * font.c (font_intern_prop): Validate str as multibyte.
4125
bd7bbf29
DN
41262008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4127
31e0750e
DN
4128 * dispextern.h (struct face): Move lface and hash from the middle
4129 of bitfields.
4130
bd7bbf29
DN
4131 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4132
b5672e7c
DN
41332008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4134
4135 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4136 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4137 instead of intervals.h.
4138
d704470f
AS
41392008-12-26 Andreas Schwab <schwab@suse.de>
4140
4141 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4142 cons.
4143
54b33868
MR
41442008-12-26 Martin Rudalics <rudalics@gmx.at>
4145
4146 * textprop.c (Qminibuffer_prompt): New variable.
4147 (syms_of_textprop): Initialize it.
4148 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4149 in minibuffer-prompt face. (Bug#1662)
4150
40b615d6
JR
41512008-12-25 Jason Rumney <jasonr@gnu.org>
4152
4153 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4154
baae5c2d
JR
41552008-12-24 Jason Rumney <jasonr@gnu.org>
4156
4157 * ralloc.c (r_alloc_reset_variable): New function.
4158
4159 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4160 record of what points where. (Bug#716)
baae5c2d 4161
a9051c88
DN
41622008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4163
4164 * minibuf.c (read_minibuf): Follow the non-interactive case when
4165 running as a daemon, before detaching.
4166
8b146312
AS
41672008-12-22 Andreas Schwab <schwab@suse.de>
4168
4169 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4170 * gtkutil.c (free_widget_value): Use xfree instead of free.
4171
56f2de10
MR
41722008-12-22 Martin Rudalics <rudalics@gmx.at>
4173
4174 * frame.c (delete_frame): New function derived from
4175 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4176 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4177 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4178 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4179 * frame.h: Extern delete_frame.
4180 * window.c (window_loop):
4181 * terminal.c (delete_terminal):
4182 * xterm.c (x_connection_closed):
4183 * xfns.c (Fx_hide_tip):
9acef61c 4184 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4185
1fc200d6
JR
41862008-12-21 Jason Rumney <jasonr@gnu.org>
4187
4188 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4189 when character maps to .notdef character.
4190
5e252df2
SM
41912008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4192
4193 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4194
99b72cc4
JR
41952008-12-20 Jason Rumney <jasonr@gnu.org>
4196
4197 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4198 a graphical frame on Windows. (Bug#1325)
99b72cc4 4199
acc49a52
JD
42002008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4201
4202 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4203
6ea15123
CY
42042008-12-20 Chong Yidong <cyd@stupidchicken.com>
4205
4206 * minibuf.c (Fread_buffer): Doc fix.
4207
b2dab6c8
JR
42082008-12-20 Jason Rumney <jasonr@gnu.org>
4209
54ea0c87 4210 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4211 server name in UNC paths. (Bug#719)
54ea0c87 4212
b2dab6c8 4213 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4214 charbuf. (Bug#1035)
b2dab6c8 4215
6d1921be
DN
42162008-12-19 Daniel Engeler <engeler@gmail.com>
4217
4218 * sysdep.c (serial_configure): Fix typo.
4219
53934c98
DN
42202008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4221
4222 * sysdep.c: Include alloca.h.
f4f634e8
DN
4223 (system_process_attributes): Add implementation for Solaris.
4224
4225 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4226
06e111a6
DN
42272008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4228
4229 Reorganize implementation of Flist_system_processes and
4230 Fsystem_process_attributes. No functional changes.
4231 * process.c: Don't #include pwd.h, grp.h and limits.h.
4232 (Flist_system_processes): Just call list_system_processes.
4233 (Fsystem_process_attributes): Just call system_process_attributes.
4234 (procfs_list_system_processes, time_from_jiffies)
4235 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4236 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4237
4238 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4239 (list_system_processes): Rename from
4240 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4241 Provide a do nothing implementation.
4242 (system_process_attributes): Rename from
4243 procfs_list_system_processes.
4244 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4245 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4246
4247 * w32.c (list_system_processes): Rename from
4248 w32_list_system_processes.
4249 (system_process_attributes): Rename from
4250 w32_system_process_attributes.
4251
4252 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4253
4254 * process.h (w32_list_system_processes)
4255 (w32_system_process_attributes): Remove.
362654a6
JB
4256 (list_system_processes, system_process_attributes):
4257 New prototypes.
06e111a6 4258
6a705b23
KH
42592008-12-19 Kenichi Handa <handa@m17n.org>
4260
4261 * xfont.c (xfont_decode_coding_xlfd): New function.
4262 (xfont_encode_coding_xlfd): New function.
4263 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4264 (xfont_list): Decode and encode XLFD by iso-8859-1.
4265 (xfont_match): Likewise.
4266 (xfont_list_family): Likewise.
4267 (xfont_open): Likewise.
4268
d66c0241 4269 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4270 names are utf-8.
4271
d66c0241 4272 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4273 names are utf-8.
4274
5a130941
JD
42752008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4276
4277 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4278 changed.
bfd20325
JD
4279 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4280 clicked on a detached tool bar button.
5a130941 4281
fd95644b
DN
42822008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4283
4284 * emacs.c (main): Print and error and exit when no data is read
4285 from the pipe.
4286
e6eee6ae
JR
42872008-12-17 Jason Rumney <jasonr@gnu.org>
4288
4289 * w32font.c (w32font_has_char): Always return -1.
4290
a35dd56b
KH
42912008-12-16 Kenichi Handa <handa@m17n.org>
4292
4293 * font.c (font_open_entity): Fix previous change.
4294
0e3635c2
DN
42952008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4296
4297 * process.c: Include <limits.h>.
4298
d4835507 42992008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4300
4301 * font.c (font_update_drivers): Fix mistake in reconstructing the
4302 driver list.
4303
43042008-12-16 Chong Yidong <cyd@stupidchicken.com>
4305
4306 * font.c (font_clear_cache): Fix format of font cache data.
4307
e2cbc401
CY
43082008-12-15 Chong Yidong <cyd@stupidchicken.com>
4309
4310 * xftfont.c (xftfont_open): Free Xft font pattern if
4311 XftFontOpenPattern fails.
4312
4313 * xterm.c (x_free_frame_resources): Remove extraneous call to
4314 free_frame_faces.
4315
b131d535
CY
43162008-12-13 Chong Yidong <cyd@stupidchicken.com>
4317
4318 * xterm.c (x_delete_display): Move xim_close_dpy call to
4319 x_delete_terminal.
4320 (x_delete_terminal): Call xim_close_dpy.
4321
e6df5336
JR
43222008-12-13 Jason Rumney <jasonr@gnu.org>
4323
4324 * w32font.c (intern_font_name): New function.
4325 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4326 (w32font_open_internal, Fx_select_font): Decode font name.
4327 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4328
4329 * w32font.h (intern_font_name): Declare new function.
4330
4331 * w32uniscribe.c (add_opentype_font_name_to_list):
4332 Use intern_font_name.
4333
20d68145
CY
43342008-12-13 Chong Yidong <cyd@stupidchicken.com>
4335
9f2554de
CY
4336 * frame.c (Fdelete_frame): Call free_font_driver_list.
4337
3d9bec9a
CY
4338 * font.c (free_font_driver_list): Implement missing function.
4339
20d68145
CY
4340 * w32term.c (w32_term_init): Don't initialize the image cache
4341 here; it will be done in init_frame_faces.
4342
4343 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4344 (struct x_display_info): Remove unused member null_pixel. New
4345 member xim_callback_data.
4346
4347 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4348 (xim_initialize): Save pointer to callback function data.
4349 (xim_close_dpy): Free callback function data. Call XCloseIM,
4350 reverting 2008-11-04 change by David Smith.
4351 (x_term_init): Don't initialize the image cache here; it will be
4352 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4353 (x_delete_display): Free x_dnd_atoms member.
4354
96f9306b
KH
43552008-12-13 Kenichi Handa <handa@m17n.org>
4356
6dec9044
JB
4357 * font.c (font_rescale_ratio): Moved from xfaces.c.
4358 Argument type changed. Handle a font-spec too.
96f9306b 4359 (font_score): Check Vface_font_rescale_alist.
6dec9044 4360 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4361
4362 * xfaces.c (font_rescale_ratio): Moved to font.c.
4363
8d5b4964
CY
43642008-12-13 Chong Yidong <cyd@stupidchicken.com>
4365
4366 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4367
e6df5336
JR
43682008-12-12 Jason Rumney <jasonr@gnu.org>
4369
4370 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4371 Vwindow_system_version to the real w32 major version.
4372
97c6058a
DN
43732008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4374
4375 * term.c (init_tty): Move setting the terminal name before the
4376 potential user: maybe_fatal.
4377
ec4e88d7
CY
43782008-12-11 Chong Yidong <cyd@stupidchicken.com>
4379
d4835507
JB
4380 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4381 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4382
b4233ec9
JR
43832008-12-11 Jason Rumney <jasonr@gnu.org>
4384
8ec71e23 4385 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4386 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4387
b4233ec9 4388 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4389 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4390
011a0143
JB
43912008-12-11 Juanma Barranquero <lekktu@gmail.com>
4392
4393 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4394
3c309f34
JB
43952008-12-11 Juanma Barranquero <lekktu@gmail.com>
4396
4397 * process.c (Fsystem_process_attributes, syms_of_process):
4398 Fix typo in name of Ssystem_process_attributes.
4399 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4400
fedc6ab5
JB
44012008-12-11 Juanma Barranquero <lekktu@gmail.com>
4402
4403 * syntax.c (Fmodify_syntax_entry): Doc fix.
4404
ba3de0e8
JB
44052008-12-10 Juanma Barranquero <lekktu@gmail.com>
4406
4407 * font.c (Ffont_spec): Move usage to end of docstring.
4408
174f1c74
JR
44092008-12-10 Jason Rumney <jasonr@gnu.org>
4410
4411 * w32font.c (Qcham): New symbol.
4412 (font_supported_scripts): Add cham, and comments for other new
4413 scripts in bitfield from OpenType spec.
9d32f818
JR
4414 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4415 contain characters beyond the bmp.
174f1c74 4416
7b649478
KH
44172008-12-10 Kenichi Handa <handa@m17n.org>
4418
4419 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4420 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4421 Qunicode_sip.
4422
2133e2d1
JB
44232008-12-10 Juanma Barranquero <lekktu@gmail.com>
4424
4425 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4426 (Fcoding_system_put): Use QCdefault_char.
4427 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4428
9af886ee
CY
44292008-12-09 Chong Yidong <cyd@stupidchicken.com>
4430
74d819eb
CY
4431 * xftfont.c (syms_of_xftfont): Fix typo.
4432
4ccfa1c0 4433 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4434
7c19d3ae
DN
44352008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4436
4437 * emacs.c (main): Close daemon_pipe on exec.
4438
567826bb
CY
44392008-12-08 Chong Yidong <cyd@stupidchicken.com>
4440
4441 * termchar.h (struct tty): New members termcap_term_buffer and
4442 termcap_strings_buffer.
4443
4444 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4445 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4446 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4447 All callers changed.
4448 (init_tty): Store termcap data and string buffers in new struct
4449 tty members termcap_term_buffer and termcap_strings_buffer.
4450 (delete_tty): Free them.
4ccfa1c0 4451 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4452
aa96c42b
SZ
44532008-12-07 Seiji Zenitani <zenitani@mac.com>
4454
4455 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4456 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4457
b7e1d896
CY
44582008-12-06 Chong Yidong <cyd@stupidchicken.com>
4459
4460 * coding.c (make_conversion_work_buffer): Disable buffer
4461 modification hooks in the work buffer.
4462
b5ec91a5
EZ
44632008-12-05 Eli Zaretskii <eliz@gnu.org>
4464
4465 * process.c (procfs_system_process_attributes): If `nread' has a
4466 negative value, assign zero to it.
4467
a5d2a52b
CY
44682008-12-05 Chong Yidong <cyd@stupidchicken.com>
4469
68c5540b 4470 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4471
7bf1bb21
KH
44722008-12-05 Kenichi Handa <handa@m17n.org>
4473
4474 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4475 second character is a combining character.
4476
2fdc7d00
EZ
44772008-12-05 Eli Zaretskii <eliz@gnu.org>
4478
4479 * process.c (procfs_system_process_attributes): Don't use cmd,
4480 cmdsize, and q without initializing them first.
4481
bf6bfba8
JR
44822008-12-04 Jason Rumney <jasonr@gnu.org>
4483
4484 * w32font.c (w32font_draw): Initialize orig_clip before getting
4485 it, and delete it when finished.
4486
a3b1a468
DN
44872008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4488
4489 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4490 case when running as a daemon before detaching.
4491
8b8be8eb
JB
44922008-12-03 Juanma Barranquero <lekktu@gmail.com>
4493
805f2638 4494 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4495
b1bde622
KH
44962008-12-03 Kenichi Handa <handa@m17n.org>
4497
e500c47d
KH
4498 * font.c (font_at): Set `multibyte' at first.
4499
ca516334
KH
4500 * coding.c (decode_coding_charset): Check type of an element of
4501 vector VALIDS.
7bf1bb21 4502 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4503
4ccfa1c0 4504 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4505 (font_for_char): Likewise.
4506
1e5ecd37
CY
45072008-12-03 Chong Yidong <cyd@stupidchicken.com>
4508
d5b01609 4509 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4510 (font_update_lface): Handle fonts with corrupted size specs,
4511 i.e. non-int and non-float.
d5b01609 4512
11e3a6e4 4513 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4514 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4515 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4516
ab06788b
CY
4517 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4518
1e5ecd37 4519 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4520 underline_minimum_offset for underline position.
1e5ecd37 4521
63c125ab
DN
45222008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4523
4524 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4525
4526 * character.c (c_string_width): Specify the type for LEN.
4527
3a8406e1
KH
45282008-12-03 Kenichi Handa <handa@m17n.org>
4529
4ccfa1c0 4530 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4531 (decode_coding_utf_8): Likewise.
4ccfa1c0 4532 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4533 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4534
651df7d9
CY
45352008-12-02 Chong Yidong <cyd@stupidchicken.com>
4536
4537 * keyboard.c (make_lispy_position): Only use PT if the selected
4538 window is current.
4539
1f625c6c
AS
45402008-12-02 Andreas Schwab <schwab@suse.de>
4541
f7741ce9
AS
4542 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4543
1f625c6c
AS
4544 * doprnt.c (doprnt1): Fix size of charbuf.
4545
92bc2678
CY
45462008-12-02 Chong Yidong <cyd@stupidchicken.com>
4547
4548 * keyboard.c (timer_check): Revert last change.
4549
93b9e8cc
JB
45502008-12-02 Juanma Barranquero <lekktu@gmail.com>
4551
4552 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4553
fd7a37d5
JB
45542008-12-01 Juanma Barranquero <lekktu@gmail.com>
4555
4556 * makefile.w32-in: Update dependencies.
4557 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4558
c115043b
AS
45592008-12-01 Andreas Schwab <schwab@suse.de>
4560
4561 * font.c (register_font_driver): Use xmalloc.
4562 (font_put_frame_data): Likewise.
4563
f5668d2a
CY
45642008-12-01 Chong Yidong <cyd@stupidchicken.com>
4565
860d96be
CY
4566 * xfaces.c (realize_x_face): Make abort condition clearer.
4567
f5668d2a
CY
4568 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4569
379c17e7
CY
45702008-11-30 Chong Yidong <cyd@stupidchicken.com>
4571
4572 * keyboard.c (timer_check): After a timer runs, ensure that the
4573 selected window's buffer is current.
4574
35f36d65
JB
45752008-11-30 Juanma Barranquero <lekktu@gmail.com>
4576
f952c61c
JB
4577 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4578 It was accidentally restored by the Unicode merge.
4579
35f36d65
JB
4580 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4581
b23077df
JB
45822008-11-29 Juanma Barranquero <lekktu@gmail.com>
4583
4584 * w32proc.c: Include "coding.h".
4585 (Fw32_short_file_name): Encode filename passed to Windows API.
4586 (Fw32_long_file_name): Encode filename passed to Windows API and
4587 decode back the result. (Bug#1433)
4588
b8ebe9dd
KH
45892008-11-29 Kenichi Handa <handa@m17n.org>
4590
8cc53f96
KH
4591 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4592 not before accessing it.
4593
b8ebe9dd
KH
4594 * charset.c (Fdefine_charset_internal): After calculating
4595 min_char, max_char, and fastmap, copy the charset structure again.
4596 (encode_char): Fix the previous change.
4597
59bc82c0
SZ
45982008-11-28 Seiji Zenitani <zenitani@mac.com>
4599
4600 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4601
4602 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4603
4604 * nsterm.m (x_set_frame_alpha): New function.
4605
32247e3d
EZ
46062008-11-27 Eli Zaretskii <eliz@gnu.org>
4607
4608 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4609
b003e5ff
JB
46102008-11-27 Juanma Barranquero <lekktu@gmail.com>
4611
4612 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4613 pointer to check_face_name.
4614
708550f5
KH
46152008-11-27 Kenichi Handa <handa@m17n.org>
4616
4617 * category.h (SET_CATEGORY_SET): Call set_category_set.
4618 (set_category_set): Extern it.
4619
4620 * category.c (hash_get_category_set): New function.
4621 (Fmodify_category_entry): Adjusted for the change of
4622 char_table_ref_and_range. Call hash_get_category_set to get a
4623 category set to store in the table.
4624
4625 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4626 Funify_charset.
4627
2ae37cf0 4628 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4629 (DECODE_CHAR): Check if the decoder vector is ready.
4630 (ENCODE_CHAR): Check if the encoder char-table is ready.
4631 (maybe_unify_char): Extern it.
4632
4633 * charset.c (Vchar_unified_charset_table): Delete it.
4634 (inhibit_load_charset_map): New variable.
4635 (temp_charset_work): New variable.
4636 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4637 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4638 New macros.
4639 (load_charset_map): Meaning of control_flag changed. If
4640 inhibit_load_charset_map is nonzero, setup a table in
4641 temp_charset_work.
4642 (load_charset): New argument control_flag.
4643 (map_charset_for_dump): New function.
4644 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4645 map_charset_for_dump.
4646 (Fdefine_charset_internal): If the charset method is MAP, load
4647 mapping tables by calling load_charset.
4648 (Funify_charset): Don't load a mapping table but directly set
4649 Vchar_unify_table.
4650 (maybe_unify_char): New function.
4651 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4652 Handle the case of inhibit_load_charset_map being nonzero.
4653 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4654 Handle the case of inhibit_load_charset_map being nonzero.
4655 (Fclear_charset_maps): Just free temp_charset_work.
4656 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4657 variable.
4658
4659 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4660 change of char_table_ref_and_range.
4661 (char_table_ref_and_range): Change the meaning of argument FROM
4662 and TO. Now the caller must provide initial values for *FROM
4663 and *TO.
4664
4665 * fontset.c (fontset_add): Adjusted for the change of
4666 char_table_ref_and_range.
4667 (fontset_get_font_group): Likewise.
4668 (Ffontset_info): Likewise.
4669
4670 * keymap.c (describe_vector): Adjusted for the change of
4671 char_table_ref_and_range. For char-table, put boundary between
4672 non-ASCII and 8-bit characters.
4673
4674 * print.c (print_object): For bool-vector, delete unnecessary
4675 check of ASCII_BYTE_P.
4676
9196133b
JR
46772008-11-26 Jason Rumney <jasonr@gnu.org>
4678
4679 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4680 leading in font height. (Bug#879)
9196133b 4681
9f688acf
GM
46822008-11-26 Glenn Morris <rgm@gnu.org>
4683
4684 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4685 redefinition with ifdef. (Bug#1383)
4686
90d19aff
AR
46872008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4688
4689 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4690
4ccfa1c0 46912008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4692
4693 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4694 New EmacsView methods.
4695 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4696 Fixes bug #1048,1357,1414.
4697
46982008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4699
4700 Fix bug #1362.
4701 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4702 is not an indexed color.
4703 * nsterm.m (free_indexed_color): Add argument checking.
4704 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4705
e7d5ecb3
CY
47062008-11-24 Chong Yidong <cyd@stupidchicken.com>
4707
4708 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4709 Document confirm-after-completion value for
4710 minibuffer-completion-confirm.
4711
c285743c
JR
47122008-11-24 Jason Rumney <jasonr@gnu.org>
4713
4714 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4715 warning.
4716
b0857706
JR
47172008-11-23 Jason Rumney <jasonr@gnu.org>
4718
4719 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4720 restored before returning.
4721
4722 * w32font.c (check_face_name): New function.
4723 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4724 fonts. (Bug#642)
b0857706 4725
ee50ff07
MR
47262008-11-22 Martin Rudalics <rudalics@gmx.at>
4727
4728 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4729 confirm-nonexistent-file-or-buffer in doc-string.
4730
b8ff72fa
SM
47312008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4732
4733 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4734 Fix copy/paste typo. Add checks.
4735
cee53ed4
KH
47362008-11-21 Kenichi Handa <handa@m17n.org>
4737
4738 * coding.c (detect_coding_iso_2022): Reject invalid composition
4739 sequence.
4740 (DECODE_COMPOSITION_START): If the current source is the last
4741 block, and the current composition doesn't end, regard this
4742 sequence as invalid.
4743 (decode_coding_iso_2022): Handle invalid composition sequence.
4744
f6ef1e65
MR
47452008-11-20 Martin Rudalics <rudalics@gmx.at>
4746
4747 * window.c (coordinates_in_window): Don't return
4748 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4749 line when the window is not the rightmost one. (Bug#1372)
4750
e08b1705
MR
47512008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4752
4753 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4754
ad98e89f
EZ
47552008-11-15 Eli Zaretskii <eliz@gnu.org>
4756
4757 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4758 and bright_bg if noninteractive is non-zero.
4759
fb098a4b
CY
47602008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4761
4762 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4763 x_draw_glyph_string_background.
4764
4765 * w32term.c (x_draw_glyph_string): Likewise.
4766
ce952b6e
CY
47672008-11-15 Chong Yidong <cyd@stupidchicken.com>
4768
4769 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4770 the next glyph string once past the overhang width.
4771
4772 * nsterm.m (ns_draw_glyph_string): Likewise.
4773
4774 * w32term.c (x_draw_glyph_string): Likewise.
4775
26ea7079
CY
47762008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4777
4778 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4779 double file close.
4780
1c33c906
MR
47812008-11-14 Martin Rudalics <rudalics@gmx.at>
4782
4783 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4784 dedicated status of window before attempting to display another
4785 buffer in it.
4786
8fc29035
JB
47872008-11-14 Juanma Barranquero <lekktu@gmail.com>
4788
4789 * msdos.c (Fmsdos_long_file_names):
4790 (syms_of_msdos) <dos-unsupported-char-glyph>:
4791 * dosfns.c (Fint86): Fix typos in docstrings.
4792
55fb4286
EZ
47932008-11-14 Eli Zaretskii <eliz@gnu.org>
4794
4795 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4796
3fda0315
KY
47972008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4798
4799 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4800
7e849c17
CY
48012008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4802
4803 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4804
4805 * frame.h: Negative alpha means "don't touch".
4806
4807 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4808
4809 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4810
b9fd67bd
DN
48112008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4812
4813 * hftctl.c:
4814 * chpdef.h:
4815 * acldef.h: Remove files used only for systems no longer supported.
4816
4817 * Makefile.in: Fix .o alphabetical ordering.
4818 (hftctl.o): Remove dependency, file removed.
4819 (keymap.o, print.o): Depend on charset.h.
4820
d5998e03
KH
48212008-11-10 Kenichi Handa <handa@m17n.org>
4822
2ae37cf0 4823 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4824
be70e183
CY
48252008-11-08 Chong Yidong <cyd@stupidchicken.com>
4826
4827 * dired.c (file_name_completion): If completion_ignore_case is
4828 enabled, ignore case when checking completion-regexp-list.
4829
7cf94eac
EZ
48302008-11-08 Eli Zaretskii <eliz@gnu.org>
4831
4832 * vm-limit.c (get_lim_data): Fix last change.
4833
ee107a89
KH
48342008-11-08 Kenichi Handa <handa@m17n.org>
4835
4836 * character.c (Fget_byte): New function.
4837 (syms_of_character): Defsubr Fget_byte.
4838
5fd15622
CY
48392008-11-07 Chong Yidong <cyd@stupidchicken.com>
4840
4841 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4842 cursor position is valid after scrolling.
4843
13d62fad
JB
48442008-11-06 Juanma Barranquero <lekktu@gmail.com>
4845
4846 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4847
a1dd2936
GM
48482008-11-06 Glenn Morris <rgm@gnu.org>
4849
4850 * xterm.c (handle_one_xevent): Don't let popup menus cause
4851 mouse-autoselect-window related window switching. (Bug#1261)
4852
860cd236
CY
48532008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4854
4855 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4856
653a3150
AS
48572008-11-04 Andreas Schwab <schwab@suse.de>
4858
4859 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4860
870f5cac
CY
48612008-11-03 Chong Yidong <cyd@stupidchicken.com>
4862
4863 * xfns.c (Fx_wm_set_size_hint): New function.
4864
1e02f3cb
MR
48652008-11-03 Martin Rudalics <rudalics@gmx.at>
4866
4867 * textprop.c (Fprevious_single_char_property_change): Return 0
4868 when there's no change in a string. (Bug#1301)
4869
e630dfc6
MR
48702008-11-02 Martin Rudalics <rudalics@gmx.at>
4871
4872 * frame.c (do_switch_frame): New argument NORECORD passed to
4873 Fselect_window.
4874 (Fselect_frame): New argument NORECORD passed to
4875 do_switch_frame.
4876 (Fset_frame_selected_window): New argument NORECORD passed to
4877 Fselect_frame.
4878 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4879 in call of do_switch_frame.
4880 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4881 Handle NORECORD argument in call of Fselect_frame.
4882 * lisp.h (do_switch_frame, Fselect_frame)
4883 (Fset_frame_selected_window): Adjust declarations.
4884 * window.c (select_frame_norecord): New function.
4885 (run_window_configuration_change_hook): Use it and call
4886 Fselect_frame with NORECORD set.
4887 (Fselect_window): Pass NORECORD to Fselect_frame.
4888 (Fset_window_configuration): Handle NORECORD argument in call of
4889 do_switch_frame.
4890 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4891 Fset_frame_selected_window.
4892 * keyboard.c (command_loop_1): Handle NORECORD in call of
4893 Fselect_frame (currently ifdefd).
4894
9020b223
GM
48952008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4896
4897 * emacs.c (USAGE2): Untabify.
4898
793ffee8
SM
48992008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4900
4901 * composite.c (fill_gstring_header): Fix copy/paste typo.
4902
ab6d1131
MR
49032008-10-31 Martin Rudalics <rudalics@gmx.at>
4904
4905 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4906 (Fother_window): Rename argument and rewrite doc-string.
4907 (select_window_norecord): Fix return value. (Bug#1276)
4908
601a9cf1
JB
49092008-10-30 Juanma Barranquero <lekktu@gmail.com>
4910
4911 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4912 new frames overriding foreground for tooltips. Based on similar patch
4913 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4914
813b0652
CY
49152008-10-29 Chong Yidong <cyd@stupidchicken.com>
4916
4917 * emacs.c (Fdaemon_initialized): Initialize nfd.
4918
4414f58f
MR
49192008-10-29 Martin Rudalics <rudalics@gmx.at>
4920
4921 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4922 (Fwindow_text_height): Clarify doc-strings.
4923 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4924 doc-string of window-scroll-functions.
4925
ecdcaa09
RS
49262008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4927
4928 * category.c (syms_of_category): Fix typo in docstring.
4929
23fe745a
JB
49302008-10-28 Juanma Barranquero <lekktu@gmail.com>
4931
4932 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4933 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4934 Fix typos in docstrings.
4935
ff808935
DN
49362008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4937
4938 * emacs.c (daemon_pipe): Make non-static.
4939 (IS_DAEMON): Move definition ...
4940 * lisp.h (IS_DAEMON): ... here.
4941 (daemon_pipe): Declare.
4942 (is_daemon): Remove.
4943 * dispnew.c (init_display): Use IS_DAEMON.
4944
fc012771
SM
49452008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4946
4947 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4948 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4949
4950 * emacs.c (is_daemon): Remove.
4951 (main): Don't set is_daemon.
4952 (IS_DAEMON): New macro.
4953 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4954 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4955 parent exits.
4956 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4957
d8bdbe6f
CY
49582008-10-27 Chong Yidong <cyd@stupidchicken.com>
4959
d1a072bf
CY
4960 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4961 over-sized glyph, draw it with the default glyph width.
4962
e2e325aa
CY
4963 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4964 glyph, draw it with the default glyph width.
4965
4966 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4967 glyph, draw it with the default glyph width.
4968
d8bdbe6f
CY
4969 * xdisp.c (try_scrolling): When computing the distance from the
4970 scroll margin to PT, try moving some distance past the window
4971 bottom before giving up.
4972
7bfac547
MR
49732008-10-27 Martin Rudalics <rudalics@gmx.at>
4974
4975 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4976 (Fset_window_buffer): Explain in doc-string that a window can be
4977 "strongly" dedicated to its buffer.
4978
4ff029f6
DN
49792008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4980
4981 * emacs.c (daemon_name): New variable.
4982 (main): Deal with --daemon=SERVER_NAME.
4983 (Fdaemonp): Return a name if one was passed to --daemon.
4984
5790ef40
DN
49852008-10-26 Romain Francoise <romain@orebokech.com>
4986
f9bd0df9 4987 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4988 (main): Create a pipe before forking, make the parent exit only after
4989 the child has closed its end of the pipe. Move closing the
4990 descriptors ...
4991 (Fdaemon_initialized): ... here. New function.
4992
f5385255
SM
49932008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4994
4d632321
SM
4995 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4996 the previous unoptimized table.
4997
f5385255
SM
4998 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4999 the distinction between non-nil and non-t value of `dedicated'.
5000
6c56a0f3
CY
50012008-10-25 Chong Yidong <cyd@stupidchicken.com>
5002
5003 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5004 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5005
fec89261
MR
50062008-10-25 Martin Rudalics <rudalics@gmx.at>
5007
5008 * window.c (Fget_buffer_window, Fdelete_windows_on)
5009 (Freplace_buffer_in_windows): Make buffer argument optional and
5010 rename to buffer_or_name.
5011
34fcddd0
CY
50122008-10-24 Chong Yidong <cyd@stupidchicken.com>
5013
f5385255
SM
5014 * xdisp.c (handle_single_display_spec, handle_display_prop):
5015 Undo 2005-05-16 change.
34fcddd0
CY
5016 (handle_stop): Pop iterator if it's loaded with an empty string.
5017 (get_overlay_strings_1): Don't save iterator if it's loaded with
5018 an empty string (bug#1201).
5019
064766f2
KH
50202008-10-24 Kenichi Handa <handa@m17n.org>
5021
5022 * ftfont.c (ftfont_otf_features): Fix previous change.
5023 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5024 calling ftfont_otf_features.
5025
f9bd0df9 50262008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5027
5028 * font.c (font_match_p): Fix for the case that a vector of
5029 characters is in script-representative-chars.
5030
1dae9197
MA
50312008-10-24 Michael Albinus <michael.albinus@gmx.de>
5032
5033 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5034 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5035 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5036 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5037 macro. (Bug#1186).
5038
f9bd0df9 50392008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5040
5041 * s/sol2-10.h: New file.
5042
878a4584
JB
50432008-10-23 Juanma Barranquero <lekktu@gmail.com>
5044
5045 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5046 poor beast has survived 9+ years and the jump from xterm.c!).
5047
cd265ca6
MR
50482008-10-23 Martin Rudalics <rudalics@gmx.at>
5049
5050 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5051 Reword doc-string.
f5385255 5052 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5053
472a4dc9
JB
50542008-10-23 Juanma Barranquero <lekktu@gmail.com>
5055
5056 * character.c (syms_of_character) <script-representative-chars>:
5057 <unicode-category-table>: Doc fixes.
5058
159bd5a2
NF
50592008-10-23 Noah Friedman <friedman@splode.com>
5060
5061 * coding.c (make_conversion_work_buffer): Check that
5062 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5063 Fget_buffer_create.
5064
49f9c344
KH
50652008-10-23 Kenichi Handa <handa@m17n.org>
5066
5067 * font.c (font_add_log): Check the values of extra properties.
5068
12bb3111
MR
50692008-10-22 Martin Rudalics <rudalics@gmx.at>
5070
5071 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5072 Reword doc-string.
5073 (Fset_window_parameter): Use NILP.
5074 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5075 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5076
bbeb4e99
JB
50772008-10-22 Juanma Barranquero <lekktu@gmail.com>
5078
5079 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5080
50812008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5082
5083 * nsfns.m (ns_appkit_version): New function.
5084 (x-server-version): Use it.
5085 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5086 (x-server-vendor): Don't check_ns().
5087
5088 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5089
a9b555d3
JB
50902008-10-22 Juanma Barranquero <lekktu@gmail.com>
5091
5092 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5093 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5094
4626499f
KH
50952008-10-22 Kenichi Handa <handa@m17n.org>
5096
e3681952
KH
5097 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5098 scripts.
5099
4626499f
KH
5100 * category.c (word_boundary_p): Check scripts instead of charset.
5101 Handle nil value in word-separating-categories and
5102 word-combining-categories.
5103 (syms_of_category): Fix docstrings of word-separating-categories
5104 and word-combining-categories.
5105
1560f91a
EZ
51062008-10-21 Eli Zaretskii <eliz@gnu.org>
5107
5108 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5109 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5110
f4668441
MR
51112008-10-21 Martin Rudalics <rudalics@gmx.at>
5112
5113 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5114 Rename arg "buffer" to "buffer_or_name".
5115 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5116 it optional.
5117 (no_switch_window): Remove since the return value is not used.
a9b555d3 5118 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5119 Consider window as dedicated when Fwindow_dedicated_p returns a
5120 non-nil value.
5121 * lisp.h: Remove prototype for no_switch_window.
5122
fd75ddb2
JD
51232008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5124
5125 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5126 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5127
07295713
KH
51282008-10-21 Kenichi Handa <handa@m17n.org>
5129
5130 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5131 check Vlatin_extra_code_table.
5132
712adc82
EZ
51332008-10-20 Eli Zaretskii <eliz@gnu.org>
5134
5135 * fileio.c (Fset_file_modes): Doc fix.
5136
f549eb0b
MA
51372008-10-19 Michael Albinus <michael.albinus@gmx.de>
5138
5139 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5140 in arrays.
5141
aac0c6e3
MR
51422008-10-19 Martin Rudalics <rudalics@gmx.at>
5143
5144 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5145 Mention kill-buffer in doc-string.
5146 (Fset_window_buffer): Reinsert tem check removed in last commit.
5147 (Fenlarge_window, Fshrink_window): Have argument names and
5148 doc-string follow Elisp manual more closely.
5149
51502008-10-18 Eli Zaretskii <eliz@gnu.org>
5151
5152 * fileio.c (Fset_file_modes): Doc fix.
5153
51542008-10-18 Martin Rudalics <rudalics@gmx.at>
5155
5156 * window.c (Fwindow_width, Fset_window_start)
5157 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5158 (Fdelete_windows_on, Freplace_buffer_in_windows):
5159 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5160 (Fwindow_dedicated_p): Make window argument optional.
5161 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5162 (Fset_window_buffer): Respect any non-nil dedicated value for
5163 window. Rename "buffer" argument to "buffer_or_name".
5164
51652008-10-18 Ulrich Mueller <ulm@gentoo.org>
5166
5167 * m/sh3.h: New file, machine description for SuperH.
5168
51692008-10-17 Martin Rudalics <rudalics@gmx.at>
5170
5171 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5172
51732008-10-17 Kenichi Handa <handa@m17n.org>
5174
5175 * ftfont.c (ftfont_otf_features): Fix indexing
5176 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5177
51782008-10-16 Magnus Henoch <mange@freemail.hu>
5179
5180 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5181 (Fdbus_call_method_asynchronously): Ditto.
5182 This change makes C-h f display the argument list.
5183
51842008-10-16 Chong Yidong <cyd@stupidchicken.com>
5185
5186 * fileio.c (Fexpand_file_name): Doc fix.
5187
5188 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5189 of :foreground and :background equivalent to unspecified (20.x
5190 compatibility).
5191
51922008-10-15 Eli Zaretskii <eliz@gnu.org>
5193
5194 * buffer.c (syms_of_buffer): Doc fix.
5195
51962008-10-14 Kenichi Handa <handa@m17n.org>
5197
5198 * font.c (font_clear_prop): When clearing font width, clear the
5199 average width field too.
5200
52012008-10-12 Andreas Schwab <schwab@suse.de>
5202
5203 * ftfont.c (ftfont_shape_by_flt): Make static.
5204 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5205
5206 * font.c: Don't include <m17n-flt.h>.
5207
52082008-10-10 Eli Zaretskii <eliz@gnu.org>
5209
5210 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5211
52122008-10-09 Eli Zaretskii <eliz@gnu.org>
5213
5214 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5215 away code.
5216
52172008-10-09 Chong Yidong <cyd@stupidchicken.com>
5218
5219 * dispnew.c (update_text_area): Avoid looping due to large glyph
5220 overhangs (bug#1070).
5221
52222008-10-09 Kenichi Handa <handa@m17n.org>
5223
5224 * fontset.c (face_for_char): If face->fontset is negative, just
5225 return ascii_face.
5226
f5385255
SM
5227 * font.c (font_delete_unmatched): Fix previous change.
5228 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5229
52302008-10-09 Martin Rudalics <rudalics@gmx.at>
5231
5232 * frame.c (Fraise_frame): On text-only terminals select frame in
5233 order to make it visible. (Bug#1061)
5234
52352008-10-08 Chong Yidong <cyd@stupidchicken.com>
5236
5237 * fontset.c (fontset_find_font): Check frame validity.
5238
52392008-10-07 Chong Yidong <cyd@stupidchicken.com>
5240
a9b555d3 5241 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5242 (xg_display_close): Allow Emacs to close all displays (bug#985).
5243
52442008-10-06 Andreas Schwab <schwab@suse.de>
5245
f5385255 5246 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5247
52482008-10-06 Chong Yidong <cyd@stupidchicken.com>
5249
f5385255 5250 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5251
a9b555d3 5252 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5253
5254 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5255 during initialization.
5256
52572008-10-04 Eli Zaretskii <eliz@gnu.org>
5258
5259 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5260 whole thing on MSDOS frames as well as on a TTY.
5261
5262 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5263 well as for TTY.
5264 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5265 well as on a TTY.
5266
5267 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5268 as well as for TTY.
5269
5270 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5271
5272 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5273 MSDOS frames as well.
5274
52752008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5276
5277 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5278 correct arguments.
b71ac3dd 5279 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5280
52812008-10-03 Glenn Morris <rgm@gnu.org>
5282
5283 * emacs.c (USAGE1): Add --daemon.
5284
52852008-10-02 Eli Zaretskii <eliz@gnu.org>
5286
5287 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5288 100, so it's in percents as advertised.
5289
52902008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5291
5292 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5293 (ns_output.current_cursor, ns_output.desired_cursor)
5294 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5295 (FRAME_NEW_CURSOR_COLOR): Remove.
5296
5297 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5298 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5299 enumeration (HOLLOW_BOX_CURSOR, etc.).
5300
5301 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5302 (draw_window_cursor): Simplify code.
f5385255
SM
5303 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5304 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5305 updates manually.
a9b555d3
JB
5306 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5307 Use core Emacs cursor types.
aac0c6e3 5308
b8ff72fa 5309 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5310
53112008-10-02 Martin Rudalics <rudalics@gmx.at>
5312
5313 * process.c (Faccept_process_output): Fix doc-string.
5314
53152008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5316
5317 * gmalloc.c (__sbrk): Also define for uClibc.
5318
5319 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5320 for uClibc.
5321
53222008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5323
5324 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5325 styles.
5326 (nsfont_open): Reenable the cache.
5327
53282008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5329
5330 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5331 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5332
53332008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5334
5335 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5336 a suspended terminal.
5337
53382008-09-30 Michael Albinus <michael.albinus@gmx.de>
5339
5340 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5341
53422008-09-30 Eli Zaretskii <eliz@gnu.org>
5343
5344 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5345
53462008-09-30 Chong Yidong <cyd@stupidchicken.com>
5347
5348 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5349 in a continued line coincides with a line beginning.
5350
53512008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5352
5353 * nsfont.m (nsfont_trait_distance): Fix bug.
5354 (nsfont_list): Return a list rather than a vector (syncs with Handa
5355 changes of 2008-05-14).
5356 (nsfont_open): Improve logging.
5357
53582008-09-29 Andreas Schwab <schwab@suse.de>
5359
5360 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5361
53622008-09-28 Martin Rudalics <rudalics@gmx.at>
5363
5364 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5365 name as char-resolve-modifiers.
5366 Reported by: Markus Triska <markus.triska@gmx.at>
5367
53682008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5369
5370 * dispnew.c (init_display): Return earlier when running as a daemon.
5371
53722008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5373
5374 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5375
53762008-09-27 Eli Zaretskii <eliz@gnu.org>
5377
5378 * composite.c (Fcomposition_get_gstring)
5379 (Fcompose_region_internal, Fcompose_string_internal)
5380 (Ffind_composition_internal): Doc fix.
5381 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5382 (syms_of_composite) <auto-composition-function>: Doc fix.
5383 (syms_of_composite) <composition-function-table>: Doc fix.
5384
53852008-09-25 Chong Yidong <cyd@stupidchicken.com>
5386
5387 * search.c (wordify): New argument for lax word-ends.
5388 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5389
53902008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5391
5392 * lisp.h (is_daemon): Declare.
5393 * dispnew.c (init_display): Do not try to initialize the terminal
5394 when running as a daemon.
5395
53962008-09-22 Chong Yidong <cyd@stupidchicken.com>
5397
5398 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5399 x_display_pixel_height.
5400
54012008-09-22 Martin Rudalics <rudalics@gmx.at>
5402
5403 * undo.c (record_point): Don't call Fundo_boundary for first
5404 change. (Bug#731)
5405
54062008-09-22 Juanma Barranquero <lekktu@gmail.com>
5407
5408 * emacs.c (Fdaemonp): Doc fix.
5409
54102008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5411
5412 * emacs.c (main): Place #ifdef in the proper place.
5413
54142008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5415
5416 * emacs.c (standard_args): Add --daemon.
5417 (main): Disconnect from the terminal when --daemon is passed.
5418 (is_daemon): New variable.
5419 (Fdaemonp): New function.
5420 (syms_of_emacs): Defsubr it.
5421
54222008-09-20 Chong Yidong <cyd@stupidchicken.com>
5423
5424 * xdisp.c (get_next_display_element): Handle string display
5425 correctly when checking for the end of a box run.
5426
54272008-09-20 Glenn Morris <rgm@gnu.org>
5428
5429 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5430 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5431 (Frename_file): Avoid copying to trash if a rename involves
5432 a delete. (Bug#964).
5433
54342008-09-20 Eli Zaretskii <eliz@gnu.org>
5435
5436 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5437 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5438 frames as well as termcap frames.
5439 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5440 get_named_tty.
5441
54422008-09-19 Eli Zaretskii <eliz@gnu.org>
5443
5444 * process.c (procfs_system_process_attributes): Fix cmdline in
5445 case /proc/PID/cmdline is empty.
5446
5447 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5448 x_display_pixel_height.
5449
54502008-09-19 Juanma Barranquero <lekktu@gmail.com>
5451
5452 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5453
5454 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5455 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5456
54572008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5458
5459 * dispextern.h (struct it): Move line_wrap away from the middle of
5460 bitfields. Move voffset in struct iterator_stack_entry after the
5461 bitfields. Move tab_width near after another short.
5462
54632008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5464
5465 * frame.h (struct frame): Move alpha from the middle of bitfields.
5466
5467 * window.h (struct window): Move frozen_window_start_p after the
5468 rest of the bitfields to reduce padding.
5469
54702008-09-18 Chong Yidong <cyd@stupidchicken.com>
5471
5472 * xterm.h (x_display_info): Remove `height' and `width' members.
5473
5474 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5475
5476 * w32term.h (w32_display_info): Remove `height', `width',
5477 `height_in', and `width_in' members.
5478
b8ff72fa
SM
5479 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5480 New functions.
aac0c6e3
MR
5481 (x_calc_absolute_position): Use them.
5482 (x_term_init): Omit removed `height' and `width' members.
5483
b8ff72fa
SM
5484 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5485 New functions.
aac0c6e3
MR
5486 (w32_read_socket, x_calc_absolute_position): Use them.
5487 (w32_initialize_display_info, w32_term_init): Omit removed members
5488 of w32_display_info.
5489
b8ff72fa
SM
5490 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5491 New functions.
5492 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5493
b8ff72fa
SM
5494 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5495 New functions.
aac0c6e3
MR
5496 (x_calc_absolute_position): Use them.
5497 (x_term_init): Omit removed `height' and `width' members.
5498
5499 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5500 (compute_tip_xy):
5501 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5502 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5503 x_display_pixel_width.
5504
55052008-09-18 Kenichi Handa <handa@m17n.org>
5506
5507 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5508 (composition_compute_stop_pos): Fix handling of static composition.
5509 (Fcomposition_get_gstring): Check FROM and TO at first.
5510
55112008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5512
46e722a9 5513 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5514 mixup (YAILOM).
5515
55162008-09-17 Chong Yidong <cyd@stupidchicken.com>
5517
5518 * indent.c (Fvertical_motion): Use position reported by iterator
5519 instead of PT for determining screen motion (bug#943).
5520
55212008-09-17 Romain Francoise <romain@orebokech.com>
5522
5523 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5524
55252008-09-17 Kenichi Handa <handa@m17n.org>
5526
5527 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5528
5529 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5530 if necessary.
5531
55322008-09-16 Kenichi Handa <handa@m17n.org>
5533
5534 * coding.c (make_conversion_work_buffer): Avoid calling
5535 Fget_buffer_create if it is not necessary.
5536
55372008-09-15 Martin Rudalics <rudalics@gmx.at>
5538
5539 * window.c (Fselect_window): Don't update window_select_count and
5540 use_time when norecord is not nil.
5541
55422008-09-14 Kenichi Handa <handa@m17n.org>
5543
5544 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5545 specpdl_ptr.
5546
55472008-09-12 Kenichi Handa <handa@m17n.org>
5548
5549 * indent.c (scan_for_column): Don't handle automatic composition
5550 if the current buffer is not associated with a window.
5551
5552 * composite.c (composition_reseat_it): If the current buffer is
5553 not associated with a window, ignore the automatic composition.
5554 (find_automatic_composition): Likewise.
5555
55562008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5557
5558 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5559 (Fgpm_mouse_stop): Use it.
5560 * termhooks.h (close_gpm): Declare.
5561 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5562 connection if Gpm_GetEvent fails.
5563
5564 * window.c (set_window_buffer): Always preserve current-buffer.
5565
55662008-09-12 Glenn Morris <rgm@gnu.org>
5567
5568 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5569
55702008-09-11 Glenn Morris <rgm@gnu.org>
5571
5572 * charset.c (charset-map-path): Doc fix.
5573
55742008-09-10 Kenichi Handa <handa@m17n.org>
5575
5576 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5577
5578 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5579 compose a grapheme cluster with the preceding base glyph.
5580
5581 * composite.c (composition_compute_stop_pos): Fix previous change.
5582 Reset cmp_it->id to -1 at first.
5583
55842008-09-10 Glenn Morris <rgm@gnu.org>
5585
5586 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5587
55882008-09-09 Chong Yidong <cyd@stupidchicken.com>
5589
5590 * keyboard.c (read_key_sequence): Reapply translation maps when
5591 switching keyboards.
5592
55932008-09-09 Kenichi Handa <handa@m17n.org>
5594
5595 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5596 characters.
5597
5598 * composite.c (FORWARD_CHAR): Fix calculation
5599 of (POSITION).pos_byte.
5600 (composition_compute_stop_pos): Limit the search of composition to
5601 at most 500 characters ahead. If we reach the limit or find a
5602 newline, set cmp_it->ch to -2 and return 0.
5603 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5604
56052008-09-08 Kenichi Handa <handa@m17n.org>
5606
5607 * indent.c (Fvertical_motion): Be sure to set
5608 it_overshoot_expected if it.cmp_it.id is non-negative.
5609
56102008-09-07 Andreas Schwab <schwab@suse.de>
5611
5612 * callproc.c (Fcall_process): Don't hold references to string data
5613 across garbage collection. Move initialisation of new_argv down
5614 to avoid compiler bug.
5615
56162008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5617
5618 * process.c (Fsystem_process_attributes): Doc fix.
5619
56202008-09-07 Chong Yidong <cyd@stupidchicken.com>
5621
5622 * callproc.c (Fcall_process): Canonicalize current directory name.
5623
5624 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5625 iterator advances to the next line if the current line ends in a
5626 continued tab.
5627
56282008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5629
5630 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5631 member to point to cmp_from.
5632
5633 * xdisp.c: Doc fix for references to gidx data member.
5634
56352008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5636
5637 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5638
56392008-09-07 Kenichi Handa <handa@m17n.org>
5640
5641 * composite.c (FORWARD_CHAR): Check STOP after
5642 incrementing (POSITION).pos.
5643
56442008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5645
5646 * process.c (Fsystem_process_attributes): Doc fix.
5647
56482008-09-06 Chong Yidong <cyd@stupidchicken.com>
5649
5650 * keyboard.c (Ftop_level): Doc fix.
5651
56522008-09-06 Eli Zaretskii <eliz@gnu.org>
5653
5654 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5655 minibuffer, don't let lower part of menu invade the echo area.
5656
5657 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5658 "char *q" to access menu text and advance through it. Revert the
5659 change that displayed ">" instead of ASCII character 0x10.
5660
56612008-09-05 Eli Zaretskii <eliz@gnu.org>
5662
5663 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5664 toggle boxes and radio buttons on MS-DOS as well.
5665
56662008-09-05 Kenichi Handa <handa@m17n.org>
5667
5668 * composite.c (autocmp_chars): Check lookback count.
5669 (composition_compute_stop_pos): Set cmp_it->lookback.
5670 (composition_reseat_it): Check lookback count.
5671 (struct position_record): New struct.
5672 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5673 (find_automatic_composition): New function.
5674 (composition_adjust_point): Use find_automatic_composition.
5675
5676 * dispextern.h (struct composition_it): New member lookback.
5677
56782008-09-02 Chong Yidong <cyd@stupidchicken.com>
5679
5680 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5681 if moving by a single line.
5682
56832008-09-02 Andreas Schwab <schwab@suse.de>
5684
5685 * xterm.c (x_delete_display): Fix merge error.
5686
5687 * fileio.c (Fexpand_file_name): Remove unused variables.
5688
56892008-09-02 Eli Zaretskii <eliz@gnu.org>
5690
5691 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5692 storage on all platforms, not just on DOS_NT.
5693
56942008-09-02 Jason Rumney <jasonr@gnu.org>
5695
b8ff72fa
SM
5696 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5697 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5698
56992008-09-01 Chong Yidong <cyd@stupidchicken.com>
5700
5701 * xfaces.c (Finternal_set_alternative_font_family_alist)
5702 (Finternal_set_alternative_font_registry_alist): Properly copy
5703 entire alist structure.
5704
57052008-09-01 Kenichi Handa <handa@m17n.org>
5706
d66c0241 5707 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5708 representative chars of the script is a vector.
d66c0241
JB
5709 (ftfont_list): Handle the case where the representative chars of
5710 the script is a vector.
aac0c6e3
MR
5711
5712 * character.c (syms_of_character): Docstring of
5713 script-representative-chars fixed.
5714
57152008-08-31 Eli Zaretskii <eliz@gnu.org>
5716
5717 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5718 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5719 the menu. Allocate larger buffer for `text', to account for
5720 possible ^C characters.
5721
57222008-08-31 Martin Rudalics <rudalics@gmx.at>
5723
5724 * xdisp.c (prepare_menu_bars): Don't call
5725 Vwindow_size_change_functions with arg Qt.
5726
57272008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5728
5729 * font.h (font_range):
5730 * fileio.c (report_file_error):
46e722a9
SM
5731 * composite.c (composition_update_it): Yet another int/Lisp_Object
5732 mixup (YAILOM).
aac0c6e3
MR
5733
57342008-08-30 Glenn Morris <rgm@gnu.org>
5735
5736 * data.c (Fmake_variable_frame_local): Doc fix.
5737
5738 * frame.c (Fmodify_frame_parameters): Doc fix.
5739
57402008-08-30 Eli Zaretskii <eliz@gnu.org>
5741
5742 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5743 needed by GetTokenInformation.
5744 (w32_system_process_attributes): Check return values of all system
5745 APIs.
5746
5747 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5748 only when the state changes.
5749 (IT_update_begin, IT_update_end): Add termscript trace.
5750
5751 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5752 clipboard is unavailable. Set dst to NULL if it doesn't point to
5753 malloc'ed data.
5754 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5755 passing random values to xfree.
5756
5757 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5758 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5759
57602008-08-29 Jason Rumney <jasonr@gnu.org>
5761
5762 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5763
57642008-08-29 Eli Zaretskii <eliz@gnu.org>
5765
5766 * composite.c (fill_gstring_body): Avoid compiler warnings.
5767
5768 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5769 LGLYPH_SET_CODE to avoid compiler warnings.
5770
2ae37cf0 5771 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5772
5773 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5774
5775 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5776 LGLYPH_SET_CODE.
5777
57782008-08-29 Kenichi Handa <handa@m17n.org>
5779
5780 * fileio.c (report_file_error): Don't downcase the first character
5781 of errstring if it is still unibyte.
5782
57832008-08-29 Kenichi Handa <handa@m17n.org>
5784
5785 These changes are to re-implement the automatic composition so
5786 that it doesn't use text properties.
5787
5788 * Makefile.in (ftfont.o): Depend on composite.h.
5789 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5790
5791 * character.h (Vunicode_category_table): Extern it.
5792
5793 * character.c (Vunicode_category_table): New variable.
5794 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5795
5796 * chartab.c (optimize_sub_char_table): Perform more greedy
5797 optimization.
5798
b8ff72fa
SM
5799 * composite.h (enum composition_method):
5800 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5801 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5802 (Vcomposition_function_table): Extern it.
5803 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5804 (composition_gstring_put_cache, composition_gstring_from_id)
5805 (composition_gstring_p, composition_gstring_width)
5806 (composition_compute_stop_pos, composition_reseat_it)
5807 (composition_update_it, composition_adjust_point): Extern them.
5808 (Fcomposition_get_gstring): EXFUN it.
5809
d66c0241 5810 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5811 (Vcomposition_function_table)
5812 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5813 (gstring_hash_table, gstring_work, gstring_work_headers):
5814 New variables.
aac0c6e3
MR
5815 (gstring_lookup_cache, composition_gstring_put_cache)
5816 (composition_gstring_from_id, composition_gstring_p)
5817 (composition_gstring_width, fill_gstring_header)
5818 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5819 (composition_reseat_it, composition_update_it)
b8ff72fa 5820 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5821 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5822 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5823 Defsubr compostion_get_gstring.
5824
5825 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5826 cmp_id.
5827 (struct glyph_string): Delete the member gidx. New members
5828 cmp_id, cmp_from, and cmp_to.
5829 (enum it_method): Delete GET_FROM_COMPOSITION.
5830 (struct composition_it): New struct.
5831 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5832 Delete c, len, cmp_id, cmp_len in u.comp.
5833
5834 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5835 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5836 (enum lglyph_indices): Likewise.
b8ff72fa 5837 (font_range): Adjust extern.
aac0c6e3
MR
5838 (font_fill_lglyph_metrics): Extern it.
5839
5840 * font.c (QCf): New variable.
5841 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5842 (font_prepare_composition): Delete this function.
5843 (font_range): Type and arguments changed.
5844 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5845 (font_fill_lglyph_metrics): New function.
b8ff72fa 5846 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5847 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5848 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5849 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5850
5851 * fontset.h (font_for_char): Extern it.
5852
5853 * fontset.c (font_for_char): New function.
5854
5855 * ftfont.c: Include composite.h.
5856 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5857 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5858
5859 * indent.c: Include composite.h and dispextern.h.
5860 (check_composition): Delete this function.
5861 (scan_for_column): Handle composition by
5862 composition_compute_stop_pos, composition_reseat_it, and
5863 composition_update_it.
5864 (compute_motion): Likewise.
5865 (Fvertical_motion): Fix checking of composition.
5866
5867 * keyboard.c (adjust_point_for_property): Check composition by
5868 composition_adjust_point.
5869
b8ff72fa 5870 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5871 struct glyph_string.
5872
b8ff72fa
SM
5873 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5874 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5875 struct glyph.
5876 (produce_composite_glyph): Likewise.
5877
b8ff72fa
SM
5878 * w32term.c (x_draw_composite_glyph_string_foreground):
5879 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5880 (x_draw_glyph_string): Likewise.
5881
5882 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5883 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5884
5885 * xdisp.c: Include font.h.
5886 (it_props): Delete the entry for Qauto_composed.
5887 (init_iterator): Initialize it->cmp_it.id to -1.
5888 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5889 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5890 (handle_auto_composed_prop): Delete it.
5891 (handle_composition_prop): Handle only static composition.
5892 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5893 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5894 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5895 (pop_it): Likewise.
5896 (get_next_element): Delete next_element_from_composition.
5897 (CHAR_COMPOSED_P): New macro.
5898 (get_next_display_element): For automatic composition, get a face
5899 from the font in the glyph-string.
5900 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5901 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5902 (next_element_from_string): Check if the character at the current
5903 position is composed by CHAR_COMPOSED_P.
5904 (next_element_from_buffer): Likewise.
d66c0241
JB
5905 (next_element_from_composition): Adjust for the change of struct it.
5906 Update it->cmp_it.
b8ff72fa
SM
5907 (dump_glyph): Adjust for the change of struct glyph.
5908 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5909 it and struct glyph. Don't handle automatic composition here.
5910 (fill_gstring_glyph_string): New function.
5911 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5912 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5913 (BUILD_GSTRING_GLYPH_STRING): New macro.
5914 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5915 automatic composition.
b8ff72fa 5916 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5917 struct glyph.
b8ff72fa 5918 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5919
b8ff72fa 5920 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5921 the change of struct glyph_string.
5922 (x_draw_glyph_string): Likewise.
5923
59242008-08-29 Glenn Morris <rgm@gnu.org>
5925
5926 * buffer.c (word-wrap): Doc fix.
5927 * xdisp.c (truncate-partial-width-windows): Doc fix.
5928 Increase default to 50.
5929
59302008-08-29 Chong Yidong <cyd@stupidchicken.com>
5931
5932 * xdisp.c (update_tool_bar_unwind): New function.
5933 (update_tool_bar): Temporarily set selected frame before building
5934 tool-bar items.
5935
59362008-08-28 Michael Albinus <michael.albinus@gmx.de>
5937
5938 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5939 snprintf, respectively.
5940 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5941
59422008-08-28 Chong Yidong <cyd@stupidchicken.com>
5943
5944 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5945 LDFLAGS to GNUstep CC invocation.
5946
59472008-08-27 Chong Yidong <cyd@stupidchicken.com>
5948
5949 * indent.c (Fvertical_motion): Revert last change. Handle the
5950 general case where we are moving forward, and PT spans multiple
5951 screen lines.
5952
5953 * eval.c (find_handler_clause): Temporarily increase
5954 max-lisp-eval-depth while printing the backtrace buffer, to
5955 guarantee that help-mode code can run.
5956
59572008-08-27 Eli Zaretskii <eliz@gnu.org>
5958
5959 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5960 colors under -rv.
5961 (IT_set_frame_parameters): Don't swap foreground and background
5962 colors if `(reverse . t)' is present in the frame properties.
5963 (internal_terminal_init): Call init_frame_faces only for the
5964 initial frame.
5965
59662008-08-27 Andreas Schwab <schwab@suse.de>
5967
5968 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5969
59702008-08-27 Andreas Schwab <schwab@suse.de>
5971
5972 * search.c (search_buffer): Set char_base to zero only at the end.
5973
59742008-08-27 Kenichi Handa <handa@m17n.org>
5975
b8ff72fa 5976 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5977
59782008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5979
5980 * xterm.c (x_term_init): Temporarily hide the partially
5981 initialized terminal while calling vendor-specific-keysyms.
5982
59832008-08-26 Eli Zaretskii <eliz@gnu.org>
5984
5985 * msdos.c (internal_terminal_init): Most initializations done only
5986 once, especially initial_screen_colors[] and termscript open.
5987
59882008-08-26 Chong Yidong <cyd@stupidchicken.com>
5989
5990 * eval.c (Fcondition_case): Doc fix.
5991
5992 * widgetprv.h (EmacsFramePart): Change font member to the new font
5993 struct.
5994
5995 * widget.c: Include character.h and font.h for XSETFONT.
5996 (setup_frame_gcs): Compute X font id from font struct, just once.
5997
59982008-08-26 Eli Zaretskii <eliz@gnu.org>
5999
6000 * term.c (get_named_tty): Fix last change.
6001
60022008-08-26 Chong Yidong <cyd@stupidchicken.com>
6003
6004 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6005 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6006
60072008-08-25 Eli Zaretskii <eliz@gnu.org>
6008
6009 * frame.c (do_switch_frame): Mark previously displayed frame as
6010 obscured for FRAME_MSDOS_P frames as well.
6011
60122008-08-24 Eli Zaretskii <eliz@gnu.org>
6013
6014 * frame.c (make_terminal_frame): Initialize f->terminal,
6015 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6016 Set the top frame to newly created frame.
6017 (Fmake_terminal_frame): Reuse the_only_display_info.
6018
6019 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6020 estimating available memory.
6021
b97439ce 60222008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6023
6024 * nsterm.m (ns_draw_window_cursor): Don't call
6025 NSDisableScreenUpdates and NSEnableScreenUpdates on
6026 non-NS_IMPL_COCOA systems.
6027
60282008-08-23 Andreas Schwab <schwab@suse.de>
6029
6030 * process.c (procfs_system_process_attributes): Fix use of
6031 uninitialized variables.
6032
60332008-08-23 Eli Zaretskii <eliz@gnu.org>
6034
6035 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6036
6037 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6038 calling tty-set-up-initial-frame-faces.
6039
b8ff72fa
SM
6040 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6041 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6042
6043 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6044 addition to output_termcap.
6045
6046 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6047
6048 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6049 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6050 highlight.
6051
6052 * process.c [!subprocesses]: Define QCname.
6053 (syms_of_process): Intern and staticpro it.
6054
6055 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6056 Adjust for changes in encoding/decoding routines.
6057 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6058 encode_coding and decode_coding.
6059
b8ff72fa 6060 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6061
6062 * dosfns.c: Include frame.h before termhooks.h.
6063 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6064 variable termscript.
6065
6066 * s/msdos.h (USER_FULL_NAME): Define.
6067 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6068
6069 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6070 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6071 pw->pw_gecos.
6072
6073 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6074 SELECTED_FRAME as additional (1st) argument.
6075 (tty_read_avail_input): Handle output_msdos_raw in
6076 addition to output_termcap.
6077
6078 * msdos.c: Include frame.h before termhooks.h.
6079 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6080 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6081 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6082 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6083 (IT_set_terminal_modes, IT_reset_terminal_modes)
6084 (IT_set_frame_parameters): Use tty->termscript instead of a global
6085 variable termscript.
6086 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6087 global variable terminal_coding. Don't refer to
6088 Vnonascii_translation_table.
6089 (internal_terminal_init): Set Vwindow_system in current_kboard.
6090 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6091 Announce date and time of session start, if termscript is open.
6092 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6093 term.c:init_tty). Open termscript only of not already open.
6094 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6095 here instead of dos_ttraw. Don't initialize display if this is an
6096 initial tty. Don't set FRAME_FONT.
6097 (Vwindow_system_version): Bump to 23.
6098 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6099 is available, set up mouse_position_hook.
6100 (dos_ttraw, IT_set_terminal_modes): If called with initial
6101 terminal, do nothing.
6102 (IT_set_frame_parameters): Handle the Qtty_type frame
6103 parameter by calling internal_terminal_init.
6104 (dos_set_window_size, show_mouse_face)
6105 (clear_mouse_face, IT_note_mode_line_highlight)
6106 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6107 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6108 (initialize_msdos_display): New function.
6109 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6110 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6111 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6112 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6113 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6114 (request_sigio, unrequest_sigio): Don't define, now defined on
6115 sysdep.c.
6116 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6117
6118 * term.c [MSDOS]: Include msdos.h.
6119 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6120 conditional to DOS_NT. Allow only one call to this function in a
6121 session. Don't allocate a new struct tty_display_info; instead,
6122 reuse the_only_display_info. Call get_tty_size to get screen
6123 dimensions. Call init_baud_rate to set bad_rate.
6124 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6125 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6126 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6127 (get_tty_terminal, get_named_tty, Ftty_type)
6128 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6129 output_termcap.
b8ff72fa
SM
6130 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6131 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6132 only when subprocesses are supported.
aac0c6e3
MR
6133
6134 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6135 f->output_data.x.
6136 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6137 terminal devices.
6138
5582fbc7 6139 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6140 x_output.
6141 (FRAME_FONT): Use output_data.tty.
6142 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6143 (struct x_display_info): Rename from display_info. Update all users in
6144 msdos.c.
aac0c6e3 6145 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6146 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6147 (dos_ttraw): Update prototype.
6148
6149 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6150 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6151
61522008-08-23 Jason Rumney <jasonr@gnu.org>
6153
6154 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6155 (fn_TIFFSetDirectory): New library function used.
6156 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6157 (tiff_load): Use :index to select among multiple images. Set count
6158 property when multiple images exist.
6159 (gif_format): Use :index, not :image.
6160
61612008-08-23 Chong Yidong <cyd@stupidchicken.com>
6162
6163 * xdisp.c (try_scrolling): Check INT_MAX instead of
6164 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6165 to obtain INT_MAX.
6166
61672008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6168
6169 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6170
61712008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6172
6173 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6174 GNUstep library location.
6175
61762008-08-21 Chong Yidong <cyd@stupidchicken.com>
6177
6178 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6179 before using it.
6180
6181 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6182
61832008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6184
6185 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6186 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6187 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6188 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6189 (EmacsApp-cursor_blink_handler): Remove declaration.
6190 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6191 match 01 Feb 2008 changes in xterm.c.
6192 (ns_read_socket): Add cast to avoid warning.
6193 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6194 GNUstep.
6195
61962008-08-20 Chong Yidong <cyd@stupidchicken.com>
6197
6198 * xselect.c (x_get_foreign_selection): Return nil if desired
6199 selection could not be obtained, instead of signalling an error.
6200
62012008-08-20 David Reitter <david.reitter@gmail.com>
6202
6203 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6204 * nsterm.m: Remove ns-specific code for cursor blinking.
6205 (ns_draw_window_cursor): Clear cursor properly rather than
6206 redrawing the area. Respect width of bar cursors.
6207 These changes enable the use of generic blink-cursor-mode and
6208 generic cursor types in NS and support smooth cursor movements (do
6209 not blink off after command).
6210 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6211 Nextstep, too.
6212
62132008-08-19 Kenichi Handa <handa@m17n.org>
6214
6215 * font.c (Vfont_log_deferred): New variable.
6216 (font_add_log): Check Vfont_log_deferred.
6217 (font_deferred_log): New function.
6218
6219 * font.h (font_deferred_log): Extern it.
6220
6221 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6222 for sorting.
6223 (face_for_char): Use deferred log.
6224
62252008-08-18 Kenichi Handa <handa@m17n.org>
6226
6227 * fontset.c (face_for_char): Add font log.
6228
6229 * font.c (font_add_log): Add the font properties :script, :lang,
6230 and :otf in the log.
6231
62322008-08-17 Chong Yidong <cyd@stupidchicken.com>
6233
6234 * xdisp.c: Remove dead code.
6235 (handle_invisible_prop, next_overlay_string): Defer call to
6236 setup_for_ellipsis.
6237 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6238
62392008-08-15 Chong Yidong <cyd@stupidchicken.com>
6240
6241 * xfaces.c (lookup_derived_face): Properly handle possible zero
6242 return value of get_lface_attributes.
6243 (merge_faces): Don't tell lookup_derived_face to signal an error
6244 if face is not found.
6245
6246 * dired.c (Fdirectory_files): Doc fix.
6247
6248 * process.c (make_process): Initialize kill_without_query struct
6249 member.
6250
62512008-08-15 Eli Zaretskii <eliz@gnu.org>
6252
6253 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6254 Alternative calculation of totphys for Visual Studio 6.
6255
6256 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6257
6258 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6259 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6260 All users changed.
6261 (stat): Only root directory passed to GetDriveType. Allow RAM
6262 disk as well as local fixed disk when w32-get-true-file-attributes
6263 is set to `local'.
6264 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6265 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6266 (w32_cached_id, w32_add_to_cache): New functions.
6267 (get_name_and_id): Look account names in the cache before calling
6268 lookup_account_sid.
6269 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6270 New initialization flags.
6271 (globals_of_w32): Initialize them to zero.
6272 (w32_system_process_attributes): Use w32_cached_id and
6273 w32_add_to_cache.
6274
62752008-08-14 Lawrence Mitchell <wence@gmx.li>
6276
6277 * lread.c (Fread_char, Fread_char_exclusive): If no character
6278 event is read before timeout is reached, return nil, rather than
6279 converting to a number.
6280
62812008-08-14 Chong Yidong <cyd@stupidchicken.com>
6282
6283 * fns.c (use_dialog_box): Doc fix.
6284
6285 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6286 on OS X.
6287
62882008-08-13 Chong Yidong <cyd@stupidchicken.com>
6289
6290 * frame.c (Qns_parse_geometry): New var.
6291 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6292
62932008-08-11 Chong Yidong <cyd@stupidchicken.com>
6294
6295 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6296 space character in calculating tabs.
6297
62982008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6299
6300 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6301
63022008-08-10 Glenn Morris <rgm@gnu.org>
6303
6304 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6305 silence gcc "limited range of data type" warnings in some
6306 make_fixnum_or_float calls.
6307
63082008-08-09 Eli Zaretskii <eliz@gnu.org>
6309
6310 * w32.c (w32_system_process_attributes): If the process does not
6311 exist, return nil.
6312
6313 * w32.c: Include thelp32.h, psapi.h and coding.h.
6314 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6315 declarations.
6316 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6317 (Process32Next_Proc): New typedefs.
6318 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6319 (g_b_init_process32_next, g_b_init_open_thread_token)
6320 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6321 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6322 (g_b_init_get_process_working_set_size)
6323 (g_b_init_global_memory_status_ex): New static variables.
6324 (globals_of_w32): Initialize them.
6325 (create_toolhelp32_snapshot, process32_first, process32_next)
6326 (open_thread_token, impersonate_self, revert_to_self)
6327 (get_process_memory_info, get_process_working_set_size)
6328 (global_memory_status, global_memory_status_ex): New wrapper
6329 functions.
6330 (w32_list_system_processes, w32_system_process_attributes)
6331 (enable_privilege, restore_privilege, ltime, process_times):
6332 New functions.
6333 (convert_time_raw): New function.
6334 (convert_time): Remove conversion of FILETIME into time in 100
6335 nsec units, call convert_time_raw instead.
6336
6337 * process.h (w32_list_system_processes, w32_system_process_attributes):
6338 Add prototypes.
6339 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6340 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6341 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6342 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6343
6344 * process.c (Fsystem_process_attributes): Doc fix.
6345
63462008-08-08 Chong Yidong <cyd@stupidchicken.com>
6347
6348 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6349 a continued multi-char glyph; if so, advance to the actual glyph.
6350
63512008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6352
6353 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6354
6355 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6356 (.m.o): Use it.
6357 * config.in: Regenerate.
6358
63592008-08-07 Chong Yidong <cyd@stupidchicken.com>
6360
6361 * xdisp.c (redisplay_window): Revert last change.
6362 (try_window): Check bottom scroll margin too.
6363
63642008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6365
6366 * config.in: Regenerate.
6367
6368 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6369 -list-load-path-shadows'.
6370 (nsgui.h): Reduce number of things depending on it.
6371
63722008-08-06 Chong Yidong <cyd@stupidchicken.com>
6373
6374 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6375 instead of window-end which does the wrong thing at eob.
6376 (try_cursor_movement): Minor optimization.
6377 (redisplay_window): If scroll margin is defined, don't assume
6378 window doesn't need scrolling.
6379
63802008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6381
6382 * config.in: Regenerate.
6383
6384 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6385 (mostlyclean): Don't delete *.d under NS.
6386
6387 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6388
63892008-08-06 Kenichi Handa <handa@m17n.org>
6390
6391 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6392
63932008-08-06 Andreas Schwab <schwab@suse.de>
6394
6395 * config.in: Regenerate.
6396
63972008-08-05 Chong Yidong <cyd@stupidchicken.com>
6398
6399 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6400 forcing a window start.
6401
6402 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6403 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6404
64052008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6406
6407 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6408 argument.
6409
64102008-08-05 Juanma Barranquero <lekktu@gmail.com>
6411
6412 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6413 <scroll-down-aggressively, before-change-functions>:
6414 <after-change-functions>: Reflow docstrings.
6415
64162008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6417 Ken Raeburn <raeburn@gnu.org>
6418
6419 Dock menu customization, based on a patch by Ken Raeburn, plus some
6420 other fixes.
6421 * nsmenu.m (dockMenu): New variable.
6422 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6423
6424 * nsterm.h (dockMenu): Declare.
6425
6426 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6427 (ns_term_init): Initialize dockMenu.
6428 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6429 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6430 left.
6431
6432 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6433
64342008-08-04 Chong Yidong <cyd@stupidchicken.com>
6435
6436 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6437
6438 * config.in: Regenerate.
6439
64402008-08-04 Seiji Zenitani <zenitani@mac.com>
6441
6442 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6443
64442008-08-04 Chong Yidong <cyd@stupidchicken.com>
6445
6446 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6447
64482008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6449
6450 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6451
6452 * keyboard.h: Comment an #endif.
6453
6454 * lisp.h (have_menus_p): Adjust comment.
6455
6456 * menu.c (find_and_return_menu_selection): Fix comparison with
6457 client_data.
6458
6459 * nsmenu.m (popup_activated_flag): New variable.
6460 (popup_activated): New function.
6461 (menu-or-popup-active-p): New exported lisp definition.
6462 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6463 when popup done.
6464 (ns_popup_dialog): Set popup_activated_flag.
6465
6466 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6467 version for GNUstep (handled by conditional typedef in nsterm.m).
6468 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6469 in rgb.txt).
6470
6471 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6472
6473 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6474
6475 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6476
6477 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6478 shortcircuit if popup_activated like GTK and X toolkit.
6479
6480 * m/inter386.h: Change DARWIN to DARWIN_OS.
6481
6482 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6483 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6484 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6485 comment on NO_SOCK_SIGIO.
6486
64872008-08-03 Chong Yidong <cyd@stupidchicken.com>
6488
6489 * nsterm.m (windowDidResize): Remove stopModal call.
6490
64912008-08-03 Andreas Schwab <schwab@suse.de>
6492
6493 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6494 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6495
64962008-08-02 Chong Yidong <cyd@stupidchicken.com>
6497
6498 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6499 Don't use uninitialized pointer variable when using getrlimit.
6500
65012008-08-02 Jason Rumney <jasonr@gnu.org>
6502
6503 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6504
65052008-08-02 Eli Zaretskii <eliz@gnu.org>
6506
6507 * alloc.c (NSTATICS): Bump to 0x640.
6508
6509 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6510
6511 * lisp.h: Add prototype for directory_files_internal.
6512
6513 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6514 New functions.
6515 (syms_of_process): Defsubr them. Add initializations for various
6516 Q* symbols used in procfs_system_process_attributes.
6517 (procfs_list_system_processes, procfs_system_process_attributes)
6518 [HAVE_PROCFS]: New functions.
6519 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6520 (procfs_get_total_memory): New functions.
6521
65222008-08-01 Juanma Barranquero <lekktu@gmail.com>
6523
6524 * xfaces.c (Fx_load_color_file): Fix previous change;
6525 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6526
65272008-08-01 Michael Albinus <michael.albinus@gmx.de>
6528
6529 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6530
65312008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6532
6533 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6534
65352008-08-01 Chong Yidong <cyd@stupidchicken.com>
6536
6537 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6538
6539 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6540 define NSApplicationDelegateReplySuccess.
6541 (EmacsView -converstationIdentifier): Use long instead of
6542 NSInteger for GNUstep, since it doesn't have NSInteger.
6543
6544 * xmenu.c: Revert last change.
6545
6546 * keyboard.h: Fix last change.
6547
65482008-08-01 Juanma Barranquero <lekktu@gmail.com>
6549
6550 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6551 on Windows.
6552
65532008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6554
6555 Warning clearing and clean-up in NS port.
6556 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6557 Add prototypes.
6558 * nsgui.h (FACE_DEFAULT): Remove, unused.
6559 (XGCValues): Change colors to unsigned long.
6560 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6561 nsterm.m.
6562 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6563 (ns_list_fonts): Remove, unused.
6564 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6565 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6566 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6567 (nsfont_draw): Compare face colors to 0, not nil.
6568 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6569 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6570 (-addSubmenuWithTitle:): Use NSMenuItem class.
6571 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6572 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6573 (ns_clip_to_row): Make gc arg a BOOL.
6574 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6575 ns_clip_to_row() call.
6576 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6577 used). Cast FRAME_FONT assignments.
6578 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6579 (ns_string_to_lispmod): Change arg to const char.
6580 (ns_term_init): Use NSMenuItem class.
6581 (EmacsApp -openFile:): Move to different section of file.
6582 (EmacsApp -application:openFiles:): Don't return a value, call
6583 -replyToOpenOrPrint:.
6584 (EmacsView -keyDown:): Fix up cast.
6585 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6586 (EmacsView -menuDown:): Cast tag in call to
6587 find_and_call_menu_selection().
6588 (ns_list_fonts): Remove, unused.
6589 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6590 (ns_fontname_to_xlfd): Make static.
6591 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6592 Remove prototypes (now in keyboard.h).
6593 (next_menubar_widget_id): Remove, unused.
6594 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6595 Remove prototypes (now in keyboard.h).
6596 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6597
65982008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6599
6600 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6601 (floatfns.o): Depend on syssignal.h.
6602 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6603
6604 * systty.h: Fix previous change that removed BSD_TERMIOS.
6605 Add comments to #ifdefs.
6606
66072008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6608
6609 * w32fns.c (w32-load-color-file): Remove.
6610 (x-open-connection): Use renamed Fx_load_color_file.
6611 * xfaces.c (x-load-color-file): Add.
6612 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6613 Emacs.clr.
6614 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6615
66162008-07-31 Michael Albinus <michael.albinus@gmx.de>
6617
6618 * dbusbind.c (Fdbus_call_method_asynchronously)
6619 (Fdbus_method_error_internal): New defuns.
6620 (xd_read_message): Handle also reply messages.
6621 (Vdbus_registered_functions_table): Extend docstring.
6622
66232008-07-31 Juanma Barranquero <lekktu@gmail.com>
6624
6625 * keyboard.c (gobble_input): Fix previous change.
6626
66272008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6628
6629 * bitmaps/README:
6630 * xfns.c:
6631 * termcap.c:
6632 * term.c:
6633 * syswait.h:
6634 * systty.h:
6635 * systime.h:
6636 * syssignal.h:
6637 * sysdep.c:
6638 * process.h:
6639 * process.c:
6640 * print.c:
6641 * ndir.h:
6642 * lread.c:
6643 * keyboard.c:
6644 * getpagesize.h:
6645 * floatfns.c:
6646 * fileio.c:
6647 * emacs.c:
6648 * doc.c:
6649 * dispnew.c:
6650 * dired.c:
6651 * data.c:
6652 * callproc.c:
6653 * buffer.c:
6654 * README:
6655 * Makefile.in:
6656 * s/template.h:
6657 * s/msdos.h:
6658 * m/vax.h: Remove VMS support.
6659 * s/vms.h:
6660 * vlimit.h:
6661 * uaf.h:
6662 * temacs.opt:
6663 * param.h:
6664 * ioctl.h: Remove file.
6665
66662008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6667
6668 * s/ms-w32.h (MULTI_KBOARD): Remove.
6669 * xterm.c:
6670 * xselect.c:
6671 * xfns.c:
6672 * window.c:
6673 * w32term.c:
6674 * w32fns.c:
6675 * terminal.c:
6676 * termhooks.h:
6677 * term.c:
6678 * sysdep.c:
6679 * keyboard.h:
6680 * keyboard.c:
6681 * frame.h:
6682 * frame.c:
6683 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6684 * config.in: Regenerate.
6685
66862008-07-30 Jason Rumney <jasonr@gnu.org>
6687
6688 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6689
6690 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6691 (w32font_open_internal): Get unicode version of textmetrics.
6692 Don't enable or disable glyph indices here.
6693 (w32font_open): Disable use of glyph indices.
6694
6695 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6696
66972008-07-30 Chong Yidong <cyd@stupidchicken.com>
6698
6699 * minibuf.c (Vread_buffer_function): Doc fix.
6700
67012008-07-30 John Paul Wallington <jpw@pobox.com>
6702
6703 * minibuf.c (read_buffer_completion_ignore_case): New var.
6704 (Fread_buffer): Use it.
6705
67062008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6707
6708 * systty.h (sensemode): Remove empty #if. Remove reference to
6709 BSD_TERMIOS, unused.
6710
6711 * sysdep.c: Remove reference to DGUX.
6712 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6713
6714 * config.in: Regenerate.
6715
67162008-07-30 Jason Rumney <jasonr@gnu.org>
6717
6718 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6719
67202008-07-29 Jason Rumney <jasonr@gnu.org>
6721
6722 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6723 is populated.
6724 (uniscribe_encode_char): Always use uniscribe.
6725 Avoid using context if cache is populated.
6726
67272008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6728
6729 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6730 open menu.
6731
6732 * gtkutil.c (menu_nav_ended): Remove.
6733 (create_menus): Remove signal connect for menu_nav_ended.
6734
67352008-07-28 Chong Yidong <cyd@stupidchicken.com>
6736
6737 * xdisp.c (redisplay_window): Check return value of
6738 compute_window_start_on_continuation_line before forcing a window
6739 start.
6740
67412008-07-28 Jason Rumney <jasonr@gnu.org>
6742
6743 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6744
6745 * w32term.c (w32_enable_unicode_output, cleartype_active):
6746 Remove obsolete display options.
6747 (x_draw_glyph_string_background): Don't use old cleartype_active
6748 workaround.
6749 (w32_initialize): Remove cleartype_active initialization.
6750 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6751
67522008-07-28 Andreas Schwab <schwab@suse.de>
6753
6754 * lisp.h (init_weak_hash_tables, syms_of_font)
6755 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6756 (remove_hash_entry): Don't declare.
6757 * eval.c (maybe_call_debugger): Make static and move before use.
6758 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6759 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6760 * xterm.h (x_set_frame_alpha): Declare.
6761
67622008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6763
6764 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6765 (create_menus): Connect selection-done to menu_nav_ended.
6766
67672008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6768
6769 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6770 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6771 parameter with read of 'alpha' one.
6772 (Qns_frame_parameter): Remove.
5582fbc7 6773 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6774 (next-selection-coding-system, Vselection_coding_system)
6775 (Vnext_selection_coding_system): Drop.
6776
67772008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6778
6779 * nsfns.m (do-applescript, do_applescript): Rename to
6780 ns-do-applescript, ns_do_applescript, and move within file.
6781
67822008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6783
6784 Remove support for Mac Carbon.
6785 * mactoolbox.c:
6786 * macterm.h:
6787 * macterm.c:
6788 * macselect.c:
6789 * macmenu.c:
6790 * macgui.h:
6791 * macfns.c:
6792 * mac.c: Remove file.
6793 * s/darwin.h:
6794 * m/intel386.h:
6795 * xfaces.c:
6796 * xdisp.c:
6797 * window.c:
6798 * tparam.c:
6799 * termhooks.h:
6800 * termcap.c:
6801 * term.c:
6802 * syssignal.h:
6803 * sysselect.h:
6804 * sysdep.c:
6805 * process.c:
6806 * lread.c:
6807 * lisp.h:
6808 * keyboard.c:
6809 * image.c:
6810 * fringe.c:
6811 * frame.h:
6812 * frame.c:
6813 * fontset.c:
6814 * font.h:
6815 * font.c:
6816 * fns.c:
6817 * fileio.c:
6818 * emacs.c:
6819 * dispnew.c:
6820 * dispextern.h:
6821 * config.in:
6822 * atimer.c:
2ae37cf0 6823 * Makefile.in: Remove code for Carbon.
aac0c6e3 6824
f0131492 68252008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6826
6827 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6828
68292008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6830
6831 * macterm.h (kCGBitmapByteOrder32Host): New define for
6832 non-universal SDKs.
6833
6834 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6835 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6836
6837 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6838 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6839
68402008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6841
6842 * w32inevt.c: Include dispextern.h.
6843
68442008-07-26 Andreas Schwab <schwab@suse.de>
6845
6846 * print.c (print_object): Fix off-by-one in last change.
6847
68482008-07-25 Juanma Barranquero <lekktu@gmail.com>
6849
6850 * term.c (syms_of_term): Don't initialize default_orig_pair,
6851 default_set_foreground and default_set_background on Windows.
6852
68532008-07-25 Jason Rumney <jasonr@gnu.org>
6854
6855 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6856 ScriptItemize. Clean up return value checking. Remove unused
6857 variables.
6858 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6859 shaping engine.
6860
6861 * w32font.c (w32font_has_char): Handle the case where we can't
6862 determine the script for a character.
6863
68642008-07-25 Chong Yidong <cyd@stupidchicken.com>
6865
6866 * term.c (syms_of_term): Initialize default_orig_pair,
6867 default_set_foreground, and default_set_background.
6868
6869 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6870 clash (bug#86).
6871 (getloadavg): Callers changed.
6872
6873 * image.c (svg_load_image): Fix last change.
6874 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6875 image size is valid. Use g_object_unref instead of deprecated
6876 rsvg_handle_free to free rsvg handle.
6877 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6878
68792008-07-25 Jason Rumney <jasonr@gnu.org>
6880
6881 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6882 surrogates before looking up glyph index.
6883 (w32font_text_extents): Encode as surrogates if falling back to
6884 functions that need UTF-16 wide chars.
6885
6886 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6887 BMP as surrogates before looking up glyph index.
6888
68892008-07-25 Chong Yidong <cyd@stupidchicken.com>
6890
6891 * image.c (svg_load_image): Check for failure in return value of
6892 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6893
68942008-07-25 Jason Rumney <jasonr@gnu.org>
6895
6896 * w32font.c (Fx_select_font): Reverse sense of second arg.
6897
68982008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6899
6900 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6901 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6902
6903 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6904 (PURESIZE): Use it.
6905
69062008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6907
6908 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6909 * m/alpha.h (TEXT_END):
6910 * m/ibmrs6000.h (TEXT_END):
6911 * m/macppc.h (TEXT_END):
6912 * s/darwin.h (TEXT_END):
6913 * s/msdos.h (TEXT_END): Remove, unused.
6914 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6915 * s/cygwin.h: Remove comment.
6916
6917 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6918 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6919 * m/intel386.h (DOT_GLOBAL_START):
6920 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6921 (USG): Remove, file not used on USG platforms.
6922
6923 * Makefile.in (HAVE_X11): Remove empty #else.
6924
69252008-07-24 Andreas Schwab <schwab@suse.de>
6926
6927 * fileio.c (Finsert_file_contents): Properly adjust undo list
6928 after format conversion.
6929
69302008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6931
6932 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6933 (menu_nav_ended): Remove.
6934 (create_menus): Remove signal connect for menu_nav_ended.
6935 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6936 create_menus.
6937 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6938
69392008-07-23 Jason Rumney <jasonr@gnu.org>
6940
6941 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6942 with opened font.
6943 (w32font_open): Set font type to gdi.
6944
6945 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6946
69472008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6948
6949 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6950 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6951 defines it.
6952 * unexec.c (ADDR_CORRECT): Define unconditionally.
6953
6954 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6955
6956 * unexec.c: Remove code depending on !COFF and USG, the file is
6957 not used for such systems.
6958
6959 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6960 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6961 (LD_SWITCH_SYSTEM_1): Remove, update users.
6962
6963 * s/darwin.h (DATA_END):
6964 * m/intel386.h (DATA_END):
6965 * m/ibmrs6000.h (DATA_END):
6966 * m/alpha.h (DATA_END): Remove, unused.
6967
6968 * config.in: Regenerate.
6969 * s/ms-w32.h (subprocesses): Define unconditionally.
6970 * s/template.h (subprocesses): Update comment.
6971 * s/vms.h (subprocesses):
6972 * s/usg5-4.h (subprocesses):
6973 * s/hpux10-20.h (subprocesses):
6974 * s/gnu-linux.h (subprocesses):
6975 * s/cygwin.h (subprocesses):
6976 * s/bsd-common.h (subprocesses):
6977 * s/aix4-2.h (subprocesses):
6978 * s/darwin.h (subprocesses): Do not define, defined by default now.
6979
6980 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6981 Remove all references.
6982 (temacs): Add GNUstep specific ld flags.
6983
6984 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6985 similarly to what X does.
6986
69872008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6988
6989 * nsfns.m (x-list-fonts): Remove.
6990 (syms_of_nsfns): Drop the x-list-fonts declaration.
6991 * nsterm.m: Get rid of remaining "//" comments.
6992
69932008-07-22 Chong Yidong <cyd@stupidchicken.com>
6994
6995 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6996
6997 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6998 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6999 (Fns_own_selection_internal, Fx_disown_selection_internal)
7000 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7001
7002 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7003 ... */' style of docstrings. Doc fixes.
7004
70052008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7006
7007 * terminfo.c (UP, BC, PC): Undo previous change.
7008
7009 * nsfns.m: Rename ns prefixed functions/variables to the
7010 corresponding x versions. Update references.
7011
70122008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7013
7014 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7015
70162008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7017
7018 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7019 Remove forwarding functions.
7020 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7021 non-static.
7022 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7023 non-static.
7024 (ns_frame_parm_handlers): Use the new names.
7025 (syms_of_nsfns): Move to the end of file.
7026
7027 * nsterm.m (syms_of_nsterm): Move to the end of file.
7028
7029 * dispnew.c (init_display): Remove code for X10.
7030
70312008-07-22 Jason Rumney <jasonr@gnu.org>
7032
7033 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7034 bare drive.
7035
70362008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7037
7038 * nsterm.m (syms_of_nsterm): Remove debugging println.
7039
70402008-07-22 David Reitter <david.reitter@gmail.com>
7041
7042 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7043 Carbon implementation of the same functionality: execute arbitrary
7044 AppleScript code.
7045
70462008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7047
7048 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7049 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7050 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7051 (Fx_display_mm_height, Fx_display_mm_width)
7052 (Fx_display_backing_store, Fx_display_visual_class)
7053 (Fx_display_save_under, Fx_open_connection)
7054 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7055 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7056 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7057 (Fx_display_pixel_width, Fx_display_pixel_height)
7058 (Fx_display_usable_bounds, Fx_display_planes)
7059 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7060 ... */' style of docstrings.
7061
70622008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7063
7064 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7065 on this platform.
7066 (mips):
7067 * m/iris4d.h (mips): Do not define.
7068 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7069
7070 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7071
7072 * image.c:
7073 * nsfns.m:
7074 * nsselect.m:
7075 * nsterm.h:
7076 * nsterm.m: Rename ns prefixed functions/variables to the
7077 corresponding x versions. Update references.
7078
7079 * m/ibms390x.h (NO_REMAP): Do not undefine.
7080
7081 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7082
70832008-07-21 Chong Yidong <cyd@stupidchicken.com>
7084
7085 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7086 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7087 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7088 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7089 (Fns_display_mm_height, Fns_display_mm_width)
7090 (Fns_display_backing_store, Fns_display_visual_class)
7091 (Fns_display_save_under, Fns_open_connection)
7092 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7093 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7094 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7095 (Fns_display_pixel_width, Fns_display_pixel_height)
7096 (Fns_display_usable_bounds, Fx_display_planes)
7097 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7098
70992008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7100
7101 * print.c (print_object): Check print_depth before searching for
7102 circularities.
7103
71042008-07-21 Michael Albinus <michael.albinus@gmx.de>
7105
7106 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7107 only sprintf.
7108
71092008-07-21 Kenichi Handa <handa@m17n.org>
7110
7111 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7112
71132008-07-20 Andreas Schwab <schwab@suse.de>
7114
7115 * syntax.c (find_start_pos, find_start_value)
7116 (find_start_value_byte, find_start_begv, find_defun_start)
7117 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7118
71192008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7120
7121 * s/sol2-3.h: Insert contents of s/sol2.h.
7122 (LD_SWITCH_SYSTEM): Remove redundant definition.
7123 * s/sol2.h: Remove, unused.
7124
71252008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7126
7127 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7128
71292008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7130
7131 * Makefile.in (ns_appdir): Fix typo in find command.
7132
71332008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7134
7135 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7136
7137 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7138 added not supported anymore.
7139
7140 * s/usg5-4-2.h (LIBS_SYSTEM):
7141 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7142
7143 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7144 * s/lynxos.h (GETPGRP_NO_ARG):
7145 * s/hpux10-20.h (NO_SIOCTL_H):
7146 * s/gnu.h (GETPGRP_NO_ARG):
7147 * s/gnu-linux.h (NO_SIOCTL_H):
7148 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7149 * s/cygwin.h (GETPGRP_NO_ARG):
7150 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7151 (C_DEBUG_SWITCH): Remove duplicate definition.
7152
7153 * m/ibms390.h: Remove boilerplate comments.
7154
7155 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7156
7157 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7158 (wait_reading_process_output): Remove code for SunOS, platform not
7159 supported anymore. Use SOLARIS2 instead of sun.
7160
71612008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7162
7163 * font.c (font_open_by_name): Under NS, default lface height to zero.
7164 (font_open_for_lface): Under NS, set size based on frame fontsize.
7165 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7166 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7167
71682008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7169
7170 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7171 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7172 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7173 YES/NO.
7174 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7175 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7176 * Makefile.in (clean): Clear out build destination dir.
7177
71782008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7179
7180 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7181 xterm, xselect.
7182 * lisp.h: Remove declaration of hash_remove.
7183 * nsgui.h: Remove redefinitions of hash_remove.
7184 * fns.c (hash_remove): Rename to hash_remove_from_table.
7185
71862008-07-19 Seiji Zenitani <zenitani@mac.com>
7187
7188 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7189 strdup() the family UTF8String before modifying it.
7190
71912008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7192
7193 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7194 NS_FACE_BACKGROUND with 0 instead of nil.
7195 * nsfont.m (nsfont_draw): Same.
7196
71972008-07-19 Chong Yidong <cyd@stupidchicken.com>
7198
7199 * nsfns.m (ns_set_background_color): Fix crash.
7200
72012008-07-18 Chong Yidong <cyd@stupidchicken.com>
7202
7203 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7204
72052008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7206
7207 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7208
72092008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7210
7211 * gtkutil.c: Include <config.h> instead of "config.h".
7212
7213 * lisp.h (Foverlay_buffer): Add EXFUN.
7214
7215 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7216 child process to complete child_setup. Undo 2005-09-21 change.
7217
7218 * s/darwin.h: Mention setsid after vfork.
7219
72202008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7221
7222 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7223 Depend on macgui.h.
7224
7225 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7226 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7227
7228 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7229 and f19.
7230 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7231
7232 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7233 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7234 Remove enumerators.
7235
7236 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7237 Check if FACE_FROM_ID returns NULL.
7238
72392008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7240
7241 * w32inevt.c (change_frame_size): Remove extern declaration.
7242 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7243 change_frame_size.
7244
72452008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7246
7247 * getloadavg.c: Revert last change (2008-07-15).
7248
72492008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7250
7251 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7252 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7253 from configure.
7254
72552008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7256
7257 * s/sol2.h:
7258 * s/sol2-4.h: Reorganize conditionals.
7259
7260 * ecrt0.c: Remove code depending on m68000, not used anymore.
7261
7262 * fns.c (hash_remove): Make static.
7263 * lisp.h (hash_remove): Don't prototype.
7264
7265 * m/ibmrs6000.h:
7266 * m/ibms390x.h:
7267 * m/macppc.h: Remove boilerplate comments.
7268
7269 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7270 Solaris, which does not need them.
7271
7272 * m/vax.h: Remove comments about unsupported systems.
7273
7274 * s/darwin.h: Reorganize ifdefs.
7275
72762008-07-17 Andreas Schwab <schwab@suse.de>
7277
7278 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7279
72802008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7281
7282 Use SDATA. Follow coding convention of placing operators at
7283 beginning of next line rather than end of previous line, and placing
7284 spaces around infix operators.
7285
7286 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7287 in case it was defined already.
7288 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7289 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7290 ns_default.
7291 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7292 Lisp_Objects.
7293 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7294 (ns_defined_color, ns_color_to_lisp): Declare.
7295 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7296 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7297 it's accepted even with USE_LISP_UNION_TYPE.
7298 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7299 (update_frame_tool_bar): Remove apparently obsolete tests for
7300 non-integerness of f->tool_bar_lines.
7301 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7302 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7303 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7304 (nsfont_open): Don't confuse NULL for Qnil.
7305 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7306 * menu.h (find_and_call_menu_selection):
7307 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7308 (find_and_return_menu_selection): Always return something.
7309 * frame.h: Include dispextern.h for Display_Info.
7310 (display_x_get_resource): Declare.
7311
73122008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7313
7314 * syntax.c: Remove stdio.h include accidentally introduced in
7315 Emacs.app commit.
7316 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7317 NS_IMPL_COCOA.
7318 * keyboard.c (handle_async_input, input_available_signal): Remove
7319 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7320
73212008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7322
7323 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7324 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7325 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7326 Use SDATA.
7327
7328 * keymap.c: Remove all NS-specific code.
7329 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7330 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7331 where_is_preferred_modifier, return a different value depending on how
7332 preferred is the binding.
7333 (where_is_internal): Adjust accordingly.
7334 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7335 Adjust to new preferred_sequence_p.
7336 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7337 * keyboard.c (parse_solitary_modifier): Not static any more.
7338 * keyboard.h (parse_solitary_modifier): Declare.
7339
73402008-07-16 Andreas Schwab <schwab@suse.de>
7341
7342 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7343 of easymenu.
7344
73452008-07-16 Chong Yidong <cyd@stupidchicken.com>
7346
7347 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7348 that we don't move off the line.
7349
73502008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7351
7352 * keyboard.c (Qsuper): Remove.
7353 (parse_menu_item): Don't call where_is_internal specially for NS.
7354
73552008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7356
7357 * s/gnu-linux.h: Remove boilerplate comments.
7358
7359 * m/alpha.h (__ELF__): Consolidate conditions.
7360
7361 * m/m68k.h (linux): Use GNU_LINUX instead.
7362 Remove boilerplate comments.
7363
7364 * m/intel386.h: Undo refactoring from previous change.
7365 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7366 too, remove dead code.
7367 (linux): Use GNU_LINUX instead.
7368
73692008-07-16 Jason Rumney <jasonr@gnu.org>
7370
7371 * w32gui.h: Repeat 26 June changes lost by last change.
7372
73732008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7374
7375 * systty.h: Remove code for Aix on 386, unsupported platform.
7376
7377 * s/ms-w32.h: Remove boilerplate comments.
7378 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7379
7380 * s/gnu-linux.h (TERM): Remove support.
7381 (HAVE_SYSVIPC): Remove, unused.
7382 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7383 for this system.
7384
7385 * process.c: Remove support for IRIS, unused.
7386 Remove support for TERM, not relevant anymore.
7387
7388 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7389 used with the definition.
7390
7391 * s/aix4-2.h (static): Do not undef.
7392
7393 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7394 only used on Aix.
7395 (HAVE_SYSVIPC): Remove, unused.
7396
7397 * m/hp800.h (CANNOT_DUMP): Do not undef.
7398
7399 * m/alpha.h: Fix comment.
7400
7401 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7402 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7403 used by this configuration.
7404 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7405 * unexec.c: Remove code depending on HPUX and
7406 USG_SHARED_LIBRARIES, not used with this file. Remove code
7407 depending on IRIS, unused. Remove if 0-ed code.
7408
7409 * s/template.h: Remove comments about static.
7410
7411 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7412 Remove if 0-ed code.
7413 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7414 were the same as the default.
7415 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7416 Remove boilerplate comments.
7417 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7418 (HAVE_SYSVIPC): Remove, unused.
7419 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7420
7421 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7422 Remove boilerplate comments.
7423 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7424 Remove boilerplate comments.
7425 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7426 Remove boilerplate comments.
7427 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7428
7429 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7430 USG systems which do not use DATA_SEG_BITS.
7431 Refactor code. Remove boilerplate comments.
7432
7433 * m/ibms390.h:
7434 * m/m68k.h:
7435 * s/bsd-common.h:
7436 * s/cygwin.h:
7437 * s/darwin.h:
7438 * s/freebsd.h:
7439 * s/gnu.h:
7440 * s/msdos.h: Remove boilerplate comments.
7441
7442 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7443 do not use this file.
aac0c6e3
MR
7444 (IRIS_4D): Remove, unused.
7445
7446 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7447 do not use this file.
aac0c6e3
MR
7448 (SIGN_EXTEND_CHAR):
7449 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7450 * unexmips.c: Remove file, unused.
7451
7452 * editfns.c (Fuser_full_name): Replace the only use of
7453 USER_FULL_NAME with its value.
7454 * config.in: Regenerate.
7455
74562008-07-16 David Reitter <david.reitter@gmail.com>
7457
7458 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7459 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7460
74612008-07-16 Glenn Morris <rgm@gnu.org>
7462
7463 * emacs.c (system-type): Doc fix.
7464
74652008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7466
7467 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7468 If the cache doesn't work, let's fix it, rather than work around it.
7469
74702008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7471
7472 * Makefile.in: Correct additions for nsfont.o in last commit.
7473 * nsfont.m: New file (forgot last commit).
7474
74752008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7476
7477 * callproc.c (set_initial_environment): Initialize
7478 Vprocess_environment under CANNOT_DUMP (fixes crash when
7479 batch-compiling for bootstrap).
7480
74812008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7482 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7483
7484 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7485 fix crash due to different init order.
7486
74872008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7488
7489 Changes and additions for NeXTstep windowing system (Cocoa and
7490 GNUstep) support.
7491
7492 * Makefile.in:
7493 * config.in: Support defines and build commands for NS port.
7494 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7495 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7496 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7497 windowing.
7498 (struct face): Add synth_ital field.
7499 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7500 (init_display): Initialize Vinitial_window_system to "ns" when so
7501 compiled.
7502 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7503 (display_arg): Use under NS.
7504 (main): Under NS, allocate autorelease pool and handle command line
7505 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7506 (standard_args): Add NS-specific args.
7507 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7508 * font.c (DEFAULT_ENCODING): New variable.
7509 (font_find_for_lface): Use it.
7510 (syms_of_font): Load syms_of_nsfont under NS.
7511 * font.h: Declare nsfont_driver when compiled under NS.
7512 * fontset.c: When compiling under NS, include nsterm.h.
7513 (fontset_from_font): Autoconstruct fontset under NS.
7514 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7515 symbol, document and use it.
7516 (do_switch_frame): When for_deletion under Cocoa, add
7517 Fraise_frame(Qnil).
7518 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7519 (x_get_arg): Allow "yes" and "no" as boolean values.
7520 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7521 Qright under Cocoa.
7522 (focus-follows-mouse): Default to 0 under NS.
7523 * frame.h (enum output_method): Add output_ns.
7524 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7525 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7526 (FRAME_WINDOW_P): NS-specific definition.
7527 * fringe.c (max_used_fringe_bitmap): Make public.
7528 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7529 (getloadavg): Use NeXT code under descendant OS's.
7530 * image.c (includes and header section, x_create_bitmap_from_data)
7531 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7532 (image_background_transparent, x_clear_image_1)
7533 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7534 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7535 (x_to_xcolors, x_from_xcolors, x_disable_image)
7536 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7537 other GUIs, including XPM support using code originally written for
7538 Carbon GUI.
7539 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7540 using NS API.
7541 (image_ascent): Use font metrics macros instead of direct struct field
7542 access.
7543 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7544 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7545 Also, handle NS as GTK for menu bar purposes.
7546 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7547 toolkit where they differ.
7548 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7549 use cachelist, still needed under NS.
7550 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7551 (struct widget_value): Define it here for menu.c.
7552 * keymap.c (includes): Include modifier internals.
7553 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7554 NS.
7555 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7556 support for preferring sequences using certain modifiers, specified by
7557 the FIRSTONLY argument.
7558 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7559 under NS GNUstep implementation.
7560 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7561 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7562 * menu.c: Include nsterm.h under NS.
7563 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7564 (free_menubar_widget_tree_value, update_submenu_strings)
7565 (find_and_call_menu_selection): Treat NS as X and NT.
7566 (find_and_return_menu_selection): New function, used for popup menus.
7567 * nsgui.h:
7568 * nsterm.h:
7569 * nsfns.m:
7570 * nsimage.m:
7571 * nsmenu.m:
7572 * nsselect.m:
7573 * nsterm.m: New files.
7574 * process.c (wait_reading_process_output): Under NS, call ns_select()
7575 instead of plain select().
7576 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7577 beginning of buffer.
7578 * sysselect.h (init_process): Rename when compiling under Cocoa to
7579 avoid name conflict.
7580 * termhooks.h (display_info): Add ns_display_info to union.
7581 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7582 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7583 COCOA environment.
7584 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7585 unexec() signature. (Note, this will dump, but the resulting file
7586 crashes; unexosx is used instead; keeping around for reference and
7587 possible aid in getting dump working under GNUstep.)
7588 * w32gui.h (button_type, widget_value): Remove definitions (now in
7589 keyboard.h).
7590 * window.c: Include nsterm.h when compiling under NS.
7591 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7592 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7593 other GUI windowing systems.
7594 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7595 GTK.
7596 (x_consider_frame_title): Under NS, set icon type and frame
7597 modified-state indicator; use ns_set_name_as_filename() when using
7598 formatted title.
7599 (update_window_cursor): Make public when compiling under NS.
7600 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7601 (hourglass_atimer, Vhourglass_delay
7602 * xfaces.c (header section, init_frame_faces, clear_font_table)
7603 (defined_color, unload_color, x_face_list_fonts)
7604 (prepare_face_for_display): Add NS support parallel to other GUIs.
7605 Emulate GCs like other non-X GUIs.
7606 (split_font_name): Don't lowercase font name under NS.
7607 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7608 under NS.
7609 * s/darwin.h: Add support for compilation under NS.
7610
76112008-07-15 Jason Rumney <jasonr@gnu.org>
7612
7613 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7614 (w32_show_hourglass): Rename from show_hourglass.
7615 (w32_hide_hourglass): Rename from hide_hourglass.
7616 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7617 (Vhourglass_delay): Declare extern.
7618 (hourglass_started): Remove.
7619
7620 * xdisp.c (Vhourglass_delay): Remove static.
7621 (hourglass_started, start_hourglass, cancel_hourglass):
7622 Don't include these versions on WINDOWSNT.
7623
76242008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7625
7626 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7627 variables (formerly in xfns.c).
7628 (show_hourglass, hide_hourglass): New prototypes (same).
7629 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7630 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7631 in xfns.c).
7632 (syms_of_xdisp): Declare/initialize display-hourglass,
7633 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7634 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7635 formerly in xfns.c.
7636 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7637 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7638 (start_hourglass, cancel_hourglass): Remove.
7639 (show_hourglass, hide_hourglass): Remove prototypes and static
7640 modifiers.
7641 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7642 hourglass_atimer, hourglass_shown_p declaration/initialization.
7643 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7644 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7645 (start_hourglass, cancel_hourglass): Remove.
7646 (show_hourglass, hide_hourglass): Remove prototypes and static
7647 modifiers.
7648 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7649 hourglass_atimer, hourglass_shown_p declaration/initialization.
7650 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7651 (DEFAULT_HOURGLASS_DELAY): Remove.
7652 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7653 hourglass_shown_p declaration/initialization.
7654
76552008-07-14 Jason Rumney <jasonr@gnu.org>
7656
7657 * w32fns.c (w32_get_arg): Remove wrapper function.
7658 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7659 directly.
7660 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7661
76622008-07-14 Kenichi Handa <handa@m17n.org>
7663
7664 * xfont.c (xfont_open): Add workaround for X's bug.
7665
76662008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7667
7668 * fontset.c: Include <stdio.h> unconditionally.
7669
76702008-07-13 Michael Albinus <michael.albinus@gmx.de>
7671
7672 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7673 for filtering.
7674
76752008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7676
7677 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7678
7679 * m/macppc.h:
7680 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7681
7682 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7683 (SPECIAL_EMACS_INT):
7684 * m/ia64.h (SPECIAL_EMACS_INT):
7685 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7686 * s/gnu.h (NLIST_STRUCT):
7687 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7688 * s/gnu-linux.h (LINUX):
7689 * s/msdos.h (HAVE_FACES):
7690 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7691
7692 * systty.h:
7693 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7694 anymore.
7695
76962008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7697
7698 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7699 always defined as int.
7700
7701 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7702 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7703 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7704 * s/freebsd.h (HAVE_WAIT_HEADER):
7705 * s/bsd-common.h (HAVE_UNION_WAIT):
7706 * s/aix4-2.h (HAVE_WAIT_HEADER):
7707 * m/mips.h (HAVE_UNION_WAIT):
7708 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7709 (COFF, static): Do not define, they are undefined later in the file.
7710
7711 * process.c (update_status): Don't use a union.
7712 (status_convert):
7713 (sigchld_handler): Use int instead of WAITTYPE.
7714
77152008-07-12 Chong Yidong <cyd@stupidchicken.com>
7716
7717 * indent.c (Fvertical_motion): Restore hscroll before moving to
7718 goal column.
7719
77202008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7721
7722 * lisp.h: Remove left over code.
7723
77242008-07-11 Andreas Schwab <schwab@suse.de>
7725
7726 * lisp.h: Fix logic in last change.
7727
7728 * menu.h: New file.
7729 * menu.c: Include it.
7730 * xmenu.c: Likewise.
7731 * Makefile.in: Update dependencies.
7732
77332008-07-11 Kenichi Handa <handa@m17n.org>
7734
7735 * fontset.c (fontset_from_font): Cancel the previous change.
7736
77372008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7738
7739 * lisp.h:
7740 * w32heap.c:
7741 * emacs.c:
7742 * alloc.c: Replace all references of NO_UNION_TYPE with
7743 USE_LISP_UNION_TYPE.
7744
7745 * m/xtensa.h (NO_UNION_TYPE):
7746 * m/vax.h (NO_UNION_TYPE):
7747 * m/template.h (NO_UNION_TYPE):
7748 * m/sparc.h (NO_UNION_TYPE):
7749 * m/mips.h (NO_UNION_TYPE):
7750 * m/macppc.h (NO_UNION_TYPE):
7751 * m/m68k.h (NO_UNION_TYPE):
7752 * m/iris4d.h (NO_UNION_TYPE):
7753 * m/intel386.h (NO_UNION_TYPE):
7754 * m/ibms390x.h (NO_UNION_TYPE):
7755 * m/ibms390.h (NO_UNION_TYPE):
7756 * m/ibmrs6000.h (NO_UNION_TYPE):
7757 * m/ia64.h (NO_UNION_TYPE):
7758 * m/hp800.h (NO_UNION_TYPE):
7759 * m/arm.h (NO_UNION_TYPE):
7760 * m/amdx86-64.h (NO_UNION_TYPE):
7761 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7762 defining it the same.
7763
77642008-07-10 Chong Yidong <cyd@stupidchicken.com>
7765
7766 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7767
77682008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7769
7770 * fileio.c:
7771 * sysdep.c
7772 * systty.h:
7773 * m/ibmrs6000.h:
7774 * m/iris4d.h:
7775 * s/aix4-2.h:
7776 * s/freebsd.h:
7777 * s/gnu-linux.h:
7778 * s/hpux10-20.h:
7779 * s/hpux11.h:
7780 * s/netbsd.h:
7781 * s/sol2-3.h:
7782 * s/sol2-4.h:
7783 * s/sol2.h:
7784 * s/usg5-4.h:
7785 * s/vms.h: Remove references to unused variables.
7786
77872008-07-10 Andreas Schwab <schwab@suse.de>
7788
7789 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7790 pattern before matching the generic family.
7791
77922008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7793
7794 * unexec.c:
7795 * s/vms.h:
7796 * s/usg5-4-2.h:
7797 * s/sol2-5.h:
7798 * s/freebsd.h:
7799 * s/darwin.h: Remove dead code.
7800
7801 * m/template.h:
7802 * m/sparc.h:
7803 * m/mips.h:
7804 * m/m68k.h:
7805 * m/iris4d.h:
7806 * m/intel386.h:
7807 * m/ibms390x.h:
7808 * m/ibms390.h:
7809 * m/ia64.h:
7810 * m/hp800.h:
7811 * m/arm.h:
7812 * m/amdx86-64.h: Remove dead code and references to unused
7813 and compiler defined symbols.
7814
7815 * unexmips.c:
7816 * unexelf.c: Remove references to desupported systems.
7817
7818 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7819
7820 * m/powermac.h: Remove boilerplate comments.
7821 (NO_REMAP): Remove unused definition.
7822
7823 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7824 define them.
7825
78262008-07-10 Kenichi Handa <handa@m17n.org>
7827
7828 * xfont.c (xfont_open): Log the reason of failure.
7829
78302008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7831
7832 * fontset.c (fontset_get_font_group):
7833 * font.c (font_check_otf): Specify argument types.
7834
78352008-07-09 Kenichi Handa <handa@m17n.org>
7836
7837 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7838 non-ASCII char is found.
7839
7840 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7841 (reorder_font_vector): Change the arg preferred_family to font.
7842 Prefer the spec matching with font.
7843 (fontset_get_font_group): New function.
7844 (fontset_find_font): Change the format of an element of a realized
7845 fontset. Use fontset_get_font_group.
7846 (fontset_font): Try the current fontset, the default fontset, the
7847 fallbacks of the current fontset, and the fallbacks of the default
7848 fontset in this order.
7849 (face_for_char): Delete the shortcut to use the current font.
7850 (fontset_from_font): Don't set fonts for Latin in the fontset.
7851
7852 * font.h (font_make_object, font_match_p): Adjust prototypes.
7853
7854 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7855
7856 * font.c (font_make_object): New arg entity and pixelsize.
7857 (font_check_otf_features, font_check_otf): New functions.
7858 (font_match_p): Check :lang, :script, and :otf properties.
7859
7860 * xfont.c (xfont_open): Adjust it for the change of
7861 font_make_object.
7862 (xfont_text_extents): Fix initial setting of metrics.
7863
7864 * ftfont.c (struct ftfont_info): New member index, delete member
7865 fc_charset_idx. Make the member order compatible with struct
7866 xftfont_info.
7867 (fc_charset_table): Change charset names to registry names.
7868 (ftfont_pattern_entity): Delete the args registry and
7869 fc_charset_idx. Change the value of :font-entity property
7870 to (FONTNAME . INDEX). Always set :registry property to
7871 `iso10646-1'.
7872 (struct ftfont_cache_data): New struct.
7873 (ftfont_lookup_cache): New arg for_face.
7874 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7875 (ftfont_driver): Set the member otf_capability.
7876 (ftfont_get_charset): Adjust it for the change of
7877 fc_charset_table.
7878 (OTF_TAG_SYM): New macro.
7879 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7880 for the change of fc_charset_table.
7881 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7882 ftfont_pattern_entity. Add FC_INDEX to objset.
7883 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7884 and ftfont_pattern_entity.
7885 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7886 font_make_object, struct ftfont_info.
7887 (ftfont_has_char): Use ftfont_get_fc_charset.
7888 (ftfont_otf_features, ftfont_otf_capability): New functions.
7889 (ftfont_shape): Use ftfont_get_otf.
7890 (ftfont_text_extents): Fix initial setting of metrics.
7891
7892 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7893 member order compatible with struct ftfont_info.
7894 (xftfont_open): Add FC_CHARSET to the pattern. Set
7895 xftfont_info->ft_size. Don't unlock the face. Check BDF
7896 properties if appropriate.
7897 (xftfont_close): Unlock the face.
7898 (xftfont_anchor_point, xftfont_shape): Deleted.
7899 (syms_of_xftfont): Don't set members anchor_point and shape of
7900 xftfont_driver.
7901
7902 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7903 font_make_object.
7904
7905 * w32font.c (w32font_open): Adjust it for the change of
7906 font_make_object.
7907 (w32font_open_internal): Don't set properties of font_object here.
7908
79092008-07-08 Chong Yidong <cyd@stupidchicken.com>
7910
7911 * macfns.c (x_create_tip_frame):
7912 * w32fns.c (x_create_tip_frame):
7913 * xfns.c (x_create_tip_frame): Pass parameter argument to
7914 face-set-after-frame-default.
7915
7916 * xfaces.c (Finternal_merge_in_global_face): Save merged
7917 attributes for the default face back into the face vector.
7918
79192008-07-08 Andreas Schwab <schwab@suse.de>
7920
7921 * fontset.h: Declare fontset_from_font. Don't declare
7922 new_fontset_from_font and fontset_from_font_name.
7923 * xterm.c: Include "fontset.h".
7924 * Makefile.in (xterm.o): Update dependencies.
7925
79262008-07-08 Glenn Morris <rgm@gnu.org>
7927
7928 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7929 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7930
79312008-07-07 Chong Yidong <cyd@stupidchicken.com>
7932
7933 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7934 (x_set_frame_parameters): Don't bind it.
7935
79362008-07-07 Juanma Barranquero <lekktu@gmail.com>
7937
7938 * w32fns.c (map_w32_filename): Declare extern.
7939
79402008-07-07 Jason Rumney <jasonr@gnu.org>
7941
7942 * w32term.c (WS_EX_LAYERED): Define if not already.
7943
79442008-07-06 Chong Yidong <cyd@stupidchicken.com>
7945
7946 * xfaces.c (set_font_frame_param): Don't try to set the font
7947 parameter if it is still unspecified in the lface.
7948
79492008-07-05 Chong Yidong <cyd@stupidchicken.com>
7950
7951 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7952 face if it didn't already exist.
7953
7954 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7955
79562008-07-05 Andreas Schwab <schwab@suse.de>
7957
7958 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7959
79602008-07-05 Chong Yidong <cyd@stupidchicken.com>
7961
7962 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7963 word-wrapping.
7964 (IT_DISPLAYING_WHITESPACE): New macro.
7965 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7966 when word-wrapping. Simplify word-wrapping logic. Use correct
7967 pixel positions when saving copies of the iterator.
7968 (display_line): Use proper wrap point if the last character on a
7969 line was preceded by whitespace.
7970
79712008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7972
7973 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7974
79752008-07-04 Kenichi Handa <handa@m17n.org>
7976
7977 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7978
7979 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7980
79812008-07-02 Jason Rumney <jasonr@gnu.org>
7982
7983 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7984 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7985
7986 * xdisp.c (next_element_from_display_vector): Move assignment out
7987 of if statement.
7988
79892008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7990
7991 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7992
7993 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7994 (syms_of_fileio): Initialize and export them.
7995 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7996
7997 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7998 (Fsystem_move_file_to_trash): New function.
7999 (syms_of_w32fns): Export it to lisp.
8000
80012008-07-01 Jason Rumney <jasonr@gnu.org>
8002
8003 * w32font.c (w32font_text_extents): Don't count overhang as part
8004 of width.
8005
80062008-06-30 Miles Bader <miles@gnu.org>
8007
8008 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8009 Add `avoid_cursor_p' field.
8010
8011 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8012 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8013 (append_glyph, append_composite_glyph, produce_image_glyph)
8014 (append_stretch_glyph): Initialize avoid_cursor_p.
8015 (get_it_property): Rename from `get_line_height_property'.
8016 (x_produce_glyphs): Use get_it_property.
8017 (handle_line_prefix, push_display_prop): New functions.
8018 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8019 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8020 New variables.
8021 (syms_of_xdisp): Initialize them.
8022
80232008-06-30 Kenichi Handa <handa@m17n.org>
8024
8025 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8026 XftDefaultSubstitute (they are called in XftFontMatch).
8027 (xftfont_open): Fix args to ftfont_font_format.
8028
8029 * ftfont.c (fc_charset_table): New member lang.
8030 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8031 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8032 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8033 (ftfont_open): Fix args to ftfont_font_format.
8034 (ftfont_font_format): New arg filename.
8035
80362008-06-30 Chong Yidong <cyd@stupidchicken.com>
8037
8038 * xfaces.c (Finternal_merge_in_global_face): If default face was
8039 modified, realize it again. Update the font face attribute.
8040
80412008-06-29 Jason Rumney <jasonr@gnu.org>
8042
8043 * w32term.c (x_set_frame_alpha): Fix logic.
8044
80452008-06-29 Kenichi Handa <handa@m17n.org>
8046
8047 * fontset.c (Finternal_char_font): Return font-object instead of
8048 font-name.
8049
8050 * composite.c (get_composition_id): Fix the width calculation for TAB.
8051
80522008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8053
8054 * indent.c (Fvertical_motion): Properly handle float column arg.
8055
80562008-06-28 Jason Rumney <jasonr@gnu.org>
8057
8058 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8059 (pfnSetLayeredWindowAttributes): New function pointer.
8060 (w32_initialize): Initialize it when supported.
8061 (x_set_frame_alpha): New function.
8062
8063 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8064 (w32_frame_parm_handlers): Set alpha handler.
8065
8066 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8067
80682008-06-27 Jason Rumney <jasonr@gnu.org>
8069
8070 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8071 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8072 (w32_to_x_charset, x_to_w32_charset)
8073 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8074 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8075 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8076 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8077 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8078 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8079 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8080 (Qw32_charset_unicode): Remove.
8081 (syms_of_w32fns): Update for above changes.
8082
8083 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8084 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8085 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8086 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8087 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8088 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8089 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8090 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8091 (syms_of_w32font): Update for above changes.
8092
80932008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8094
8095 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8096 removed #if.
8097 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8098
80992008-06-26 Juanma Barranquero <lekktu@gmail.com>
8100 Eli Zaretskii <eliz@gnu.org>
8101
8102 * makefile.w32-in (LOCAL_FLAGS):
8103 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8104
8105 * sysdep.c (_spawnlp, _getpid):
8106 Declare with explicit _cdecl instead of _CRTAPI1.
8107
8108 * editfns.c (Fget_internal_run_time):
8109 Check for WINDOWSNT with #ifdef, not #if.
8110
81112008-06-26 Jason Rumney <jasonr@gnu.org>
8112
8113 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8114
8115 * w32term.c (x_draw_glyph_string_foreground)
8116 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8117 Use FONT_HANDLE macro.
8118 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8119
8120 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8121 (uniscribe_encode_char): Use FONT_HANDLE macro.
8122
8123 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8124 (w32font_text_extents): Use precast w32_font.
8125 (w32font_close): Free cached metrics.
8126 (w32font_open_internal): Allocate space for name on stack.
8127
81282008-06-26 Chong Yidong <cyd@stupidchicken.com>
8129
8130 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8131
81322008-06-26 Jason Rumney <jasonr@gnu.org>
8133
8134 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8135 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8136
81372008-06-26 Juanma Barranquero <lekktu@gmail.com>
8138
8139 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8140
81412008-06-26 Jason Rumney <jasonr@gnu.org>
8142
8143 * w32bdf.c, w32bdf.h: Remove obsolete files.
8144
8145 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8146
8147 * w32gui.h: Don't include w32bdf.h.
8148 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8149 Remove obsolete font support.
8150
8151 * w32font.h (struct w32font_info): Remove compat_w32_font.
8152 Add hfont member.
8153 (FONT_COMPAT): Remove obsolete macro.
8154
8155 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8156 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8157 (w32font_open_internal): Remove compat code. Set new hfont member.
8158 (Fx_select_font): Use new hfont member.
8159
8160 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8161 (uniscribe_encode_char): Use new hfont member.
8162
8163 * w32term.c (x_draw_glyph_string_foreground)
8164 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8165 (x_draw_glyph_string): Use metrics in w32font_info.
8166
81672008-06-26 Kenichi Handa <handa@m17n.org>
8168
8169 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8170
81712008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8172
8173 * unexnext.c:
8174 * m/ews4800.h:
8175 * m/hp9000s300.h:
8176 * m/ibm370aix.h:
8177 * m/mips-siemens.h:
8178 * m/ncr386.h:
8179 * m/next.h:
8180 * m/pmax.h:
8181 * m/powerpcle.h:
8182 * m/tandem-s2.h:
8183 * s/386bsd.h:
8184 * s/bsd386.h:
8185 * s/bsd4-1.h:
8186 * s/bsd4-2.h:
8187 * s/bsdos2-1.h:
8188 * s/bsdos2.h:
8189 * s/bsdos3.h:
8190 * s/bsdos4.h:
8191 * s/nextstep.h:
8192 * s/ultrix4-3.h:
8193 * s/usg5-0.h:
8194 * s/usg5-2-2.h:
8195 * s/usg5-2.h:
8196 * s/usg5-4-3.h:
8197 * s/ux4800.h:
8198 * s/uxpds.h:
8199 * s/uxpv.h: Remove support for obsolete systems.
8200 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8201 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8202 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8203 Remove, insert contents in s/aix4-2.h.
8204 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8205 * s/bsd4-3.h: Rename to ...
8206 * s/bsd-common.h: ... this.
8207 * data.c:
8208 * doc.c:
8209 * ecrt0.c:
8210 * emacs.c:
8211 * fileio.c:
8212 * floatfns.c:
8213 * keyboard.c:
8214 * mem-limits.h:
8215 * print.c:
8216 * process.c:
8217 * sysdep.c:
8218 * syssignal.h:
8219 * systty.h:
8220 * syswait.h:
8221 * term.c:
8222 * unexec.c:
8223 * unexelf.c:
8224 * unexhp9k800.c:
8225 * m/hp800.h:
8226 * m/ibmrs6000.h:
8227 * m/mips.h:
8228 * m/vax.h:
8229 * s/darwin.h:
8230 * s/freebsd.h:
8231 * s/gnu.h:
8232 * s/ms-w32.h:
8233 * s/msdos.h:
8234 * s/netbsd.h:
8235 * s/template.h: Remove references to obsolete variables.
8236
8237 * Makefile.in: Add dependencies for all unexec files.
8238 (admindir): Remove unused variable.
8239 (UNEXEC_SRC): Remove references.
8240
82412008-06-25 Chong Yidong <cyd@stupidchicken.com>
8242
8243 * xfns.c (x_default_font_parameter): If Xft is available, first
8244 try Monospace-12 for the default font.
8245
82462008-06-25 Jason Rumney <jasonr@gnu.org>
8247
8248 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8249
82502008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8251
8252 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8253
8254 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8255
82562008-06-25 Juanma Barranquero <lekktu@gmail.com>
8257
8258 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8259 <scroll-conservatively>: Fix typo in docstring.
8260
8261 * xselect.c (Fx_send_client_event): Doc fix.
8262
82632008-06-25 Kenichi Handa <handa@m17n.org>
8264
8265 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8266
8267 * font.c (font_parse_fcname): Remove unused variables.
8268 (font_sort_entites): Delete the arg SPEC. Caller changed.
8269 Fix for the case of ! best_only.
8270 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8271
8272 * lisp.h (Fstring_to_unibyte): EXFUN it.
8273
8274 * character.h (str_to_unibyte): Extern it.
8275
8276 * character.c (str_to_unibyte): New function.
8277
8278 * fns.c (Fstring_to_unibyte): New function.
8279 (syms_of_fns): Defsubr it.
8280
82812008-06-24 Kenichi Handa <handa@m17n.org>
8282
8283 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8284 DPI too.
8285 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8286
82872008-06-24 Andreas Schwab <schwab@suse.de>
8288
8289 * Makefile.in (${lispsource}loaddefs.el): Rename from
8290 ../lisp/loaddefs.el.
8291 (bootstrap-clean): Do what distclean does but don't remove
8292 Makefile.
8293 (distclean): Depend on bootstrap-clean and remove Makefile.
8294
82952008-06-24 Chong Yidong <cyd@stupidchicken.com>
8296
8297 * buffer.h (struct buffer): New member word_wrap.
8298
8299 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8300 word-wrap.
8301 (init_buffer_once): Initialize them.
8302
8303 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8304 line_wrap enum possessing three possible values.
8305
8306 * termopts.h: Replace truncate_partial_width_windows with
8307 Vtruncate_partial_width_windows.
8308
8309 * dispnew.c (direct_output_for_insert): Avoid direct output when
8310 inserting a space with word wrap on.
8311
8312 * indent.c (compute_motion): Obey integer values of
8313 truncate-partial-width-windows.
8314
8315 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8316 replacing truncate_partial_width_windows.
8317 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8318 truncate only if the window width is below that integer.
8319 (start_display, resize_mini_window, produce_stretch_glyph)
8320 (display_string, move_it_in_display_line_to): Use line_wrap.
8321 (back_to_previous_visible_line_start, reseat_1): Reset
8322 string_from_display_prop_p.
8323 (display_line): Extend default face to end of line when wrapping.
8324
83252008-06-24 Kim F. Storm <storm@cua.dk>
8326
8327 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8328 to wrap continued lines at word boundaries.
8329
83302008-06-24 Jason Rumney <jasonr@gnu.org>
8331
8332 * font.c (Ffont_face_attributes): Multiply pixel size before point
8333 conversion to avoid multiplying rounding error.
8334
83352008-06-23 Jason Rumney <jasonr@gnu.org>
8336
8337 * w32term.c (x_draw_glyph_string_background)
8338 (x_draw_glyph_string): Remove old bdf font code.
8339
8340 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8341
83422008-06-22 Kenichi Handa <handa@m17n.org>
8343
8344 * font.c (font_find_for_lface): Try the adstyle specified in
8345 the property of LFACE_FONT of LFACE (if any).
8346
83472008-06-21 Seiji Zenitani <zenitani@mac.com>
8348 Ryo Yoshitake <ryo@shiftmode.net>
8349
8350 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8351
83522008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8353
8354 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8355 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8356 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8357 (witness-emacs): Remove.
8358 (lisp, shortlisp): Move loaddefs.el earlier.
8359 (mostlyclean): Forget about witness-emacs.
8360
83612008-06-22 Glenn Morris <rgm@gnu.org>
8362
8363 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8364 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8365
83662008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8367
8368 * Makefile.in (PRECOMP): Remove.
8369 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8370 (witness-emacs): Run `compile-first'.
8371 (.el.elc): Use the new compile-onefile target.
8372
83732008-06-21 Kenichi Handa <handa@m17n.org>
8374
8375 * xftfont.c (xftfont_open): Handle QCembolden only when
8376 FC_EMBOLDEN is defined.
8377
83782008-06-21 Andreas Schwab <schwab@suse.de>
8379
8380 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8381 (.el.elc): Likewise.
8382
83832008-06-21 Miles Bader <miles@gnu.org>
8384
8385 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8386 build dir, not the lisp source dir.
8387
83882008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8389
8390 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8391 (bootstrapclean): Remove.
8392 (.el.elc): New rule.
8393 (PRECOMP): New var.
8394 (../lisp/subdirs.el): Remove.
8395 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8396 (witness-emacs): New target.
8397 (mostlyclean): Remove witness-emacs as well.
8398 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8399 Add witness-emacs dependency.
8400
84012008-06-20 Chong Yidong <cyd@stupidchicken.com>
8402
8403 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8404 defined by the font.
8405
84062008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8407
8408 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8409 (bootstrap-clean): New target that keeps TAGS around.
8410 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8411 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8412
84132008-06-20 Jason Rumney <jasonr@gnu.org>
8414
8415 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8416 Remove obsolete font code.
8417
8418 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8419 to determine language support.
8420
84212008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8422
8423 * sysdep.c (cfsetspeed): New fun extracted from the code.
8424 (cfmakeraw): Move before first use.
8425
84262008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8427
8428 * sysdep.c (cfmakeraw): Provide fallback implementation.
8429 (serial_configure): Provide fallback implementation of cfsetspeed.
8430
84312008-06-20 Kenichi Handa <handa@m17n.org>
8432
8433 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8434 the pattern.
8435
8436 * fontset.c (fontset_from_font): Copy font_spec before changing
8437 the elements.
8438
8439 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8440
84412008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8442
8443 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8444 for explicit `font' parameters.
8445
8446 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8447
84482008-06-19 Kenichi Handa <handa@m17n.org>
8449
8450 * frame.c: Include <ctype.h>.
8451 (x_set_font_backend): Allow spacing characters in the X resource
8452 for FontBackend.
8453
84542008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8455
8456 * w32fns.c, xfns.c (Qfont_param): New var.
8457 (syms_of_w32fns): Initialize it.
8458 (x_default_font_parameter): Record explicit `font' into
8459 `font-parameter'.
8460
84612008-06-18 Kenichi Handa <handa@m17n.org>
8462
8463 * font.c (font_parse_xlfd): Fix previous change.
8464 (font_parse_fcname): Don't use :fc-unknown-spec.
8465 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8466 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8467 (font_add_log): Prepend the driver name to the resulting fonts.
8468
8469 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8470 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8471 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8472
8473 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8474 (QCembolden): New variables.
8475 (syms_of_xftfont): DEFSYM them.
8476 (xftfont_open): Call XftFontMatch. Don't trust the result of
8477 XftTextExtents8 if the pixel_size is less than 5.
8478
84792008-06-18 Andreas Schwab <schwab@suse.de>
8480
8481 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8482 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8483
84842008-06-18 Jason Rumney <jasonr@gnu.org>
8485
8486 * w32font.c (w32font_list, w32font_match): Add logging.
8487
8488 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8489
84902008-06-17 Chong Yidong <cyd@stupidchicken.com>
8491
8492 * font.c (font_parse_fcname): Store divider characters for
8493 unknown-spec list. For known key symbols, intern using correct
8494 symbol name.
8495
84962008-06-17 Kenichi Handa <handa@m17n.org>
8497
8498 * xfaces.c (realize_default_face): If the frame is not on window
8499 system, set the fontset of face to nil.
8500
85012008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8502
8503 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8504
85052008-06-16 Juanma Barranquero <lekktu@gmail.com>
8506
8507 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8508 (build_font_name_from_vector): Delete externs.
8509
8510 * xfaces.c (struct font_name): Don't declare.
8511
85122008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8513
8514 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8515
85162008-06-16 Chong Yidong <cyd@stupidchicken.com>
8517
8518 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8519
85202008-06-16 Juanma Barranquero <lekktu@gmail.com>
8521
8522 * font.c (Ffont_spec): Fix usage in docstring.
8523 (Ffont_face_attributes): Doc fix.
8524
85252008-06-16 Andreas Schwab <schwab@suse.de>
8526
8527 * font.c (Ffont_face_attributes): Fix definition.
8528
85292008-06-16 Jason Rumney <jasonr@gnu.org>
8530
8531 * font.h (font_style_symbolic_from_value): Remove.
8532
8533 * font.c (font_style_symbolic_from_value): Remove.
8534 (font_style_symbolic): Revert to pre 2008-06-13 version.
8535
8536 * w32font.c (w32_to_fc_weight): New function.
8537 (w32font_full_name, logfont_to_fcname): Use it.
8538
85392008-06-16 Kenichi Handa <handa@m17n.org>
8540
8541 * font.c (font_check_object): Delete it.
8542 (font_clear_cache): Check if a font-object is alive.
8543 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8544 font-object to nil.
8545 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8546 (font_at): Don't call font_check_object.
8547 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8548
85492008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8550
8551 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8552
85532008-06-16 Chong Yidong <cyd@stupidchicken.com>
8554
8555 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8556
85572008-06-15 Chong Yidong <cyd@stupidchicken.com>
8558
8559 * font.c (font_parse_fcname): Only one decimal point.
8560 (font_unparse_fcname): Handle data in family and foundry indices
8561 as symbols, not strings.
8562 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8563
8564 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8565
8566 * font.h (font_unparse_gtkname): Add prototype.
8567
85682008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8569
8570 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8571
85722008-06-15 Andreas Schwab <schwab@suse.de>
8573
8574 * font.c (font_update_drivers): Fix crash when no drivers match.
8575
85762008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8577
8578 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8579 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8580
85812008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8582
8583 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8584
85852008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8586
8587 * process.c (Fserial_process_configure, Fprocess_send_eof):
8588 Use EQ to compare Lisp_Objects.
8589
85902008-06-13 Jason Rumney <jasonr@gnu.org>
8591
8592 * w32fns.c (Fw32_select_font): Remove old font API function.
8593
8594 * w32font.c (logfont_to_fcname): New function.
8595 (Fx_select_font): New font dialog function compatible with
8596 GTK/fontconfig version.
8597
8598 * font.c (font_style_symbolic_from_value): New function.
8599 (font_style_symbolic): Use it.
8600
8601 * font.h (font_style_symbolic_from_value): Declare new function.
8602
86032008-06-13 Juanma Barranquero <lekktu@gmail.com>
8604
8605 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8606 <font-width-table>: Fix typos in docstrings.
8607
86082008-06-13 Daniel Engeler <engeler@gmail.com>
8609
8610 These changes add serial port access.
8611 * process.c: Add HAVE_SERIAL.
8612 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8613 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8614 (list_processes_1, select_wrapper, Fstop_process)
8615 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8616 (status_notify): Modify to handle serial processes.
8617 [HAVE_SERIAL] (Fserial_process_configure)
8618 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8619 New functions.
8620 * process.h (struct Lisp_Process): Add `type'.
8621 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8622 New functions.
8623 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8624 serial ports.
b71ac3dd 8625 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8626 * w32.h: Add FILE_SERIAL.
8627 (struct _child_process): Add ovl_read, ovl_write.
8628
86292008-06-13 Kenichi Handa <handa@m17n.org>
8630
8631 * dispextern.h (enum lface_attribute_index): New member
8632 LFACE_FOUNDRY_INDEX.
8633
8634 * font.c (font_score): Delete arg alternate_families. Check only
8635 weight, slant, width, and size. Ignore the difference of alias
8636 style symbols.
8637 (font_sort_entites): Adjust for the above change. Reflect the
8638 order of font-driver to scores.
8639 (font_list_entities): Don't check alternate_familes here.
8640 (font_clear_prop): Handle foundry.
8641 (font_update_lface): Don't parse "foundry-family" form here.
8642 Handle FONT_FOUNDRY_INDEX.
8643 (font_find_for_lface): Likewise. Handle alternate families here.
8644 If registry is nil, try iso8859-1 and ascii-0.
8645 (font_open_for_lface): Pay attention to size in ENTITY.
8646 (font_open_by_name): Simplify by calling font_load_for_lface.
8647 (free_font_driver_list): Delete it.
8648 (font_update_drivers): Preserve the order of backends.
8649 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8650 of font_score and font_sort_entites.
8651 (font_update_sort_order): Likewise.
8652
8653 * xfaces.c (LFACE_FOUNDRY): New macro.
8654 (check_lface_attrs): Check foundry.
8655 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8656 (merge_face_vectors): Check foundry.
8657 (merge_face_ref): Likewise.
8658 (Finternal_set_lisp_face_attribute): Likewise.
8659 (x_update_menu_appearance): Likewise.
8660 (Finternal_get_lisp_face_attribute): Likewise.
8661 (lface_hash): Likewise.
8662 (lface_same_font_attributes_p): Likewise.
8663 (x_supports_face_attributes_p): Likewise.
8664 (tty_supports_face_attributes_p): Likewise.
8665 (Finternal_set_alternative_font_family_alist): Intern strings.
8666 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8667 (realize_default_face): Set LFACE_FOUNDRY (lface).
8668
8669 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8670 font-driver at first.
8671
8672 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8673
86742008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8675
8676 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8677
86782008-06-12 Jim Meyering <meyering@redhat.com>
8679
8680 Make unexec_free handle NULL the same way free does.
8681 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8682
86832008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8684
8685 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8686 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8687 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8688 (WEAK_ALIAS): Simplify.
8689 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8690 when searching a unibyte buffer.
8691
86922008-06-12 Chong Yidong <cyd@stupidchicken.com>
8693
8694 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8695
86962008-06-12 Juanma Barranquero <lekktu@gmail.com>
8697
8698 * w32font.c: Include ctype.h.
8699
87002008-06-11 Jason Rumney <jasonr@gnu.org>
8701
8702 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8703 misreported as space.
8704 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8705 as aliases for registry iso10646-1.
8706
87072008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8708
8709 * buffer.c (clone_per_buffer_values): Skip `name'.
8710
87112008-06-11 Chong Yidong <cyd@stupidchicken.com>
8712
8713 * font.c (font_parse_fcname): Fix last change; accept decimal
8714 points in font size.
8715
87162008-06-10 Jason Rumney <jasonr@gnu.org>
8717
8718 * w32uniscribe.c (add_opentype_font_name_to_list):
8719 Skip non unicode fonts.
8720
87212008-06-10 Chong Yidong <cyd@stupidchicken.com>
8722
8723 * xfns.c (Fx_font_dialog): New function.
8724
8725 * gtkutil.c (xg_dialog_response_cb): Rename from
8726 xg_file_response_callback.
8727 (pop_down_dialog): Rename from pop_down_file_dialog.
8728 (xg_get_file_name): Callers changed.
8729 (xg_get_font_name): New function.
8730
8731 * gtkutil.h (xg_get_font_name): Insert prototype.
8732
87332008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8734
8735 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8736 x_underline_minimum_display_offset.
8737 (syms_of_xdisp): Declare it here rather than in xterm.c.
8738 * dispextern.h (underline_minimum_offset): Declare it.
8739 * w32term.c (x_draw_glyph_string): Use it.
8740 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8741 (syms_of_xterm): Don't declare it any more.
8742 (x_draw_glyph_string): Adjust to the new name.
8743
87442008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8745
8746 * xterm.c (x_underline_minimum_display_offset): New var.
8747 (x_draw_glyph_string): Use it.
8748 (syms_of_xterm): Declare it.
8749
87502008-06-10 Chong Yidong <cyd@stupidchicken.com>
8751
8752 * font.c (font_parse_fcname): Accept GTK-style font names too.
8753
87542008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8755
8756 * dired.c (file_name_completion): Don't return t if the match is exact
8757 but with different capitalization.
8758 * minibuf.c (Ftry_completion): Simplify.
8759
8760 * window.c (Vwindow_point_insertion_type): New var.
8761 (set_window_buffer): Use it.
8762 (syms_of_window): Init and export it to Lisp.
8763
87642008-06-10 Kenichi Handa <handa@m17n.org>
8765
8766 * font.h (font_intern_prop): Prototype adjusted.
8767
8768 * font.c (font_intern_prop): New arg force_symbol.
8769 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8770 Adjust for the change of font_intern_prop.
8771
8772 * ftfont.c (ftfont_pattern_entity):
8773 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8774 (w32_registry):
8775 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8776 the change of font_intern_prop.
8777
87782008-06-09 Juanma Barranquero <lekktu@gmail.com>
8779
8780 * w32menu.c (digest_single_submenu): Declare extern.
8781
87822008-06-09 Jason Rumney <jasonr@gnu.org>
8783
8784 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8785
8786 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8787 (parse_single_submenu): Remove.
8788 (digest_single_submenu): Remove.
8789 (syms_of_w32menu): Don't initialise variables that have moved
8790 to menu.c.
8791 (set_frame_menubar): Sync with version in xmenu.c.
8792 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8793
8794 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8795 Make static again.
8796
87972008-06-09 Jason Rumney <jasonr@gnu.org>
8798
8799 Changes to w32 files related to the move of common menu code
8800 to menu.c on 2008-06-08 by Chong Yidong.
8801
8802 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8803 defs to w32gui.h.
8804 (single_keymap_panes, push_menu_item, push_menu_pane):
8805 Make globally visible.
8806
8807 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8808 (local_free, malloc_widget_value, free_widget_value)
8809 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8810 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8811 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8812 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8813 (menu_items, menu_items_allocated, menu_items_used)
8814 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8815 (init_menu_items, finish_menu_items, discard_menu_items)
8816 (grow_menu_items, push_submenu_start, push_submenu_end)
8817 (push_left_right_boundary, push_menu_pane, push_menu_item)
8818 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8819 (free_menubar_widget_tree_value, parse_single_submenu)
8820 (update_submenu_strings): Remove functions.
8821 (xmalloc_widget_value): Remove and declare extern.
8822
8823 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8824 (OBJ1): Build it.
8825
8826 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8827 (local_heap, local_alloc, local_free, malloc_widget_value)
8828 (free_widget_value): Define here.
8829
88302008-06-09 Kenichi Handa <handa@m17n.org>
8831
8832 * font.h (Qascii_0): Extern it.
8833
8834 * font.c (Qascii_0): New variable.
8835 (syms_of_font): DEFSYM it.
8836 (font_open_by_name): If the registry "iso8859-1" fails, try also
8837 "ascii-0".
8838
8839 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8840
88412008-06-08 Kenichi Handa <handa@m17n.org>
8842
8843 * .gdbinit (xfont): New command.
8844
88452008-06-08 Andreas Schwab <schwab@suse.de>
8846
8847 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8848 * Makefile.in (menu.o): Update dependencies.
8849
8850 * Makefile.in (obj): Always add menu.o.
8851 * emacs.c (main): Always call syms_of_menu.
8852 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8853
88542008-06-08 Chong Yidong <cyd@stupidchicken.com>
8855
8856 * Makefile.in: Compile menu.c.
8857
8858 * lisp.h: Declare syms_of_menu.
8859
8860 * emacs.c (main): Call syms_of_menu.
8861
8862 * keyboard.h: Relocate platform-independent menu definitions from
8863 xmenu.c.
8864
8865 * menu.c: New file. Relocate platform-independent menu
8866 definitions from xmenu.c. Suggested by Adrian Robert.
8867
8868 * xmenu.c: Remove platform-independent menu definitions.
8869 (menu_items menu_items_inuse, menu_items_allocated)
8870 (menu_items_used, menu_items_n_panes)
8871 (menu_items_submenu_depth): Move to keyboard.h.
8872 (init_menu_items, finish_menu_items, unuse_menu_items)
8873 (discard_menu_items, restore_menu_items, save_menu_items)
8874 (grow_menu_items, push_submenu_start, push_submenu_end)
8875 (push_left_right_boundary, push_menu_pane, push_menu_item)
8876 (keymap_panes, single_keymap_panes, single_menu_item)
8877 (list_of_panes, list_of_items, find_and_call_menu_selection)
8878 (xmalloc_widget_value, free_menubar_widget_value_tree)
8879 (parse_single_submenu, digest_single_submenu)
8880 (update_submenu_strings): Move to menu.c.
8881
88822008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8883
8884 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8885
88862008-06-06 Miles Bader <miles@gnu.org>
8887
8888 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8889 face, not frame default.
8890
88912008-06-05 Martin Rudalics <rudalics@gmx.at>
8892
8893 * window.c (pop_up_windows, pop_up_frames)
8894 (display_buffer_reuse_frames, Vpop_up_frame_function)
8895 (Vdisplay_buffer_function, Veven_window_heights)
8896 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8897 (Vspecial_display_function, Vsame_window_buffer_names)
8898 (Vsame_window_regexps, split_height_threshold)
8899 (Vsplit_window_preferred_function): Move those vars to window.el.
8900 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8901 (Fdisplay_buffer): Move those functions to window.el.
8902 (syms_of_window): Remove corresponding declarations.
8903 (display_buffer): New function.
8904 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8905 * dispnew.c (Flast_nonminibuf_frame): New function.
8906 * buffer.c (Fpop_to_buffer): Move to window.el.
8907
89082008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8909
8910 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8911
89122008-06-05 Kenichi Handa <handa@m17n.org>
8913
8914 * coding.c (detect_coding): Fix previous change.
8915 (detect_coding_system): Likewise.
8916
89172008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8918
8919 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8920
8921 * keymap.c (Vminibuffer_local_filename_must_match_map):
8922 Rename from Vminibuffer_local_must_match_filename_map.
8923 (syms_of_keymap):
8924 * minibuf.c (Fcompleting_read): Adjust accordingly.
8925 * commands.h: Rename declaration as well.
8926
89272008-06-05 Kenichi Handa <handa@m17n.org>
8928
8929 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8930 family name.
8931 (Ffont_put): Likewise.
8932
8933 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8934 current font-spec.
8935
8936 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8937 is unspecified.
8938
8939 * xfaces.c (realize_x_face): If the font-related face attributes
8940 are the same as those of default face, realize a new fontset from
8941 default->fontset.
8942 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8943
89442008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8945
8946 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8947 (move_it_in_display_line): New wrapper.
8948
8949 * window.c (window_scroll_pixel_based_preserve_x)
8950 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8951 (window_scroll_pixel_based, window_scroll_line_based):
8952 Use them to preserve column positions.
8953 (syms_of_window): Initialize them.
8954
8955 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8956 (HPOS . VPOS) pair.
8957
8958 * dispextern.h (move_it_in_display_line): Declare.
8959
89602008-06-05 Juanma Barranquero <lekktu@gmail.com>
8961
8962 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8963 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8964 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8965
89662008-06-04 Juanma Barranquero <lekktu@gmail.com>
8967
8968 * window.c (Fset_window_parameter): Doc fix.
8969 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8970
89712008-06-04 Joakim Verona <joakim@verona.se>
8972
8973 * window.h (struct window): Add new member window_parameters.
8974
8975 * window.c (Fwindow_parameters, Fwindow_parameter)
8976 (Fset_window_parameter): New defuns.
8977 (syms_of_window): Defsubr the new defuns.
8978 (make_window): Initialize window_parameters to nil.
8979
89802008-06-04 John Paul Wallington <jpw@pobox.com>
8981
8982 * eval.c (Fdefmacro): Doc fix.
8983
89842008-06-04 Kenichi Handa <handa@m17n.org>
8985
8986 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8987 Be sure to call setup_coding_system when we find a proper coding system.
8988 (detect_coding_system): Fix handling of coding->head_ascii.
8989
89902008-06-03 Andreas Schwab <schwab@suse.de>
8991
8992 * font.c (font_prop_validate_spacing): Fix last change.
8993
89942008-06-03 Kenichi Handa <handa@m17n.org>
8995
8996 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8997 (font_parse_fcname): Fix handling of unknown key.
8998
8999 * xfont.c (xfont_list): Try an alias.
9000
9001 * charset.c (char_charset): Return NULL if the arg charset_list is
9002 specified and C doesn't belong to any of them.
9003
90042008-06-02 Chip Coldwell <coldwell@redhat.com>
9005
9006 * font.c (font_pixel_size): Don't take cdr of an integer.
9007
90082008-06-02 Jim Meyering <meyering@redhat.com>
9009
9010 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9011 * alloc.c (xfree): Return right away for a NULL arg.
9012 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9013 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9014 * mac.c (create_apple_event_from_event_ref): Likewise.
9015 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9016 Likewise.
9017 * doprnt.c (doprnt1): Likewise.
9018 * frame.c (frame): Likewise.
9019 * keyboard.c (wipe_kboard): Likewise.
9020 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9021 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9022 * term.c (tty_default_color_capabilities, maybe_fatal)
9023 (delete_tty): Likewise.
9024 * w16select.c (string): Likewise.
9025 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9026 * w32bdf.c (w32_free_bdf_font): Likewise.
9027 * w32fns.c (w32_unload_font): Likewise.
9028 * w32font.c (w32font_close): Likewise.
9029 * window.c (size_window): Likewise.
9030 * xselect.c (receive_incremental_selection): Likewise.
9031 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9032 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9033 * w32.c (stat): Likewise.
9034
9035 Remove useless if-before-free tests.
9036 * editfns.c (Fset_time_zone_rule): Likewise.
9037 * lread.c (nosuffix): Likewise.
9038 * ralloc.c (get_bloc): Likewise.
9039 * regex.c (reg_free): Likewise.
9040 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9041 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9042 * xsmfns.c (smc_save_yourself_CB): Likewise.
9043
90442008-06-02 Kenichi Handa <handa@m17n.org>
9045
9046 * font.c (font_find_for_lface): Handle float font size.
9047 (font_open_for_lface): Likewise.
9048
9049 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9050 comparing the properties.
9051
90522008-06-01 Jason Rumney <jasonr@gnu.org>
9053
9054 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9055 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9056 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9057 Don't add empty script list.
9058 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9059
90602008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9061
9062 * Makefile.in (dot, dotdot): Remove, update users.
9063 ".." has been used elsewhere in the file for a long time.
9064 (LIBXT_STATIC): Remove conditional based on unused variable.
9065
90662008-06-01 Miles Bader <miles@gnu.org>
9067
9068 * xfaces.c (Vface_remapping_alist): New variable.
9069 (syms_of_xfaces): Initialize it.
9070 (enum named_merge_point_kind): New type.
9071 (struct named_merge_point): Add `named_merge_point_kind' field.
9072 (push_named_merge_point): Make cycle detection respect different
9073 named-merge-point kinds.
9074 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9075 Remove face-name alias resolution.
9076 (lface_from_face_name): New definition using
9077 `lface_from_face_name_no_resolve'.
9078 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9079 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9080 (get_lface_attributes): New definition that layers face-remapping on
9081 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9082 (lookup_basic_face): New function.
9083 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9084 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9085 `get_lface_attributes'.
9086 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9087 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9088 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9089
9090 * xdisp.c (init_iterator): Pass base_face_id through
9091 `lookup_basic_face' when we actually use it as a face-id.
9092 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9093 DEFAULT_FACE_ID.
9094
9095 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9096 lookup the initial face-id.
9097
9098 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9099
91002008-06-01 Juanma Barranquero <lekktu@gmail.com>
9101
9102 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9103 (Fremove_text_properties): Fix typos in docstrings.
9104
91052008-05-31 Kenichi Handa <handa@m17n.org>
9106
9107 * font.c (font_list_entities): Fix the car part of data to be
9108 stored in the cache.
9109
9110 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9111
91122008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9113
9114 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9115 Add a `test' argument so another predicate than `equal' can be used.
9116 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9117 (map_char_table): Remove unused vars `c' and `i'.
9118 * lisp.h (Foptimize_char_table): Adjust declaration.
9119 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9120
91212008-05-30 Kenichi Handa <handa@m17n.org>
9122
9123 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9124 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9125 defined.
9126
91272008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9128
9129 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9130 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9131 frame-local settings for the same variable.
9132
91332008-05-30 Kenichi Handa <handa@m17n.org>
9134
9135 * fontset.c (Ffont_info): Move to font.c.
9136 (syms_of_fontset): Delete defsubr of Sfont_info.
9137
9138 * font.c (font_style_to_value, font_score): Delete casting of the
9139 args to xstcasecmp.
9140 (register_font_driver): Increment num_font_drivers only when
9141 registering the driver globally.
9142 (Ffont_info): Move from fontset.c. Handle a font object too.
9143 (syms_of_font): Defsubr Sfont_info.
9144
91452008-05-29 Kenichi Handa <handa@m17n.org>
9146
9147 * coding.h (enum define_coding_utf8_arg_index): New enum.
9148 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9149 coding_attr_utf_bom.
9150 (enum utf_bom_type): Rename from utf_16_bom_type.
9151 (struct utf_16_spec): Adjust for the above change.
9152 (struct coding_system): Add utf_8_bom in `spec' union.
9153
9154 * coding.c (CODING_UTF_8_BOM): New macro.
9155 (enum coding_category): Delete coding_category_utf_8, add
9156 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9157 coding_category_utf_8_sig.
9158 (CATEGORY_MASK_UTF_8): Delete it.
9159 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9160 (CATEGORY_MASK_UTF_8_SIG): New macros.
9161 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9162 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9163 CATEGORY_MASK_UTF_8_SIG.
9164 (CATEGORY_MASK_UTF_8): New macro.
9165 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9166 (detect_coding_utf_8): Check BOM.
9167 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9168 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9169 (encode_coding_utf_16): Likewise.
9170 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9171 (detect_coding, detect_coding_system): Handle utf-8-auto.
9172 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9173 (syms_of_coding): Fix setting up of Vcoding_category_table.
9174
91752008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9176
9177 * process.c (Faccept_process_output): If `millisec' is non-nil,
9178 `seconds' default to 0.
9179 (wait_reading_process_output): Also return non-nil if we read output
9180 from a non-running process.
9181
91822008-05-29 Jason Rumney <jasonr@gnu.org>
9183
9184 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9185 `raster' specified.
9186 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9187 in the uniscribe backend, but disallow any font that has no
9188 unicode subrange support.
9189
91902008-05-29 Juanma Barranquero <lekktu@gmail.com>
9191
9192 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9193 Fix typos in docstrings.
9194
91952008-05-29 Kenichi Handa <handa@m17n.org>
9196
9197 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9198 (Fx_family_fonts): Set frame correctly.
9199
92002008-05-28 Jason Rumney <jasonr@gnu.org>
9201
9202 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9203
92042008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9205
9206 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9207 calling build_annotations.
9208
92092008-05-28 Juanma Barranquero <lekktu@gmail.com>
9210
9211 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9212 (Fencode_coding_string):
9213 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9214 <latin-extra-code-table>: Fix typos in docstrings.
9215 (syms_of_coding) <coding-system-alist>: Doc fix.
9216 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9217
92182008-05-28 Kenichi Handa <handa@m17n.org>
9219
9220 * fontset.c (Ffont_info): Don't call font_close_object.
9221
9222 * font.c (font_parse_family_registry): Use Ffont_put to validate
9223 foundry and family.
9224 (font_delete_unmatched): Don't check spacing.
9225 (font_list_entities): Add spacing to the spec to list fonts.
9226
9227 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9228 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9229
9230 * coding.c (encode_coding_raw_text): Fix previous change.
9231 (encode_coding_object): When the dst_object is a buffer and is
9232 different from src_object, move gap to PT.
9233
92342008-05-27 Chong Yidong <cyd@stupidchicken.com>
9235
9236 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9237
92382008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9239
9240 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9241 all branches. Compute it differently.
9242
9243 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9244
92452008-05-27 Juanma Barranquero <lekktu@gmail.com>
9246
9247 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9248 into "else if () ... else ...".
9249
92502008-05-27 Jason Rumney <jasonr@gnu.org>
9251
9252 * w32font.c (w32font_open_internal): Determine if glyph indices
9253 are likely to work here.
9254
92552008-05-27 Chong Yidong <cyd@stupidchicken.com>
9256
9257 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9258 draw overlap glyphs with appropriate highlighting.
9259
92602008-05-27 Kenichi Handa <handa@m17n.org>
9261
9262 * xfont.c (xfont_open): Fix calculation of font->average_width.
9263
92642008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9265
9266 * casefiddle.c (casify_object): Try to guess better whether the
9267 argument is a byte or a char.
9268
92692008-05-26 Andreas Schwab <schwab@suse.de>
9270
9271 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9272 Always send multiples of format size.
9273
9274 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9275
92762008-05-26 Jason Rumney <jasonr@gnu.org>
9277
9278 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9279 (compute_metrics): Don't set failure if we just cleared the cache.
9280 (w32_weight_table): Remove unused variable.
9281 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9282 backwards compatibility.
9283
92842008-05-25 Kenichi Handa <handa@m17n.org>
9285
9286 * w32term.c (x_draw_glyph_string):
9287 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9288
9289 * xfaces.c: Delete unused function prototypes.
9290 (xstrlwr, font_frame): Delete them.
9291 (clear_face_cache): Delete unused variable.
9292
9293 * xftfont.c (xftfont_open): Delete unused variable.
9294 If underline_thickness is not 1, adjust underline_position.
9295
9296 * ftxfont.c (ftxfont_open): Delete unused variable.
9297
9298 * fontset.c (face_for_char): Optimize for the case of no charset
9299 property.
9300
9301 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9302 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9303 (otf_open, font_otf_capability, generate_otf_features)
9304 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9305 Comment out by surrounding "#if 0" and "#endif" for the moment.
9306 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9307 (syms_of_font): Codes for accessing above commented out.
9308
93092008-05-24 Eli Zaretskii <eliz@gnu.org>
9310
9311 * w32proc.c: Include dispextern.h.
9312
9313 * w32.c: Include dispextern.h.
9314
93152008-05-23 Juanma Barranquero <lekktu@gmail.com>
9316
9317 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9318 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9319 Fix typos in docstrings.
9320
93212008-05-23 Jason Rumney <jasonr@gnu.org>
9322
9323 * xsmfns.c: Remove includes that are already included by config.h.
9324
93252008-05-23 Kenichi Handa <handa@m17n.org>
9326
9327 * charset.c (Qemacs, charset_emacs): New variables.
9328 (char_charset): Fix for non-Unicode characters.
9329 (syms_of_charset): Define charset_emacs.
9330
9331 * w32term.c (x_draw_glyph_string): Be sure to update
9332 s->underline_thickness and s->underline_position. Be sure to draw
9333 underline within the current line area.
9334
9335 * xterm.c (x_draw_glyph_string): Be sure to update
9336 s->underline_thickness and s->underline_position. Be sure to draw
9337 underline within the current line area.
9338
9339 * fontset.c: Delete unused variables and add casting for char *
9340 throughout the file.
9341 (fontset_font): Try the fallback fonts of the current fontset
9342 before consulting the default fontset.
9343
9344 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9345
9346 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9347
93482008-05-22 Jason Rumney <jasonr@gnu.org>
9349
9350 * font.c: Don't include strings.h.
9351
9352 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9353
9354 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9355 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9356 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9357 to call xstrcasecmp.
9358
9359 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9360
9361 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9362
9363 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9364
9365 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9366
93672008-05-22 Kenichi Handa <handa@m17n.org>
9368
9369 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9370
9371 * font.c (font_prop_validate_style): Adjust for the format
9372 change of font_style_table.
9373
9374 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9375 two args.
9376
9377 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9378 two args.
9379
93802008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9381
9382 * minibuf.c (keys_of_minibuf): Delete.
9383 * lisp.h (keys_of_minibuf): Delete.
9384 * emacs.c (main): Don't call keys_of_minibuf.
9385
93862008-05-22 Kenichi Handa <handa@m17n.org>
9387
9388 * ftfont.c (ftfont_resolve_generic_family): Rename from
9389 ftfont_list_generic_family. Return a single family for each
9390 generic family.
9391 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9392 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9393 Call font_add_log.
9394 (ftfont_match): Call font_add_log.
9395
9396 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9397 (FONT_DEBUG): Define it.
9398 (font_add_log): Extern it.
9399 (font_assert): Rename from xassert.
9400
9401 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9402 (xfont_list_family): Call font_add_log.
9403 (xfont_match): Likewise.
9404 (memq_no_quit): Delete.
9405
9406 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9407 call of Ffont_xlfd_name.
9408
9409 * xfaces.c (struct table_entry, slant_table, weight_table)
9410 (swidth_table): Move to font.c.
9411
9412 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9413 xassert are changed to font_assert. Delete many unused variables.
9414 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9415 New variables.
9416 (struct table_entry): Move from xfaces.c and modified.
9417 (weight_table, slant_table, width_table): Move from xfaces.c and
9418 contents adjusted for the change of struct table_entry.
9419 (font_style_to_value, font_style_symbolic): Adjust for the
9420 format change of font_style_table.
9421 (font_parse_family_registry): Don't overwrite existing foundry and
9422 family of font_spec.
9423 (font_score): Fix calculation of diff for sizes.
9424 (font_sort_entites): Call font_add_log.
9425 (font_delete_unmatched): Return a newly created list.
9426 (font_list_entities): Fix previous change. Call font_add_log.
9427 (font_matching_entity, font_open_entity, font_close_entity):
9428 Call font_add_log.
9429 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9430 (Finternal_set_font_style_table): Delete.
9431 (BUILD_STYLE_TABLE): New macro.
9432 (build_style_table): New function.
9433 (Vfont_log, font_log_env_checked): New variables.
9434 (font_add_log): New function.
9435 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9436 Declare Lisp variables "font-weight-table", "font-slant-table",
9437 "font-width-table", and "font-log". Initialize font_style_table.
9438
94392008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9440
9441 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9442
94432008-05-21 Seiji Zenitani <zenitani@mac.com>
9444 Ryo Yoshitake <ryo@shiftmode.net>
9445
9446 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9447 (Vframe_alpha_lower_limit): New variable.
9448 (x_set_alpha): New function.
9449
9450 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9451
9452 * xfns.c (x-create-frame, Qalpha):
9453 Initialize the frame parameter `alpha'.
9454 * xterm.c (OPAQUE, OPACITY): New.
9455 (x_set_frame_alpha): New function.
9456 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9457
9458 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9459 * w32fns.c (w32_frame_parm_handlers): Likewise.
9460
94612008-05-20 Jason Rumney <jasonr@gnu.org>
9462
9463 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9464 truetype fonts to opentype list.
9465
94662008-05-20 Juanma Barranquero <lekktu@gmail.com>
9467
9468 * fontset.c (Ffontset_info): Doc fix.
9469 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9470 <ignore-relative-composition>: Fix typos in docstrings.
9471
9472 * font.c (syms-of-font) <font-encoding-alist>:
9473 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9474 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9475 (Ffont_otf_alternates): Doc fixes.
9476
94772008-05-20 Kenichi Handa <handa@m17n.org>
9478
9479 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9480 font.h through out the file.
9481 (FONT_DRIVERS): Rename from FONTOBJ.
9482 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9483 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9484
9485 * emacs.c (main): Call syms_of_font unconditionally.
9486
9487 * font.h (find_font_encoding): Extern it.
9488
9489 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9490 fontset.c.
9491 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9492 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9493 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9494 only when HAVE_WINDOW_SYSTEM is defined.
9495 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9496 when HAVE_WINDOW_SYSTEM is defined.
9497
9498 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9499 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9500
9501 * xfaces.c: Include font.h unconditionally.
9502 (merge_face_ref, merge_face_vectors)
9503 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9504
95052008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9506
9507 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9508 indirect_variable.
9509 * eval.c (lisp_indirect_variable): New fun.
9510 (Fuser_variable_p): Use it.
9511
95122008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9513
9514 * lisp.h (indirect_variable):
9515 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9516 Use Lisp_Symbol pointers rather than Lisp_Object.
9517 Adjust callers.
9518 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9519 To this end, change calling-convention.
9520
9521 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9522 if some non-hidden buffers are selected by string&pred.
9523
95242008-05-19 Chong Yidong <cyd@stupidchicken.com>
9525
9526 * process.c (wait_reading_process_output): Always check status
9527 when in batch mode.
9528
95292008-05-19 Kenichi Handa <handa@m17n.org>
9530
9531 * font.c (font_list_entities): Fix handling of cache.
9532 (font_matching_entity): Likewise.
9533
9534 * ftfont.c (cs_iso8859_1): Delete.
9535 (ft_face_cache): New variable.
9536 (struct ftfont_info): New member fc_charset_idx.
9537 (ftfont_build_basic_charsets): Delete.
9538 (fc_charset_table): New variable.
9539 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9540 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9541 Callers changed.
9542 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9543 (ftfont_spec_pattern): New argument fc_charset_idx.
9544 Check registry more rigidly. Change callers.
9545 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9546 change of :font-entity property of the font.
9547
9548 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9549 property of the font.
9550
95512008-05-18 Juanma Barranquero <lekktu@gmail.com>
9552
9553 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9554 (Funencodable_char_position, Fcheck_coding_systems_region)
9555 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9556 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9557 (Ffind_operation_coding_system, Fset_coding_system_priority)
9558 (Fcoding_system_eol_type): Doc fixes.
9559
95602008-05-17 Glenn Morris <rgm@gnu.org>
9561
9562 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9563
95642008-05-16 Eli Zaretskii <eliz@gnu.org>
9565
9566 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9567 and st_gid.
9568
9569 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9570 HAVE_WINDOW_SYSTEM is not defined.
9571
9572 * xfaces.c (merge_face_ref, merge_face_vectors)
9573 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9574 HAVE_WINDOW_SYSTEM is defined.
9575 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9576
95772008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9578
9579 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9580
95812008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9582
9583 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9584
95852008-05-15 Kenichi Handa <handa@m17n.org>
9586
9587 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9588 preference.
9589
95902008-05-15 Glenn Morris <rgm@gnu.org>
9591
9592 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9593
95942008-05-15 Chong Yidong <cyd@stupidchicken.com>
9595
9596 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9597 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9598
9599 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9600
96012008-05-15 Kenichi Handa <handa@m17n.org>
9602
9603 * ftfont.c (ftfont_list): Downcase family name to check generic
9604 families.
9605
9606 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9607 font-spec for QCfont value.
9608
9609 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9610 buffer. Check the return value of it.
9611
96122008-05-14 Jason Rumney <jasonr@gnu.org>
9613
9614 * w32term.c (w32_get_glyph_overhangs): Remove.
9615 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9616
96172008-05-14 Kenichi Handa <handa@m17n.org>
9618
9619 * font.c (font_prop_validate): Make nil a valid value.
9620 (font_clear_cache): Check if the cached vector of entities is nil
9621 or not.
9622
96232008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9624
9625 * emacs.c (main_thread): Conditionalize on
9626 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9627 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9628
9629 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9630 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9631 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9632
96332008-05-14 Kenichi Handa <handa@m17n.org>
9634
9635 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9636 has no corresponding coding system.
9637
96382008-05-14 Jason Rumney <jasonr@gnu.org>
9639
9640 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9641
9642 * w32font.h (w32font_open_internal): Update declaration.
9643
9644 * w32font.c (w32font_open_internal): Change last argument from
9645 w32font_info struct to font object. Fill in font object from
9646 font_entity. Get Outline metrics if possible. Use them to
9647 calculate underline position and thickness. Use xlfd name as name
9648 property. Don't set codepage.
9649 (w32font_open): Pass font_object to w32font_open_internal. Don't
9650 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9651 (w32font_draw): Use s->font.
9652 (clear_cached_metrics): Don't clear non-existent blocks.
9653
9654 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9655 font was not found.
9656 (x_draw_glyph_string): Use underline position and thickness from font.
9657
9658 * w32uniscribe.c (uniscribe_open): Pass font_object to
9659 w32font_open_internal.
9660
96612008-05-14 Kenichi Handa <handa@m17n.org>
9662
9663 These changes are to delete all legacy font-handling codes, and
9664 make Emacs use only font-backends.
9665
9666 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9667 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9668
9669 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9670
9671 * charset.h (Vcharset_non_preferred_head)
9672 (Vcurrent_iso639_language): Extern them.
9673
9674 * charset.c (Vcharset_non_preferred_head): New variable.
9675 (Vcurrent_iso639_language): New variable.
9676 (syms_of_charset): Declare it as a Lisp variable.
9677 (char_charset): Don't check non preferred charsets. As a last
9678 resort, return charset_unicode.
9679 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9680
9681 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9682 conditionals. Don't check enable_font_backend. Delete all codes
9683 used only when USE_FONT_BACKEND is not defined.
9684
9685 * dispextern.h (struct glyph_string): Change type of `font' to
9686 `struct font *'.
9687 (struct glyph_string): New member underline_position and
9688 underline_thickness.
9689 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9690 (struct face): Change type of `font' to `struct font *'. Remove
9691 members `font_name', `font_info_id'.
9692 (per_char_metric, encode_char): Delete externs.
9693 (calc_pixel_width_or_height): Adjust the prototype.
9694
9695 * emacs.c (enable_font_backend): Delete extern.
9696 (main): Don't set enable_font_backend. Don't check the command
9697 line argument "-disable-font-backend".
9698
9699 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9700 (enum font_property_index): New members FONT_DPI_INDEX,
9701 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9702 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9703 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9704 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9705 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9706 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9707 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9708 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9709 (struct font_spec, struct font_entity): New structs.
9710 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9711 (struct font): Many members from old "struct font_info" moved to
9712 here. Members font and entity deleted.
9713 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9714 the new font-related objects.
9715 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9716 (CHECK_FONT_GET_OBJECT): Likewise.
9717 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9718 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9719 (struct font_driver): New members case_sensitive anc check. Type
9720 of the member list and open changed.
9721 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9722 (font_symbolic_width, font_find_object, font_get_spec)
9723 (font_set_lface_from_name): Delete extern.
9724 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9725
9726 * font.c: Include <strings.h>.
9727 (enable_font_backend): Delete it.
9728 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9729 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9730 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9731 (null_string): Delete it.
9732 (null_vector): Make it static.
9733 (font_family_alist): Delete it.
9734 (Qnormal): Extern it.
9735 (QCextra, QClanguage): Delete it.
9736 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9737 (font_make_spec, font_make_entity, font_make_object)
9738 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9739 the string. Callers changed.
9740 (font_pixel_size): Adjusted for the format change of font-related
9741 objects.
9742 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9743 (font_style_to_value, font_style_symbolic): New function.
9744 (build_font_family_alist): Delete it.
9745 (font_registry_charsets): Use Fassoc_string instead of
9746 assq_no_quit.
9747 (font_prop_validate_symbol): Don't return null_string.
9748 (font_prop_validate_style): Adjusted for the change of
9749 style-related values in a font vector.
9750 (font_property_table): Delete entries for QClanguage and
9751 QCantialias, add entries for QCavgwidth.
9752 (get_font_prop_index): Delete the 2nd argument FROM.
9753 (font_prop_validate): Arguments changed.
9754 (font_put_extra): Adjusted for the change of font-related objects.
9755 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9756 (font_parse_fcname, font_unparse_fcname)
9757 (font_prepare_composition): Likewise.
9758 (font_parse_family_registry): Renamed from font_merge_old_spec.
9759 (otf_open): Delete the 1st arg entity.
9760 (font_otf_capability): Adjusted for the above change.
9761 (font_score): New arg alternate_families. Adjusted for the change
9762 of font-related objects.
9763 (font_sort_entites): New arg best_only.
9764 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9765 Delete them.
9766 (font_match_p): Check alternate families.
9767 (font_find_object): Delete it.
9768 (font_check_object): New function.
9769 (font_clear_cache): Adjusted for the change of font-related objects.
9770 (font_delete_unmatched): New arg.
9771 (font_list_entities): Call font_driver->list with a spec that
9772 doesn't specify style-related properties.
9773 (font_matching_entity): Arguments changed. Caller changed.
9774 (font_open_entity): Adjusted for the change of font-related objects.
9775 (font_close_object, font_has_char, font_encode_char)
9776 (font_get_name, font_get_spec): Likewise.
9777 (font_spec_from_name, font_clear_prop, font_update_lface):
9778 New functions.
9779 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9780 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9781 (font_at): Adjusted for the change of font-related objects.
9782 (font_range): New function.
9783 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9784 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9785 (Fcopy_font_spec, Fmerge_font_spec): New function.
9786 (Ffont_family_list): Renamed from list-families.
9787 (Finternal_set_font_style_table): Arguments changed.
9788 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9789 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9790 change of font-related objects.
9791 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9792
9793 * fontset.h (struct font_info): Delete it. Most members go to
9794 struct font.
9795 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9796 (enum FONT_SPEC_INDEX): Delete it.
9797 (font_info, list_fonts_func, load_font_func, query_font_func)
9798 (set_frame_fontset_func, find_ccl_program_func)
9799 (get_font_repertory_func, new_fontset_from_font_name): Delete
9800 externs.
9801 (fontset_from_font_name): Extern it.
9802 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9803 (FONT_INFO_FROM_FACE): Deleted.
9804 (face_for_font): Adjust prototype.
9805
9806 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9807 conditionals. Don't check enable_font_backend. Delete all codes
9808 used only when USE_FONT_BACKEND is not defined.
9809 (get_font_info_func, list_font_func, load_font_func)
9810 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9811 (get_font_repertory_func): Delete them.
9812 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9813 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9814 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9815 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9816 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9817 (fontset_compare_rfontdef): New function.
9818 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9819 rfont-defs by qsort. Adjusted for the change of font-group vector.
9820 (load_font_get_repertory): Deleted.
9821 (fontset_find_font): Use new macros to ref/set elements of
9822 font-def and rfont-def.
9823 (fontset_font): Fix the timing of remembering that no font for C.
9824 (free_face_fontset): Do nothing if the face has no fontset.
9825 (face_suitable_for_char_p): Use new macros to ref/set elements of
9826 rfont-def.
9827 (face_for_char): Likewise. Call face_for_char with font_object.
9828 (fs_load_font): Delete. Delete #pragma surrounding it.
9829 (fs_query_fontset): Use strcasecmp instead of strcmp.
9830 (generate_ascii_font_name): Adjusted for the format change of
9831 font-spec.
9832 (Fset_fontset_font): Likewise. Use new macros to set elements of
9833 font-def.
9834 (Fnew_fontset): Use font_unparse_xlfd to generate
9835 FONTSET_ASCII (fontset).
9836 (new_fontset_from_font_name): Deleted.
9837 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9838 a fontset is already created for the font. FIx updating of
9839 Vfontset_alias_alist.
9840 (fontset_ascii_font): Deleted.
9841 (Ffont_info): Adjusted for the format change of font-spec.
9842 (Finternal_char_font): Likewise.
9843 (Ffontset_info): Likewise.
9844 (syms_of_fontset): Don't check load_font_func.
9845
9846 * fns.c (internal_equal): Handle PREV_FONT.
9847
9848 * frame.h: Delete USE_FONT_BACKEND conditional.
9849
9850 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9851 conditionals. Don't check enable_font_backend. Delete all codes
9852 used only when USE_FONT_BACKEND is not defined.
9853 (x_set_font): Call x_new_font, not x_new_fontset2.
9854 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9855 already set for the frame.
9856
9857 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9858 a font-entity by font_make_entity. Use font_intern_prop instead
9859 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9860 font property. If a font is scalable, set avgwidth property to 0.
9861 Set font-entity property by font_put_extra.
9862 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9863 (ffont_driver): Adjusted for the change of struct font_driver.
9864 (ftfont_spec_pattern): New function.
9865 (ftfont_list): Return a list, not vector.
9866 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9867 (ftfont_list_family): Don't downcase names.
9868 (ftfont_free_entity): Deleted.
9869 (ftfont_open): Return a font-object. Adjusted for the change of
9870 struct font. Get underline_thickness and underline_position from
9871 font property. Don't update dpyinfo->smallest_font_height and
9872 dpyinfo->smallest_char_width.
9873 (ftfont_close): Don't free `struct font'.
9874 (ftfont_has_char): Adjusted for the format change of font-entity.
9875 (ftfont_encode_char, ftfont_text_extents): Likewise.
9876
9877 * ftxfont.c (ftxfont_list): Return a list, not vector.
9878 (ftxfont_open): Return a font-object. Adjusted for the change of
9879 struct font. Get underline_thickness and underline_position from
9880 font property. Don't update dpyinfo->smallest_font_height and
9881 dpyinfo->smallest_char_width.
9882 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9883 (ftxfont_draw): Adjusted for the change of struct font.
9884
9885 * image.c (image_ascent): Don't include "charset.h". Include
9886 "character.h" and "font.h".
9887
9888 * lisp.h (enum pvec_type): New member PREV_FONT.
9889 (Fassoc_string): EXFUN it.
9890
9891 * print.c: Include font.h.
9892 (print_object): Handle font-related objects.
9893
9894 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9895 conditionals. Don't check enable_font_backend. Delete all codes
9896 used only when USE_FONT_BACKEND is not defined.
9897 (handle_auto_composed_prop): Do nothing if it->f is not on a
9898 window system. Check how many following characters can be
9899 displayed by the same font.
9900 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9901 'struct font *'.
9902 (get_char_face_and_encoding): Assign the whole encoding task to
9903 the `encode-char' method of a font driver.
9904 (fill_composite_glyph_string): Adjusted for the change of `struct
9905 face' and `struct glyph_string'.
9906 (fill_glyph_string): Likewise.
9907 (get_per_char_metric): Arguments changed.
9908 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9909 and `struct glyph_string'.
9910 (produce_stretch_glyph, calc_line_height_property)
9911 (x_produce_glyphs): Likewise.
9912
9913 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9914 conditionals. Don't check enable_font_backend. Delete all codes
9915 used only when USE_FONT_BACKEND is not defined. Use
9916 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9917 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9918 (Qp): Extern them.
9919 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9920 Deleted.
9921 (struct font_name): Deleted.
9922 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9923 (compare_fonts_by_sort_order): New function.
9924 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9925 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9926 Deleted.
9927 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9928 compare_fonts_by_sort_order.
9929 (Fx_font_family_list): Call Ffont_family_list.
9930 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9931 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9932 (face_symbolic_slant, face_symbolic_swidth)
9933 (split_font_name_into_vector, build_font_name_from_vector)
9934 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9935 (font_rescale_ratio, split_font_name, build_font_name)
9936 (free_font_names, sort_fonts, x_face_list_fonts)
9937 (face_font_available_p, sorted_font_list, cmp_font_names)
9938 (font_list_1, concat_font_list, font_list, remove_duplicates):
9939 Deleted.
9940 (Fx_list_fonts): Use Ffont_list.
9941 (LFACE_AVGWIDTH): Deleted.
9942 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9943 by FONTP.
9944 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9945 (set_lface_from_font_name): Delete it.
9946 (set_lface_from_font): Renamed from
9947 set_lface_from_font_and_fontset. Caller changed. Don't set
9948 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9949 for face.
9950 (merge_face_vectors): Copy font-spec if necessary.
9951 Clear properties of the font-spec if necessary.
9952 (merge_face_ref): Clear properties of the font-spec if necessary.
9953 (Finternal_set_lisp_face_attribute): Likewise.
9954 (set_font_frame_param): Use font_load_for_lface to load a
9955 font-object, and call Fmodify_frame_parameters with it.
9956 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9957 font name by Ffont_xlfd_name.
9958 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9959 QCslant, and QCwidth.
9960 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9961 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9962 Compare fonts by EQ.
9963 (lookup_non_ascii_face): Deleted.
9964 (face_for_font): The 2nd argument changed.
9965 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9966 Check atomic font properties by case insensitive.
9967 (realize_non_ascii_face): Set face->overstrike correctly.
9968 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9969 (dump_realized_face): Get font name from
9970 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9971
9972 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9973 conditionals. Don't check enable_font_backend. Delete all codes
9974 used only when USE_FONT_BACKEND is not defined.
9975 (xic_create_xfontset): Original code deleted and renamed from
9976 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9977 (x_make_gc): Don't set GCFont in GCs.
9978 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9979 opened by "fixed".
9980 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9981 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9982 get_font_repertory_func.
9983
9984 * xfont.c: Include <stdlib.h> and "ccl.h".
9985 (struct xfont_info): New structure.
9986 (xfont_query_font): Deleted.
9987 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9988 moved from xterm.c.
9989 (xfont_driver): Adjusted for the change of struct font_driver.
9990 (compare_font_names): New function.
9991 (xfont_list_pattern): Sort font names case insensitively. Make
9992 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9993 (xfont_list): Return a list, not vector.
9994 (xfont_match): If the font doesn't have QCname property, generate
9995 a name from the other font properties.
9996 (xfont_open): Return a font-object. Adjusted for the change of
9997 struct font. Get underline_thickness and underline_position from
9998 font property. Don't update dpyinfo->smallest_font_height and
9999 dpyinfo->smallest_char_width.
10000 (xfont_close): Don't free struct font.
10001 (xfont_prepare_face): Adjusted for the change of struct font.
10002 (xfont_done_face): Deleted.
10003 (xfont_has_char): Adjusted for the change of struct font.
10004 (xfont_encode_char, xfont_draw): Likewise.
10005 (xfont_check): New function.
10006
10007 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10008 callback function.
10009 (xftfont_match): Adjusted for the format change of font-entity.
10010 (xftfont_open): Adjusted for the format change of font-entity and
10011 font-object. Adjusted for the change of struct font. Return a
10012 font-object. Don't update dpyinfo->smallest_font_height and
10013 dpyinfo->smallest_char_width.
10014 (xftfont_close): Block input while calling XftFontClose.
10015 (xftfont_prepare_face): Don't block input while calling
10016 xftfont_get_colors. Adjusted for the change of struct font.
10017 (xftfont_shape): Return value of error case fixed.
10018
10019 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10020
10021 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10022 conditionals.
10023 (FONT_WIDTH): Return (f)->max_width.
10024 (struct x_display_info): Delete member `font'.
10025 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10026 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10027 (struct x_output): Change type of `font' to `struct font *'.
10028
10029 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10030 conditionals. Don't check enable_font_backend. Delete all codes
10031 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10032 (x_per_char_metric, x_encode_char): Deleted.
10033 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10034 (x_compute_glyph_string_overhangs): Adjusted for the change of
10035 `struct face'.
10036 (x_draw_glyph_string_foreground)
10037 (x_draw_composite_glyph_string_foreground): Likewise.
10038 (x_draw_glyph_string): Likewise. Use font->underline_position and
10039 font->underline_thickness.
10040 (x_new_font): Renamed from x_new_fontset2.
10041 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10042 (x_check_font): Call `check' method of a font driver.
10043 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10044 (x_query_font, x_get_font_repertory): Deleted.
10045 (x_find_ccl_program): Renamed and moved to xfont.c.
10046 (x_redisplay_interface): Adjusted for the change of `struct
10047 redisplay_interface'.
10048
10049 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10050 conditionals. Don't check enable_font_backend. Delete all codes
10051 used only when USE_FONT_BACKEND is not defined. Surround non-used
10052 code by "#ifdef OLD_FONT" and "endif".
10053 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10054
10055 * w32font.h (struct w32font_info): New member.
10056 (FONT_COMPAT): New macro.
10057 (w32font_open_internal): Prototype adjusted.
10058
10059 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10060 OLD_FONT" and "endif".
10061
10062 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10063 conditionals. Don't check enable_font_backend. Delete all codes
10064 used only when USE_FONT_BACKEND is not defined.
10065 (w32font_open): Return a font-object. Make a font-object by
10066 font_make_object. Adjusted for the change of struct w32font_info.
10067 (w32font_close): Don't free struct font. Adjusted for the change
10068 of struct w32font_info.
10069 (w32font_encode_char, w32font_text_extents, w32font_draw):
10070 Adjusted for the change of struct w32font_info.
10071 (w32font_draw): Likewise.
10072 (w32font_list_internal): Return a list, not vector.
10073 (w32font_open_internal): Change the 4th arg to font-object.
10074 Adjusted for the change of struct w32font_info and font-object format.
10075 (add_font_name_to_list): Don't downcase names.
10076 (w32_enumfont_pattern_entity): Make a font-entity by
10077 font_make_entity. Adjusted for the format change of font-entity.
10078 Use FONT_SET_STYLE to set a style-related font property. If a
10079 font is scalable, set avgwidth property to 0. Set font-entity
10080 property by font_put_extra.
10081 (font_matches_spec): Adjusted for the format change of font-entity.
10082 (w32_weight_table, w32_decode_weight): New variables.
10083 (w32_encode_weight): New function.
10084 (fill_in_logfont): Adjusted for the format change of font-spec.
10085 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10086 weight value.
10087 (w32font_driver): Adjusted for the change of struct font_driver.
10088
10089 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10090 conditionals. Don't check enable_font_backend. Surround non-used
10091 code by "#ifdef OLD_FONT" and "endif".
10092 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10093 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10094
10095 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10096 conditionals. Don't check enable_font_backend. Delete all codes
10097 used only when USE_FONT_BACKEND is not defined. Surround non-used
10098 code by "#ifdef OLD_FONT" and "endif".
10099
10100 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10101 (uniscribe_open): Return value changed to font-object.
10102 Adjusted for the format change of font-object.
10103 (uniscribe_otf_capability): Adjusted for the change of struct font.
10104 (add_opentype_font_name_to_list): Don't downcase names.
10105 (uniscribe_font_driver): Adjusted for the change of struct
10106 font_driver.
10107
101082008-05-13 Chong Yidong <cyd@stupidchicken.com>
10109
10110 * dispnew.c (update_frame_1): Check if tty output is still valid
10111 before flushing it.
10112
101132008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10114
10115 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10116 to Gtk+ menus.
10117
101182008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10119
10120 * dired.c (file_name_completion): Tweak the code so as to always do it
10121 in a single pass. Tighten the scope of some variables.
10122
10123 * dired.c (Qdefault_directory): New var.
10124 (file_name_completion): Use it instead of Fexpand_file_name.
10125 (syms_of_dired): Initialize it.
10126
101272008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10128
10129 * fileio.c (double_dollars): Remove dead code.
10130
101312008-05-10 Eli Zaretskii <eliz@gnu.org>
10132
10133 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10134 Mention w32-get-true-file-attributes in doc string.
10135
10136 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10137
101382008-05-09 Glenn Morris <rgm@gnu.org>
10139
10140 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10141 2008-04-23.
10142
101432008-05-09 Eli Zaretskii <eliz@gnu.org>
10144
10145 Support for reporting owner and group of each file on MS-Windows:
10146 * dired.c (stat_uname, stat_gname): New functions, with special
10147 implementation for w32.
10148 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10149
10150 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10151 (dflt_group_name): New static variable.
10152 (dflt_group): Rename from the_group.
10153 (init_user_info): Init dflt_group fields. Get user's group name
10154 from LookupAccountSid.
10155 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10156 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10157 New initialization states.
10158 (globals_of_w32): Initialize them to zero. Initialize the default
10159 group name to "None".
10160 (GetFileSecurity_Name): New global var, the name of the function
10161 to call for GetFileSecurity.
10162 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10163 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10164 (get_file_security, get_security_descriptor_owner)
10165 (get_security_descriptor_group, is_valid_sid)
10166 (get_file_security_desc, get_rid, get_name_and_id)
10167 (get_file_owner_and_group): New functions.
10168 (stat): Use get_file_security_desc and get_file_owner_and_group to
10169 report the owner and primary group of each file. Don't ignore the
10170 high 32 bits of file's size, now that st_size is 64-bit wide.
10171 Fix test when to get true file attributes.
10172 (init_user_info): Use get_rid instead of equivalent inline code.
10173 (fstat): Don't ignore the high 32 bits of file's size.
10174
101752008-05-09 Chong Yidong <cyd@stupidchicken.com>
10176
10177 * image.c (png_load): Use correct bit-depth for setting background
10178 color.
10179
101802008-05-08 Eli Zaretskii <eliz@gnu.org>
10181
10182 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10183 epa-hook.elc.
10184
101852008-05-08 Juanma Barranquero <lekktu@gmail.com>
10186
10187 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10188
101892008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10190
10191 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10192 because the original parameters are in pure storage now.
10193 (mac_window): Remove unused params. Update callers.
10194
101952008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10196
10197 * lread.c (substitute_object_recurse): Use lower-level primitives.
10198 Don't signal errors when traversing sub-char-tables.
10199 Don't loop over all the possible characters when traversing char-tables.
10200
10201 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10202 just like we do in print.c.
10203
102042008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10205
10206 * minibuf.c (Ftry_completion): Remove code left over from when we used
10207 scmp instead of Fcompare_strings.
10208
102092008-05-04 Juanma Barranquero <lekktu@gmail.com>
10210
10211 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10212
102132008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10214
10215 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10216 Create bitmap context in native byte order.
10217
10218 * macterm.c (XDrawLine)
10219 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10220 context in native byte order.
10221
102222008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10223
10224 * config.in: Regenerate.
10225
10226 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10227 New definitions for Image I/O support.
10228 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10229 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10230 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10231 (mac_data_provider_release_data, image_load_image_io)
10232 [USE_MAC_IMAGE_IO]: New functions.
10233 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10234 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10235 (init_image_func_pointer) [MAC_OSX]: Remove function.
10236 (image_load_quartz2d) [MAC_OSX]: Check availability of
10237 CGImageCreateWithPNGDataProvider at compile time.
10238 Use lowercase `false' for boolean constant.
10239 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10240 Use image_load_image_io.
10241 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10242 Don't check MyCGImageCreateWithPNGDataProvider.
10243 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10244 Don't call init_image_func_pointer.
10245
10246 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10247
10248 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10249 Make variable non-static.
10250 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10251 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10252
10253 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10254 (RED_FROM_ULONG): Mask off higher bits.
10255 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10256
10257 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10258 Include AvailabilityMacros.h.
10259 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10260 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10261
102622008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10263
10264 * chartab.c (Fset_char_table_range): If range is t, really set all
10265 chars to that value.
10266
102672008-05-03 Eli Zaretskii <eliz@gnu.org>
10268
10269 * dired.c (Ffile_attributes): Don't allow the device number become
10270 negative.
10271
102722008-05-02 Daiki Ueno <ueno@unixuser.org>
10273
10274 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10275
102762008-05-02 Juri Linkov <juri@jurta.org>
10277
10278 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10279 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10280 DEFAULT argument as a list of default values in docstrings.
10281
102822008-05-01 Chong Yidong <cyd@stupidchicken.com>
10283
10284 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10285
102862008-05-01 Martin Rudalics <rudalics@gmx.at>
10287
10288 * dispnew.c (change_frame_size_1): Preserve small windows when
10289 shrinking frames by calling set_window_height|width with third
10290 arg 2.
10291
10292 * window.h (struct window): Replace field too_small_ok by field
10293 resize_proportionally.
10294
10295 * window.c (make_window): Initialize resize_proportionally.
10296 (enlarge_window): Temporarily set resize_proportionally to make
10297 sure that shrink_windows does scale the window proportionally.
10298 (shrink_windows): When window has resize_proportionally set try
10299 to shrink it proportionally by stealing from other windows.
10300 (struct saved_window, Fset_window_configuration)
10301 (compare_window_configurations): Handle resize_proportionally.
10302 (WINDOW_TOTAL_SIZE): New macro.
10303 (window_min_size, shrink_windows, size_window): Use it.
10304 (check_min_window_sizes): Remove. Invalid values of
10305 window-min-height|width are handled by window_min_size_2 now.
10306 (size_window, Fsplit_window, enlarge_window)
10307 (adjust_window_trailing_edge, grow_mini_window): Don't call
10308 check_min_window_sizes.
10309 (window_min_size_2, window_min_size_1, window_min_size):
10310 New argument safe_p for retrieving "safe" minimum sizes.
10311 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10312 (adjust_window_trailing_edge, grow_mini_window):
10313 Adjust arguments of window_min_size... functions.
10314 (shrink_windows): Argument min_size removed. New argument
10315 safe_p allows shrinking windows to their safe minimum sizes.
10316 Calculate minimum size and decide whether a window shall be
10317 deleted for each window individually.
10318 (size_window): When nodelete_p equals 2, tell shrink_windows to
10319 delete windows only if their new minimum size is no more safe.
10320 (shrink_window_lowest_first): Call window_min_size_1 to make
10321 sure to preserve modeline of bottom-most window when resizing
10322 the minibuffer.
10323 (Fset_window_configuration, Fcurrent_window_configuration)
10324 (compare_window_configurations): Do not handle
10325 window-min-height|width any more.
10326 (syms_of_window): Clarify window-min-height|width doc-strings.
10327
103282008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10329
10330 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10331 some more. Copy some of the code from Ftry_completions.
10332 Remove special case code that dates back to initial revision when the
10333 slash was only added when necessary and that can't trigger nowadays.
10334
103352008-04-27 Kenichi Handa <handa@m17n.org>
10336
10337 * font.c (font_prop_validate): Signal `error' instead of `font'.
10338
103392008-04-29 Jason Rumney <jasonr@gnu.org>
10340
10341 * w32fns.c (Fw32_battery_status): New defun.
10342 (syms_of_w32fns): Defsubr it.
10343
103442008-04-28 Andreas Schwab <schwab@suse.de>
10345
10346 * dired.c (file_name_completion): Fix another mixing of encoded
10347 and decoded names.
10348
103492008-04-28 Juanma Barranquero <lekktu@gmail.com>
10350
10351 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10352
103532008-04-27 Juanma Barranquero <lekktu@gmail.com>
10354
10355 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10356
103572008-04-27 Andreas Schwab <schwab@suse.de>
10358
10359 * dired.c (file_name_completion): Fix inappropriate mixing of
10360 encoded and decoded names.
10361
10362 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10363
10364 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10365
103662008-04-26 Eli Zaretskii <eliz@gnu.org>
10367
10368 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10369 2008-03-31, it's not needed anymore with `struct stat' definition
10370 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10371 for the same reasons.
10372
103732008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10374
10375 * m/sparc.h: Additional redefinitions for GNU/Linux.
10376
103772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10378
10379 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10380 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10381 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10382 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10383 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10384 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10385 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10386 Likewise.
10387
10388 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10389 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10390 (mac_ax_number_of_characters): Add externs.
10391 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10392 [USE_MAC_TSM]: Likewise.
10393 (mac_handle_text_input_event) [MAC_OSX]:
10394 Handle kEventTextInputOffsetToPos for no active input area case.
10395 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10396 (mac_handle_document_access_event)
10397 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10398 (install_application_handler) [MAC_OSX]: Register handlers for
10399 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10400 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10401 Register mac_handle_document_access_event.
10402
10403 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10404 Make functions non-static.
10405
104062008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10407
10408 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10409 (read_file_name_completion_ignore_case, insert_default_directory)
10410 (Qdefault_directory): Move to minibuffer.el.
10411 (Fread_file_name): Call the new `read-file-name' instead.
10412
104132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10414
10415 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10416 Make function non-static.
10417 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10418 Remove function.
10419 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10420 Move to mactoolbox.c.
10421 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10422
10423 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10424 (mac_rect_make): New macro.
10425
10426 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10427 instead of float.
10428 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10429 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10430 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10431 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10432 CGRectMake.
10433 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10434 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10435 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10436 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10437 instead of WindowRef in argument type.
10438 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10439 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10440 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10441 instead of DISPLAY. All uses changed.
10442 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10443 (x_calc_absolute_position): Simplify so as not to use
10444 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10445
10446 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10447 instead of WindowRef in argument type.
10448 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10449 [TARGET_API_MAC_CARBON]: Remove externs.
10450 (create_apple_event, mac_event_parameters_to_lisp)
10451 [TARGET_API_MAC_CARBON]: Add externs.
10452
10453 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10454 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10455 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10456 is clicked.
10457 (x_activate_menubar): Remove extern for saved_menu_event_location.
10458 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10459 Move from mac.c.
10460
104612008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10462
10463 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10464 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10465
104662008-04-23 Jason Rumney <jasonr@gnu.org>
10467
10468 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10469 attributes only for local files.
10470
10471 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10472 default to Qlocal.
10473
104742008-04-22 Juri Linkov <juri@jurta.org>
10475
10476 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10477 read-buffer-to-switch instead of using the letter "B".
10478
104792008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10480
10481 * fileio.c (Qdefault_directory): New variable.
10482 (Fread_file_name): Use it to pass `dir' to the completion functions.
10483
104842008-04-20 Chong Yidong <cyd@stupidchicken.com>
10485
10486 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10487
104882008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10489
10490 * keyboard.c (Vpre_help_message): Remove.
10491 (show_help_echo): Remove default C code.
10492
10493 * dired.c (directory_files_internal, file_name_completion):
10494 Only call ENCODE_FILE if the string is indeed decoded.
10495
104962008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10497
10498 * Makefile.in (TOOLKIT_DEFINES): Remove.
10499 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10500
105012008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10502
10503 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10504 (mactoolbox.o): New target.
10505
10506 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10507 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10508
10509 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10510 Use mac_set_frame_window_background instead of XSetWindowBackground.
10511 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10512 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10513 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10514 instead of SetWindowTitleWithCFString.
10515 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10516 Move function to mactoolbox.c.
10517 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10518 Use mac_set_window_modified instead of SetWindowModified.
10519 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10520 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10521 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10522 FrontNonFloatingWindow. Use mac_activate_window instead of
10523 ActivateWindow. Use mac_active_non_floating_window instead of
10524 ActiveNonFloatingWindow.
10525 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10526 Use mac_show_hourglass and mac_hide_hourglass.
10527 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10528 instead of GetGlobalMouse.
10529 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10530 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10531 Use mac_bring_window_to_front instead of BringToFront.
10532 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10533 mactoolbox.c.
10534 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10535 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10536 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10537 mactoolbox.c.
10538
10539 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10540 (XtPointer): Move typedef from macmenu.c.
10541 (enum button_type): Move enum from macmenu.c.
10542 (widget_value): Move typedef from macmenu.c.
10543 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10544 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10545 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10546 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10547 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10548 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10549 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10550 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10551 (Selection): Move typedef from macselect.c.
10552 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10553 macterm.c.
10554 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10555 (mac_is_window_collapsed, mac_bring_window_to_front)
10556 (mac_send_window_behind, mac_hide_window, mac_show_window)
10557 (mac_collapse_window, mac_front_non_floating_window)
10558 (mac_active_non_floating_window, mac_activate_window)
10559 (mac_move_window_structure, mac_move_window, mac_size_window)
10560 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10561
10562 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10563 (enum mac_menu_kind): Move enum to mactoolbox.c.
10564 (min_menu_id): Move variable to mactoolbox.c.
10565 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10566 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10567 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10568 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10569 [TARGET_API_MAC_CARBON]: Likewise.
10570 (XtPointer): Move typedef to macgui.h.
10571 (enum button_type): Move enum to macgui.h.
10572 (widget_value): Move typedef to macgui.h.
10573 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10574 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10575 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10576 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10577 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10578 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10579 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10580 (popup_activated_flag): Make variable non-static.
10581 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10582 (add_menu_item, fill_menu, dispose_menus):
10583 Move functions to mactoolbox.c.
10584 (restore_show_help_function, menu_target_item_handler)
10585 (install_menu_target_item_handler, mac_handle_dialog_event)
10586 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10587 [TARGET_API_MAC_CARBON]: Likewise.
10588 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10589 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10590 (find_and_call_menu_selection, name_is_separator): Make function
10591 non-static.
10592 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10593 to mactoolbox.c.
10594 (set_frame_menubar): Don't call install_menu_quit_handler.
10595 (menu_item_selection): New variable.
10596 (mac_menu_show): Use create_and_show_popup_menu.
10597 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10598 selection but set variable menu_item_selection. All uses changed.
10599 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10600 Call install_menu_quit_handler. Move to mactoolbox.c.
10601
10602 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10603 (Selection): Move typedef to macgui.h.
10604 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10605 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10606 Make variables non-static.
10607 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10608 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10609 Make functions non-static.
10610 (Vmac_service_selection) [MAC_OSX]: Likewise.
10611 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10612 (mac_valid_selection_target_p, mac_clear_selection)
10613 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10614 (mac_put_selection_value, mac_selection_has_target_p)
10615 (mac_get_selection_value, mac_get_selection_target_list)
10616 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10617 Move functions to mactoolbox.c.
10618 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10619 Likewise.
10620 (copy_scrap_flavor_data, mac_handle_service_event)
10621 (install_service_handler) [MAC_OSX]: Likewise.
10622 (syms_of_macselect) <Vmac_dnd_known_types>:
10623 Use mac_dnd_default_known_types.
10624
10625 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10626 Move to mactoolbox.c.
10627 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10628 (Fx_selection_owner_p): Add EXFUN.
10629 (install_window_handler, remove_window_handler, XSetWindowBackground):
10630 Remove externs.
10631 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10632 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10633 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10634 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10635 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10636 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10637 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10638 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10639 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10640 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10641 (mac_valid_selection_target_p, mac_clear_selection)
10642 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10643 (mac_put_selection_value, mac_selection_has_target_p)
10644 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10645 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10646 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10647 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10648 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10649 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10650 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10651 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10652 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10653
10654 * mactoolbox.c: New file.
10655
106562008-04-18 Jason Rumney <jasonr@gnu.org>
10657
10658 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10659
106602008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10661
10662 * character.c (Fmultibyte_char_to_unibyte):
10663 Return latin1 chars unchanged.
10664
10665 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10666 relocated if it points to `name'.
10667
106682008-04-17 Kenichi Handa <handa@m17n.org>
10669
10670 * data.c (Faset): Allow setting a multibyte character in an
10671 ASCII-only unibyte string.
10672
10673 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10674
106752008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10676
10677 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10678 done in config.h.
10679
106802008-04-16 Juanma Barranquero <lekktu@gmail.com>
10681
10682 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10683 (Fchar_direction): Add usage in the docstring.
10684
106852008-04-15 Chong Yidong <cyd@stupidchicken.com>
10686
10687 * keyboard.c (read_key_sequence): Remove always-true checks.
10688
106892008-04-14 Jason Rumney <jasonr@gnu.org>
10690
10691 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10692 compatibility struct, for better underline positioning.
10693
106942008-04-13 David Hansen <david.hansen@gmx.net>
10695
10696 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10697 string.
10698
106992008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10700
10701 * m/hp800.h (XUINT, XSET): Remove.
10702
107032008-04-12 Juanma Barranquero <lekktu@gmail.com>
10704
10705 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10706 previous change.
10707
107082008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10709
10710 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10711 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10712
107132008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10714
10715 * keymap.h (map_keymap_canonical): Declare.
10716 * xmenu.c (single_keymap_panes): Use it.
10717
107182008-04-11 Glenn Morris <rgm@gnu.org>
10719
10720 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10721 set the target's value to that of the alias.
10722
107232008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10724
10725 * term.c (set_tty_color_mode): Left over typo.
10726
107272008-04-10 Michael Albinus <michael.albinus@gmx.de>
10728
10729 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10730 only after check for file name handler functions. Signal, when
10731 native functionality is not supported.
10732 (syms_of_fileio): Declare it unconditionally.
10733
107342008-04-10 Jason Rumney <jasonr@gnu.org>
10735
10736 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10737 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10738
10739 * w32.c (logon_network_drive): Also logon to remote drives that
10740 are mapped to drive letters.
10741
107422008-04-10 Glenn Morris <rgm@gnu.org>
10743
10744 * xdisp.c (truncate-partial-width-windows): Doc fix.
10745
107462008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10747
10748 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10749 Move functions to minibuffer.el.
10750 (syms_of_fileio): Don't declare them.
10751
107522008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10753
10754 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10755 (syms_of_minibuf): Remove its initialization.
10756
10757 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10758
107592008-04-09 Juanma Barranquero <lekktu@gmail.com>
10760
10761 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10762
107632008-04-09 Jason Rumney <jasonr@gnu.org>
10764
10765 * makefile.w32-in (distclean): Delete makefile too.
10766 (maintainer-clean): New target.
10767
10768 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10769
10770 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10771 for new font backend and composite cases.
10772
107732008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10774
10775 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10776 Most of the code moved to run_timers.
10777 (do_pending_atimers): Call run_timers.
10778 (run_timers): New function.
10779
10780 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10781 run atimers.
10782
10783 * process.c (wait_reading_process_output): The same as above.
10784
107852008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10786
10787 * minibuf.c (last_exact_completion): Remove variable.
10788 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10789 (complete_and_exit_1, complete_and_exit_2)
10790 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10791 (Fdisplay_completion_list, display_completion_list_1)
10792 (Fminibuffer_completion_help, Fself_insert_and_exit)
10793 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10794 minibuffer.el.
10795 (syms_of_minibuf): Remove corresponding initializations.
10796
10797 * keyboard.c (Qdeactivate_mark): New var.
10798 (command_loop_1): Use it to call `deactivate-mark'.
10799 (syms_of_keyboard): Initialize it.
10800
10801 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10802 to another frame.
10803 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10804 Don't call set_tty_color_mode.
10805 (store_frame_param): Reset previous_frame rather than call
10806 set_tty_color_mode.
10807 * term.c (set_tty_color_mode): Rewrite.
10808 * dispextern.h (set_tty_color_mode): New type.
10809 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10810
108112008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10812
10813 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10814 for generic chars, which do not exist any more in emacs-unicode.
10815
108162008-04-08 Michael Albinus <michael.albinus@gmx.de>
10817
10818 * coding.c (detect_coding_emacs_mule)
10819 (Ffind_operation_coding_system): Fix typo.
10820
108212008-04-08 Jason Rumney <jasonr@gnu.org>
10822
10823 * w32uniscribe.c (SNAME): Extract only symbol name.
10824
10825 * w32font.h (struct w32_metric_cache): New struct.
10826 (w32font_info): Use it.
10827 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10828 (CACHE_BLOCKSIZE): New constants.
10829
10830 * w32font.c (Qja, Qko, Qzh): New symbols.
10831 (syms_of_w32font): Initialise them.
10832 (font_matches_spec): Use them to filter by language.
10833 (recompute_cached_metrics): Remove function.
10834 (compute_metrics, clear_cached_metrics): New functions.
10835 (w32font_encode_char): Use them to manage metric cache.
10836 (w32font_text_extents): Cache metrics for all glyphs on demand.
10837 Delay converting glyph indices to WORD until needed.
10838 (w32font_open_internal): Initialize metric cache to empty.
10839 (registry_to_w32_charset): Charset should always be a symbol.
10840 (fill_in_logfont, list_all_matching_fonts): Family should
10841 always be a symbol.
10842
108432008-04-06 Jason Rumney <jasonr@gnu.org>
10844
10845 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10846 Give up if glyph indices not supported. Use uniscribe obtained
10847 ABC widths for individual metrics. Map glyph clusters back to
10848 characters using fClusterStart flag. Return number of glyphs
10849 produced, not chars processed.
10850 (uniscribe_shape): Map char at FROM to current glyph.
10851
108522008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10853
10854 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10855 Use SetMenuItemHierarchicalMenu.
10856
108572008-04-05 Jason Rumney <jasonr@gnu.org>
10858
10859 * image.c (pbm_load): Allow color values up to 65535.
10860 Throw an error if max_color_idx is outside the supported range.
10861 Report an error when image size is invalid.
10862 Read two bytes at a time when raw images have max_color_idx above 255.
10863
108642008-04-05 Eli Zaretskii <eliz@gnu.org>
10865
10866 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10867 cFileName a file name that includes `?' characters, use the 8+3
10868 alias in cAlternateFileName instead.
10869
108702008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10871
10872 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10873 append "CCL: Quitted" when the CCL program is quitted.
10874 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10875
10876 * ccl.h (struct ccl_program): New member quit_silently.
10877
108782008-04-05 Chong Yidong <cyd@stupidchicken.com>
10879
10880 * search.c (compile_pattern_1): Treat non-nil and non-string of
10881 search-spaces-regexp as nil.
10882
10883 * minibuf.c (Fassoc_string): Tweak docstring.
10884
108852008-04-05 Eli Zaretskii <eliz@gnu.org>
10886
10887 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10888 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10889 2008-03-14 to force inode be positive.
10890
10891 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10892 _S_* ones, since we now use our own sys/stat.h.
10893 (stat, fstat): Don't mangle the inode number.
10894 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10895
108962008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10897
10898 * frame.h (struct frame): Give one more bit to `visible' since we use
10899 values larger than 1 to indicate obscured frames on ttys.
10900
10901 * keymap.c (Qkeymap_canonicalize): New var.
10902 (Fmap_keymap_internal): New fun.
10903 (describe_map): Use keymap-canonicalize.
10904
10905 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10906 (Fundo_boundary): Set them.
10907 (syms_of_undo): Initialize them.
10908 (record_point): Use them instead of last_point_position*.
10909 (last_undo_buffer): Change type.
10910
109112008-04-04 Jason Rumney <jasonr@gnu.org>
10912
10913 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10914 (recompute_cached_metrics): Don't set ascent and descent per char.
10915
10916 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10917 (uniscribe_check_otf): Add GC protection before consing.
10918 Rearrange loop for counting features.
10919
109202008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10921
10922 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10923 buffer with byte-size of source buffer.
10924
109252008-04-03 Chong Yidong <cyd@stupidchicken.com>
10926
10927 * callint.c (Fcall_interactively): Handle temporary region even
10928 when shift-select-mode is off.
10929
109302008-04-03 Jason Rumney <jasonr@gnu.org>
10931
10932 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10933
109342008-04-03 Kenichi Handa <handa@m17n.org>
10935
10936 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10937 (CATEGORY_MASK_UTF_16): Likewise.
10938 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10939 binary file.
10940 (detect_coding): Add null-byte detection for a binary file.
10941 (detect_coding_system): Likewise.
10942
109432008-04-03 Jason Rumney <jasonr@gnu.org>
10944
10945 * w32uniscribe.c: New file.
10946
10947 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10948
10949 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10950
10951 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10952 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10953 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10954 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10955 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10956 (Qphonetic): New symbols.
10957 (syms_of_w32font): Initialize them.
10958 (font_supported_scripts): Use them.
10959 (w32font_list_family): List all charsets.
10960 (w32font_text_extents, recompute_cached_metrics): Fix metric
10961 calculations.
10962 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10963 Give opentype fonts their own format.
10964 (font_matches_spec): New arguments backend and logfont.
10965 Handle :otf spec for uniscribe backend.
10966 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10967 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10968
10969 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10970 font backend.
10971 (globals_of_w32fns): Initialize uniscribe font backend.
10972
10973 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10974 dependencies.
10975 (w32uniscribe.$(O)): New file to build.
10976 (FONT_OBJ): Include w32uniscribe.$(O).
10977 (LIBS): Add uniscribe libraries.
10978
10979 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10980
109812008-04-02 Chong Yidong <cyd@stupidchicken.com>
10982
10983 * callint.c (Vshift_select_mode): New var.
10984 (Finteractive): Document new ^ spec.
10985 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10986 is present.
10987
10988 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10989 (command_loop_1): Avoid running the direct display versions of
10990 forward-char and backward-char if shift-selection may occur.
10991 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10992 shift-translation takes place.
10993
10994 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10995 avoid clobbering by define-minor-mode.
10996
10997 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10998 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10999
11000 * syntax.c (Fforward_word): Add ^ interactive spec.
11001
11002 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11003 (Fscroll_right): Add ^ interactive spec.
11004
110052008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11006
11007 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11008
11009 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11010
11011 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11012
110132008-03-31 Juri Linkov <juri@jurta.org>
11014
11015 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11016
110172008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11018
11019 * gtkutil.c (xg_set_geometry): Fix indentation.
11020 (xg_resize_outer_widget): Remove.
11021 (x_wm_size_hint_off): Fix indentation.
11022 (xg_frame_set_char_size): Call flush_and_sync after
11023 gtk_window_resize.
11024 (x_wm_set_size_hint): Pass NULL as geometry window to
11025 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11026 Add menu bar and tool bar height to base height.
11027 (xg_update_frame_menubar, free_frame_menubar)
11028 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11029 (update_frame_tool_bar, free_frame_tool_bar):
11030 Change xg_resize_outer_widget to xg_frame_set_char_size.
11031
110322008-03-30 Michael Albinus <michael.albinus@gmx.de>
11033
11034 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11035 (Fdbus_call_method): New parameter TIMEOUT.
11036 (dbus-send-signal): Optimize UNGCPRO call.
11037
110382008-03-29 Juri Linkov <juri@jurta.org>
11039
11040 * window.c (Fdisplay_buffer): Move call to
11041 Vsplit_window_preferred_function out of conditions that check
11042 if window is eligible for vertical splitting.
11043 When Vsplit_window_preferred_function is non-nil, call it and use
11044 its non-nil return value as window. Otherwise, continue doing
11045 vertical splitting using Fsplit_window with arg horflag=nil.
11046 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11047 default value from `split-window' to nil.
11048
110492008-03-29 Juri Linkov <juri@jurta.org>
11050
11051 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11052 for interactive code letters 'b' and 'B'.
11053
110542008-03-29 Eli Zaretskii <eliz@gnu.org>
11055
11056 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11057 multibyte string.
11058
110592008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11060
11061 * keyboard.c (pending_funcalls): New var.
11062 (timer_check): Run it.
11063 (syms_of_keyboard): Initialize it.
11064 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11065 (Vdelete_terminal_functions): New vars.
11066 (syms_of_terminal): Initialize them.
11067 (Fdelete_terminal): Run delete-terminal-functions.
11068 * xdisp.c (safe_eval): Rewrite.
11069 (safe_call2): New fun.
11070 * frame.c (Qdelete_frame_functions): New var.
11071 (syms_of_frame): Initialize it.
11072 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11073 * lisp.h (safe_call2, pending_funcalls): Declare.
11074
110752008-03-28 Andreas Schwab <schwab@suse.de>
11076
11077 * indent.c (Fmove_to_column): Move declaration before statements.
11078
110792008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11080
11081 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11082 (struct frame): Use bit fields for boolean vars.
11083
11084 * process.c (server_accept_connection): Simplify naming.
11085 (emacs_get_tty_pgrp): Use SDATA.
11086
11087 * coding.c (decode_coding_object): Fix last change.
11088
110892008-03-27 Jason Rumney <jasonr@gnu.org>
11090
11091 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11092
110932008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11094
11095 * charset.c (Fdefine_charset_internal): Change the way of
11096 registering charsets in Vcharset_order_list.
11097 (syms_of_charset): Make the charset `eight-bit' supplementary.
11098
110992008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11100
11101 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11102 operations, to avoid having the difference between pointers
11103 overflow.
11104
111052008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11106
11107 * indent.c (check_display_width): New fun.
11108 (scan_for_column): Use it.
11109
11110 * data.c (syms_of_data): Mark most-positive-fixnum and
11111 most-negative-fixnum as constants.
11112
11113 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11114
11115 * indent.c (scan_for_column): Extract from current_column_1.
11116 Merge with the same code from Fmove_to_column.
11117 (current_column_1, Fmove_to_column): Use it.
11118
111192008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11120
11121 * keymap.c (map_keymap_internal): New fun.
11122 (map_keymap): Use it.
11123 (Fmap_keymap_internal): New fun.
11124 (Fmap_keymap): Remove left-out test from before make_save_value.
11125
11126 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11127
11128 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11129 Use XCAR/XCDR.
11130
11131 * process.h (struct Lisp_Process): Remove filter_multibyte.
11132 * process.c (QCfilter_multibyte): Remove.
11133 (setup_process_coding_systems): Don't use filter_multibyte.
11134 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11135 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11136 (Fset_process_filter_multibyte): Change the coding-system to
11137 approximate the previous behavior.
11138 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11139 coding-system.
11140
11141 * coding.c (decode_coding_object): When not decoding into a buffer,
11142 obey the coding system's preference of (uni|multi)byte.
11143
111442008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11145
11146 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11147 every char is changed and has a different byte-length.
11148 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11149 Fix int -> EMACS_INT.
11150
111512008-03-23 David Hansen <david.hansen@gmx.net>
11152
11153 * dbusbind.c (xd_read_message): Remove extra copying of message
11154 strings. Check for NULL `interface' or `member'.
11155
111562008-03-22 Eli Zaretskii <eliz@gnu.org>
11157
11158 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11159 cFileName a file name that includes `?' characters, use the 8+3
11160 alias in cAlternateFileName instead.
11161
111622008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11163
11164 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11165
111662008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11167
11168 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11169 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11170 work on current_buffer only instead (that was already the case
11171 for some of the code anyway).
11172 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11173 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11174 (SET_PT, SET_PT_BOTH): Adjust.
11175 * intervals.h (set_point, temp_set_point, set_point_both)
11176 (temp_set_point_both): Remove redundant declarations.
11177
111782008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11179
11180 * fileio.c (Finsert_file_contents):
11181 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11182 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11183 when buffer != current_buffer anyway.
11184
111852008-03-20 Andreas Schwab <schwab@suse.de>
11186
11187 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11188 as default.
11189
111902008-03-19 Jason Rumney <jasonr@gnu.org>
11191
11192 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11193 (syms_of_w32fns): Initialize them.
11194 (HOURGLASS_ID): New constant.
11195 (x_window_to_frame): Don't check hourglass_window.
11196 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11197 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11198 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11199 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11200 Only change the cursor if hourglass is not active.
11201 (Fx_create_frame): Initialize frame's current_cursor.
11202 (hourglass_atimer): Remove.
11203 (hourglass_started): New function.
11204 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11205 (show_hourglass): Adapt to w32, changing argument to frame.
11206
11207 * w32term.h (struct w32_output): Remove hourglass_window.
11208 Add current_cursor.
11209
11210 * eval.c (call_debugger, Fsignal):
11211 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11212 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11213 (Fexecute_extended_command, cancel_hourglass_unwind):
11214 * minibuf.c (read_minibuf):
11215 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11216
112172008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11218
11219 * window.c (run_funs): New fun.
11220 (run_window_configuration_change_hook): Use it to run the buffer-local
11221 and the global part of the hook.
11222
11223 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11224 (unwind_format_mode_line): Restore selected window.
11225 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11226
112272008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11228
11229 * editfns.c (Fchar_equal): Check they are valid characters.
11230
11231 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11232
112332008-03-17 Andreas Schwab <schwab@suse.de>
11234
11235 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11236 against a charset.
11237
11238 * lisp.h (Fbuffer_list): Declare.
11239
112402008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11241
aac0c6e3
MR
11242 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11243 handlebox_widget is != 0.
11244
112452008-03-16 Juri Linkov <juri@jurta.org>
11246
11247 * callint.c (Fcall_interactively): For interactive code letters
11248 'b' and 'B' put the buffer list into the list of default "future"
11249 values of the minibuffer.
11250
112512008-03-16 Andreas Schwab <schwab@suse.de>
11252
11253 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11254 modifiers.
11255
11256 * regex.c (re_match_2_internal): Correct matching of a charset
11257 against latin-1 characters.
11258
112592008-03-16 Kenichi Handa <handa@m17n.org>
11260
11261 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11262 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11263 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11264 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11265 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11266 CHAR_STRING_ADVANCE.
11267 (produce_chars): Fix for the case that the source and the
11268 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11269 instead of CHAR_STRING_ADVANCE.
11270 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11271 STRING_CHAR_ADVANCE.
11272
112732008-03-15 Andreas Schwab <schwab@suse.de>
11274
11275 * regex.c (re_match_2_internal): Correct matching of eight bit
11276 characters in unibyte strings.
11277
112782008-03-15 Martin Rudalics <rudalics@gmx.at>
11279
11280 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11281 at end of range when it coincides with the end of the buffer.
11282
112832008-03-14 Eli Zaretskii <eliz@gnu.org>
11284
11285 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11286
11287 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11288
112892008-03-14 Jason Rumney <jasonr@gnu.org>
11290
11291 * editfns.c (initial_tz): New variable.
11292 (syms_of_editfns): Initialize it.
11293 (Fset_time_zone_rule): Set it when first called.
11294 Use it when TZSTRING is nil.
11295
11296 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11297 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11298 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11299 (globals_of_w32fns): Initialize them.
11300 (compute_tip_xy): Use them to position tooltips.
11301
113022008-03-14 Glenn Morris <rgm@gnu.org>
11303
11304 * emacs.c (main): Revert previous change.
11305 (standard_args): Revert -internal-script back to -scriptload,
11306 and remove the long-option form.
11307
113082008-03-13 Glenn Morris <rgm@gnu.org>
11309
11310 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11311 Remove option -enable-font-backend.
11312
113132008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11314
11315 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11316
113172008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11318
11319 * xterm.c (x_connection_closed): For GTK: If this is the last
11320 terminal just exit without closing the display.
11321
113222008-03-11 Jason Rumney <jasonr@gnu.org>
11323
11324 * w32font.c (w32font_full_name): Use floor to round.
11325
f0131492 113262008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11327
11328 * sound.c (alsa_configure): Declare vol at beginning of block.
11329
11330 * fontset.c (Ffontset_info): Remove extra semicolon.
11331
113322008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11333
11334 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11335 size of resulting string.
11336
113372008-03-10 Jason Rumney <jasonr@gnu.org>
11338
11339 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11340
113412008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11342
11343 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11344 Don't pretend as if characters with display property haven't been
11345 consumed for string-replacing-string case.
11346
113472008-03-08 Kim F. Storm <storm@cua.dk>
11348
11349 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11350 (get_next_display_element, next_element_from_string)
11351 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11352
113532008-03-08 Andreas Schwab <schwab@suse.de>
11354
11355 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11356
113572008-03-06 Jason Rumney <jasonr@gnu.org>
11358
11359 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11360 when charset not specified. Only translate ANSI to unicode when
11361 font_type is truetype.
11362 (w32font_coverage_ok): New function.
11363 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11364
113652008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11366
11367 * lread.c (Fread_char): Resolve modifiers.
11368 (Fread_char_exclusive): Likewise.
11369
11370 * character.c (char_resolve_modifier_mask): New function.
11371 (char_string): Use char_resolve_modifier_mask.
11372 (Fchar_resolve_modifiers): New function.
11373 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11374 function.
11375
113762008-03-04 Jason Rumney <jasonr@gnu.org>
11377
11378 * makefile.w32-in: Always include w32font.c in the build.
11379 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11380
113812008-03-04 Andreas Schwab <schwab@suse.de>
11382
11383 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11384 (versionclean): Likewise.
11385
113862008-03-04 Juanma Barranquero <lekktu@gmail.com>
11387
11388 * .cvsignore: Add oo.
11389
113902008-03-03 Andreas Schwab <schwab@suse.de>
11391
11392 * coding.c (decode_coding_object): Inhibit gap shrinking while
11393 decoding in place.
11394
113952008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11396
11397 * w32term.c: Remove unused include "gnu.h".
11398 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11399
11400 * gnu.h: Rename to ...
11401 * emacs-icon.h: ... this.
11402 * xterm.c: Use emacs-icon.h instead of gnu.h.
11403 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11404
114052008-03-03 Juanma Barranquero <lekktu@gmail.com>
11406
11407 * w32font.c: Include math.h.
11408
114092008-03-03 Jason Rumney <jasonr@gnu.org>
11410
11411 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11412 Compute options separately.
11413 (w32font_open_internal): Set glyph_idx before caching metrics.
11414
11415 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11416 Define if system headers don't.
11417 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11418 (w32font_encode_char): Don't declare here.
11419
11420 * w32font.c (Quniscribe, QCformat): New symbols.
11421 (syms_of_w32font): Define them.
11422 (w32font_has_char): Indicate uncertainty.
11423 (w32font_encode_char): Encode as glyph point. Make static.
11424 (recompute_cached_metrics): New function.
11425 (w32font_open_internal): Use it. Set font to use glyph points
11426 initially. Set format based on type of font.
11427 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11428 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11429 on it. Set format based on information available here.
11430 (add_font_entity_to_list): Identify backend based on opentype_only.
11431
114322008-03-02 Andreas Schwab <schwab@suse.de>
11433
11434 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11435
11436 * coding.c (decode_coding_big5, produce_chars):
11437 Fix typos in last change.
11438
114392008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11440
11441 * gnu.h: New icon.
11442
114432008-03-02 Kenichi Handa <handa@m17n.org>
11444
11445 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11446 `dos', don't decode '\r' if that is the last in the source.
11447 (decode_coding_utf_16, decode_coding_emacs_mule)
11448 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11449 (decode_coding_raw_text, decode_coding_charset): Likewise.
11450 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11451
114522008-03-01 Jason Rumney <jasonr@gnu.org>
11453
11454 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11455
114562008-03-01 Kim F. Storm <storm@cua.dk>
11457
11458 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11459
114602008-03-01 Jason Rumney <jasonr@gnu.org>
11461
11462 * w32font.c (w32font_full_name): New function.
11463 (w32font_open_internal): Use it.
11464
114652008-03-01 Kim F. Storm <storm@cua.dk>
11466
11467 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11468
114692008-03-01 Jason Rumney <jasonr@gnu.org>
11470
11471 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11472
114732008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11474
11475 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11476 xg_frame_resized when the event is for the edit widget.
11477
11478 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11479
11480 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11481 set_char_size.
11482 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11483 operations on widgets here. Just set frame size if needed.
11484 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11485 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11486 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11487 the whole frame.
11488 (xg_create_tool_bar): Move attachment of the tool bar to
11489 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11490 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11491
114922008-03-01 Jason Rumney <jasonr@gnu.org>
11493
11494 * w32fns.c (w32_msg_pump): Disable debug code.
11495
114962008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11497
11498 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11499
115002008-02-29 Chong Yidong <cyd@stupidchicken.com>
11501
11502 * xdisp.c (next_overlay_string): Don't set
11503 overlay_strings_at_end_processed_p if we're currently reading from
11504 a display string.
11505
115062008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11507
11508 * xdisp.c (get_overlay_strings_1): Fix typo.
11509
115102008-02-29 Chong Yidong <cyd@stupidchicken.com>
11511
11512 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11513
115142008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11515
11516 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11517
11518 * xdisp.c (display_mode_element): Cancel the previous change.
11519 (decode_mode_spec): Likewise.
11520 (handle_auto_composed_prop): Don't make composition if it->string
11521 is a string.
11522
115232008-02-27 Kim F. Storm <storm@cua.dk>
11524
11525 * lisp.h (GLYPH): Change type from int to struct with separate char
11526 and face_id members.
11527 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11528 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11529 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11530 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11531 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11532 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11533 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11534 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11535 handle new Lisp glyph code encoding, either an integer or a cons.
11536
11537 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11538 (GLYPH_ALIAS): Delete.
11539 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11540 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11541 (GLYPH_FROM_CHAR): Replace macro by ...
11542 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11543
11544 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11545 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11546 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11547 (GLYPH_INVALID_P): New macro.
11548 (spec_glyph_lookup_face): Update prototype.
11549
11550 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11551 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11552 new glyph code encoding.
11553 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11554 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11555
11556 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11557 Adapt to new glyph type and new glyph code encoding.
11558
11559 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11560
11561 * indent.c (current_column, current_column_1, Fmove_to_column)
11562 (compute_motion): Adapt to new glyph code encoding.
11563
11564 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11565
115662008-02-27 Chong Yidong <cyd@stupidchicken.com>
11567
11568 * process.c (wait_reading_process_output): Check for window
11569 changes caused by timers.
11570 Suggested by Johan Bockgård.
11571
115722008-02-27 Glenn Morris <rgm@gnu.org>
11573
11574 * emacs.c (USAGE1): Add `--disable-font-backend'.
11575
115762008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11577
11578 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11579 is made to the buffer.
11580
115812008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11582
11583 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11584 (face_at_string_position):
11585 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11586 (face_at_string_position):
11587 * xdisp.c (display_string, next_overlay_change):
11588 * buffer.h (overlays_at):
11589 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11590 Update callers.
11591
115922008-02-26 Chong Yidong <cyd@stupidchicken.com>
11593
11594 * editfns.c (Fformat): Doc fix.
11595
115962008-02-26 Juanma Barranquero <lekktu@gmail.com>
11597
11598 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11599 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11600 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11601
116022008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11603
11604 * buffer.c (Fbuffer_swap_text): New function.
11605 (syms_of_buffer): Defsubr it.
11606
116072008-02-25 Chong Yidong <cyd@stupidchicken.com>
11608
11609 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11610
116112008-02-25 Jason Rumney <jasonr@gnu.org>
11612
11613 * w32font.c (w32font_draw): Draw one character at a time when padding.
11614
116152008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11616
11617 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11618 Handle a nil arg. Use run_window_configuration_change_hook.
11619 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11620 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11621 Use run_window_configuration_change_hook.
11622
116232008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11624
11625 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11626 1-pixel width.
11627
116282008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11629
11630 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11631 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11632 if the glyph in the font is zero pixel with.
11633
11634 * dispextern.h (struct glyph_string): New member padding_p.
11635
11636 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11637
11638 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11639
11640 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11641
11642 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11643
11644 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11645
116462008-02-25 Jason Rumney <jasonr@gnu.org>
11647
11648 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11649
116502008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11651
11652 Allow fine-grained image-cache flushing.
11653 * dispextern.h (struct image): Add `dependencies' field.
11654 (clear_image_caches): Change arg to Lisp_Object.
11655 * image.c (make_image): Initialize `dependencies' field.
11656 (clear_image_cache): Change arg to allow fine-grained flushing.
11657 Perform the flush even if image-cache-eviction-delay is nil.
11658 (clear_image_caches): Change arg to Lisp_Object.
11659 (Fclear_image_cache): Expand meaning of the argument.
11660 (mark_image): Mark `dependencies' field.
11661 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11662 (lface_hash): Use XHASH rather than XFASTINT.
11663 (face_at_buffer_position): Fix int -> EMACS_INT position.
11664 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11665 (select_frame_for_redisplay): Remove code duplication.
11666 (redisplay_internal): Adapt arg to call to clear_image_caches.
11667
116682008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11669
11670 * s/vms4-0.h:
11671 * s/vms4-2.h:
11672 * s/vms4-4.h:
11673 * s/vms5-5.h: Remove, unused.
11674
11675 * s/irix5-2.h:
11676 * s/irix6-0.h:
11677 * s/riscos5.h:
11678 * s/mach-bsd4-3.h:
11679 * m/mips4.h: Remove files for obsolete systems.
11680
11681 * Makefile.in:
11682 * filelock.c:
11683 * unexmips.c:
11684 * m/hp9000s300.h:
11685 * m/iris4d.h:
11686 * s/aix3-1.h:
11687 * s/hpux.h:
11688 * s/msdos.h:
11689 * s/usg5-0.h:
11690 * s/usg5-2-2.h:
11691 * s/usg5-2.h:
11692 * s/usg5-3.h: Remove references to obsolete variables.
11693
11694 * s/irix5-0.h: Remove, move all the contents ...
11695 * s/irix6-5.h: ... here. Simplify.
11696 * config.in: Regenerate.
11697
116982008-02-24 Jason Rumney <jasonr@gnu.org>
11699
11700 * w32term.c (x_draw_glyph_string_background): Clear the background
11701 manually when cleartype is in use.
11702 (x_draw_glyph_string_foreground): Draw text transparently when
11703 cleartype is in use.
11704
11705 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11706 a font into it unless we have to.
11707
117082008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11709
11710 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11711 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11712
aac0c6e3
MR
117132008-02-18 Jason Rumney <jasonr@gnu.org>
11714
11715 * w32fns.c (Fw32_shell_execute): Encode parameters.
11716
117172008-02-09 Eli Zaretskii <eliz@gnu.org>
11718
11719 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11720
117212008-02-05 Juanma Barranquero <lekktu@gmail.com>
11722
11723 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11724
117252008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11726
11727 * xterm.c (x_set_offset): Don't change the gravity if
11728 CHANGE_GRAVITY is -1.
11729
117302008-02-23 Chong Yidong <cyd@stupidchicken.com>
11731
11732 * fileio.c (auto_save_error_occurred): New var.
11733 (auto_save_error): Set it.
11734 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11735 error occurred.
11736
117372008-02-23 Eli Zaretskii <eliz@gnu.org>
11738
11739 * w32.c (globals_of_w32): Add initializations for
11740 g_b_init_get_sid_sub_authority and
11741 g_b_init_get_sid_sub_authority_count.
11742
117432008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11746 (font_parse_xlfd): Use them for sanity check.
11747 (Finternal_set_font_style_table): Make sure the table is bijective.
11748
11749 Consolidate the image_cache to the terminal struct.
11750 * termhooks.h (P_): Remove redundant def.
11751 (struct terminal): New field `image_cache'.
11752 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11753 of FRAME_X_IMAGE_CACHE.
11754 * xterm.h (struct x_display_info): Remove image_cache field.
11755 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11756 * w32term.h (struct w32_display_info): Remove image_cache field.
11757 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11758 * macterm.h (struct mac_display_info): Remove image_cache field.
11759 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11760 * xterm.c (x_term_init):
11761 * w32term.c (w32_term_init):
11762 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11763 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11764 Remove declarations.
11765 (clear_image_caches, mark_image_cache): New declarations.
11766 * xfaces.c (clear_face_cache):
11767 * xdisp.c (redisplay_internal): Use clear_image_caches.
11768 * image.c (clear_image_cache): Don't check that a frame is on
11769 a window-system before checking if it shares the same cache.
11770 (clear_image_caches): New function.
11771 (Fclear_image_cache): Use it.
11772 (mark_image): Move from allo.c.
11773 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11774 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11775 (mark_object): Don't call mark_image_cache for frames.
11776 (mark_terminals): Call mark_image_cache.
11777
11778 * lisp.h (Fdelete_terminal): Declare.
11779
11780 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11781 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11782 wrong_type_argument.
11783
117842008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11785
11786 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11787 malayalam.el, and tamil.el. Add sinhala.el.
11788
117892008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11790
11791 * xterm.c (x_connection_closed): Consolidate identical tests.
11792 (x_delete_terminal): Don't crash if called via x_connection_closed.
11793
117942008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11795
11796 * xdisp.c (decode_mode_spec): New arg string.
11797 (display_mode_element): Adjust for the above change.
11798
117992008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11800
11801 * callint.c (Fcall_interactively): Use AREF.
11802
118032008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11804
11805 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11806
118072008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11808
11809 * xfns.c (Fx_show_tip): Set string to " " if empty.
11810
118112008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11812
11813 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11814 with Qt.
11815
118162008-02-17 Kenichi Handa <handa@m17n.org>
11817
11818 * ftfont.c (ftfont_shape): Return Lispy number.
11819
11820 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11821 for GCs.
11822 (Finternal_set_font_selection_order): Call font_update_sort_order
11823 only when enable_font_backend is set.
11824 (realize_x_face): Set face->font_info to that of default face only
11825 when enable_font_backend is set.
11826
11827 * xdisp.c (handle_composition_prop): Set it->c to the fist
11828 character of the composed region.
11829 (fill_composite_glyph_string): Set base_face->font_info to
11830 s->font_info. Get a face for ascii from base_face->ascii_face.
11831 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11832 with a face already decided.
11833 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11834 non-negative.
11835 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11836 call font_prepare_composition unconditionally.
11837
11838 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11839
11840 * xterm.h (struct x_display_info): New member font.
11841
11842 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11843 (x_set_mouse_face_gc, x_new_font): Likewise.
11844 (x_term_init): Setup display_info->font.
11845 (x_delete_terminal): Free display_info->font.
11846
11847 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11848
11849 * ftxfont.c (ftxfont_default_fid): Delete it.
11850 (ftxfont_open): Set xfont->fid to 0.
11851 (ftxfont_end_for_frame): Clear data specific to the frame and the
11852 font-driver.
11853
11854 * xftfont.c (xftfont_default_fid): Delete it.
11855 (xftfont_open): Set xfont->fid to 0.
11856
11857 * fontset.c (FONTSET_OBJLIST): New macro.
11858 (fontset_find_font): Update font-object list of the fontset.
11859 (free_realized_fontset): New function.
11860 (free_face_fontset): Call free_realized_fontset.
11861 (Ffont_info): Call font_close_object only when enable_font_backend
11862 is set.
11863
11864 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11865 [HAVE_NTGUI]: Include w32term.h.
11866 [MAC_OS]: Include macterm.ch.
11867 (font_otf_ValueRecord): Use make_number.
11868 (font_finish_cache): Fix handling of reference count.
11869 (font_clear_cache): Update num_fonts.
11870 (font_open_entity): Update smallest_char_width and
11871 smallest_font_height of the frame.
11872 (font_close_object): Update num_fonts.
11873 (Fclear_font_cache): Fix finding the target cache data.
11874
118752008-02-16 Glenn Morris <rgm@gnu.org>
11876
11877 * fontset.c (Finternal_char_font): Fix compilation warning.
11878
118792008-02-16 Eli Zaretskii <eliz@gnu.org>
11880
11881 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11882 instead of char arrays. Enlarge the size of array passed to
11883 get_token_information.
11884
11885 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11886 warnings.
11887
118882008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11889
11890 * .gdbinit: Don't set `args', it breaks gdb --args.
11891
118922008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11893
11894 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11895 within a narrowed buffer.
11896
118972008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11898
11899 * coding.c (decode_coding_object, encode_coding_object):
11900 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11901
119022008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11903
11904 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11905 hardcoding 1.
11906 (detect_coding_system):
11907 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11908 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11909 * insdel.c (insert_from_gap):
11910 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11911 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11912 (string_to_multibyte):
11913 * character.c (chars_in_text, multibyte_chars_in_text):
11914 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11915
11916 * character.h (FETCH_STRING_CHAR_ADVANCE)
11917 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11918 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11919 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11920
11921 * casefiddle.c (casify_region): Only call after-change and composition
11922 functions on the part of the region that was changed.
11923
11924 * keyboard.c (read_avail_input):
11925 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11926
119272008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11928
11929 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11930 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11931
119322008-02-11 Juanma Barranquero <lekktu@gmail.com>
11933
11934 * w32menu.c (push_submenu_start, push_submenu_end)
11935 (push_left_right_boundary, push_menu_pane, push_menu_item):
11936 * keyboard.c (read_key_sequence): Don't pass args with side effects
11937 to AREF, it fails when compiling with -DENABLE_CHECKING.
11938
119392008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11940
11941 * Makefile.in (${lispsource}international/charprop.el):
11942 Delete this target.
11943
11944 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11945 emacs-unicode-2.
11946
119472008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11948
11949 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11950
119512008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11952
11953 * frame.c (Qnoelisp): New symbol.
11954 (syms_of_frame): Initialize it.
11955 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11956 harmless Elisp code, from a strong `force' from x_connection_closed.
11957 * frame.h (Qnoelisp): Declare.
11958 * xterm.c (x_connection_closed): Pass `noelisp'.
11959
11960 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11961 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11962 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11963 rather than `int' for the type of `type'.
11964
119652008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11966
11967 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11968
11969 * Makefile.in (GNUC): Remove support for gcc-1.x.
11970
119712008-02-10 Richard Stallman <rms@gnu.org>
11972
11973 * lisp.h (ASET): Use AREF, not ASLOT.
11974
119752008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11976
11977 * lisp.h (ASET): Check bounds.
11978
119792008-02-10 Glenn Morris <rgm@gnu.org>
11980
11981 * buffer.c (mode-name): Doc fix.
11982
119832008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11984
11985 * Makefile.in:
11986 * emacs.c:
11987 * gmalloc.c:
11988 * keyboard.c:
11989 * lisp.h:
11990 * m/ibm370aix.h:
11991 * process.c:
11992 * regex.c:
11993 * s/hpux.h:
11994 * sysdep.c:
11995 * sysselect.h:
11996 * systty.h:
11997 * unexec.c:
11998 * w32term.c:
11999 * xsmfns.c:
12000 * xterm.c: Remove code that deals with obsolete variables.
12001
12002 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12003
12004 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12005 nothing else needs it anymore.
12006
120072008-02-09 Eli Zaretskii <eliz@gnu.org>
12008
12009 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12010 instead of unibyte_char_to_multibyte.
12011
120122008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12013
12014 * s/gnu-linux.h: Remove commented out code.
12015
12016 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12017
12018 * Makefile.in: Update what RMS says about using autoconf.
12019 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12020 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12021 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12022 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12023
120242008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12025
12026 * keymap.c (Fkey_description): Move side effect outside of macro call.
12027
12028 * xfaces.c (Finternal_make_lisp_face):
12029 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12030
12031 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12032 (syms_of_fontset): Use ASET.
12033
12034 * fns.c (concat): Move side effect outside of macro call.
12035 (hash_clear): Use ASET.
12036
120372008-02-08 Richard Stallman <rms@gnu.org>
12038
12039 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12040 If FORCE, and frame has a surrogate minibuffer for another frame,
12041 delete the other frame first.
12042
120432008-02-07 Timo Savola <timo.savola@iki.fi>
12044
12045 * xterm.c (x_detect_focus_change): Handle embed client message.
12046 (handle_one_xevent): Ditto.
12047 (handle_one_xevent): If embedded and we get a button press/release,
12048 request focus.
12049 (xembed_set_info, xembed_send_message): New functions.
12050 (x_make_frame_visible): Call xembed_set_info if embedded.
12051 (x_make_frame_invisible): Call xembed_set_info if embedded.
12052 (x_term_init): Initialize Xatom_XEMBED.
12053 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12054 (x_iconify_frame): Ditto.
12055
12056 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12057 (enum xembed_info, enum xembed_message, enum xembed_focus)
12058 (enum xembed_modifier, enum xembed_accelerator): New.
12059 (xembed_set_info, xembed_send_message): Declare.
12060 (FRAME_X_EMBEDDED_P): New.
12061
12062 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12063 gtk_plug_new.
12064
12065 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12066 window ID of a frame.
12067 (x_window): Reparent frame if embedded.
12068 (Fx_create_frame): Don't set border width if embedded.
12069
12070 * emacs.c (USAGE3): Add --parent-id.
12071 (standard_args): Ditto.
12072
120732008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12074
12075 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12076
120772008-02-07 Jim Meyering <meyering@redhat.com>
12078
12079 Use "do...while (0)", not "if (1)...else" in macro definitions.
12080 The latter provokes a warning from gcc about the empty else, when
12081 followed by ";". Also, without that trailing semicolon, it would
12082 silently swallow up any following statement.
12083 * syntax.h (SETUP_SYNTAX_TABLE)
12084 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12085 * buffer.h (DECODE_POSITION): Likewise.
12086 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12087 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12088 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12089 (FETCH_CHAR_ADVANCE): Likewise.
12090 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12091
120922008-02-07 Jim Meyering <meyering@redhat.com>
12093
12094 * lread.c [lint]: Don't include <sys/inode.h>.
12095
120962008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12097
12098 * xselect.c (x_handle_dnd_message):
12099 * xmenu.c (digest_single_submenu, xmenu_show):
12100 * xdisp.c (with_echo_area_buffer_unwind_data)
12101 (format_mode_line_unwind_data, unwind_format_mode_line)
12102 (display_menu_bar):
12103 * eval.c (Ffetch_bytecode):
12104 * doc.c (store_function_docstring):
12105 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12106 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12107 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12108
121092008-02-07 Kenichi Handa <handa@m17n.org>
12110
12111 * ftxfont.c (ftxfont_open): Don't set
12112 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12113
12114 * ftfont.c (ftfont_open): Fix previous change.
12115
121162008-02-06 Jason Rumney <jasonr@gnu.org>
12117
12118 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12119 Use cached metrics for ASCII characters.
12120 (w32font_open_internal): Don't set font's owning_frame.
12121 Cache metrics for ASCII characters.
12122
12123 * w32font.h (struct w32font_info): Add ascii_metrics.
12124 Remove owning_frame.
12125
121262008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12127
12128 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12129 to negative value.
12130
12131 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12132
12133 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12134
12135 * charset.c (syms_of_charset): Set QCtest and Qeq.
12136
121372008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12138
12139 * process.c (Fstart_process):
12140 * callproc.c (Fcall_process): Handle the case where
12141 Funhandled_file_name_directory returns nil.
12142
12143 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12144 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12145 * font.c (check_gstring): Use them and AREF to access the vector before
12146 we know it's really a gstring.
12147 (Ffont_shape_text): Fix typo.
46e722a9 12148 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12149
12150 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12151 Declare.
12152
12153 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12154
121552008-02-05 Jason Rumney <jasonr@gnu.org>
12156
12157 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12158 Set smallest_font_height and smallest_char_width in display info.
12159
121602008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12161
12162 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12163
121642008-02-05 Miles Bader <miles@gnu.org>
12165
12166 * xfaces.c (get_lface_attributes, merge_named_face)
12167 (lookup_named_face, lookup_derived_face, realize_named_face):
12168 Revert 2008-02-01 change by cyd@stupidchicken.com.
12169
121702008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12171
12172 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12173 fallback fonts.
12174 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12175
121762008-02-04 Jason Rumney <jasonr@gnu.org>
12177
12178 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12179 set full_name.
12180 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12181
121822008-02-03 Jason Rumney <jasonr@gnu.org>
12183
12184 * makefile.w32-in (OBJ1): Include font.o here.
12185 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12186
121872008-02-02 Jason Rumney <jasonr@gnu.org>
12188
12189 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12190
121912008-02-01 Jason Rumney <jasonr@gnu.org>
12192
12193 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12194
12195 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12196
121972008-02-01 Andreas Schwab <schwab@suse.de>
12198
12199 * Makefile.in (shortlisp, lisp): Update for rename of
12200 ../lisp/language/myanmar.el.
12201
122022008-02-01 Chong Yidong <cyd@stupidchicken.com>
12203
12204 * xfaces.c (get_lface_attributes): Delete function.
12205 (merge_named_face, lookup_named_face, lookup_derived_face)
12206 (realize_named_face): Call lface_from_face_name directly, and use
12207 the fact that merge_face_vectors does not alter its FROM argument.
12208
122092008-02-01 Jason Rumney <jasonr@gnu.org>
12210
12211 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12212 input in the default locale. Handle non-Unicode multibyte input.
12213
122142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12215
12216 * fontset.c (reorder_font_vector): Exclude nil elements from the
12217 font group. Don't try multiple fonts.
12218 (fontset_font): Adjust for the above change.
12219 (Finternal_char_font): Return nil if the found font doesn't
12220 contain the character ch.
12221
12222 * Makefile.in (lisp, shortlisp): Add cham.el.
12223
122242008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12225
12226 * font.h (FONTP): Make it return 1 also for a font-object.
12227
12228 * .gdbinit (xfontset): New function.
12229
12230 * font.c (font_find_for_lface): Check if the character C is
12231 supported or not only for the first font.
12232
12233 * fontset.c (reorder_font_vector): Fix typo.
12234 (fontset_find_font): Don't add a font-spec specifying a script.
12235 Use 0 (not Qt) for the indication of empty font-group. Change the
12236 format of RFONT-DEF. Return Qt if no font in the font-group
12237 support the character.
12238 (fontset_font): Adjust for the above change. If no font was
12239 found the character, remember that.
12240 (face_for_char): Adjust for the change of RFONT-DEF.
12241 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12242 no font for the target.
12243 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12244
122452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12246
12247 * font.c (font_load_for_face): Handle the case that the font in
12248 face->lface is a string.
12249
122502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12251
12252 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12253
122542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12255
12256 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12257 Fix previous change. If the frame is not on a window system,
12258 signal an error.
12259
122602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12261
12262 * coding.c (decode_coding_object, encode_coding_object): Adjust
12263 marker positions after conversion.
12264
12265 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12266
122672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12268
12269 * font.c (font_find_for_lface): Fix the handling of the return
12270 value of font_has_char.
12271 (Ffont_shape_text): Fix previous change.
12272
12273 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12274 (fontset_ref_and_range): Delete it.
12275 (fontset_find_font): Call char_table_ref_and_range instead of
12276 FONTSET_REF_AND_RANGE.
12277 (make_fontset): Don't setup font groups of Latin here.
12278 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12279 (new_fontset_from_font): Make the specified font the default for
12280 all Latin characters.
12281
122822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12283
12284 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12285 is on a window system before accessing the fontset of the frame.
12286
122872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12288
12289 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12290
12291 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12292 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12293
12294 * font.c (Ffont_shape_text): If the font driver doesn't have a
12295 shaper function, make zero-width glyphs to have at least one-pixel
12296 width. Fix setting of `to' field of glyphs.
12297
122982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12299
12300 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12301 glyphs.
12302
12303 * font.h (struct font_driver): Improve docstring of member `shape'.
12304
123052008-02-01 Kenichi Handa <handa@m17n.org>
12306
12307 * composite.c (syms_of_composite): Fix docstring of
12308 auto-composition-function.
12309
12310 * font.h (LGLYPH_SIZE): New macro.
12311
12312 * font.c (Ffont_fill_gstring): Stop filling when a character not
12313 supported by the font is found.
12314 (Ffont_shape_text): When a shape callback function returns nil,
12315 try at most two more times with larger gstring.
12316 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12317
12318 * xdisp.c (handle_auto_composed_prop): Change the argument to
12319 auto-composition-function.
12320
12321 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12322 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12323 Lispy glyph and store it in the lgstring.
12324
12325 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12326
12327 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12328
123292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12330
12331 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12332
12333 * fontset.c (Vfont_encoding_charset_alist): New variable.
12334 (syms_of_fontset): DEFVAR it.
12335 (reorder_font_vector, fontset_find_font): Optimize for the case of
12336 no need of reordering.
12337 (face_for_char): Map the charset property by
12338 Vfont_encoding_charset_alist.
12339
123402008-02-01 Jason Rumney <jasonr@gnu.org>
12341
12342 * w32font.c (logfonts_match): Don't check adstyle here.
12343 (font_matches_spec): Check here against physical font instead.
12344 (add_font_entity_to_list): Avoid some substitutions.
12345
12346 * font.c (font_parse_fcname): Default weight and slant to normal.
12347 (font_score): Prefer normal fonts if weight or slant unspecified.
12348 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12349 match freetype scores.
12350
123512008-02-01 Jason Rumney <jasonr@gnu.org>
12352
12353 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12354 font, as it may have been deleted.
12355 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12356 most common hyphenless variation.
12357 (logfonts_match): Check generic family.
12358 (font_matches_spec): Don't check generic family here.
12359 (fill_in_logfont): Set generic family based on adstyle.
12360
12361 * w32font.h (w32font_get_cache): Update declaration.
12362
123632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12364
12365 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12366
12367 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12368 If none of the new drivers are available, call font_update_drivers
12369 with the old drivers.
12370
12371 * w32font.c (w32font_get_cache): Adjust the argument type.
12372
12373 * xfont.c (xfont_get_cache): Adjust the argument type.
12374
12375 * font.h (struct font_driver): Change argument type of get_cache.
12376
12377 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12378
12379 * font.c (Ffont_get): Fix arguments to Fassoc.
12380 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12381 (font_clear_cache): New function.
12382 (font_list_entities, font_matching_entity): Use font_get_cache.
12383 (font_update_drivers): Call font_clear_cache when finishing a driver.
12384
12385 * fontset.c (fontset_find_font): Fix previous change.
12386
123872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12388
12389 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12390 dpyinfo->font_table.
12391 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12392 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12393
12394 * font.c (font_at): Handle the case that the arg C is negative.
12395 Handle the unibyte case.
12396 (Ffont_at): Call font_at with the arg C -1.
12397
12398 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12399 the position here, and call font_at with the arg C -1.
12400 Don't check the range of the existing composition at the point.
12401
124022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12403
12404 * fontset.c (fontset_add): New args charset_id and family.
12405 Change caller.
12406 (load_font_get_repertory, fontset_find_font): Assume that
12407 font_spec is always a font-spec object.
12408 (Fset_fontset_font): Always store a font-spec object in a fontset.
12409
12410 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12411 instead of get_property_and_range.
12412
124132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12414
12415 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12416 (xftfont_open): Don't keep locking face.
12417 (xftfont_close): Don't unlock face.
12418 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12419
12420 * fontset.c (fontset_find_font): Don't prefer a font of
12421 supplementary charset.
12422
124232008-02-01 Kenichi Handa <handa@m17n.org>
12424
12425 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12426 script, langsys_tag to langsys, new member script.
12427 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12428 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12429 listing to the script specified in that property. Fix arg to
12430 OTF_check_features.
12431
124322008-02-01 Jason Rumney <jasonr@gnu.org>
12433
12434 * w32font.h: New file.
12435
12436 * w32font.c: Include it.
12437 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12438 (w32font_open): Set owning_frame.
12439 (w32font_text_extents): Use owning_frame.
12440 (struct font_callback_data): Add opentype_only field.
12441 (add_font_entity_to_list): Use it to filter fonts.
12442 Don't check against full name.
12443 (w32font_list_internal): New function.
12444 (w32font_list): Use it.
12445 (w32font_match_internal): New function.
12446 (w32font_match): Use it.
12447 (w32font_open_internal): New function.
12448 (w32font_open): Use it.
12449 (w32font_get_cache, w32font_close, w32font_has_char)
12450 (w32font_encode_char, w32font_text_extents, w32font_draw):
12451 Make non-static.
12452
12453 * makefile.w32-in (w32font.o): Depend on w32font.h.
12454
124552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12456
12457 * charset.c (Fdefine_charset_internal): Record a supplementary
12458 charset at the tail of Vcharset_order_list.
12459
12460 * font.c (Ffont_shape_text): Fix the return value.
12461
12462 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12463
12464 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12465
124662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12467
12468 * ftfont.c (struct OpenTypeSpec): New struct.
12469 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12470 (ftfont_get_open_type_spec): New function.
12471 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12472
12473 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12474
124752008-02-01 Jason Rumney <jasonr@gnu.org>
12476
12477 * w32font.c (add_font_entity_to_list): Compare only the beginning
12478 of full name.
12479
124802008-02-01 Kenichi Handa <handa@m17n.org>
12481
12482 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12483 Never return HANDLED_RECOMPUTE_PROPS.
12484
124852008-02-01 Kenichi Handa <handa@m17n.org>
12486
12487 * font.c (font_gstring_produce): Delete it.
12488
12489 * composite.h (COMPOSITION_METHOD):
12490 Handle COMPOSITION_WITH_GLYPH_STRING.
12491
124922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12493
12494 * xfont.c (Qx): Delete.
12495 (syms_of_xfont): Don't initialize Qx.
12496
12497 * composite.h (enum composition_method):
12498 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12499
125002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12501
12502 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12503 (choose_face_font): Accept new form of font-spec.
12504
12505 * frame.h (font_driver_list): Declare it unconditionally.
12506 (struct frame): Define members font_driver_list and font_data_list
12507 unconditionally.
12508
12509 * fontset.c: Include "font.h" unconditionally.
12510 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12511 (Fset_fontset_font): Accept a font-spec object.
12512
12513 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12514 PIXEL_SIZE part a wild card.
12515
12516 * dispextern.h (struct glyph_string): Define members clip and
12517 num_clips unconditionally.
12518 (struct face): Define members font_info and extra unconditionally.
12519
12520 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12521 ftfont_info only when HAVE_LIBOTF is defined.
12522
125232008-02-01 Andreas Schwab <schwab@suse.de>
12524
12525 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12526 and end.
12527
125282008-02-01 Jason Rumney <jasonr@gnu.org>
12529
12530 * w32font.c (w32font_driver): Add new fields.
12531
125322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12533
12534 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12535 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12536 (LIBES): Add @M17N_FLT_CFLAGS@.
12537
12538 * composite.c (compose_text): Don't treat the new style
12539 composition specially.
12540
12541 * emacs.c (main): Call syms_of_font unconditionally.
12542
12543 * font.h (FONT_ENTITY_NOT_LOADABLE)
12544 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12545 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12546 (struct font_driver): New member shape.
12547 (font_registry_charsets): Extern it.
12548 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12549 (font_otf_capability, font_drive_otf): Delete their externs.
12550
12551 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12552 (font_charset_alist, font_registry_charsets): Move from xfont.c
12553 and rename.
12554 (font_prop_validate_otf): New function.
12555 (font_property_table): Register it for QCotf.
12556 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12557 (font_drive_otf): Delete.
12558 (font_prepare_composition): New arg F. Adjust for the change of
12559 lispy gstring.
12560 (font_find_for_lface): New arg C.
12561 (font_load_for_face): Adjust for the change of font_find_for_lface.
12562 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12563 lispy gstring.
12564 (Ffont_shape_text): New function.
12565 (Fopen_font): If the font size is not given, use 12-pixel.
12566 (Ffont_at): New arg STRING.
12567 (syms_of_font): Initalize font_charset_alist.
12568 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12569 conditionally.
12570
12571 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12572 fonts of the same font-spec. Change the format of RFONT-DEF.
12573 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12574 Adjust for the change of RFONT-DEF.
12575 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12576
12577 * ftfont.h: New file.
12578
12579 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12580 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12581 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12582 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12583 font_otf_capability and font_drive_otf, set ftfont_shape.
12584 (ftfont_list): Adjust for the change of :otf property value.
12585 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12586 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12587 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12588 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12589 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12590 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12591
12592 * w32term.c (x_draw_composite_glyph_string_foreground):
12593 Adjust for the change of lispy gstring.
12594
12595 * xdisp.c (handle_composition_prop): Adjust for the change of
12596 lispy gstring. Call a function for auto-composition with the
12597 third arg it->window.
12598 (fill_composite_glyph_string): Adjust for the change of lispy string.
12599 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12600
12601 * xfaces.c (set_font_frame_param): Adjust for the change of
12602 font_find_for_lface.
12603
12604 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12605 (xfont_registry_charsets): Likewise. Change caller.
12606 (syms_of_xfont): Don't handle x_font_charset_alist.
12607
12608 * xftfont.c: Include "ftfont.h".
12609 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12610 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12611 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12612 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12613 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12614 Set xftfont_driver.shape to xftfont_shape.
12615
12616 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12617 the change of lispy gstring.
12618
126192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12620
12621 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12622
126232008-02-01 Jason Rumney <jasonr@gnu.org>
12624
12625 * w32font.c (w32font_draw): Fill background manually.
12626
126272008-02-01 Jason Rumney <jasonr@gnu.org>
12628
12629 * font.c (Qfontp): Remove unused symbol.
12630 (QCantialias): New symbol.
12631 (syms_of_font): Define it.
12632 (font_property_table): Set a validator for QCantialias.
12633
12634 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12635 Define if not already.
12636 (QCfamily): Share with xfaces.c.
12637 (Qstandard, Qsubpixel, Qnatural): New symbols.
12638 (syms_of_w32font): Define them. Don't define QCfamily here.
12639 (w32_antialias_type, lispy_antialias_type): New functions.
12640 (w32_enumfont_pattern_entity): New arg requested_font.
12641 Set antialias parameter if non-default was requested.
12642 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12643
126442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12645
12646 * lread.c (read1): Undo the previous change.
12647
126482008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12649
12650 * frame.c (Fdelete_frame): Call font_update_drivers only when
12651 USE_FONT_BACKEND is defined.
12652
126532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12654
12655 * font.h (struct font_bitmap): New member bits_per_pixel.
12656 (struct font_driver): New members start_for_frame and end_for_frame.
12657 (struct font_data_list): New struct.
12658 (font_put_frame_data, font_get_frame_data): Extern them.
12659
12660 * frame.h (struct frame): New member font_data_list.
12661
12662 * font.c (font_update_drivers): Call driver->start_for_frame and
12663 driver->end_for_frame at proper timings.
12664 (font_put_frame_data, font_get_frame_data): New functions.
12665 (Ffont_spec): Add usage in the docstring.
12666
12667 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12668 (Fdelete_frame): Call font_update_drivers.
12669
12670 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12671 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12672 (xftfont_get_xft_draw): New function.
12673 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12674 (xftfont_end_for_frame): New function.
12675 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12676
12677 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12678 Change argument. Cache GCs in the per-frame data.
12679 (struct ftxfont_frame_data): New struct.
12680 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12681 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12682 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12683 (ftxfont_end_for_frame): New function.
12684 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12685
12686 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12687
126882008-02-01 Kenichi Handa <handa@m17n.org>
12689
12690 * xselect.c (Vselection_coding_system)
12691 (Vnext_selection_coding_system): Delete them.
12692 (syms_of_xselect): Don't declare selection-coding-system and
12693 next-selection-coding-system. They are declared in select.el.
12694
126952008-02-01 Jason Rumney <jasonr@gnu.org>
12696
12697 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12698
12699 * w32fns.c: Include imm.h.
12700 (get_composition_string_fn, get_ime_context_fn): New optional
12701 system functions.
12702 (globals_of_w32fns): Load them from imm32.dll.
12703 (ignore_ime_char): New flag.
12704 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12705 WM_IME_ENDCOMPOSITION messages.
12706
12707 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12708 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12709
127102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12711
12712 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12713 (READCHAR_REPORT_MULTIBYTE): New macro.
12714 (readchar): New 2nd arg MULTIBYTE.
12715 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12716 Make symbol's name multibyte according to the multibyteness of the
12717 source.
12718
127192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12720
12721 * xfaces.c (face_for_overlay_string): Call lookup_face with
12722 correct arguments (fix of synching with the trunk).
12723
127242008-02-01 Kenichi Handa <handa@m17n.org>
12725
12726 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12727 (font_prop_validate_non_neg, font_prop_validate_spacing):
12728 Delete argument prop_index.
12729 (font_property_table): Change arguments to validater. Change Callers.
12730 (font_lispy_object): Delete.
12731 (font_at): Use font_find_object instead fo font_lispy_object.
12732
127332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12734
12735 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12736 and file names.
12737
127382008-02-01 Jason Rumney <jasonr@gnu.org>
12739
12740 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12741 (font_matches_spec): Remove debug output.
12742 (add_font_entity_to_list): Avoid using substituted fonts.
12743
127442008-02-01 Jason Rumney <jasonr@gnu.org>
12745
12746 * doc.c (Fsnarf_documentation):
12747 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12748
127492008-02-01 Miles Bader <miles@gnu.org>
12750
12751 * dispextern.h (struct glyph_row): Only define "clip" field if
12752 HAVE_WINDOW_SYSTEM is defined.
12753
127542008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12755
12756 Fix up multi-tty merge.
12757
12758 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12759 and indentation.
12760
12761 * xfaces.c (free_realized_face, clear_face_gcs):
12762 Include font_done_for_face in the input_blocked section, just in case.
12763
12764 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12765 (get_char_face_and_encoding): Undo last change and remove the *other*
12766 duplicate definition (i.e. keep the one that's better scoped and that
12767 includes code for the font-backend).
12768
12769 * terminal.c (create_terminal): Default keyboard_coding to
12770 `no-conversion' and terminal_coding to `undecided'.
12771
12772 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12773
12774 * fontset.c (free_realized_fontsets): Check that the table entry does
12775 contain a fontset before trying to compare it to `base'.
12776
12777 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12778 syms_of_charset, and syms_of_coding earlier because init_window_once
12779 now needs Vcoding_system_hash_table to be setup.
12780
12781 * coding.h (default_buffer_file_coding): Remove.
12782
12783 * coding.c (default_buffer_file_coding): Remove.
12784 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12785 than ->symbol, and use the terminal-local coding system.
12786 (syms_of_coding): Don't setup the coding-systems that are not
12787 terminal-local.
12788 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12789
12790 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12791 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12792
12793 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12794 in chartab.c and were re-added here by mistake.
12795 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12796
12797 * doc.c (Fsnarf_documentation):
12798 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12799 src to etc.
12800
12801 * ChangeLog.10: Add mistakenly removed entry.
12802
128032008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12804
12805 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12806
128072008-02-01 Miles Bader <miles@gnu.org>
12808
12809 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12810 Add extra args to FACE_FOR_CHAR.
12811
128122008-02-01 Kenichi Handa <handa@m17n.org>
12813
12814 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12815 in sequence.
12816
12817 * chartab.c (map_sub_char_table, map_char_table): If the range
12818 contains just one character, call the function with that character
12819 even if the depth is not 3.
12820
128212008-02-01 Jason Rumney <jasonr@gnu.org>
12822
12823 * w32font.c (w32font_text_extents): Calculate metrics for the
12824 whole string.
12825
128262008-02-01 Jason Rumney <jasonr@gnu.org>
12827
12828 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12829
128302008-02-01 Jason Rumney <jasonr@gnu.org>
12831
12832 * w32term.c (x_set_glyph_string_clipping): Use
12833 get_glyph_string_clip_rects.
12834 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12835 Adjust for the change of struct glyph_string.
12836
12837 * w32font.c (w32font_draw): Do clipping here.
12838
128392008-02-01 Kenichi Handa <handa@m17n.org>
12840
12841 * xftfont.c (xftfont_draw): Adjust for the change of struct
12842 glyph_string.
12843
12844 * xterm.c (x_set_glyph_string_clipping): Use
12845 get_glyph_string_clip_rects.
12846 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12847 Adjust for the change of struct glyph_string.
12848
12849 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12850 the resulting clip(s}.
12851 (expose_overlaps): Add arg r. Change callers. Set it to
12852 row->clip temporarily.
12853 (expose_window): Redraw rows overlapping the exposed area.
12854
12855 * dispextern.h (struct glyph_row): New member clip.
12856 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12857 clip_height, new member clip, and num_clips.
12858
128592008-02-01 Kenichi Handa <handa@m17n.org>
12860
12861 * data.c (Fchar_or_string_p): Fix docstring.
12862
128632008-02-01 Kenichi Handa <handa@m17n.org>
12864
12865 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12866 create a temporary XftDraw object.
12867
128682008-02-01 Kenichi Handa <handa@m17n.org>
12869
12870 * font.c (Ffontp): Fix docstring.
12871
12872 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12873 strong evidence of ISO-2022.
12874
128752008-02-01 Kenichi Handa <handa@m17n.org>
12876
12877 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12878 SYNTAX_ENTRY_FOLLOW_PARENT.
12879
128802008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12881
12882 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12883 its type.
12884 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12885 Update to the new type of weak_hash_tables and next_weak.
12886
12887 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12888 a plain C pointer to Lisp_Hash_Table.
12889
12890 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12891 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12892 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12893 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12894 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12895 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12896 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12897 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12898 (GC_EQ): Remove since they've been identical to their non-GC_
12899 alter-egos ever since the markbit was eradicated.
12900
12901 * alloc.c:
12902 * buffer.c:
12903 * buffer.h:
12904 * data.c:
12905 * fileio.c:
12906 * filelock.c:
12907 * fns.c:
12908 * frame.h:
12909 * lisp.h:
12910 * macterm.c:
12911 * print.c:
12912 * process.c:
12913 * w32fns.c:
12914 * w32menu.c:
12915 * w32term.c:
12916 * xfns.c:
12917 * xmenu.c:
12918 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12919
129202008-02-01 Kenichi Handa <handa@m17n.org>
12921
12922 * chartab.c (map_sub_char_table): Make it work for the top-level
12923 char-table. Fix handling of parent char-table.
12924 (map_char_table): Adjust for the above change.
12925
129262008-02-01 Jason Rumney <jasonr@gnu.org>
12927
12928 * w32font.c (Qgdi): Rename from Qw32.
12929
129302008-02-01 Jason Rumney <jasonr@gnu.org>
12931
12932 * w32bdf.c (get_quoted_string): Make function static.
12933
129342008-02-01 Kenichi Handa <handa@m17n.org>
12935
12936 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12937 bigger ascent and descent than those of the font, use them as
12938 font's ascent and descent.
12939
129402008-02-01 Kenichi Handa <handa@m17n.org>
12941
12942 * Makefile.in (${lispsource}international/charprop.el): Move this
12943 target within "#ifdef HAVE_UNIDATA" and "#endif".
12944
129452008-02-01 Kenichi Handa <handa@m17n.org>
12946
12947 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12948 (shortlisp): Add ../lisp/language/tai-viet.el.
12949
129502008-02-01 Ulrich Mueller <ulm@gentoo.org>
12951
12952 * Makefile.in (${lispsource}international/charprop.el): Depend on
12953 temacs${EXEEXT}.
12954
129552008-02-01 Jason Rumney <jasonr@gnu.org>
12956
12957 * w32font.c (w32font_close): Delete the GDI font object.
12958
12959 * w32menu.c: Include character.h.
12960
12961 * w32proc.c: Likewise.
12962
12963 * w32select.c: Likewise.
12964
12965 * makefile.w32-in (w32proc.o): Depend on character.h.
12966
129672008-02-01 Jason Rumney <jasonr@gnu.org>
12968
12969 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12970
12971 * w32menu.c (syms_of_w32menu): Likewise.
12972
12973 * w32proc.c (syms_of_ntproc): Likewise.
12974
12975 * w32select.c (syms_of_w32select): Likewise.
12976
12977 * w32term.c (syms_of_w32term): Likewise.
12978
129792008-02-01 Jason Rumney <jasonr@gnu.org>
12980
12981 * w32font.c (w32font_draw): Delete brush after using it.
12982
129832008-02-01 Jason Rumney <jasonr@gnu.org>
12984
12985 * w32font.c (w32font_open): Don't set font_idx.
12986 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12987 to font settings.
12988 (w32font_draw): Fill background explicitly.
12989
129902008-02-01 Jason Rumney <jasonr@gnu.org>
12991
12992 * w32term.c (w32_initialize): Don't call w32font_initialize.
12993
12994 * w32font.c (w32font_info): Remove subranges.
12995 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12996 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12997 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12998 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12999 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13000 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13001 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13002 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13003 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13004 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13005 New symbols.
13006 (font_callback_data): New struct.
13007 (w32font_list, w32font_match): Use it.
13008 (w32font_open): Don't populate subranges.
13009 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13010 (w32font_encode_char): Always return unicode code-point as-is.
13011 (w32font_text_extents): Supply a transformation matrix to
13012 GetGlyphOutline. Never look up by glyph index. Avoid looping
13013 twice. Use unicode version of GetTexExtentPoint32 instead of
13014 glyph index version.
13015 (set_fonts_frame): Remove.
13016 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13017 set frame parameter. Use backward compatible fake foundries.
13018 Save generic family in extra slot under QCfamily. Make width slot
13019 constant. Save QCspacing value. Save list of scripts instead of
13020 binary subranges.
13021 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13022 (add_font_entity_to_list): Use font_callback_data struct. Filter
13023 unwanted fonts.
13024 (add_one_font_entity_to_list): Use font_callback_data struct.
13025 (w32_registry): Default to iso10646_1.
13026 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13027 string font registries. Don't fill in font name if it is a generic
13028 family name, fill family instead. Use spacing, family and script
13029 extra info to fill pitch, family and charset fields.
13030 (list_all_matching_fonts): Use font_callback_data struct.
13031 (unicode_range_for_char): Remove.
13032 (font_supported_scripts): New function.
13033 (w32font_initialize): Remove.
13034 (syms_of_w32font): Update which symbols are defined.
13035
130362008-02-01 Jason Rumney <jasonr@gnu.org>
13037
13038 * font.c (font_pixel_size): Reverse assq_no_quit args.
13039
13040 * w32term.h (FONT_WIDTH): Report max width, not average.
13041 (FONT_MAX_WIDTH): Remove.
13042 (FONT_AVG_WIDTH): New macro.
13043
13044 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13045 redefinition of FONT_WIDTH.
13046
13047 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13048 (w32_cache_char_metrics): Use FONT_WIDTH.
13049
13050 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13051
130522008-02-01 Jason Rumney <jasonr@gnu.org>
13053
13054 * w32font.c (w32font_open): Make lfHeight negative.
13055
13056 * w32fns.c (x_default_font_parameter): Use new style font name.
13057 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13058
130592008-02-01 Jason Rumney <jasonr@gnu.org>
13060
13061 * w32font.c (QCsubranges): New symbol.
13062 (w32font_open, w32font_has_char): Get subranges from subproperty
13063 of extra.
13064 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13065 (syms_of_w32font): Define :subranges symbol.
13066
13067 * font.c (font_put_extra): Expose externally.
13068
13069 * font.h (font_put_extra): Move declaration from font.c.
13070
13071 * font.c (Ffont_get): Use font driver to determine otf capability.
13072 (adjust_anchor): Check if driver defines anchor_point before using.
13073
13074 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13075 (w32font_draw): Use options.
13076 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13077 Fix detection of truetype fonts.
13078 (registry_to_w32_charset): Handle charsets other than iso8859-1
13079 expressed as lisp symbols.
13080 (w32_registry): Express charset as lisp symbol.
13081 (fill_in_logfont): Reverse pixel and point height logic.
13082 Don't set width here. Set quality to default.
13083
13084 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13085 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13086
13087 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13088 Remove redundant loop and allocation.
13089
13090 * makefile.w32-in (font.o, w32font.o): New objects.
13091 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13092 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13093
13094 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13095 STORE_XCHARB a valid l-value.
13096
13097 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13098 calculations for non-Truetype fonts.
13099 (x_draw_glyph_string): Sync with xterm.c.
13100 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13101 Remove redundant code.
13102 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13103
13104 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13105 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13106
13107 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13108 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13109
13110 * w32font.c: New file for w32 font backend.
13111
131122008-02-01 Kenichi Handa <handa@m17n.org>
13113
13114 * term.c: Don't include "buffer.h" twice.
13115
131162008-02-01 Kenichi Handa <handa@m17n.org>
13117
13118 * character.c (Funibyte_string): New function.
13119 (syms_of_character): Defsubr it.
13120
131212008-02-01 Jason Rumney <jasonr@gnu.org>
13122
13123 * w32term.c [USE_FONT_BACKEND]:
13124 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13125 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13126 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13127 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13128 (x_free_frame_resources): Sync with xterm.c.
13129
131302008-02-01 Andreas Schwab <schwab@suse.de>
13131
13132 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13133 char-table size.
13134
131352008-02-01 Kenichi Handa <handa@m17n.org>
13136
13137 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13138
131392008-02-01 Kenichi Handa <handa@m17n.org>
13140
13141 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13142 font_otf_gpos, add font_drive_otf.
13143
13144 * fontset.c (fontset_find_font): Pay attention to font size
13145 specified for a font.
13146 (reorder_font_vector): Check contents of font_def.
13147
13148 * font.c (struct otf_list): Delete it.
13149 (otf_list): Make it a lisp variable.
13150 (otf_open): Use lispy otf_list.
13151 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13152 (check_otf_features): New function.
13153 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13154 New functions.
13155 (font_drive_otf): New function merging font_otf_gsub and
13156 font_otf_gpos.
13157 (font_open_for_lface): New arg spec. Change argument order.
13158 (font_load_for_face): Adjust for the change of font_open_for_lface.
13159 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13160 Ffont_otf_gpos.
13161 (syms_of_font): Staticpro otf_list. Delete defsubr of
13162 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13163
13164 * xfaces.c (set_font_frame_param): Adjust for the change of
13165 font_open_for_lface.
13166
13167 * font.h (font_open_for_lface): Adjust prototype.
13168 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13169 member otf_drive.
13170 (font_otf_gsub, font_otf_gpos): Delete externs.
13171 (font_drive_otf): Extern it.
13172
131732008-02-01 Kenichi Handa <handa@m17n.org>
13174
13175 * font.c (font_at): If the window W is not on a window system,
13176 return Qnil.
13177
13178 * coding.c (produce_chars, encode_coding): Don't call
13179 insert_from_gap if no characters to produce.
13180
131812008-02-01 Kenichi Handa <handa@m17n.org>
13182
13183 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13184 Fclear_face_cache.
13185
13186 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13187
131882008-02-01 Miles Bader <miles@gnu.org>
13189
13190 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13191 Parse "--disable-font-backend" option.
13192 (standard_args): Add "--disable-font-backend" option.
13193
131942008-02-01 Kenichi Handa <handa@m17n.org>
13195
13196 * fontset.c (fontset_find_font): New function.
13197 (fontset_font): Use fontset_find_font.
13198 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13199 Register the specified font for all Latin characters.
13200 (new_fontset_from_font): Register the specified font for all Latin
13201 characters.
13202 (dump_fontset): For a realized fontset, include the base fontset
13203 name in the returned vector.
13204
132052008-02-01 Kenichi Handa <handa@m17n.org>
13206
13207 * character.h (CHAR_STRING): Cast C to unsigned on calling
13208 char_string.
13209
13210 * character.c (char_string): Type of arg C changed to unsigned.
13211 Signal an error if C is an invalid character code.
13212
13213 * editfns.c (general_insert_function, Fchar_to_string):
13214 Use CHARACTERP, not INTEGERP.
13215
132162008-02-01 Kenichi Handa <handa@m17n.org>
13217
13218 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13219 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13220
13221 * regex.c (analyse_first): Fix for multibyte characters in "case
13222 charset:" and "case categoryspec:".
13223
132242008-02-01 Andreas Schwab <schwab@suse.de>
13225
13226 * Makefile.in (LIBES): Move standard libraries to the end.
13227
132282008-02-01 Kenichi Handa <handa@m17n.org>
13229
13230 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13231 nonzero, don't shrink the buffer nextb.
13232
13233 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13234
13235 * coding.c (coding_alloc_by_making_gap): New arg offset.
13236 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13237 offset.
13238 (decode_coding_iso_2022): Update coding->safe_charsets.
13239 (decode_coding_gap): Temporarily set
13240 current_buffer->text->inhibit_shrinking to 1.
13241
132422008-02-01 Kenichi Handa <handa@m17n.org>
13243
13244 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13245 indexing into elements of s->cmp and s->char2b.
13246
132472008-02-01 Juanma Barranquero <lekktu@gmail.com>
13248
13249 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13250
132512008-02-01 Kenichi Handa <handa@m17n.org>
13252
13253 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13254 target_multibyte instead of multibyte.
13255 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13256 (bcmp_translate): Change the argument name from multibyte to
13257 target_multibyte.
13258
132592008-02-01 Kenichi Handa <handa@m17n.org>
13260
13261 These changes are to compile a regexp into a pattern that can be
13262 used both for multibyte and unibyte targets.
13263
13264 * Makefile.in (search.o): Depend on charset.h.
13265
13266 * character.c (multibyte_char_to_unibyte_safe): New function.
13267
13268 * search.c: Include "charset.h".
13269 (compile_pattern_1): Delete argument multibyte. Don't set
13270 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13271 (compile_pattern): Don't compare cp->buf.target_multibyte.
13272 Compare cp->buf.charset_unibyte.
13273 (compile_pattern): Set cp->buf.target_multibyte.
13274
13275 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13276
13277 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13278
13279 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13280 multibyte. Change callers.
13281 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13282 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13283 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13284 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13285 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13286 (regex_compile): Make the compiled pattern usable both for
13287 multibyte and unibyte targets.
13288 (analyse_first): Make the fastmap usable both for multibyte and
13289 unibyte targets.
13290 (TRANSLATE_VIA_MULTIBYTE): Delete.
13291 (re_match_2_internal): Pay attention to the case that the
13292 multibyteness of bufp and target may be different.
13293
132942008-02-01 Kenichi Handa <handa@m17n.org>
13295
13296 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13297 empty box occupy at least one column width.
13298
132992008-02-01 Miles Bader <miles@gnu.org>
13300
13301 * Makefile.in: Remove redundant HAVE_XFT clause.
13302
133032008-02-01 Kenichi Handa <handa@m17n.org>
13304
13305 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13306
133072008-02-01 Kenichi Handa <handa@m17n.org>
13308
13309 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13310 being nil.
13311
133122008-02-01 Kenichi Handa <handa@m17n.org>
13313
13314 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13315
133162008-02-01 Kenichi Handa <handa@m17n.org>
13317
13318 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13319
133202008-02-01 Kenichi Handa <handa@m17n.org>
13321
13322 * search.c (simple_search): Fix previous change.
13323
133242008-02-01 Kenichi Handa <handa@m17n.org>
13325
13326 * xftfont.c (ftfont_font_format): Extern declaration.
13327
13328 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13329
13330 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13331 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13332
13333 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13334 (ftfont_font_format): Fix previous change.
13335
13336 * font.h (Ffont_xlfd_name): EXFUN it.
13337
13338 * font.c (font_parse_xlfd): Fix the array size of `f'.
13339 (register_font_driver): Use EQ to compare driver->type.
13340
13341 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13342 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13343 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13344
133452008-02-01 Kenichi Handa <handa@m17n.org>
13346
13347 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13348 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13349
133502008-02-01 Kenichi Handa <handa@m17n.org>
13351
13352 * xfont.c (xfont_open): Set font->format.
13353
13354 * xftfont.c (xftfont_open): Set font->format.
13355
13356 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13357 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13358 (ftfont_open): Set font->format.
13359 (ftfont_font_format): New function.
13360
13361 * font.h (struct font): New member format.
13362
13363 * font.c (Qopentype): New variable.
13364 (syms_of_font): Defsym it.
13365 (Fquery_font): Change the format of the last element of the return
13366 value.
13367
133682008-02-01 Kenichi Handa <handa@m17n.org>
13369
13370 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13371 last resort.
13372
133732008-02-01 Kenichi Handa <handa@m17n.org>
13374
13375 * coding.c (detect_coding_charset): Fix detection of multi-byte
13376 charset.
13377
133782008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13379
13380 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13381
133822008-02-01 Kenichi Handa <handa@m17n.org>
13383
13384 * xdisp.c (get_next_display_element): Set it->face_id for the
13385 first component of a composition.
13386 (x_produce_glyphs): Check if the font is changed or not for composition.
13387
133882008-02-01 Kenichi Handa <handa@m17n.org>
13389
13390 * fontset.c (Qlatin): New variable.
13391 (syms_of_fontset): Define it as a lisp symbol.
13392 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13393
133942008-02-01 Kenichi Handa <handa@m17n.org>
13395
13396 * font.c (font_unparse_fcname): Pay attention to the case that
13397 some of font property is a null string.
13398
133992008-02-01 Kenichi Handa <handa@m17n.org>
13400
13401 * term.c: Include "composite.h".
13402 (encode_terminal_code): Output all components of composition.
13403 Check the size of encode_terminal_src.
13404 (produce_glyphs): For composition, call produce_composite_glyph.
13405 (append_composite_glyph, produce_composite_glyph): New functions.
13406
13407 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13408 is not found, get font_info from the current ascii face.
13409
134102008-02-01 Kenichi Handa <handa@m17n.org>
13411
13412 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13413 buffer-file-name to Qnil before calling insert_from_buffer.
13414
13415 * font.c (font_unparse_fcname): Pay attention to the case that
13416 foundry is a null string.
13417
134182008-02-01 Kenichi Handa <handa@m17n.org>
13419
13420 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13421
13422 * font.c (Qunicode_sip): New variable.
13423 (syms_of_font): Declare it as a Lisp symbol.
13424
13425 * font.h (Qunicode_sip): Extern it.
13426
134272008-02-01 Kenichi Handa <handa@m17n.org>
13428
13429 * composite.c (get_composition_id): Pay attention to TAB component.
13430
13431 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13432 TAB. Adjust for the change of s->char2b which always points to
13433 the first element of allocated memory.
13434
13435 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13436
13437 * xdisp.c (handle_composition_prop): Set it->c to the first
13438 non-TAB component.
13439 (fill_composite_glyph_string): Change argument.
13440 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13441 (x_produce_glyphs): Fix handling of left/right padding.
13442
134432008-02-01 Kenichi Handa <handa@m17n.org>
13444
13445 * coding.c (detect_coding_system): Fix for handling off
13446 inhibit_iso_escape_detection. Fix for the case that no coding
13447 system is defined for a specific coding category.
13448
134492008-02-01 Kenichi Handa <handa@m17n.org>
13450
13451 * font.c (font_matching_entity): Delete unused local var.
13452
13453 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13454 opening a font.
13455
13456 * fileio.c (Finsert_file_contents): On recovering a file, assume
13457 Unix-like eol.
13458 (choose_write_coding_system): On auto-saving a file, force
13459 Unix-like eol.
13460
13461 * coding.c (setup_coding_system): Fix setting of
13462 coding->common_flags based on eol_type.
13463 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13464 inherit from it.
13465
134662008-02-01 Kenichi Handa <handa@m17n.org>
13467
13468 * alloc.c (NSTATICS): Increas to 0x600.
13469
134702008-02-01 Kenichi Handa <handa@m17n.org>
13471
13472 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13473 (ftfont_list): Don't check :name property.
13474 (ftfont_match): New function.
13475 (ftfont_pattern_entity): If the pattern doesn't contain
13476 FC_SPACING, don't assume FC_MONO.
13477
13478 * font.h (struct font_driver): New member `match'.
13479 (font_update_drivers): Adjust prototype.
13480
13481 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13482 property of FONT.
13483 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13484 them unconditionally.
13485 (font_matching_entity): New function.
13486 (font_open_by_name): Try font_matching_entity if exact match is
13487 not found.
13488 (font_update_drivers): Delete the arg FONT. Return a list of
13489 actually used backends. Don't free faces, font caches here.
13490 Don't store data in frame parameters. Don't call x_set_font.
13491 (Ffont_spec): Store :name property as is.
13492 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13493 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13494 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13495 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13496 Call font->driver->otf_gsub instead of font_otf_gsub.
13497
13498 * frame.c (x_set_font_backend): Do more works that were done in
13499 font_update_drivers before.
13500
13501 * xfont.c (xfont_match): New function.
13502 (xfont_driver): Set xfont_driver.match to xfont_match.
13503 (xfont_draw): Set font in GC if necessary.
13504
13505 * ftxfont.c (ftxfont_match): New function.
13506 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13507
13508 * xftfont.c (xftfont_match): New function.
13509 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13510
135112008-02-01 Kenichi Handa <handa@m17n.org>
13512
13513 * font.h (struct font): New member scalable.
13514 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13515 (font_otf_gsub): Adjust prototype.
13516
13517 * font.c (font_otf_capability): Fix handling of the default langsys.
13518 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13519 Check the contents of SPEC.
13520 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13521 (check_gstring): New function.
13522 (REPLACEMENT_CHARACTER): New macro.
13523 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13524 glyph codes of GSTRING.
13525 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13526 (font_prepare_composition): Set cmp->glyph_len.
13527 (font_open_entity): Set font->scalable.
13528 (Ffont_get): Handle :otf property.
13529 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13530 functions.
13531 (Fquery_font): Use font->font.full_name.
13532 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13533 Sfont_otf_alternates.
13534
13535 * ftfont.c (ftfont_open): Set font->font.full_name and
13536 font->font.name properly. Fix calculation of font->font.height
13537 and font->min_width.
13538
13539 * ftxfont.c (ftxfont_create_gcs): New function.
13540 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13541 (ftxfont_draw_backgrond): Fix filling region.
13542 (ftxfont_default_fid): New function.
13543 (ftxfont_open): Set xfont->fid to the return value of
13544 ftxfont_default_fid.
13545 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13546 (ftxfont_done_face): Free only GCs that are created by
13547 ftxfont_create_gcs.
13548 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13549
13550 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13551 Clip to src->width, etc (not src->clip_XXX).
13552
13553 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13554 FontBackend frame parameter.
13555
135562008-02-01 Kenichi Handa <handa@m17n.org>
13557
13558 * font.h (struct font_driver_list): New member `on'.
13559 (Fclear_font_cache): EXFUN it.
13560 (font_update_drivers): Extern it.
13561
13562 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13563 (font_list_entities): Check driver_list->on.
13564 (register_font_driver): Initalize `on' member to 0.
13565 (font_update_drivers): New function.
13566 (Fclear_font_cache): Check driver_list->on.
13567
13568 * frame.h (Qfont_backend): Extern it.
13569 (x_set_font_backend): Extern it.
13570
13571 * frame.c (Qfont_backend): New variable.
13572 (frame_parms): New element for font-backend.
13573 (x_set_font_backend): New function.
13574
13575 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13576 FontBackend frame parameter.
13577 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13578 x_set_font_backend.
13579
13580 * xfont.c (xfont_list): Don't try listing by :name property if the
13581 name is not for XLFD.
13582
135832008-02-01 Kenichi Handa <handa@m17n.org>
13584
13585 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13586 (LGLYPH_SET_TO): New macros.
13587 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13588 element of G is vector or not.
13589 (font_at): Extern it.
13590
13591 * font.c: Include window.h.
13592 (font_lispy_object): New function.
13593 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13594 end of valid glyph.
13595 (font_close_object): Fix getting (struct font *).
13596 (font_at): New function.
13597 (Ffont_get): If FONT is a font-object, get entity from it.
13598 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13599 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13600 range check.
13601 (Ffont_at): New function.
13602 (syms_of_font): Defsubr Sfont_at.
13603
13604 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13605 before the entry for Qcomposition.
13606 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13607 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13608 the font in gstring.
13609 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13610 LGLYPH_FORM (g) to detect the end of valid glyph.
13611 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13612 we are composing with gstring.
13613
13614 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13615 Check if adjustment is vector or not.
13616
13617 * Makefile.in (font.o): Make it depends on window.h.
13618
136192008-02-01 Kenichi Handa <handa@m17n.org>
13620
13621 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13622 adjustment is vector or not.
13623
136242008-02-01 Miles Bader <miles@gnu.org>
13625
13626 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13627
136282008-02-01 Kenichi Handa <handa@m17n.org>
13629
13630 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13631 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13632 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13633
13634 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13635 (DEVICE_DELTA): Fix typo.
13636 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13637 LGLYPH format.
13638
13639 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13640 the change of LGLYPH format.
13641
136422008-02-01 Kenichi Handa <handa@m17n.org>
13643
13644 * ftfont.c (ftfont_list): Fix typo.
13645 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13646
136472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13648
13649 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13650
13651 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13652 xftface_info is non-NULL.
13653
136542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13655
13656 * ftfont.c (ftfont_list): Move misplaced #endif.
13657
136582008-02-01 Kenichi Handa <handa@m17n.org>
13659
13660 * ftfont.c (ftfont_list): Pay attention to the case that
13661 FC_CAPABILITY is not defined.
13662
136632008-02-01 Kenichi Handa <handa@m17n.org>
13664
13665 * xftfont.c (xftfont_open): Set charset related members to -1.
13666
13667 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13668 QCname.
13669 (ftfont_open): Set charset related members to -1.
13670
13671 * fontset.c (Votf_script_alist): New variable.
13672 (syms_of_fontset): Initialize it.
13673 (fontset_font): Delete unused variable.
13674
13675 * fontset.h (Votf_script_alist): Extern it.
13676
13677 * font.c (font_find_for_lface): Optimize code.
13678
13679 * font.h (font_close_object, font_merge_old_spec): Extern them.
13680
136812008-02-01 Kenichi Handa <handa@m17n.org>
13682
13683 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13684 (syms_of_font): Initialize them.
13685 (font_pixel_size): Allow float value in dpi.
13686 (font_prop_validate_type): Delete.
13687 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13688 Change caller.
13689 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13690 (font_prop_validate_extra): Delete.
13691 (font_prop_validate_spacing): New function.
13692 (font_property_table): Add elements for all known properties.
13693 (get_font_prop_index): Rename from check_font_prop_name. New
13694 argument FROM. Change caller.
13695 (font_prop_validate): Validate all known properties.
13696 (font_put_extra): Delete argument force. Change caller.
13697 (font_expand_wildcards): Make it static. Fix the way of shrinking
13698 the possible range.
13699 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13700 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13701 Change caller.
13702 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13703 (font_parse_fcname): Delete argument merge. Fix parsing of point
13704 size. Don't validate properties values here. Change caller.
13705 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13706 (font_open_by_name): Delete unused variable.
13707 (Ffont_spec): Likewise. Validate property values.
13708 (Ffont_match_p): New function.
13709
13710 * font.h (QCscalable): Extern it.
13711 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13712
13713 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13714
13715 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13716 (xfont_list_pattern): New function.
13717 (xfont_list): Use xfont_list_pattern.
13718
137192008-02-01 Kenichi Handa <handa@m17n.org>
13720
13721 * font.h (Flist_fonts): EXFUN it.
13722
137232008-02-01 Jason Rumney <jasonr@gnu.org>
13724
13725 * w32term.c (w32_initialize): Add back smoothing_type and
13726 smoothing_enabled definitions.
13727
137282008-02-01 Kenichi Handa <handa@m17n.org>
13729
13730 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13731 s->face->font on determining underline position.
13732
137332008-02-01 Kenichi Handa <handa@m17n.org>
13734
13735 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13736 (font_has_char): Accept font-object too.
13737 (font_find_for_lface): Try at first with a size specified in face.
13738
137392008-02-01 Kenichi Handa <handa@m17n.org>
13740
13741 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13742 font_open_by_name.
13743
137442008-02-01 Kenichi Handa <handa@m17n.org>
13745
13746 * font.h (QCspacing, QCdpi): Extern them.
13747 (enum font_spacing): New enum.
13748 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13749
13750 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13751 (QCspacing, QCdpi): New variables.
13752 (syms_of_font): Initialize them.
13753 (font_pixel_size): New function.
13754 (font_put_extra): New function.
13755 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13756 in FONT_EXTRA.
13757 (font_parse_fcname): Handle enumerated values (e.g. bold).
13758 Fix handling font size. Add QCname property that contains only
13759 unknown properties.
13760 (font_score): Change argument. Change caller. Pay attention to
13761 FONT_PIXEL_SIZE_QUANTUM.
13762 (font_sort_entites, font_list_entities, font_find_for_lface)
13763 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13764 (Ffont_spec): Add QCname property that contains only unknown properties.
13765
13766 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13767 include weight in listing pattern, instead check weight of each
13768 listed font. Don't include scalable in pattern. Pay attention to
13769 FONT_PIXEL_SIZE_QUANTUM.
13770
137712008-02-01 Kenichi Handa <handa@m17n.org>
13772
13773 * font.c (font_parse_fcname): Fix parsing of point-size.
13774 (font_unparse_fcname): Produce symbolic names for style properties.
13775 (font_list_entities): Handle float size correctly.
13776 (font_open_by_name): Prefer `normal' property values if the name
13777 doesn't specify them.
13778
13779 * fontset.c (Finternal_char_font): Use font_get_name, not
13780 Ffont_xlfd_name.
13781
13782 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13783 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13784 pattern. Don't force scalable.
13785
13786 * xftfont.c (xftfont_open): For generating a name, start from
13787 96-byte buffer.
13788
137892008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13790
13791 * frame.h (x_new_fontset2): Fix prototype.
13792
137932008-02-01 Kenichi Handa <handa@m17n.org>
13794
13795 * font.h (struct font_driver): Delete member parse_name.
13796 (font_match_p, font_get_spec, font_parse_fcname)
13797 (font_unparse_fcname): Extern them.
13798 (font_get_name): Adjust prototype.
13799
13800 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13801 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13802 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13803 unnecessary checks for weight, slant, and swidth.
13804 (font_parse_fcname): New function.
13805 (font_unparse_fcname): New function.
13806 (font_parse_name): New function.
13807 (font_match_p): New function.
13808 (font_get_name): Change return value to Lisp string.
13809 (font_get_spec): New function.
13810 (Qunspecified, Qignore_defface): Don't extern them.
13811 (font_find_for_lface): Assume that LFACE is fully specified.
13812 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13813 object, use it for FACE.
13814 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13815 driver->parse_name.
13816 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13817
13818 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13819 prototype.
13820
13821 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13822 argument F. Don't call Fnew_fontset. Instead, directly call
13823 make_fontset.
13824
13825 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13826
13827 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13828 of x_new_fontset2.
13829
13830 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13831 (Qsans__serif): New variables.
13832 (ftfont_generic_family_list): New variable.
13833 (syms_of_ftfont): Initialize the above variables.
13834 (ftfont_pattern_entity): Delete argument NAME.
13835 (ftfont_list_generic_family): New function.
13836 (ftfont_parse_name): Delete this function.
13837 (ftfont_list): Try generic family only when FcFontList found no font.
13838 (ftfont_list_family): Fix args to FcObjectSetBuild.
13839
13840 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13841 object in attrs[LFACE_FONT_INDEX].
13842 (set_lface_from_font_name): Cancel all changes for font-backend.
13843 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13844 function.
13845 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13846 font object in QCfont attribute.
13847 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13848 (realize_default_face) [USE_FONT_BACKEND]: Call
13849 set_lface_from_font_and_fontset.
13850
13851 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13852 "fixed", and signal error here if no suitable font was found.
13853
13854 * xfont.c (xfont_parse_name): Delete this function.
13855
13856 * xftfont.c (xftfont_open): Change coding style of error
13857 handling. Generate fontconfig's fontname pattern.
13858
13859 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13860 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13861
13862 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13863 Both args FONTSET and FONT_OBJECT must be existing ones.
13864
138652008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13866
13867 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13868
138692008-02-01 Kenichi Handa <handa@m17n.org>
13870
13871 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13872
13873 * font.h (struct font): Fix typo.
13874
13875 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13876 XLFD_XXX_INDEX.
13877 (enum xlfd_field_mask): New enum.
13878 (intern_font_field): Changed argument. Change caller. If digits
13879 are followed by non-digits, return a symbol.
13880 (font_expand_wildcards): New function.
13881 (font_parse_xlfd): Fix wildcard handling.
13882 (Ffont_spec): If :name is specified, reflect the info in the other
13883 properties.
13884
13885 * ftfont.c (ftfont_pattern_entity): Fix typo.
13886 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13887 locale.
13888
138892008-02-01 Kenichi Handa <handa@m17n.org>
13890
13891 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13892
13893 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13894 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13895 registry doesn't specify encoding part.
13896 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13897 (font_open_by_name): At first try parsing the name.
13898 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13899 as Lisp symbols.
13900
13901 * fontset.c (reorder_font_vector): Pay attention to the case that
13902 the 3rd element of font_def is nil.
13903 (fontset_font): For the default fontset, append one more fontset
13904 elements for a script-based font specification. Don't add script
13905 attribute on finding a font.
13906 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13907 font name.
13908 (fontset_ascii_font): If a font can't be opened, return nil.
13909
13910 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13911 (ftfont_pattern_entity): New function.
13912 (ftfont_get_cache): Assume that freetype_font_cache is already
13913 initialized.
13914 (ftfont_list): Handle the case that a file is specified in font
13915 name. Use ftfont_pattern_entity to generate entities.
13916 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13917 (syms_of_ftfont): Initialize freetype_font_cache.
13918
13919 * xftfont.c (xftfont_open): Make the font name fontconfig's
13920 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13921 (xftfont_close): Free font->font.name if not NULL.
13922
13923 * xfont.c (xfont_list): If script is specified for a font, return
13924 null_vector.
13925 (xfont_list_family): Declare argument type.
13926
13927 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13928 name, set LFACE_FONT (lface) to nil.
13929
13930 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13931 return Qnil.
13932
139332008-02-01 Kenichi Handa <handa@m17n.org>
13934
13935 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13936 (standard_args): Add "-enable-font-backend".
13937
139382008-02-01 Kenichi Handa <handa@m17n.org>
13939
13940 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13941 (struct xftdraw_list, xftdraw_list): Delete them.
13942 (register_xftdraw, check_xftdraw): Delete them.
13943 (xftfont_prepare_face): Don't call register_xftdraw.
13944 (xftfont_done_face): Don't call check_xftdraw.
13945 (xftfont_draw): Get background color only when with_background is
13946 nonzero.
13947
13948 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13949
139502008-02-01 Kenichi Handa <handa@m17n.org>
13951
13952 These changes are for the new font handling codes.
13953
13954 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13955 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13956 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13957 (FONTSRC, FONTOBJ): New variables.
13958 (obj): Add $(FONTOBJ).
13959 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13960 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13961 @LIBOTF_LIBS@.
13962 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13963 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13964
13965 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13966
13967 * character.h (Vscript_representative_chars): Extern it.
13968
13969 * character.c (Vscript_representative_chars): New variable.
13970 (syms_of_character): Declare it as a Lisp variable.
13971
13972 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13973 enable_font_backend is nonzero, accept the composition method
13974 COMPOSITION_WITH_GLYPH_STRING.
13975
13976 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13977 enumeration COMPOSITION_WITH_GLYPH_STRING.
13978
13979 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13980 members clip_x, clip_y, clip_width, and clip_height.
13981 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13982
13983 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13984 --enable-font-backend. Call syms_of_font.
13985
13986 * fns.c (assoc_no_quit): New function.
13987
13988 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13989 (face_for_font, new_fontset_from_font)
13990 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13991
13992 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13993 (fontset_font, fontset_ascii, face_for_char)
13994 (make_fontset_for_ascii_face, Ffont_info)
13995 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13996 is nonzero, use font-backend mechanism.
13997 (find_font_encoding): Make it non-static.
13998 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13999 New functions.
14000
14001 * frame.h (struct frame): New members resx and resy.
14002 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14003 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14004
14005 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14006 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14007
14008 * lisp.h (assoc_no_quit): Extern it.
14009
14010 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14011 Through out the file, use FONT_INFO_FROM_FACE instead of
14012 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14013 rif->per_char_metric.
14014 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14015 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14016 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14017 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14018 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14019 nonzero, use font-backend mechanism.
14020 (get_per_char_metric): New function.
14021
14022 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14023 (set_lface_from_font_name)
14024 (set_font_frame_param, free_realized_face)
14025 (prepare_face_for_display, clear_face_gcs)
14026 (Finternal_set_font_selection_order, realize_x_face)
14027 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14028 font-backend mechanism.
14029 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14030 (load_face_font) [USE_FONT_BACKEND]: Abort.
14031 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14032 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14033
14034 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14035 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14036 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14037 nonzero, register all available font drivers. Call
14038 x_default_font_parameter for deciding a font.
14039 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14040
14041 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14042 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14043 (x_set_glyph_string_clipping_exactly)
14044 (x_compute_glyph_string_overhangs)
14045 (x_draw_glyph_string_foreground)
14046 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14047 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14048 enable_font_backend is nonzero, use font-backend mechanism.
14049 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14050
140512008-02-01 Kenichi Handa <handa@m17n.org>
14052
14053 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14054 system_eol_type.
14055 (syms_of_coding): Initialize system_eol_type.
14056
14057 * process.c (Fset_process_coding_system): Inherit system's eol
14058 format if necessary.
14059
140602008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14061
14062 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14063
140642008-02-01 Kenichi Handa <handa@m17n.org>
14065
14066 * coding.c (decode_eol): Pay attention to buffer relocation in
14067 del_range_2.
14068 (decode_coding): Call decode_eol before restoring undo_list.
14069
140702008-02-01 Kenichi Handa <handa@m17n.org>
14071
14072 * charset.c (Fdefine_charset_internal): Fix setting of
14073 emacs_mule_bytes.
14074
140752008-02-01 Kenichi Handa <handa@m17n.org>
14076
14077 * keyboard.c (read_char): Check if C is a character or not before
14078 looking up Vkeyboard_translate_table.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14083 condition to terminate the loop.
14084
140852008-02-01 Kenichi Handa <handa@m17n.org>
14086
14087 * coding.c (produce_composition): Compare charbuf[i] instead of
14088 args[i] against 0.
14089 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14090
140912008-02-01 Kenichi Handa <handa@m17n.org>
14092
14093 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14094 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14095 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14096 detect_coding.
14097 (emacs_mule_char): Handle old style (Emacs 20) component character
14098 of a composition.
14099 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14100 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14101 composition rule.
14102 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14103
141042008-02-01 Kenichi Handa <handa@m17n.org>
14105
14106 * coding.c (encode_coding_ccl): Allocate destination dynamically
14107 when necessary.
14108
141092008-02-01 Kenichi Handa <handa@m17n.org>
14110
14111 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14112 the loop. When quitted, show a proper error message.
14113
141142008-02-01 Kenichi Handa <handa@m17n.org>
14115
14116 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14117 src->clip_head and src->clip_tail temporarily instead of src->hl.
14118
14119 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14120 character sequence.
14121 (Fccl_execute_on_string): Use ASET, not XSET.
14122
141232008-02-01 Kenichi Handa <handa@m17n.org>
14124
14125 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14126
141272008-02-01 Kenichi Handa <handa@m17n.org>
14128
14129 * coding.c (decode_coding): Fix the condition of terminating the
14130 decoding loop.
14131
141322008-02-01 Kenichi Handa <handa@m17n.org>
14133
14134 * data.c (Faset): On setting a character bigger than 255 in a
14135 unibyte string, signal an error instead of make the string multibyte.
14136
141372008-02-01 Kenichi Handa <handa@m17n.org>
14138
14139 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14140 made by a mapping table.
14141
141422008-02-01 Kenichi Handa <handa@m17n.org>
14143
14144 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14145 not.
14146 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14147 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14148
14149 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14150 s->face is NULL or not.
14151
141522008-02-01 Kenichi Handa <handa@m17n.org>
14153
14154 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14155 (x_draw_glyph_string): Fix drawing of right_overhang and
14156 left_overhang around/on cursor.
14157
14158 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14159
141602008-02-01 Kenichi Handa <handa@m17n.org>
14161
14162 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14163
141642008-02-01 Kenichi Handa <handa@m17n.org>
14165
14166 * coding.c (Fdefine_coding_system_internal)
14167 (Fdefine_coding_system_alias): Avoid a duplicated element in
14168 Vcoding_system_alist.
14169
141702008-02-01 Kenichi Handa <handa@m17n.org>
14171
14172 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14173
14174 * coding.c (Qcoding_system_define_form): New variable.
14175 (syms_of_coding): Intern and staticpro it.
14176 (Fcoding_system_p): Check Qcoding_system_define_form.
14177 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14178
14179 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14180 Fcoding_system_p.
14181 (CHECK_CODING_SYSTEM): If ID is not available, call
14182 Fcheck_coding_system.
14183 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14184 Try also Fcheck_coding_system.
14185
141862008-02-01 Kenichi Handa <handa@m17n.org>
14187
14188 * coding.c (code_conversion_restore): GCPRO arg.
14189
141902008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * character.c (lisp_string_width): Check multibyteness of STRING.
14193
141942008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14195
14196 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14197 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14198 (decode_mac_font_name): Use decode_coding_c_string instead of
14199 decode_coding.
14200 (x_load_font): Initialize fontp->fontset to -1. Set
14201 fontp->encoding_type.
14202
142032008-02-01 Kenichi Handa <handa@m17n.org>
14204
14205 * search.c (search_buffer): Give up BM search on case-fold-search
14206 if one of a target character has a case-equivalence of different
14207 byte length even if that target charcter is an ASCII.
14208 (simple_search): Fix calculation of byte length of matched text.
14209 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14210
142112008-02-01 Kenichi Handa <handa@m17n.org>
14212
14213 * coding.c (decode_coding): Fix handling of invalid bytes.
14214
142152008-02-01 Kenichi Handa <handa@m17n.org>
14216
14217 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14218 Unicode characters.
14219
142202008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 * coding.c (encode_coding_object): If a pre-write-conversion
14223 function makes a new buffer, kill it.
14224
142252008-02-01 Kenichi Handa <handa@m17n.org>
14226
14227 * coding.c (QCascii_compatible_p): New variable.
14228 (syms_of_coding): Initialize it.
14229 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14230 calling string_char.
14231 (record_conversion_result): Add `default:' case.
14232 (coding_charset_list): Delete unused variable `coding_type'.
14233 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14234 property in the plist of the coding system.
14235 (Fcoding_system_put): Check QCascii_compatible_p.
14236
142372008-02-01 Miles Bader <miles@gnu.org>
14238
14239 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14240 removed calculation of frame `f', as it's now used.
14241
142422008-02-01 Kenichi Handa <handa@m17n.org>
14243
14244 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14245 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14246 (UNIDATA): New variable.
14247 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14248 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14249 $(RUN_TEMACS) unconditionally.
14250
142512008-02-01 Kenichi Handa <handa@m17n.org>
14252
14253 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14254 (admindir): New variable.
14255 ($(lispsource)international/charprop.el): New target.
14256
142572008-02-01 Miles Bader <miles@gnu.org>
14258
14259 * character.c (chars-in-region): Remove obsolete function.
14260 (syms_of_character): Remove its initialization.
14261
142622008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14263
14264 * w32select.c (validate_coding_system)
14265 (setup_windows_coding_system): New functions.
14266 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14267 setup_windows_coding_system.
14268 (setup_config, Fw32_get_clipboard_data): Use
14269 validate_coding_system.
14270 (Fx_selection_exists): Move call to setup_config to a place
14271 where signals are allowed.
14272
14273 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14274 (Fcheck_coding_system): Add declarations.
14275
142762008-02-01 Kenichi Handa <handa@m17n.org>
14277
14278 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14279
142802008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14281
14282 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14283 string as the second argument for x_new_fontset.
14284
142852008-02-01 Kenichi Handa <handa@m17n.org>
14286
14287 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14288 (encode_coding_object): Use safe_call instead of call2.
14289
142902008-02-01 Kenichi Handa <handa@m17n.org>
14291
14292 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14293
14294 * Makefile.in (lisp): Include charprop.el.
14295
142962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14297
14298 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14299 Not sure if it's unnecessary.
14300
143012008-02-01 Steven Tamm <steventamm@mac.com>
14302
14303 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14304 some possibly unnecessary fontset checking code that crashed
14305 when creating a new frame.
14306
143072008-02-01 Kenichi Handa <handa@m17n.org>
14308
14309 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14310 lookup_face.
14311
14312 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14313
14314 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14315
143162008-02-01 Kenichi Handa <handa@m17n.org>
14317
14318 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14319 (coding_charset_list): New function.
14320
14321 * coding.h (coding_charset_list): Extern it.
14322
143232008-02-01 Kenichi Handa <handa@m17n.org>
14324
14325 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14326 concatenation of family and registry.
14327
143282008-02-01 Kenichi Handa <handa@m17n.org>
14329
14330 * character.h (BYTE8_STRING): Fix typo.
14331
14332 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14333 string to multibyte (sync to HEAD).
14334
14335 * casefiddle.c (casify_region): Handle changes in byte-length
14336 using replace_range_2 (sync to HEAD).
14337
143382008-02-01 Andreas Schwab <schwab@suse.de>
14339
14340 * chartab.c (map_char_table): GCPRO table and arg.
14341
143422008-02-01 Kenichi Handa <handa@m17n.org>
14343
14344 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14345 already at limit.
14346
143472008-02-01 Kenichi Handa <handa@m17n.org>
14348
14349 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14350 instead of fast_c_string_match_ignore_case.
14351 (find_font_encoding): Change argument to Lisp_Object. Use
14352 fast_string_match_ignore_case instead of
14353 fast_c_string_match_ignore_case. Change caller.
14354
143552008-02-01 Kenichi Handa <handa@m17n.org>
14356
14357 * xdisp.c (get_next_display_element): In unibyte case, decide to
14358 display in octal form by checking a character by
14359 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14360
14361 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14362
14363 * character.c (unibyte_has_multibyte_table): New variable.
14364
14365 * character.h (unibyte_has_multibyte_table): Extern it.
14366 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14367
143682008-02-01 Kenichi Handa <handa@m17n.org>
14369
14370 * coding.c (encode_coding_iso_2022): Fix handling of charset
14371 annotation.
14372
143732008-02-01 Kenichi Handa <handa@m17n.org>
14374
14375 * coding.c (setup_coding_system): If coding_system is nil, use
14376 Qundecided.
14377 (Fterminal_coding_system): Return nil if terminal coding system is
14378 `undecided'.
14379 (syms_of_coding): Define coding-system `undecided' here. Setup
14380 terminal_coding as `undecided'.
14381
143822008-02-01 Kenichi Handa <handa@m17n.org>
14383
14384 * xdisp.c (message_dolog, set_message_1): Call
14385 unibyte_char_to_multibyte with arg type int.
14386
14387 * lread.c (read1): Fix reading of a char-table.
14388
14389 * print.c (print_object): Include sub char-table in circularities
14390 detection.
14391
143922008-02-01 Kenichi Handa <handa@m17n.org>
14393
14394 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14395 Append the found sequences in car of ARGS instead of prepending.
14396
143972008-02-01 Kenichi Handa <handa@m17n.org>
14398
14399 * fileio.c (report_file_error): Make a unibyte string from
14400 strerror (errorno).
14401 (Fsubstitute_in_file_name): Fix the arg to
14402 unibyte_char_to_multibyte. It is evaluated twice.
14403
144042008-02-01 Kenichi Handa <handa@m17n.org>
14405
14406 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14407
144082008-02-01 Kenichi Handa <handa@m17n.org>
14409
14410 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14411 BOM is not found.
14412 (detect_coding, detect_coding_system): Optimization for ISO-2022
14413 when no 8-bit data is found.
14414
144152008-02-01 Jason Rumney <jasonr@gnu.org>
14416
14417 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14418
144192008-02-01 Kenichi Handa <handa@m17n.org>
14420
14421 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14422 CHARS.
14423
144242008-02-01 Steven Tamm <steventamm@mac.com>
14425
14426 * macterm.c (mac_encode_char): Add charset argument and update
14427 to use encoding_type.
14428 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14429 switch to pure fontset.
14430 (decode_mac_font_name): Temporarily remove decoding.
14431 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14432 (x_load_font): Temporarily remove encoding.
14433
144342008-02-01 Kenichi Handa <handa@m17n.org>
14435
14436 * xfaces.c (Fface_font): If frame is not on a window system,
14437 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14438 refer to face->font.
14439 (split_font_name_into_vector, build_font_name_from_vector)
14440 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14441 when HAVE_WINDOW_SYSTEM is defined.
14442
144432008-02-01 Kenichi Handa <handa@m17n.org>
14444
14445 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14446 (x_produce_glyphs): Fix setting of members of cmp in case
14447 cmp->glyph_len is zero.
14448
14449 * fontset.c (Fset_fontset_font): Fix docstring.
14450 (Ffontset_info): Make it backward compatible. New arg ALL.
14451
144522008-02-01 Kim F. Storm <storm@cua.dk>
14453
14454 * process.c (read_process_output): Grow decoding_buf when needed;
14455 this could cause a crash in allocate_string and compact_small_strings.
14456
144572008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14460
144612008-02-01 Kenichi Handa <handa@m17n.org>
14462
14463 * coding.c (setup_coding_system): Set coding->common_flags
14464 correctly for raw-text.
14465 (consume_chars): On encoding unibyte text by raw-text, don't check
14466 multibyte form.
14467 (encode_coding): On encoding by raw-text, never use translation tables.
14468
14469 * fileio.c (e_write): Short cut for the case of no encoding.
14470
144712008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * coding.c (detect_coding, detect_coding_system): Delete unused
14474 variables.
14475
144762008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14479 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14480
144812008-02-01 Kenichi Handa <handa@m17n.org>
14482
14483 * coding.c (Ffind_coding_systems_region_internal): Include
14484 raw-text and no-conversion in the result.
14485
144862008-02-01 Kenichi Handa <handa@m17n.org>
14487
14488 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14489 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14490 FONT_DEF.
14491 (font_def_arg, add_arg, from_arg, to_arg): New args.
14492 (set_fontset_font): Change argument.
14493 (Fset_fontset_font): Fix for the case that TARGET is a script
14494 name and charset name.
14495 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14496
144972008-02-01 Kenichi Handa <handa@m17n.org>
14498
14499 * fontset.c (fontset_font): Rename from fontset_face. Change return
14500 value.
14501 (face_suitable_for_char_p, face_for_char): Adjust for the change
14502 of fontset_font.
14503 (make_fontset_for_ascii_face): Fix setting of the fontset element
14504 for ASCII.
14505 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14506 to get a font name.
14507 (Ffontset_info): Adjust for the change of fontset_font.
14508
14509 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14510
14511 * character.h (LEADING_CODE_LATIN_1_MIN)
14512 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14513
145142008-02-01 Kenichi Handa <handa@m17n.org>
14515
14516 * editfns.c (check_translation): New function.
14517 (Ftranslate_region_internal): Handle M:N mapping.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14522
145232008-02-01 Kenichi Handa <handa@m17n.org>
14524
14525 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14526 goto invalid_code.
14527 (decode_coding_iso_2022): Fix handling of invalid designation.
14528
14529 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14530 after calling code_conversion_save.
14531
145322008-02-01 Kenichi Handa <handa@m17n.org>
14533
14534 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14535
14536 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14537
14538 * fontset.c: Include "intervals.h".
14539 (fontset_face): Fix comparing of Lisp_Objects.
14540 (free_face_fontset, new_fontset_from_font_name): Fix
14541 Lisp_Object/int mixup.
14542
14543 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14544
14545 * coding.c: Add many prototypes for static functions.
14546 (get_translation_table): Allow max_lookup to be NULL.
14547 (decode_coding, Ffind_coding_systems_region_internal)
14548 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14549 get_translation_table with max_lookup NULL.
14550
145512008-02-01 Kenichi Handa <handa@m17n.org>
14552
14553 * coding.c (get_translation_table): Declare it as Lisp_Object.
14554 (LOOKUP_TRANSLATION_TABLE): New macro.
14555 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14556 instead of CHAR_TABLE_REF.
14557
145582008-02-01 Kenichi Handa <handa@m17n.org>
14559
14560 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14561 annotation data format.
14562 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14563 Change arguments FROM and TO to single argument NCHARS. Change caller.
14564 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14565 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14566 (decode_coding_ccl, decode_coding_charset): Pay attention to
14567 coding->charbuf_used.
14568 (get_translation): New function.
14569 (produce_chars): New arguments translation_table and last_block.
14570 Translate characters here. Return number of carryover chars.
14571 Change caller.
14572 (produce_composition): New argument pos. Change caller.
14573 Adjust for the change of annotation data format.
14574 (produce_charset, produce_annotation): Likewise.
14575 (decode_coding, encode_coding): Don't call translate_chars.
14576 (consume_chars): New arg translation_table. Change caller.
14577 (translate_chars): Delete.
14578 (syms_of_coding): Make translation-table's number of extra slots 2.
14579
145802008-02-01 Kenichi Handa <handa@m17n.org>
14581
14582 * search.c (simple_search): Fix setting this_pos_byte in backward
14583 search.
14584
14585 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14586 byte sequence.
14587 (detect_coding_ccl): Fix setting of the variable valids.
14588
145892008-02-01 Kenichi Handa <handa@m17n.org>
14590
14591 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14592
14593 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14594
14595 * editfns.c (Ftranslate_region_internal): Rename from
14596 Ftranslate_region. Accept a char-table in TABLE.
14597 (syms_of_editfns): Defsubr Stranslate_region_internal.
14598
14599 * xfaces.c (set_lface_from_font_name): If a font is specified for
14600 a frame, generate a fontset from the font.
14601 (build_scalable_font_name): If the scalable font is requested for
14602 a specific size, don't change that size.
14603 (try_font_list): Try a scalable font also in the case that a
14604 pattern string is specified.
14605
146062008-02-01 Kenichi Handa <handa@m17n.org>
14607
14608 * xfaces.c (Fface_font): New optional arg CHARACTER.
14609
146102008-02-01 Kenichi Handa <handa@m17n.org>
14611
14612 * charset.h (CHARSET_OFFSET): New macro.
14613
146142008-02-01 Kenichi Handa <handa@m17n.org>
14615
14616 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14617
14618 * fontset.c (fontset_face): Handle the case that repertory is a
14619 char-table.
14620 (find_font_encoding): Return nil for unknown encoding.
14621 (Fset_fontset_font): Ignore a font of unknown encoding.
14622
146232008-02-01 Kenichi Handa <handa@m17n.org>
14624
14625 * keymap.c (describe_vector): Handle default value of a char table.
14626
14627 * fontset.c (fontset_face): Handle fallback fonts correctly.
14628 (Ffontset_info): Return infomation about fallback fonts.
14629
146302008-02-01 Kenichi Handa <handa@m17n.org>
14631
14632 * fontset.c (FONTSET_DEFAULT): New macro.
14633 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14634 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14635 the case that it is nil.
14636 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14637 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14638
14639 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14640 subset or superset.
14641
146422008-02-01 Kenichi Handa <handa@m17n.org>
14643
14644 * emacs.c (main): Call init_charset after syms_of_XXX.
14645
14646 * charset.c (Vcharset_map_directory): Delete.
14647 (Vcharset_map_path): New variable.
14648 (load_charset_map_from_file): Use Vcharset_map_path instead.
14649 (init_charset): Initialize Vcharset_map_path.
14650 (syms_of_charset): Delete declaration of "charset-map-directory",
14651 add declaration of "charset-map-path".
14652
146532008-02-01 Kenichi Handa <handa@m17n.org>
14654
14655 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14656 ASCII only string.
14657
14658 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14659
14660 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14661 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14662
146632008-02-01 Kenichi Handa <handa@m17n.org>
14664
14665 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14666
14667 * coding.c (QCmnemonic, QCdefalut_char)
14668 (QCdecode_translation_table, QCencode_translation_table)
14669 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14670 (get_translation_table): Return a list of translation tables if
14671 necessary.
14672 (decode_coding): Call get_translation_table with ENCODEP 0.
14673 (char_encodable_p): If translation_table is non-nil, always call
14674 translate_char.
14675 (Fdefine_coding_system_internal): Accept list of translation
14676 tables as :encode-translation-table and :decode-translation-table.
14677 (Fcoding_system_put): New function.
14678 (syms_of_coding): Declare new symbols. Defsubr
14679 Scoding_system_put.
14680 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14681 typically JISX0212.
14682
14683 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14684 when the charset is superset type.
14685
14686 * character.c (translate_char): Accept list of translation tables.
14687
146882008-02-01 Kenichi Handa <handa@m17n.org>
14689
14690 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14691 (CODING_ATTR_TRANS_TBL): New macro.
14692
14693 * coding.c (get_translation_table): New function.
14694 (translate_chars): Fix the bug of skipping annotation data.
14695 (decode_coding, encode_coding): Utilize get_translation_table.
14696 (char_encodable_p, Funencodable_char_position): Translate char if
14697 necessary.
14698 (Ffind_coding_systems_region_internal)
14699 (Fcheck_coding_systems_region): Setup translation table for encode
14700 in a coding system attribute vector in advance.
14701 (Fdefine_coding_system_internal): Allow a symbol as translation
14702 table. For shift-jis type coding system, allow 4th charset.
14703
147042008-02-01 Kenichi Handa <handa@m17n.org>
14705
14706 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14707
14708 * xdisp.c (get_next_display_element): Pass -1 as POS to
14709 FACE_FOR_CHAR if displaying a C-string.
14710
147112008-02-01 Kenichi Handa <handa@m17n.org>
14712
14713 * composite.c (get_composition_id): Handle xoff and yoff in a
14714 composition rule.
14715
14716 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14717 (struct composition): New member lbearing and rbearing.
14718
14719 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14720 (x_get_glyph_overhangs): Handle a composition glyph.
14721 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14722
14723 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14724 composition glyph.
14725
147262008-02-01 Kenichi Handa <handa@m17n.org>
14727
14728 * print.c: Include charset.h.
14729 (Vprint_charset_text_property): New variable.
14730 (Qdefault): Extern it.
14731 (PRINT_STRING_NON_CHARSET_FOUND)
14732 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14733 (print_check_string_result): New variable.
14734 (print_check_string_charset_prop): New function.
14735 (print_prune_charset_plist): New variable.
14736 (print_prune_string_charset): New function.
14737 (print_object): Call print_prune_string_charset if
14738 Vprint_charset_text_property is not t.
14739 (print_interval): Print nothing if interval->plist is nil.
14740 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14741 variable. Init and staticpro print_prune_charset_plist.
14742
147432008-02-01 Kenichi Handa <handa@m17n.org>
14744
14745 * fontset.c (new_fontset_from_font_name): Use the specified font
14746 for all characters in the new fontset.
14747
14748 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14749 OBJECT args.
14750
14751 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14752 OBJECT args for composition too.
14753
14754 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14755 OBJECT args.
14756
147572008-02-01 Kenichi Handa <handa@m17n.org>
14758
14759 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14760
14761 * fontset.c (reorder_font_vector): Adjust for the change of
14762 FONT_DEF format.
14763 (fontset_face): New arg id. Change caller.
14764 (face_for_char): New args pos and object.
14765 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14766 (fs_query_fontset): Check NAME by Fassoc too.
14767 (Fset_fontset_font): Allow non-XLFD font name.
14768 (Ffontset_info): Adjust for the change of FONT_DEF format.
14769
14770 * fontset.h (face_for_char): Adjust prototype.
14771
14772 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14773 (append_space, extend_face_to_end_of_line)
14774 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14775 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14776
14777 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14778 POS and OBJECT args.
14779
14780 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14781 POS and OBJECT args.
14782
147832008-02-01 Jason Rumney <jasonr@gnu.org>
14784
14785 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14786 of GlobalAlloc'ed memory.
14787
147882008-02-01 Kenichi Handa <handa@m17n.org>
14789
14790 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14791
14792 * charset.h (charset_table_used): Delete extern.
14793
14794 * charset.c (charset_table_used): Make it static.
14795 (map_charset_chars): Fix args to c_function with.
14796
14797 * chartab.c (map_sub_char_table_for_charset): Fix args to
14798 c_function with.
14799
14800 * coding.h (enum coding_result_code): Delete
14801 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14802
14803 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14804 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14805 (Vlast_code_conversion_error): New variables.
14806 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14807 (ONE_MORE_BYTE): Record error if any instead of signaling an
14808 error. If non-ASCII multibyte char is found, return the negative
14809 value of the code. All callers changed to check it.
14810 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14811 (record_conversion_result): New function. Change all codes setting
14812 coding->result to call this function.
14813 (detect_coding_utf_8, decode_coding_utf_8)
14814 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14815 Don't use the local variable incomplete.
14816 (emacs_mule_char): Change the second arg to `const'.
14817 (decode_coding): Fix of flushing out unprocessed data.
14818 (make_conversion_work_buffer): Fix making of a work buffer.
14819 (decode_coding_object): Return coding->dst_object.
14820
14821 * fontset.c (set_fontset_font): Fix args.
14822
14823 * lisp.h (CHARACTERBITS): Define as 22.
14824
14825 * process.c (send_process): Be sure to set coding->src_multibyte.
14826
14827 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14828
148292008-02-01 Kenichi Handa <handa@m17n.org>
14830
14831 * xdisp.c (handle_auto_composed_prop): Give limit to
14832 Fnext_single_char_property_change.
14833
148342008-02-01 Kenichi Handa <handa@m17n.org>
14835
14836 * composite.c (syms_of_composite): Don't make the composition hash
14837 table weak.
14838
14839 * fontset.c (Fset_fontset_font): Fix docstring.
14840
14841 * lisp.h (detect_coding_system): Adjust prototype.
14842
14843 * fileio.c (kill_workbuf_unwind): Delete this function.
14844 (Finsert_file_contents): Adjust the call of detect_coding_system.
14845 Get conversion_buffer by code_conversion_save. Use the macro
14846 CODING_MAY_REQUIRE_DECODING. After decoding, update
14847 coding_system.
14848
14849 * coding.h (make_conversion_work_buffer): Delete extern.
14850 (code_conversion_save): Extern it.
14851
14852 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14853 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14854 (decode_coding_utf_8): Don't do eol converion.
14855 (detect_coding_utf_16): Check coding->src_chars, not
14856 coding->src_bytes. Add heuristics for those that have no signature.
14857 (decode_coding_emacs_mule, decode_coding_iso_2022)
14858 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14859 Don't do eol converion.
14860 (adjust_coding_eol_type): Return a new coding system.
14861 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14862 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14863 each change.
14864 (decode_coding): Pay attention to undo_list. Do eol conversion for
14865 all types of coding-systems (if necessary).
14866 (Vcode_conversion_work_buf_list): Delete it.
14867 (Vcode_conversion_reused_workbuf): Rename from
14868 Vcode_conversion_reused_work_buf.
14869 (Vcode_conversion_workbuf_name): New variable.
14870 (reused_workbuf_in_use): New variable.
14871 (make_conversion_work_buffer): Delete the arg DEPTH.
14872 (code_conversion_restore): Change argument to cons.
14873 (code_conversion_save): Delete the argument BUFFER. Change callers.
14874 (detect_coding_system): New argument src_chars. Change callers.
14875 Fix for utf-16 detection.
14876 (init_coding_once): Don't use ISO_carriage_return.
14877 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14878 reused_workbuf_in_use.
14879
148802008-02-01 Kenichi Handa <handa@m17n.org>
14881
14882 * keymap.c (store_in_keymap): Pay attention to the case that idx
14883 is a cons specifying a character range.
14884
148852008-02-01 Kenichi Handa <handa@m17n.org>
14886
14887 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14888 HANDLED_RECOMPUTE_PROPS.
14889
14890 * coding.c (Fdefine_coding_system_internal): Fix checking of
14891 ascii compatibility.
14892
148932008-02-01 Kenichi Handa <handa@m17n.org>
14894
14895 * charset.c (find_charsets_in_text): Delete unused locale variable.
14896 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14897
14898 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14899 Resync charset_list to Vemacs_mule_charset_list.
14900
14901 * keymap.c (store_in_keymap): Pay attention to the case that idx
14902 is a cons specifying a character range.
14903
149042008-02-01 Kenichi Handa <handa@m17n.org>
14905
14906 * composite.c (update_compositions): Bind inhibit-read-only, etc
14907 to t before calling remove-list-of-text-properties.
14908
14909 * print.c (print_object): Always print ASCII chars as is.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14914
14915 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14916 is a char table.
14917
149182008-02-01 Kenichi Handa <handa@m17n.org>
14919
14920 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14921
149222008-02-01 Kenichi Handa <handa@m17n.org>
14923
14924 * xfaces.c (set_lface_from_font_name): Fix for the case that
14925 FONTNAME is not fontset name.
14926
149272008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * fns.c (base64_encode_1): Fix previous change.
14930
149312008-02-01 Kenichi Handa <handa@m17n.org>
14932
14933 * fontset.c (set_fontset_font): New function.
14934 (Fset_fontset_font): If a font is specified for a charset, use
14935 map_charset_chars to store the font spec in a fontset.
14936
149372008-02-01 Kenichi Handa <handa@m17n.org>
14938
14939 * fontset.c (fontset_face): Create a fallback fontset on demand.
14940 (make_fontset): Don't create a fallback fontset here.
14941 (free_face_fontset): Free a fallback fontset (if any) too.
14942 (n_auto_fontsets): Delete this variable.
14943 (auto_fontset_alist): New variable.
14944 (new_fontset_from_font_name): Check auto_fontset_alist.
14945 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14946 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14947 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14948 Defsubr Sfontset_list_all.
14949
149502008-02-01 Kenichi Handa <handa@m17n.org>
14951
14952 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14953
149542008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14957
149582008-02-01 Kenichi Handa <handa@m17n.org>
14959
14960 * editfns.c (Fgoto_char): Fix docstring.
14961
149622008-02-01 Kenichi Handa <handa@m17n.org>
14963
14964 * insdel.c (insert_from_gap): Adjust intervals correctly.
14965
149662008-02-01 Jason Rumney <jasonr@gnu.org>
14967
14968 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14969 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14970 (w32_initialize): Try to load it.
14971 (x_get_font_repertory): Use it if available.
14972 (w32_encode_char): Add shortcut for unicode output.
14973
14974 * w32fns.c (w32_load_system_font): Default charset to -1.
14975 (x_to_w32_charset): Match all fonts for unicode.
14976 (w32_to_x_charset): New parameter matching. Don't return partial
14977 or wildcard charsets.
14978 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14979 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14980 (w32_to_x_font): Match charset to real charset.
14981 (enum_font_cb2): Always list unicode versions.
14982
14983 * makefile.w32-in (temacs): Increase EMHEAP.
14984
149852008-02-01 Jason Rumney <jasonr@gnu.org>
14986
14987 * w32term.c (w32_encode_char): New charset parameter.
14988 font_info.encoding becomes encoding_type.
14989 (x_get_font_repertory): New function. Warning: stub only!
14990 (x_new_font): Return quickly if font already set.
14991 (x_new_fontset): fontsetname parameter is Lisp_Object.
14992 Use new fs_query_fontset. Try new_fontset_from_font_name.
14993 Use fontset_name for return value.
14994
14995 * w32term.h: Declare x_get_font_repertory.
14996
14997 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14998 place of find_charset_in_text. Use encode_coding_object in place
14999 of encode_coding.
15000 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15001 decode_coding.
15002
15003 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15004 of x_new_fontset.
15005 (w32_load_system_font): Initialize charset as unicode.
15006 font_info.encoding becomes encoding_type.
15007 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15008 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15009 (syms_of_w32fns): Set get_font_repertory_func.
15010
15011 * w32console.c: Include character.h. Use terminal_encode_buffer
15012 from term.c.
15013 (write_glyphs): Use new version of encode_terminal_code. Use
15014 encode_coding_object in place of encode_coding.
15015
15016 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15017 encoding becomes encoding_type.
15018
15019 * term.c (terminal_encode_buffer): Make externally visible.
15020
15021 * makefile.w32-in: Add character.h dependancies.
15022 (character.o, chartab.o): New targets.
15023
150242008-02-01 Kenichi Handa <handa@m17n.org>
15025
15026 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15027 CODING_ID_EOL_TYPE.
15028
150292008-02-01 Andreas Schwab <schwab@suse.de>
15030
15031 * coding.c (produce_chars): Revert last change.
15032
150332008-02-01 Kenichi Handa <handa@m17n.org>
15034
15035 * charset.h (charset_unicode): Extern it.
15036
15037 * charset.c (string_xstring_p): Check by (C >= 0x100).
15038 (find_charsets_in_text): Change format of the arc CHARSETS. New
15039 arg MULTIBYTE.
15040 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15041 change of find_charsets_in_text.
15042 (Fsplit_char): Fix doc. Never return unknown.
15043
15044 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15045
15046 * coding.c (Fdefine_coding_system_alias): Update
15047 Vcoding_system_list.
15048
15049 * fontset.c (load_font_get_repertory): Pay attention to the case
15050 that ENCODING of a font is specified by a char-table.
15051
15052 * xterm.c (x_get_font_repertory): Handle the case that the
15053 encoding of font is other than Unicode.
15054
150552008-02-01 Kenichi Handa <handa@m17n.org>
15056
15057 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15058 if a character is encodable by the terminal coding system. If
15059 not, produces proper number of `?'s. Update
15060 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15061 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15062
150632008-02-01 Kenichi Handa <handa@m17n.org>
15064
15065 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15066 variables.
15067 (encode_terminal_code): Change argument. Encode multiple
15068 characters at once. Store the result of encoding in
15069 terminal_encode_buffer.
15070 (write_glyphs, insert_glyphs): Adjust for the change of
15071 encode_terminal_code.
15072 (term_init): Initialize terminal_encode_buffer and
15073 terminal_encode_buf_size.
15074
15075 * coding.c (consume_chars): If coding->src_object is nil, don't
15076 check annotation.
15077
150782008-02-01 Kenichi Handa <handa@m17n.org>
15079
15080 * character.c (char_string): Use ASCII_CHAR_P instead of
15081 SINGLE_BYTE_CHAR_P.
15082
150832008-02-01 Kenichi Handa <handa@m17n.org>
15084
15085 * xdisp.c (handle_auto_composed_prop): Check if the last
15086 characters of auto-composed region is newly composed with the
15087 following characters.
15088 (handle_composition_prop): Fix checking of point being inside
15089 composition.
15090
150912008-02-01 Kenichi Handa <handa@m17n.org>
15092
15093 * fns.c (concat): Don't change multibyteness of the result by
15094 concatenating an 8-bit character.
15095
15096 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15097 multibyteness of the result when newelt is an 8-bit character.
15098
150992008-02-01 Dave Love <fx@gnu.org>
15100
15101 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15102 EMACS_INT.
15103
15104 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15105
15106 * xfaces.c (face_numeric_value): Declare dim size_t.
15107 (Finternal_lisp_face_equal_p): Remove unused f.
15108
15109 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15110 (MATRIX_ROW): Remove unused vars.
15111 (draw_glyphs, x_insert_glyphs, fast_find_position)
15112 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15113 byte/char counts.
15114
15115 * regex.c (regex_compile): Remove unused var.
15116
15117 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15118
15119 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15120 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15121
15122 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15123
15124 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15125
15126 * fileio.c (Fwrite_region): Remove unused var.
15127
15128 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15129 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15130
15131 * composite.c (Fremove_list_of_text_properties): Declare.
15132
15133 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15134 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15135 (coding_inherit_eol_type): Remove unused attrs.
15136 (detect_coding): Cast arg of detect_eol.
15137
15138 * charset.c (syms_of_charset): Remove unused var p.
15139 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15140 byte/char counts.
15141
15142 * casetab.c (set_case_table): Remove unused var.
15143
15144 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15145 unused vars.
15146
151472008-02-01 Dave Love <fx@gnu.org>
15148
15149 * xterm.c (x_bitmap_mask): Declare.
15150
151512008-02-01 Dave Love <fx@gnu.org>
15152
15153 * xterm.c (x_term_init): Fix type error.
15154
15155 * lisp.h: Add Funibyte_char_to_multibyte.
15156
15157 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15158 (Fset_coding_system_priority): Doc fix.
15159
15160 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15161
15162 * indent.c (check_composition): Make start and end EMACS_INT.
15163
15164 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15165
15166 * xdisp.c (handle_composition_prop, check_point_in_composition):
15167 Make buffer positions EMACS_INT.
15168
15169 * composite.c (find_composition, run_composition_function)
15170 (update_compositions, Ffind_composition_internal): Make buffer
15171 positions EMACS_INT.
15172
15173 * composite.h (find_composition, update_compositions): Make
15174 position args EMACS_INT.
15175
15176 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15177
15178 * intervals.c (get_property_and_range):
15179 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15180
15181 * unexalpha.c: Don't include varargs.h.
15182
151832008-02-01 Dave Love <fx@gnu.org>
15184
15185 * coding.h (ENCODE_UTF_8): New.
15186
15187 * Makefile.in (gtkutil.o): Depend on coding.h.
15188
15189 * coding.c (Fset_coding_system_priority): Doc fix.
15190
151912008-02-01 Kenichi Handa <handa@m17n.org>
15192
15193 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15194 the case of auto saving.
15195
151962008-02-01 Andreas Schwab <schwab@suse.de>
15197
15198 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15199 `range' from GC.
15200
152012008-02-01 Kenichi Handa <handa@m17n.org>
15202
15203 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15204
152052008-02-01 Kenichi Handa <handa@m17n.org>
15206
15207 * fileio.c (choose_write_coding_system): Return a decided coding system.
15208 (Fwrite_region): Set Vlast_coding_system_used to the return value
15209 of choose_write_coding_system.
15210
152112008-02-01 Kenichi Handa <handa@m17n.org>
15212
15213 * charset.c (Fset_charset_priority): Pay attention to duplicated
15214 arguments.
15215
15216 * coding.c (QCcategory): New variable.
15217 (syms_of_coding): Defsym it. Set all elements of
15218 Vcoding_category_table and their symbol values.
15219 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15220 coding-category-XXX, and coding-category-list.
15221 (Fdefine_coding_system_internal): Add category in the plist.
15222
152232008-02-01 Kenichi Handa <handa@m17n.org>
15224
15225 * callproc.c (Fcall_process): Handle carryover correctly.
15226
15227 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15228 (raw_text_coding_system): Check NILP (coding_system).
15229 (coding_inherit_eol_type): Check NILP (coding_system) and
15230 NILP (parent).
15231 (consume_chars): Fix for the case of raw-text.
15232
15233 * process.c (read_process_output): Handle carryover correctly.
15234
152352008-02-01 Dave Love <fx@gnu.org>
15236
15237 * regex.c (re_search_2): Fix last change.
15238
152392008-02-01 Kenichi Handa <handa@m17n.org>
15240
15241 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15242 target_multibyte. Even in a unibyte case, return a converted
15243 multibyte char.
15244 (GET_CHAR_AFTER): New macro.
15245 (PATFETCH): Translate via multibyte char.
15246 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15247 (SETUP_MULTIBYTE_RANGE): New macro.
15248 (regex_compile): Setup compiled code so that its multibyteness
15249 matches that of a target. Fix the handling of "[X-YZ]" using
15250 SETUP_MULTIBYTE_RANGE.
15251 (analyse_first) <charset>: For filling fastmap for all multibyte
15252 characters, don't check by BASE_LEADING_CODE_P.
15253 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15254 the same as RE_MULTIBYTE_P (bufp) now.
15255 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15256 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15257 (TRANSLATE_VIA_MULTIBYTE): New macro.
15258 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15259 It is the same as RE_MULTIBYTE_P (bufp) now.
15260 <exactn>: Translate via multibyte.
15261 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15262 translate it.
15263 <charset, charset_not>: Fetch a character by
15264 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15265 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15266 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15267 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15268 by GET_CHAR_AFTER.
15269 (bcmp_translate): Likewise.
15270
15271 * search.c (compile_pattern): Check the member target_multibyte,
15272 not the member multibyte of buf.
15273
15274 * lread.c (read1): While reading a string, set force_singlebyte
15275 and force_multibyte correctly.
15276
15277 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15278 up of unibyte_to_multibyte_table.
15279
152802008-02-01 Kenichi Handa <handa@m17n.org>
15281
15282 * coding.c (setup_coding_system): If coding has
15283 post-read-conversion or pre-write-conversion, set
15284 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15285 respectively.
15286 (decode_coding_gap): Run post-read-conversion if any.
15287
15288 * fileio.c (Finsert_file_contents): Even if we read into a
15289 unibyte buffer, check if we must decode the result or not.
15290
152912008-02-01 Kenichi Handa <handa@m17n.org>
15292
15293 * coding.c (make_conversion_work_buffer): Change the work buffer
15294 name to the same one as that of Emacs 21.
15295
152962008-02-01 Kenichi Handa <handa@m17n.org>
15297
15298 * coding.h (make_conversion_work_buffer): Adjust prototype.
15299 (code_conversion_restore): Don't extern it.
15300
15301 * coding.c (detected_mask): Delete unused variable.
15302 (decode_coding_iso_2022): Pay attention to the byte sequence of
15303 CTEXT extended segment, and retain those bytes as is.
15304 (decode_coding_ccl): Delete unused variable `valids'.
15305 (setup_coding_system): Delete unused variable `category'.
15306 (consume_chars): Delete unused variable `category'. Make it work
15307 for non-multibyte case.
15308 (make_conversion_work_buffer): Change argument.
15309 (saved_coding): Delete unused variable.
15310 (code_conversion_restore): Don't check saved_coding->destination.
15311 (code_conversion_save): New function.
15312 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15313 instead of record_unwind_protect.
15314 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15315 (detect_coding_system): Delete unused variable `mask'.
15316 (Fdefine_coding_system_internal): Delete unused variable id.
15317
15318 * fileio.c (kill_workbuf_unwind): New function.
15319 (Finsert_file_contents): On replacing, call
15320 make_conversion_work_buffer with correct args, and call
15321 record_unwind_protect with the first arg kill_workbuf_unwind.
15322
15323 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15324
153252008-02-01 Kenichi Handa <handa@m17n.org>
15326
15327 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15328 (fontset_add): Fix for the case that TO is less than TO1.
15329 (Ffontset_info): Don't use fallback fontset on checking the
15330 default fontset.
15331 (dump_fontset): New function for debugging.
15332
15333 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15334 coding_type is Qcharset.
15335
153362008-02-01 Kenichi Handa <handa@m17n.org>
15337
15338 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15339 (map_char_table): Don't inherit the value from the parent on
15340 initializing VAL. Adjust for the above change.
15341
153422008-02-01 Kenichi Handa <handa@m17n.org>
15343
15344 * coding.c (Qsignature, Qendian): Delete these variables.
15345 (syms_of_coding): Don't initialize them.
15346 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15347 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15348 detect_info->found.
15349 (decode_coding_utf_16): Don't detect BOM here.
15350 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15351 is NOT utf_16_without_bom.
15352 (setup_coding_system): For a coding system of type utf-16, check
15353 if the attribute :endian is Qbig or not (not nil or not), and set
15354 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15355 (detect_coding): If coding type is utf-16 and BOM detection is
15356 required, detect it.
15357 (Fdefine_coding_system_internal): For a coding system of type
15358 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15359
153602008-02-01 Kenichi Handa <handa@m17n.org>
15361
15362 * coding.c (coding_set_source): Fix for the case that the current
15363 buffer is different from coding->src_object.
15364 (decode_coding_object): Don't use the conversion work buffer if
15365 DST_OBJECT is a buffer.
15366
153672008-02-01 Dave Love <fx@gnu.org>
15368
15369 * lread.c (read_emacs_mule_char) [len==2]: Index
15370 emacs_mule_charset correctly.
15371
153722008-02-01 Dave Love <fx@gnu.org>
15373
15374 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15375 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15376 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15377 treated specially.)
15378 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15379 (detected_mask): Remove Big5 bits.
15380
153812008-02-01 Kenichi Handa <handa@m17n.org>
15382
15383 The following changes are to make the font rescaling facility
15384 compatible with Emacs 21.
15385
15386 * xfaces.c (Vface_font_rescale_alist): Rename from
15387 Vface_resizing_fonts.
15388 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15389 (font_rescale_ratio): Rename from font_resizing_ratio.
15390 (split_font_name): Set font->rescale_ratio.
15391 (better_font_p): Pay attention to font->rescale_ratio.
15392 (build_scalable_font_name): Likewise. Change RESX, and RESY
15393 fields.
15394 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15395
153962008-02-01 Kenichi Handa <handa@m17n.org>
15397
15398 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15399 (Qutf_16_le): Remove these variables.
15400 (syms_of_coding): Don't DEFSYM them.
15401 (decode_coding_utf_16): Fix handling of BOM.
15402 (encode_coding_utf_16): Fix handling of BOM.
15403
154042008-02-01 Kenichi Handa <handa@m17n.org>
15405
15406 * fileio.c (Finsert_file_contents): On replacing, before decoding
15407 the file into the work buffer, set point of the work buffer to the end.
15408
154092008-02-01 Dave Love <fx@gnu.org>
15410
15411 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15412
154132008-02-01 Dave Love <fx@gnu.org>
15414
15415 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15416 and fix C types.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * xdisp.c (SKIP_GLYPHS): New macro.
15421 (set_cursor_from_row): Pay attention to string display properties.
15422
15423 * category.c (copy_category_entry): Fix for the case that RANGE
15424 is an integer.
15425
15426 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15427
15428 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15429
154302008-02-01 Kenichi Handa <handa@m17n.org>
15431
15432 * charset.c (Fcharset_id_internal): New function.
15433 (syms_of_charset): Defsubr it.
15434
15435 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15436 with the last arg charset_list acquired from coding.
15437 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15438 the attribute coding_attr_ccl_valids.
15439
15440 * coding.h (enum define_coding_ccl_arg_index): Set the first
15441 member coding_arg_ccl_decoder to coding_arg_max.
15442
15443 * ccl.h (ccl_driver): Adjust prototype.
15444
15445 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15446 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15447 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15448 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15449 last arg Qnil.
15450
154512008-02-01 Kenichi Handa <handa@m17n.org>
15452
15453 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15454 call encode_char.
15455
15456 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15457
154582008-02-01 Dave Love <fx@gnu.org>
15459
15460 * composite.c (syms_of_composite): Make composition_hash_table weak.
15461
154622008-02-01 Kenichi Handa <handa@m17n.org>
15463
15464 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15465 (font_name_registry): Don't extern them.
15466 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15467
15468 * fontset.h (Qfontset): Don't extern it.
15469 (new_fontset_from_font_name): Extern it.
15470
15471 * fontset.c: Give 8 extra slots to fontset objects.
15472 (Qfontset_info): New variable.
15473 (syms_of_fontset): Defsym it.
15474 (FONTSET_FALLBACK): New macro.
15475 (fontset_face): Try also the default fontset.
15476 (make_fontset): Realize a fallback fontset from the default fontset.
15477 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15478 using split_font_name_into_vector and build_font_name_from_vector.
15479 (Fset_fontset_font): Access the elements of font_spec by enum
15480 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15481 name by using split_font_name_into_vector.
15482 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15483 generate a proper font name from the fontset name. Update
15484 Vfontset_alias_alist.
15485 (n_auto_fontsets): New variable.
15486 (new_fontset_from_font_name): New function.
15487 (Ffont_info): Store the information about fonts generated from the
15488 default fontset in the first extra slot of the returned char-table.
15489
15490 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15491 (font_name_registry): Delete function.
15492 (split_font_name_into_vector): New function.
15493 (build_font_name_from_vector): New function.
15494 (font_list): The argument REGISTRY is now a list of registry names.
15495 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15496 specifies an explicit font name, return the name as is. Make a
15497 list of registy names.
15498
15499 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15500 of x_new_fontset.
15501 (Fx_create_frame): Don't call x_new_fontset here. Just use
15502 x_list_fonts to check the existence of fonts.
15503
15504 * xterm.h (x_new_fontset): Adjust prototype.
15505
15506 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15507 string. Use new_fontset_from_font_name to create a fontset from a
15508 font name.
15509
155102008-02-01 Kenichi Handa <handa@m17n.org>
15511
15512 * syntax.c (Vfind_word_boundary_function_table): New name for
15513 Vnext_word_boundary_function_table.
15514 (find-word-boundary-function-table): New name for
15515 next-word-boundary-function-table.
15516
155172008-02-01 Dave Love <fx@gnu.org>
15518
15519 * Makefile.in: Fix some dependencies.
15520
15521 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15522 set it to nil before returning.
15523
15524 * composite.c (update_compositions): Fix type error.
15525
15526 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15527
155282008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 * xterm.c (x_new_font): Optimize for the case that the font is
15531 already set for the frame.
15532
155332008-02-01 Kenichi Handa <handa@m17n.org>
15534
15535 * chartab.c (char_table_ascii): Check if the char table contents
15536 is sub-char-table or not.
15537 (char_table_set, char_table_set_range): Fix argument to
15538 char_table_ascii.
15539
15540 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15541 (detect_coding_utf_8, detect_coding_utf_16)
15542 (detect_coding_emacs_mule, detect_coding_iso_2022)
15543 (detect_coding_sjis, detect_coding_big5)
15544 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15545 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15546 sequence is valid in this coding system. Change callers.
15547 (MAX_ANNOTATION_LENGTH): New macro.
15548 (ADD_ANNOTATION_DATA): New macro.
15549 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15550 ADD_ANNOTATION_DATA. Change the format of annotation data.
15551 (ADD_CHARSET_DATA): New macro.
15552 (emacs_mule_char): New argument ID. Change callers.
15553 (decode_coding_emacs_mule, decode_coding_iso_2022)
15554 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15555 Produce charset annotation data in coding->charbuf.
15556 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15557 to charset annotation data in coding->charbuf.
15558 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15559 coding->common_flags if the coding system is iso-2022 based and
15560 uses designation.
15561 (produce_composition): Adjust for the new annotation data format.
15562 (produce_charset): New function.
15563 (produce_annotation): Handle charset annotation.
15564 (handle_composition_annotation, handle_charset_annotation): New
15565 functions.
15566 (consume_chars): Handle charset annotation. Utilize the above two
15567 functions.
15568 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15569 buffer, get the deleted text as a string and set
15570 coding->src_object to that string.
15571 (detect_coding, detect_coding_system): Use the new struct
15572 coding_detection_info.
15573
15574 * coding.h (struct coding_detection_info): New structure.
15575 (struct coding_system): Adjust prototype of the member `detector'.
15576 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15577
155782008-02-01 Kenichi Handa <handa@m17n.org>
15579
15580 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15581
155822008-02-01 Dave Love <fx@gnu.org>
15583
15584 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15585 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15586 to new local and nullify apropos_accumulate before returning.
15587 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15588
155892008-02-01 Kenichi Handa <handa@m17n.org>
15590
15591 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15592 correctly.
e3eea1fc 15593
aac0c6e3
MR
155942008-02-01 Dave Love <fx@gnu.org>
15595
15596 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15597
155982008-02-01 Kenichi Handa <handa@m17n.org>
15599
15600 The following changes are to make character composition happen
15601 automatically on displaying.
15602
15603 * Makefile.in (lisp, shortlisp): Add composite.elc.
15604
15605 * composite.h (Qauto_composed, Vauto_composition_function)
15606 (Qauto_composition_function): Extern them.
15607
15608 * composite.c (Vcomposition_function_table)
15609 (Qcomposition_function_table): Delete variables.
15610 (Qauto_composed, Vauto_composition_function)
15611 (Qauto_composition_function): New variables.
15612 (run_composition_function): Don't call
15613 compose-chars-after-function.
15614 (update_compositions): Clear `auto-composed' text property.
15615 (compose_chars_in_text): Delete this function.
15616 (syms_of_composite): Staticpro Qauto_composed and
15617 Qauto_composition_function. Declare Vauto_composition_function as
15618 a Lisp variable.
15619
15620 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15621
15622 * xdisp.c (it_props): Add an entry for Qauto_composed.
15623 (handle_auto_composed_prop): New function.
15624
15625 * xselect.c (selection_data_to_lisp_data): Don't call
15626 compose_chars_in_text.
15627
156282008-02-01 Dave Love <fx@gnu.org>
15629
15630 * keyboard.c (read_char): Modify checking around use of
15631 Vkeyboard_translate_table.
15632
15633 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15634 and fix C types.
15635
156362008-02-01 Kenichi Handa <handa@m17n.org>
15637
15638 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15639 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15640 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15641 the case that the last byte is '\r' correctly.
15642 (decode_coding): Flush out the unprocessed data correctly.
15643 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15644
156452008-02-01 Dave Love <fx@gnu.org>
15646
15647 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15648 Add XK_ISO... case.
15649 (xaw_scroll_callback): Revert last change.
15650
156512008-02-01 Kenichi Handa <handa@m17n.org>
15652
15653 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15654
156552008-02-01 Kenichi Handa <handa@m17n.org>
15656
15657 * xfaces.c (Vface_resizing_fonts): New variable.
15658 (struct font_name): New member `resizing_ratio'.
15659 (font_resizing_ratio): New function.
15660 (split_font_name): Set font->resizing_ratio.
15661 (better_font_p): Pay attention to font->resizing_ratio.
15662 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15663 RESX, and RESY fields.
15664 (try_alternative_families): Try scalable fonts if
15665 Vscalable_fonts_allowed is not Qt.
15666 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15667
156682008-02-01 Dave Love <fx@gnu.org>
15669
15670 * xterm.c (xaw_scroll_callback): Cast correctly.
15671
156722008-02-01 Dave Love <fx@gnu.org>
15673
15674 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15675 (lispy_kana_keys): Comment out.
15676 (make_lispy_event) [XK_kana_A]: Comment out.
15677
15678 * xterm.c (xaw_scroll_callback): Cast call_data.
15679 (XTread_socket): Deal with ASCII keysyms.
15680 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15681
156822008-02-01 Dave Love <fx@gnu.org>
15683
15684 * xterm.c (Vx_keysym_table): New.
15685 (syms_of_xterm): Initialize it.
15686 (XTread_socket): Use it.
15687 From head: Eliminate incorrect optimization that tried to avoid
15688 decoding the output of X*LookupString.
15689 (x_get_font_repertory): Delete charset declaration.
15690
156912008-02-01 Kenichi Handa <handa@m17n.org>
15692
15693 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15694 return 0.
15695 (Fdefine_coding_system_internal): Setup
15696 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15697
156982008-02-01 Dave Love <fx@gnu.org>
15699
15700 * coding.c (Fcheck_coding_system): Doc fix.
15701
15702 * editfns.c (Finsert_byte): Return a proper value.
15703
157042008-02-01 Kenichi Handa <handa@m17n.org>
15705
15706 * coding.c (decode_coding): Fix args to translate_chars. Pay
15707 attention to Vstandard_translation_table_for_decode.
15708 (encode_coding): Fix args to translate_chars. Pay attention to
15709 Vstandard_translation_table_for_encode.
15710
15711 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15712 SINGLE_BYTE_CHAR_P.
15713
15714 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15715 not by SINGLE_BYTE_CHAR_P.
15716
15717 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15718 SINGLE_BYTE_CHAR_P.
15719
15720 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15721 SINGLE_BYTE_CHAR_P.
15722
15723 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15724 by SINGLE_BYTE_CHAR_P.
15725
15726 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15727 SINGLE_BYTE_CHAR_P.
15728
157292008-02-01 Dave Love <fx@gnu.org>
15730
15731 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15732
157332008-02-01 Dave Love <fx@gnu.org>
15734
15735 * fns.c (Flanginfo): Fix typo.
15736
15737 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15738
157392008-02-01 Kenichi Handa <handa@m17n.org>
15740
15741 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15742 (detect_coding_emacs_mule, detect_coding_iso_2022)
15743 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15744 incomplete byte sequence. Don't update *mask when correctly detected.
15745 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15746 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15747 (detect_coding, detect_coding_system): Adjust for the changes above.
15748
157492008-02-01 Kenichi Handa <handa@m17n.org>
15750
15751 * character.c (char_string): Rename from
15752 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15753 (string_char): Rename from string_char.
15754
15755 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15756 if C is greater than MAX_3_BYTE_CHAR.
15757 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15758 string_char instead of string_char_with_unification.
15759
157602008-02-01 Dave Love <fx@gnu.org>
15761
15762 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15763
157642008-02-01 Kenichi Handa <handa@m17n.org>
15765
15766 * keymap.c (push_key_description): Pay attention to force_multibyte.
15767
15768 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15769
157702008-02-01 Dave Love <fx@gnu.org>
15771
15772 * charset.c (define_charset_internal): Rename `supprementary'.
15773
15774 * Makefile.in (lisp, shortlisp): Remove latin-N.
15775
157762008-02-01 Dave Love <fx@gnu.org>
15777
15778 * xfns.c (x_window, x_window): Use use_xim.
15779
15780 * xterm.c (use_xim): Initialize.
15781 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15782 (x_term_init): Maybe set use_xim.
15783
15784 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15785
157862008-02-01 Kenichi Handa <handa@m17n.org>
15787
15788 * search.c (search_buffer): Fix case-fold-search of multibyte
15789 characters.
15790 (boyer_moore): Rename the last argument to char_high_bits.
15791
157922008-02-01 Kenichi Handa <handa@m17n.org>
15793
15794 * xdisp.c (display_string): Fix for the case of zero width glyph.
15795
15796 * xfns.c (x_set_font): Change the error message of the case that
15797 x_new_fontset returns Qt.
15798
15799 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15800 (Finternal_set_lisp_face_attribute): Use signal_error for the
15801 error of invalid fontset.
15802
15803 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15804 fontset, return Qt.
15805
158062008-02-01 Dave Love <fx@gnu.org>
15807
15808 * unexelf.c (unexec): Make .got handling not SGI-specific.
15809
15810 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15811
15812 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15813
15814 * keyboard.c (read_key_sequence): Fix type error.
15815
15816 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15817 type error.
15818
15819 * fontset.c (fontset_add): Return Lisp_Object.
15820
158212008-02-01 Dave Love <fx@gnu.org>
15822
15823 * charset.h (charset_ordered_list_tick): Declare extern.
15824
158252008-02-01 Kenichi Handa <handa@m17n.org>
15826
15827 The following changes (and some of 2008-02-01 changes of mine) are
15828 for handling syntax, category, and case conversion for unibyte
15829 characters by converting them to multibyte on the fly. With these
15830 changes, we don't have to setup syntax and case tables for unibyte
15831 characters in each language environment.
15832
15833 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15834 multibyte if necessary.
15835
15836 * bytecode.c (Fbyte_code): Likewise.
15837
15838 * character.h (LEADING_CODE_LATIN_1_MIN)
15839 (LEADING_CODE_LATIN_1_MAX): New macros.
15840 (unibyte_to_multibyte_table): Extern it.
15841 (unibyte_char_to_multibyte): New macro.
15842 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15843 (CHAR_LEADING_CODE): New macro.
15844 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15845
15846 * character.c (unibyte_to_multibyte_table): New variable.
15847 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15848 (multibyte_char_to_unibyte): If C is an eight-bit character,
15849 convert it to the corresponding byte value.
15850
15851 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15852 not 1, signals an error. Update the elements of
15853 unibyte_to_multibyte_table.
15854 (init_charset_once): Initialize unibyte_to_multibyte_table.
15855 (syms_of_charset): Define the charset `iso-8859-1'.
15856
15857 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15858 as is without converting it to unibyte. In a unibyte buffer,
15859 convert C to multibyte before checking the syntax.
15860
15861 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15862
15863 * minibuf.c (Fminibuffer_complete_word): Use the macro
15864 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15865
15866 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15867
15868 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15869 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15870 that is zero, convert an eight-bit char to multibyte.
15871 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15872 non-emacs case.
15873 (PATFETCH): Convert an eight-bit char to multibyte.
15874 (HANDLE_UNIBYTE_RANGE): New macro.
15875 (regex_compile): Setup the compiled pattern for multibyte chars
15876 even if the given regex string is unibyte. Use PATFETCH_RAW
15877 instead of PATFETCH in many places. To handle `charset'
15878 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15879 only for ASCII chars.
15880 (analyse_first) <exactn>: Simplify because the compiled pattern
15881 is multibyte.
15882 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15883 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15884 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15885 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15886 multibyte always 1.
15887 (re_search_2): In emacs, set the locale variable multibyte to 1,
15888 otherwise to 0. New local variable target_multibyte. Check it
15889 to decide the multibyteness of STR1 and STR2. If
15890 target_multibyte is zero, convert unibyte chars to multibyte
15891 before translating and checking fastmap.
15892 (TARGET_CHAR_AND_LENGTH): New macro.
15893 (re_match_2_internal): In emacs, set the locale variable multibyte
15894 to 1, otherwise to 0. New local variable target_multibyte. Check
15895 it to decide the multibyteness of STR1 and STR2. Use
15896 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15897 <charset, charset_not>: If multibyte is nonzero, check fastmap
15898 only for ASCII chars. Call bcmp_translate with
15899 target_multibyte, not with multibyte.
15900 <begline>: Declare the local variable C as `unsigned'.
15901 (bcmp_translate): Change the last arg name to target_multibyte.
15902
15903 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15904 the regexp pattern and the matching target. Set cp->buf.multibyte
15905 to the multibyteness of the regexp pattern. Set
15906 cp->but.target_multibyte to the multibyteness of the matching target.
15907 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15908 FETCH_STRING_CHAR_ADVANCE.
15909 (Freplace_match): Convert unibyte chars to multibyte.
15910
15911 * syntax.c (char_quoted, back_comment, scan_words)
15912 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15913 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15914 unibyte chars to multibyte.
15915 (skip_chars): Delete the arg syntaxp, and move the code for
15916 handling syntaxes to skip_syntaxes. Change callers.
15917 Fix the case that the multibyteness of STRING and the current
15918 buffer doesn't match.
15919 (skip_syntaxes): New function.
15920 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15921 SINGLE_BYTE_CHAR_P.
15922
159232008-02-01 Kenichi Handa <handa@m17n.org>
15924
15925 * xfaces.c (QCfontset): New variable.
15926 (LFACE_FONTSET): New macro.
15927 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15928 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15929 (Finternal_set_lisp_face_attribute)
15930 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15931 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15932 check also LFACE_FONTSET_INDEX.
15933 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15934 attrs[LFACE_FONT_INDEX].
15935 (syms_of_xfaces): Intern and staticpro QCfontset.
15936
15937 * dispextern.h (enum lface_attribute_index): New member
15938 LFACE_FONTSET_INDEX.
15939
15940 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15941
159422008-02-01 Kenichi Handa <handa@m17n.org>
15943
15944 * coding.c (coding_set_destination): Fix coding->destination for
15945 the case converting a region.
15946 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15947 (encode_coding_object): Fix coding->dst_pos and
15948 coding->dst_pos_byte for the case converting a region.
15949
15950 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15951
15952 * character.h (BYTE8_STRING): New macro.
15953
15954 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15955
159562008-02-01 Kenichi Handa <handa@m17n.org>
15957
15958 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15959 characters by octal form.
15960
15961 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15962
15963 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15964 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15965 _fetch_multibyte_char_len.
15966 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15967
15968 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15969
15970 * casefiddle.c (casify_object): Simplify. Handle the case that
15971 the case conversion change the byte length.
15972 (casify_region): Likewise.
15973
15974 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15975
15976 * character.c (_fetch_multibyte_char_len): Delete this variable.
15977 (syms_of_character): Setup Vprintable_chars.
15978
15979 * editfns.c (Fchar_equal): Fix for the unibyte case.
15980 (Finsert_byte): New function.
15981 (syms_of_editfns): Defsubr it.
15982
15983 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15984 of direct code 0x3ffff.
15985
15986 * search.c (Freplace_match): Fix for the unibyte case.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * lread.c (safe_to_load_p): Fix the logic.
15991
15992 * syntax.c (scan_words): Don't treat characters belonging to
15993 different scripts as constituting a word.
15994
15995 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15996
15997 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15998
15999 * emacs.c (main): In the case of --unibyte, instead of aborting on
16000 finding non-empty buffer, make it unibyte.
16001
160022008-02-01 Kenichi Handa <handa@m17n.org>
16003
16004 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16005 to create a fontset.
16006
160072008-02-01 Dave Love <fx@gnu.org>
16008
16009 * character.c (Funibyte_char_to_multibyte): Doc fix.
16010
16011 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16012
160132008-02-01 Kenichi Handa <handa@m17n.org>
16014
16015 * fontset.c (fontset_add): Make the type `int'.
16016 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16017
16018 * character.c (unibyte_char_to_multibyte)
16019 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16020 charset_unibyte, not charset_primary.
16021
16022 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16023
16024 * charset.c (charset_unibyte): Rename from charset_primary.
16025 (Funibyte_charset): Rename from Fprimary_charset.
16026 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16027 (syms_of_charset): Adjust for the above changes.
16028
16029 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16030 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16031 it->multibyte_p is zero.
16032
16033 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16034 Delete extern.
16035
160362008-02-01 Kenichi Handa <handa@m17n.org>
16037
16038 * coding.c (Fdefine_coding_system_internal): Fix category setting
16039 for a coding system of type iso-2022.
16040
160412008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16044
160452008-02-01 Kenichi Handa <handa@m17n.org>
16046
16047 * syntax.c (Vnext_word_boundary_function_table): New variable.
16048 (next-word-boundary-function-table): Declare it as a Lisp variable
16049 in syms_of_syntax.
16050 (scan_words): Call functions in Vnext_word_boundary_function_table
16051 if any.
16052
16053 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16054
16055 * fontset.c (fs_load_font): If fontp->charset is not negative,
16056 return fontp without setting its members.
16057
160582008-02-01 Dave Love <fx@gnu.org>
16059
16060 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16061
16062 * m/sparc.h (HAVE_ALLOCA): Delete.
16063
16064 * s/irix6-5.h: Don't include strings.h.
16065 (bcopy, bzero, bcmp): Don't undef.
16066
16067 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16068
16069 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16070 (TIOCSIGSEND): Don't test IRIX6.
16071 (bcopy, bzero, bcmp): Define conditionally.
16072
160732008-02-01 Kenichi Handa <handa@m17n.org>
16074
16075 * buffer.c (Qas, Qmake, Qto): New variables.
16076 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16077 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16078
16079 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16080 we are inserting a process output into a multibyte buffer.
16081
16082 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16083 multibyte_char_to_unibyte.
16084
16085 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16086 by the primary charset, make it eight-bit char.
16087 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16088
16089 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16090 (charset_8_bit__control, charset_8_bit_graphic)
16091 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16092 (define_charset_internal): New function.
16093 (syms_of_charset): Call define_charset_internal for pre-defined
16094 charsets.
16095
16096 * charset.h (charset_8_bit): Extern it.
16097
16098 * coding.c (make_conversion_work_buffer): Adjust for the change
16099 of Fset_buffer_multibyte.
16100 (encode_coding_raw_text): Increment p0 in the loop.
16101
16102 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16103
16104 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16105 for the change of Fset_buffer_multibyte.
16106
16107 * fns.c (Fstring_to_multibyte): New function.
16108 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16109
161102008-02-01 Dave Love <fx@gnu.org>
16111
16112 * xfns.c (x_put_x_image): Declare args.
16113
16114 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16115 (try_font_list): Declare an arg.
16116
16117 * xdisp.c (message2_nolog, set_message): Declare an arg.
16118
16119 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16120
16121 * syntax.c (scan_sexps_forward): Declare an arg.
16122
16123 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16124 Declare an arg.
16125
16126 * lisp.h (Fnew_fontset): Declare.
16127
16128 * keymap.c (push_key_description): Call CHARACTERP correctly.
16129
16130 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16131 (face_for_char): Delete unused vars.
16132 (Fset_fontset_font): Doc fix. Delete unused vars.
16133
16134 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16135
16136 * composite.c (update_compositions): Declare arg.
16137
16138 * cm.c (calccost, cmgoto): Declare args.
16139
16140 * charset.c: Remove `emacs' conditional. Doc fixes.
16141 (map_char_table_for_charset): Declare.
16142
16143 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16144
16145 * ccl.c: Remove `emacs' conditional.
16146
161472008-02-01 Kenichi Handa <handa@m17n.org>
16148
16149 The following changes are to allow specifying multiple font
16150 patterns for a character range (specified by script or charset).
16151
16152 * Makefile.in (abbrev.o): Depend on syntax.h.
16153 (xfaces.o): Depend on charset.h.
16154
16155 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16156 SINGLE_BYTE_CHAR_P.
16157
16158 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16159
16160 * character.h (Vchar_script_table): Extern it.
16161
16162 * character.c (Vscript_alist): Delete.
16163 (Vchar_script_table, Qchar_script_table): New variable.
16164 (syms_of_character): Declare Vchar_script_table as a lisp variable
16165 and initialize it.
16166
16167 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16168 have property char-table-extra-slots, make no extra slot.
16169
16170 * dispextern.h (struct face): Delete member `charset'.
16171 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16172 SINGLE_BYTE_CHAR_P.
16173 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16174 Add prototypes.
16175 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16176 (generate_ascii_font_name): Rename from generate_ascii_font.
16177
16178 * fontset.h (get_font_repertory_func): New prototype.
16179 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16180 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16181
16182 * fontset.c (Qprepend, Qappend): New variables.
16183 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16184 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16185 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16186 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16187 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16188 (load_font_get_repertory): New functions.
16189 (fontset_set): Delete.
16190 (fontset_face): New arg FACE. Return face ID, not face.
16191 Complete re-write to handle new fontset structure. Change caller.
16192 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16193 (face_for_char): Don't call lookup_face.
16194 (make_fontset_for_ascii_face): New arg FACE.
16195 (fs_load_font): New arg CHARSET_ID. Don't check
16196 Vfont_encoding_alist here.
16197 (find_font_encoding): New function.
16198 (list_fontsets): Use STRINGP, not ! NILP.
16199 (accumulate_script_ranges): New function.
16200 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16201 re-written to handle new fontset structure.
16202 (Ffontset_font): Return a copy of element.
16203 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16204 docstring of font-encoding-alist.
16205
16206 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16207 (Fset_fotset_font): Fix arguments to 5.
16208
16209 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16210
16211 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16212 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16213 (highlight_trailing_whitespace): Adjust for the change of
16214 lookup_named_face.
16215
16216 * xfaces.c: Include charset.h.
16217 (load_face_font): Delete argument C. Change caller.
16218 (generate_ascii_font_name): Rename from generate_ascii_font.
16219 (font_name_registry): New function.
16220 (cache_face): Store ascii faces before non-ascii faces in buckets.
16221 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16222 Lookup only ascii faces.
16223 (lookup_non_ascii_face): New function.
16224 (lookup_named_face): Delete argument C. Change caller.
16225 (lookup_derived_face): Delete argument C. Change caller.
16226 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16227 a string, just call font_list with it.
16228 (choose_face_font): Delete arguments FACE and C. New arg
16229 FONT_SPEC. Change caller.
16230 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16231 Change caller.
16232 (realize_non_ascii_face): New function.
16233 (realize_x_face): Call load_face_font here.
16234 (realize_tty_face): Delete argument C. Change caller.
16235 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16236 get a face ID.
16237 (dump_realized_face): Don't print charset of FACE.
16238
16239 * xfns.c (x_set_font): Always call x_new_fontset and
16240 store_frame_parameter.
16241 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16242 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16243
16244 * xterm.h (x_get_font_repertory): Extern it.
16245
16246 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16247 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16248 it->multibyte_p is zero.
16249 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16250 (x_new_fontset): If FONTSETNAME doesn't match any existing
16251 fontsets, create a new one.
16252 (x_get_font_repertory): New function.
16253
162542008-02-01 Kenichi Handa <handa@m17n.org>
16255
16256 * coding.c (Ffind_coding_systems_region_internal): Detect an
16257 ASCII only string correctly.
16258
16259 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16260 version is 0.
16261
162622008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * lread.c: Include "coding.h".
16265 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16266 (load_each_byte, unread_char): New variables.
16267 (readchar_backlog): Delete.
16268 (readchar): Return a character unless load_each_byte is nonzero.
16269 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16270 cons. If unread_char is not -1, simply return it.
16271 (unreadchar): Handle the case that readcharfun is
16272 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16273 (read_multibyte): Delete.
16274 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16275 (read_emacs_mule_char): New functions.
16276 (Fload): Even if the file doesn't have the extension ".elc", if
16277 safe_to_load_p returns a positive version number, assume that the
16278 file contains bytecompiled code. If the version is less than 22,
16279 load the file while decoding multibyte sequences by emacs-mule.
16280 (readevalloop): Don't use readchar_backlog.
16281 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16282 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16283 (read_escape): Delete the arg BYTEREP.
16284 (read1): Set load_each_byte to 1 temporarily while handling
16285 #@NUMBER. Don't call read_multibyte.
16286 (read_vector): Call Fread with a cons. If readcharfun is
16287 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16288 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16289 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16290 and Qload_force_doc_strings.
16291
162922008-02-01 Kenichi Handa <handa@m17n.org>
16293
16294 * xdisp.c (face_before_or_after_it_pos): Call
16295 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16296
162972008-02-01 Kenichi Handa <handa@m17n.org>
16298
16299 * character.h (TRAILING_CODE_P): New macro.
16300 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16301 (string_char_with_unification): Fix prototype.
16302 (Vscript_alist): Extern it.
16303
16304 * character.c (Vscript_alist): New variable.
16305 (string_char_with_unification, str_as_unibyte)
16306 (string_escape_byte8): Add `const' to local variables.
16307 (syms_of_character): Declare script-alist as a Lisp variable.
16308
16309 * charset.h (Vcharset_ordered_list): Extern it.
16310 (charset_ordered_list_tick): Extern it.
16311 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16312 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16313 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16314 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16315 (Funify_charset): Adjust for the change of Funify_charset.
16316
16317 * charset.c (charset_ordered_list_tick): New variable.
16318 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16319 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16320 deunify intead of unify a charset.
16321 (string_xstring_p): Add `const' to local variables.
16322 (find_charsets_in_text): Add `const' to arguments and local variables.
16323 (encode_char): Adjust for the change of Funify_charset. Fix
16324 detecting of invalid code.
16325 (Fset_charset_priority): Increment charset_ordered_list_tick.
16326 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16327 and TO_CODE.
16328
16329 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16330 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16331 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16332 (decode_coding_ccl, consume_chars)
16333 (Ffind_coding_systems_region_internal)
16334 (Fcheck_coding_systems_region): Add `const' to local variables.
16335
16336 * print.c (print_object): Use octal form for printing the
16337 contents of a bool vector.
16338
163392008-02-01 Dave Love <fx@gnu.org>
16340
16341 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16342 <version == 20>: Refuse to load.
16343
163442008-02-01 Dave Love <fx@gnu.org>
16345
16346 * fns.c: Move coding.h.
16347 (Qcodeset, Qdays, Qmonths): New.
16348 (concat): Use CHARACTERP instead of INTEGERP.
16349 (Flocale_codeset): Delete.
16350 (Flanginfo): New function.
16351 (syms_of_fns): Change accordingly.
16352
16353 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16354
163552008-02-01 Dave Love <fx@gnu.org>
16356
16357 * casetab.c (init_casetab_once, init_casetab_once): Fix
16358 CHAR_TABLE_SET call.
16359
16360 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16361
16362 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16363
16364 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16365 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16366 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16367
16368 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16369
16370 * coding.c (ENCODE_DESIGNATION, decode_eol)
16371 (make_conversion_work_buffer, code_conversion_restore)
16372 (Fdefine_coding_system_internal): Convert Lisp types.
16373 (code_conversion_restore): Use EQ, not ==.
16374 (Fencode_coding_string): Fix code_convert_string call.
16375
16376 * coding.h (code_convert_region): Fix prototype.
16377
16378 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16379
16380 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16381 (Ffontset_info): Convert Lisp types.
16382
16383 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16384
16385 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16386
16387 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16388
16389 * chartab.c: Include "...h", not <...h> in some cases.
16390
16391 * callproc.c (Fcall_process): Remove unused variables.
16392
163932008-02-01 Dave Love <fx@gnu.org>
16394
16395 * coding.c (Fset_coding_system_priority): Allow null arg list.
16396
163972008-02-01 Dave Love <fx@gnu.org>
16398
16399 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16400 (Fself_insert_and_exit): Use CHARACTERP.
16401
16402 * callproc.c (Fcall_process): Remove unused vars.
16403
16404 * xterm.c (XTread_socket): Add extra dead keysyms.
16405
16406 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16407
16408 * dispextern.h: Remove prototypes for redraw_frame,
16409 redraw_garbaged_frames.
16410
16411 * cmds.c (Fself_insert_command): Use CHARACTERP.
16412
16413 * chartab.c (make_sub_char_table): Remove unused var.
16414 (Fset_char_table_default, Fmap_char_table): Doc fix.
16415
16416 * keymap.c (access_keymap): Remove generic char code.
16417 (push_key_description): Use CHARACTERP.
16418
164192008-02-01 Dave Love <fx@gnu.org>
16420
16421 * charset.c: Doc fixes.
16422 (Funify_charset): Extra checking.
16423
164242008-02-01 Dave Love <fx@gnu.org>
16425
16426 * lread.c: Remove some unused variables.
16427 (safe_to_load_p): If safe, return the magic number version byte.
16428 (Fload): Maybe use load-with-code-conversion.
16429
164302008-02-01 Kenichi Handa <handa@m17n.org>
16431
16432 * category.c (Fmodify_category_entry): Don't modify the contents
16433 of category_set for characters out of the range. Avoid
16434 unnecessary modification.
16435
16436 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16437 Vchar_unify_table. The default value of the table is now nil.
16438
16439 * character.c (syms_of_character): Setup Vchar_width_table for
16440 eight-bit-control and raw-byte chars.
16441
16442 * charset.h (enum define_charset_arg_index): Delete
16443 charset_arg_parents and add charset_arg_subset and
16444 charset_arg_superset.
16445 (enum charset_attr_index): Delete charset_parents and add
16446 charset_subset and charset_superset.
16447 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16448 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16449 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16450 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16451 (CHARSET_SUPERSET): New macros.
16452 (charset_work): Extern it.
16453 (ENCODE_CHAR): Use charset_work.
16454 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16455 (map_charset_chars): Extern it.
16456
16457 * charset.c (load_charset_map): Set the default value of encoder
16458 and deunifier char-tables to nil.
16459 (map_charset_chars): Change argument. Change callers. Use
16460 map_char_table_for_charset instead of map_char_table.
16461 (Fmap_charset_chars): New optional args from_code and to_code.
16462 (Fdefine_charset_internal): Adjust for the change of
16463 `define-charset' (:parents -> :subset or :superset).
16464 (charset_work): New variable.
16465 (encode_char, syms_of_charset): Adjust for the change of
16466 Fdefine_charset_internal.
16467 (Ffind_charset_string): Setup the vector `charsets' correctly.
16468
16469 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16470 the previous change.
16471 (char_table_ref_and_range): Adjust for the above change.
16472 (map_sub_char_table_for_charset): New function.
16473 (map_char_table_for_charset): New function.
16474
16475 * keymap.c (describe_vector): Handle a char-table directly here.
16476 (describe_char_table): Delete.
16477
16478 * lisp.h (map_charset_chars): Delete.
16479
164802008-02-01 Dave Love <fx@gnu.org>
16481
16482 * fns.c (count_combining): Comment out (unused).
16483 (Flocale_codeset): New.
16484 (syms_of_fns): Defsubr it.
16485
16486 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16487 (size_t): Remove.
16488
164892008-02-01 Dave Love <fx@gnu.org>
16490
16491 * Makefile.in (chartab.o): Depend on charset.h.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * character.c (syms_of_character): Set the default value of
16496 Vprintable_chars to Qnil.
16497
164982008-02-01 Dave Love <fx@gnu.org>
16499
16500 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16501
165022008-02-01 Kenichi Handa <handa@m17n.org>
16503
16504 * charset.c (load_charset_map): Handle the case that from < to
16505 correctly.
16506
16507 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16508 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16509 Pay attention to raw-8-bit chars.
16510
165112008-02-01 Kenichi Handa <handa@m17n.org>
16512
16513 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16514 It is not bytecompiled now.
16515
16516 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16517 (charset_jisx0208): New variables.
16518 (Fdefine_charset_internal): Setup them if appropriate.
16519 (init_charset_once): Initialize them to -1.
16520
16521 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16522 (charset_jisx0208): Extern them.
16523
16524 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16525 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16526 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16527 (setup_iso_safe_charsets): Fix arguments to Fassq.
16528 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16529 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16530 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16531 (encode_coding_iso_2022): Change the 1st arg to
16532 ENCODE_ISO_CHARACTER to a variable.
16533
165342008-02-01 Kenichi Handa <handa@m17n.org>
16535
16536 * charset.h (enum define_charset_arg_index): New enums
16537 charset_arg_min_code and charset_arg_max_code.
16538 (struct charset): New member char_index_offset.
16539
16540 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16541 Take charset->char_index_offset into account.
16542 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16543 args[charset_arg_max_code]. Setup charset.char_index_offset.
16544 (syms_of_charset): Fix args to Fdefine_charset_internal.
16545
165462008-02-01 Dave Love <fx@gnu.org>
16547
16548 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16549
165502008-02-01 Dave Love <fx@gnu.org>
16551
16552 * coding.c: Doc fixes.
16553 (Fcoding_system_aliases): Fix return value.
16554 (Qmac): Remove (duplicated) definition.
16555
165562008-02-01 Dave Love <fx@gnu.org>
16557
362654a6
JB
16558 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16559 New functions.
aac0c6e3
MR
16560
16561 * character.c (Fstring): Doc fix.
16562
16563 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16564
362654a6 16565 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16566 (font-encoding-alist): Doc fix.
16567
165682008-02-01 Dave Love <fx@gnu.org>
16569
16570 * term.c (costs_set): Declare static, non-initialized for pcc.
16571 (encode_terminal_code): Remove unused var.
16572
16573 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16574 for K&R.
16575
16576 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16577
16578 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16579 (suffixes): Move out of make_subsidiaries for K&R.
16580
16581 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16582
16583 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16584
165852008-02-01 Dave Love <fx@gnu.org>
16586
16587 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16588
16589 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16590
165912008-02-01 Yong Lu <lyongu@asia-infonet.com>
16592
16593 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16594
16595 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16596
165972008-02-01 Kenichi Handa <handa@m17n.org>
16598
16599 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16600 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16601
166022008-02-01 Kenichi Handa <handa@m17n.org>
16603
16604 * coding.c (decode_coding_charset): Adjust for the change of
16605 Fdefine_coding_system_internal.
16606 (Fdefine_coding_system_internal): For a coding system of
16607 `charset' type, store a list of charset IDs in
16608 `charset_attr_charset_valids' element of coding attributes.
16609
166102008-02-01 Kenichi Handa <handa@m17n.org>
16611
16612 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16613 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16614 caller. Handle 2-byte and 3-byte charsets correctly.
16615 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16616 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16617 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16618 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16619 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16620 sequence.
16621 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16622 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16623 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16624 and alt&rule composition.
16625 (decode_coding_iso_2022): Handle composition correctly.
16626 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16627
16628 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16629 re-defining a charset. If the charset has :emacs-mule-id, setup
16630 emacs_mule_bytes.
16631 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16636 (encode_coding_big5, encode_coding_charset): If coding requires safe
16637 encoding, produce a character specified by
16638 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16639
166402008-02-01 Dave Love <fx@gnu.org>
16641
16642 * xterm.c (XSetIMValues): Declare.
16643
16644 * process.c: Conditionally include sys/wait.h, pty.h.
16645
16646 * print.c (print_object): Fix print format for 64-bit systems.
16647
16648 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16649
16650 * buffer.c (emacs_strerror): Declare.
16651
16652 * fontset.c (Fclear_face_cache): Declare.
16653 (accumulate_font_info): Comment-out (unused).
16654 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16655 variables.
16656
16657 * character.h (string_escape_byte8): Declare.
16658
16659 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16660 unused vars.
16661 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16662 (Fmap_charset_chars): Doc fix.
16663
16664 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16665 (Fset_coding_system_priority, Fset_coding_system_priority)
16666 (Fdefine_coding_system_internal): Doc fix.
16667
166682008-02-01 Dave Love <fx@gnu.org>
16669
16670 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16671
166722008-02-01 Kenichi Handa <handa@m17n.org>
16673
16674 * character.c (string_escape_byte8): Make multibyte string with
16675 correct size.
16676
16677 * charset.c (Fmake_char): Delete unnecessary code.
16678
166792008-02-01 Kenichi Handa <handa@m17n.org>
16680
16681 * xfns.c (x_encode_text): Allocate coding.destination here, and
16682 call encode_coding_object with dst_object Qnil.
16683
16684 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16685 multibyte form correctly.
16686
16687 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16688 against Vfont_encoding_alist.
16689
16690 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16691 handling of charset list.
16692 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16693 (decode_coding_object): Move point to coding->dst_pos before
16694 calling post-read-conversion function.
16695 (encode_coding_object): Give correct arguments to
16696 pre-write-conversion. Ignore the return value of
16697 pre-write-conversion function. Pay attention to the case that
16698 pre-write-conversion changes the current buffer. If dst_object is
16699 Qt, even if coding->src_bytes is zero, allocate at least one byte
16700 to coding->destination.
16701
16702 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16703
16704 * charset.c (Fmake_char): Make it more backward compatible.
16705 (Fmap_charset_chars): Fix docstring.
16706
167072008-02-01 Dave Love <fx@gnu.org>
16708
16709 * coding.c: Doc fixes.
16710 (Fdefine_coding_system_alias): Use names, not symbols, in
16711 coding-system-alist.
16712
167132008-02-01 Kenichi Handa <handa@m17n.org>
16714
16715 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16716 of calling free_realized_face.
16717
167182008-02-01 Yong Lu <lyongu@asia-infonet.com>
16719
16720 * charset.c (read_hex): Don't treat SPC as a comment starter.
16721 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16722 (Fdecode_char): Fix typo.
16723
167242008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * charset.h (struct charset): New member `code_space_mask'.
16727
16728 * coding.c (coding_set_source): Delete the local variable beg_byte.
16729 (encode_coding_charset, Fdefine_coding_system_internal):
16730 Delete the local variable charset.
16731 (Fdefine_coding_system_internal): Setup
16732 attrs[coding_attr_charset_valids] correctly.
16733
16734 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16735 member to check if CODE is valid or not.
16736 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16737 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16738 is within the range of charset->min_code and carset->max_code.
16739
167402008-02-01 Dave Love <fx@gnu.org>
16741
16742 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16743
16744 * dispextern.h (generate_ascii_font): Fix return type.
16745
16746 * xfaces.c (generate_ascii_font): Fix arg declaration.
16747
16748 * coding.c (coding_inherit_eol_type)
16749 (Fset_terminal_coding_system_internal)
16750 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16751
167522008-02-01 Kenichi Handa <handa@m17n.org>
16753
16754 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16755 multiple charsets correctly.
16756
167572008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * search.c (boyer_moore): Fix handling of multibyte character
16760 translation.
16761
16762 * xdisp.c (display_mode_element): When the variable `elt' is
16763 changed, update `this' and `lisp_string'.
16764
167652008-02-01 Kenichi Handa <handa@m17n.org>
16766
16767 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16768
16769 * callproc.c (Fcall_process): Be sure to give the current buffer
16770 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16771
16772 * charset.c (struct charset_map_entries): New struct.
16773 (load_charset_map): Rename from parse_charset_map. New args
16774 entries and n_entries. Change caller.
16775 (load_charset_map_from_file): Rename from load_charset_map.
16776 Change caller. New arg control_flag. Call load_charset_map at
16777 the tail.
16778 (load_charset_map_from_vector): New function.
16779 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16780 (encode_char): If the charset is compact, change a character index
16781 to a code point.
16782
16783 * coding.c (coding_alloc_by_making_gap): Check the case that the
16784 source and destination are the same correctly.
16785 (decode_coding_raw_text): Set coding->consumed_char and
16786 coding->consumed to 0.
16787 (produce_chars): If coding->chars_at_source is nonzero, update
16788 coding->consumed_char and coding->consumed before calling
16789 alloc_destination.
16790 (Fdefine_coding_system_alias): Register ALIAS in
16791 Vcoding_system_alist.
16792 (syms_of_coding): Define `no-conversion' coding system at the tail.
16793
16794 * fileio.c (Finsert_file_contents): Set coding_system instead of
16795 val. If the current buffer is multibyte, always call
16796 decode_coding_gap.
16797
16798 * xfaces.c (try_font_list): Give higher priority to fontset's
16799 family than face's family.
16800
168012008-02-01 Kenichi Handa <handa@m17n.org>
16802
16803 * callproc.c (Fcall_process): Be sure to give the current buffer
16804 to decode_coding_c_string.
16805
16806 * xfaces.c (try_font_list): Give a family specified in a fontset
16807 higher priority than a family specified in a face.
16808
168092008-02-01 Kenichi Handa <handa@m17n.org>
16810
16811 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16812 Fix arguments to insert_from_buffer.
16813
16814 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16815
168162008-02-01 Kenichi Handa <handa@m17n.org>
16817
16818 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16819 (decode_coding_gap): Set coding->dst_multibyte correctly.
16820
168212008-02-01 Kenichi Handa <handa@m17n.org>
16822
16823 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16824 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16825 (encode_coding_utf_16): Substitute coding->default_char for
16826 non-Unicode characters.
16827 (decode_coding): Don't call record_insert here.
16828 (setup_coding_system): Initialize `surrogate' of
16829 coding->spec.utf_16 to 0.
16830 (EMIT_ONE_BYTE): Fix for multibyte case.
16831
16832 * insdel.c (insert_from_gap): Call record_insert.
16833
168342008-02-01 Kenichi Handa <handa@m17n.org>
16835
16836 * casefiddle.c (casify_region): Fix multibyte case.
16837
16838 * character.c (c_string_width): Add return type `int'.
16839 (char_string_with_unification): Delete arg ADVANCED.
16840
16841 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16842 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16843 (CHAR_STRING_ADVANCE): Make it do-while statement.
16844
16845 * chartab.c (sub_char_table_set_range): Optimize for the case
16846 DEPTH == 3. Add workaround code for a GCC optimization bug.
16847
16848 * charset.c (parse_charset_map): Remove an unused variable.
16849
16850 * coding.c: Delete unused variables.
16851
16852 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16853 earlier. If inserted is zero and the coding system doesn't
16854 require flushing, don't call decode_coding_gap.
16855
16856 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16857
168582008-02-01 Kenichi Handa <handa@m17n.org>
16859
16860 The following changes are for using Unicode as an internal
16861 character model, and use UTF-8 format for buffer/string
16862 representation.
16863
16864 * .gdbinit (xchartable): Adjust for the change of char table structure.
16865 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16866
16867 * Makefile.in (obj): Add character.o and chartab.o.
16868 (lisp, shortlisp): Remove utf-8.elc.
16869 (*.o): For many files, change dependency on charset.h to
16870 character.h, and add dependency on character.h.
16871 (character.o, chartab.o): New targets.
16872
16873 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16874 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16875 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16876 of "charset.h".
16877
16878 * dired.c, filelock.c: Include "character.h".
16879
16880 * alloc.c: Include "character.h" instead of "charset.h".
16881 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16882 (syms_of_alloc): Remove defsubr for Smake_char_table.
16883
16884 * buffer.c: Include "character.h" instead of "charset.h", don't
16885 include "coding.h".
16886 (Fset_buffer_multibyte): Adjust for UTF-8.
16887
16888 * buffer.h: EXFUN Fbuffer_live_p.
16889
16890 * callproc.c: Include "character.h" instead of "charset.h".
16891 (Fcall_process): Big change for the new code-conversion APIs.
16892
16893 * casetab.c: Include "character.h" instead of "charset.h".
16894 (set_canon, set_identity, shuffle): Adjust for the new
16895 map_char_table spec.
16896 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16897 accessing the char table structure.
16898
16899 * chartab.c: New file that implements char table.
16900
16901 * category.c: Include "character.h".
16902 (copy_category_entry): New function.
16903 (copy_category_table): Call map_char_table and copy_category_entry.
16904 (Fmake_category_table): Initialize all top-level slots.
16905 (char_category_set): New function.
16906 (modify_lower_category_set): Delete.
16907 (Fmodify_category_entry): Call char_table_ref_and_range.
16908
16909 * category.h (CATEGORY_SET): Just call char_category_set.
16910
16911 * ccl.c: Include "character.h".
16912 (Qccl, Qcclp): New variables.
16913 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16914 it's less than 256.
16915 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16916 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16917 and DST type.
16918 (ccl_driver): Change types of argument, adjust code accordingly.
16919 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16920 ccl_driver.
16921 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16922
16923 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16924 New members src_multibyte, dst_multibyte, consumed, and produced.
16925 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16926 (CODING_SPEC_CCL_PROGRAM): New macro.
16927 (ccl_driver): Update prototype.
16928 (Qccl, Qcclp, Fccl_program_p): Extern them.
16929 (CHECK_CCL_PROGRAM): New macro.
16930
16931 * character.c, character.h, chartab.c: New files.
16932
16933 * charset.c: Mostly re-written. Move character and multibyte sequence
16934 handling codes to character.c.
16935
16936 * charset.h: Mostly re-written. Move character and multibyte sequence
16937 handling codes to character.h.
16938
16939 * coding.c, coding.h: Mostly re-written.
16940
16941 * composite.c: Include "character.h" instead of "charset.h".
16942 (CHAR_WIDTH): Move to character.h.
16943 (HASH_KEY, HASH_VALUE): Delete.
16944
16945 * composite.h (enum composition_method): Change order of enumeration
16946 symbols.
16947
16948 * data.c: Include "character.h" instead of "charset.h".
16949 (Faref): Call CHAR_TABLE_REF for a char table.
16950 (Faset): Call CHAR_TABLE_SET for a char table.
16951
16952 * dispextern.h (free_realized_face, check_face_attribytes)
16953 (generate_ascii_font): Extern them.
16954 (free_realized_multibyte_face): Delete extern.
16955
16956 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16957 table structure.
16958
16959 * editfns.c: Include "character.h" instead of "charset.h".
16960 (Fchar_to_string): Always call CHAR_STRING.
16961
16962 * emacs.c (main): Call init_charset_once, init_charset,
16963 syms_of_chartab, and syms_of_character.
16964
16965 * fileio.c: Include "character.h" instead of "charset.h".
16966 (Finsert_file_contents): Big change for the new code-conversion API.
16967 (choose_write_coding_system, Fwrite_region): Likewise.
16968 (build_annotations_2): Delete.
16969 (e_write): Big change for the new code-conversion API.
16970
16971 * fns.c: Include "character.h" instead of "charset.h".
16972 (copy_sub_char_table): Move to chartab.c.
16973 (Fcopy_sequence): Call copy_char_table for a char table.
16974 (concat): Delete codes calling count_multibyte.
16975 (string_char_to_byte, string_byte_to_char): Adjust for the new
16976 multibyte form.
16977 (internal_equal): Adjust for the change of char table structure.
16978 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16979 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16980 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16981 (char_table_translate, optimize_sub_char_table)
16982 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16983 chartab.c.
16984 (char_table_ref_and_index): Delete.
16985 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16986 (Fmd5): Call preferred_coding_system instead of accessing
16987 Vcoding_category_list. Adjust for the new code-conversion API.
16988 (syms_of_fns): Move defsubr for char table related functions to
16989 chartab.c.
16990
16991 * fontset.c: Mostly re-written.
16992
16993 * fontset.h (struct font_info): Change type of the member encoding_type.
16994 (enum FONT_SPEC_INDEX): New enum.
16995 (fontset_font_pattern, fs_load_font): Update prototype.
16996 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16997
16998 * indent.c: Include "character.h" instead of "charset.h".
16999 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17000
17001 * insdel.c: Include "character.h" instead of "charset.h".
17002 (copy_text): Don't refer to Vnonascii_translation_table.
17003 (insert_from_gap): New function.
17004
17005 * keyboard.c: Include "character.h" instead of "charset.h".
17006 (command_loop_1): Never call direct_output_forward_char before
17007 a non-ASCII character.
17008 (read_char): If Vkeyboard_translate_table is a char table, always
17009 translate a character.
17010
17011 * keymap.c: Include "character.h".
17012 (store_in_keymap): Handle the case that IDX is a cons.
17013 (Fdefine_key): Handle the case that KEY is a cons and the car part
17014 is also a cons (range).
17015 (push_key_description): Adjust for the new character code.
17016 (describe_vector): Call describe_char_table for a char table.
17017 (describe_char_table): New function.
17018
17019 * keymap.h (describe_char_table): Extern it.
17020
17021 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17022 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17023 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17024 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17025 Delete.
17026 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17027 structure.
17028 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17029 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17030 (CHARTAB_SIZE_BITS_3): New macros.
17031 (chartab_size): Extern it.
17032 (struct Lisp_Char_Table): Re-design.
17033 (struct Lisp_Sub_Char_Table): New structure.
17034 (HASH_KEY, HASH_VALUE): Move from fns.c.
17035 (CHARACTERBITS): Define as 22.
17036 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17037 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17038 (GC_SUB_CHAR_TABLE_P): New macro.
17039 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17040 (code_convert_string_norecord): Deleted extern.
17041 (init_character_once, syms_of_character, init_charset)
17042 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17043
17044 * lread.c: Include "character.h".
17045 (read_multibyte): New arg NBYTES.
17046 (read_escape): Change the meaning of returned *BYTEREP.
17047 (to_multibyte): Delete.
17048 (read1): Adjust the handling of char table and string.
17049
17050 * print.c: Include "character.h" instead of "charset.h".
17051 (print_string): Convert 8-bit raw bytes to octal form by
17052 string_escape_byte8.
17053 (print_object): Adjust for the new multibyte form. Print 8-bit
17054 raw bytes always in octal form. Handle sub char table correctly.
17055
17056 * process.c: Include "character.h" instead of "charset.h".
17057 (read_process_output, send_process): Adjust for the new
17058 code-conversion API.
17059
17060 * puresize.h (BASE_PURESIZE): Increase.
17061
17062 * regex.c: Include "character.h" instead of "charset.h".
17063 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17064 (regex_compile): Accept a range whose starting and ending
17065 character have different leading bytes.
17066 (analyse_first): Adjust for the above change.
17067
17068 * search.c: Include "character.h" instead of "charset.h".
17069 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17070 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17071
17072 * syntax.c: Include "character.h" instead of "charset.h".
17073 (syntax_parent_lookup): Delete.
17074 (Fmodify_syntax_entry): Accept a cons as CHAR.
17075 (skip_chars): Adjust for the new multibyte form.
17076 (init_syntax_once): Call char_table_set_range instead of directly
17077 accessing the structure of a char table.
17078
17079 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17080 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17081 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17082 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17083
17084 * term.c: Include "buffer.h" and "character.h".
17085 (encode_terminal_code, write_glyphs): Adjust for the new
17086 code-conversion API.
17087 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17088
17089 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17090
17091 * xdisp.c: Include "character.h".
17092 (get_next_display_element): Adjust for the new multibyte form.
17093 (disp_char_vector): Adjust for the new char table structure.
17094 (decode_mode_spec_coding): Adjust for the new structure of
17095 coding system.
17096 (decode_mode_spec): Adjust for the new code-conversion API.
17097
17098 * xfaces.c: Include "character.h" instead of "charset.h".
17099 (load_face_font): Adjust for the change of choose_face_font and
17100 FS_LOAD_FONT.
17101 (generate_ascii_font): New function.
17102 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17103 (set_font_frame_param): Adjust for the change of choose_face_font.
17104 (free_realized_face): Make it public.
17105 (free_realized_faces_for_fontset): Rename from
17106 free_realized_multibyte_face. Free also faces realized for ASCII.
17107 (choose_face_font): Change arguments. Adjust for the change of
17108 fontset_font_pattern and FS_LOAD_FONT.
17109
17110 * xfns.c: Include "character.h".
17111 (x_encode_text): Adjust for the new code-conversion API.
17112
17113 * xselect.c: Don't include "charset.h".
17114 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17115
17116 * xterm.c: Include "character.h".
17117 (x_encode_char): New argument CHARSET. Change caller.
17118 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17119 Call ENCODE_CHAR instead of SPLIT_CHAR.
17120 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17121 CHAR_WIDTH instead of CHARSET_WIDTH.
17122 (XTread_socket): Adjust for the new code-conversion API.
17123 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17124 (x_load_font): Adjust for the change of struct font.
17125
171262008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17127
17128 * xfaces.c (face_at_buffer_position): Remove unused vars.
17129
171302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17131
17132 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17133 Fix overflow checking.
17134
171352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17136
17137 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17138 Cancel previous change.
17139
171402008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17141
17142 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17143 ccl->eight_bit_control. Fix check for buffer overflow.
17144 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17145 (ccl_driver): Initialize extra_bytes to 0.
17146
171472008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17148
17149 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17150 return it ORed with ctrl_modifier.
17151
171522008-01-29 Miles Bader <miles@gnu.org>
17153
17154 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17155
171562008-01-28 Jason Rumney <jasonr@gnu.org>
17157
17158 * w32.c (stat): Don't double check for networked drive.
17159
171602008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17161
17162 * window.c (run_window_configuration_change_hook): New function.
17163 Code extracted from set_window_buffer. Set the selected frame.
17164 (set_window_buffer): Use it.
17165 * window.h (run_window_configuration_change_hook): Declare.
17166 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17167
17168 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17169
171702008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17171
17172 * Makefile.in: Remove references to unused macros.
17173
171742008-01-26 Eli Zaretskii <eliz@gnu.org>
17175
17176 * w32.c (g_b_init_get_sid_sub_authority)
17177 (g_b_init_get_sid_sub_authority_count): New static variables.
17178 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17179 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17180 (init_user_info): Use them to retrieve uid and gid.
17181 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17182 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17183 st_uid and st_gid of the file.
17184
171852008-01-26 Jason Rumney <jasonr@gnu.org>
17186
17187 * w32.c (logon_network_drive): New function.
17188 (stat): Use it.
17189
171902008-01-26 Chong Yidong <cyd@stupidchicken.com>
17191
17192 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17193 invisible text covered with an ellipsis.
17194
171952008-01-25 Richard Stallman <rms@gnu.org>
17196
17197 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17198 jump back to beginning. Move some other initializations after that.
17199 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17200 New variables.
17201 (syms_of_xdisp): Init them.
17202
17203 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17204
17205 * buffer.c (reset_buffer_local_variables):
17206 Implement `permanent-local-hook'.
17207 (Qpermanent_local_hook): New variable.
17208 (syms_of_buffer): Init and staticpro it.
17209
172102008-01-25 Michael Albinus <michael.albinus@gmx.de>
17211
17212 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17213
172142008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17215
17216 * fns.c (Fclrhash): Return TABLE.
17217
172182008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17219
17220 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17221 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17222 is set even without positional changes.
17223 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17224
17225 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17226
172272008-01-23 Jason Rumney <jasonr@gnu.org>
17228
17229 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17230
17231 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17232 the unicode range available in MULE by locale-coding-system.
17233 Improve dbcs lead byte detection. Set event timestamp and modifiers
17234 earlier.
17235
172362008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17237
17238 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17239 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17240 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17241 when used on child processes.
17242
172432008-01-21 Michael Albinus <michael.albinus@gmx.de>
17244
17245 * dbusbind.c (Fdbus_method_return_internal): Rename from
17246 Fdbus_method_return.
17247 (Fdbus_unregister_object): Move to dbus.el.
17248 (Fdbus_call_method, Fdbus_method_return_internal)
17249 (Fdbus_send_signal): Improve debug messages.
17250
172512008-01-20 Martin Rudalics <rudalics@gmx.at>
17252
17253 * undo.c (undo_inhibit_record_point): New variable.
17254 (syms_of_undo): Initialize it.
17255 (record_point): Don't record point when undo_inhibit_record_point
17256 is set.
17257
172582008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17259
17260 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17261
17262 * xdisp.c (Qauto_hscroll_mode): New var.
17263 (syms_of_xdisp): Initialize it.
17264 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17265 window's buffer.
17266 (hscroll_windows): Don't check automatic_hscrolling_p here.
17267
17268 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17269 vscroll if we're setting window-buffer to the value it already has.
17270
172712008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17272
17273 * m/intel386.h: Remove references to XENIX.
17274
172752008-01-17 Andreas Schwab <schwab@suse.de>
17276
17277 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17278 instead of HAVE_X86_64_LIB64_DIR.
17279 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17280
172812008-01-17 Glenn Morris <rgm@gnu.org>
17282
17283 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17284 to HAVE_X86_64_LIB64_DIR.
17285
172862008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17287
17288 * s/irix3-3.h:
17289 * s/irix4-0.h:
17290 * s/386-ix.h:
17291 * s/domain.h:
17292 * s/hpux9-x11r4.h:
17293 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17294
17295 * sysdep.c: Remove code containing references to symbols defined
17296 by unsupported systems.
17297
172982008-01-16 Glenn Morris <rgm@gnu.org>
17299
17300 * coding.c (select-safe-coding-system-function): Doc fix.
17301
173022008-01-15 Glenn Morris <rgm@gnu.org>
17303
17304 * config.in: Revert 2008-01-13 change: this is a generated file.
17305
173062008-01-13 Tom Tromey <tromey@redhat.com>
17307
17308 * lisp.h: Fix typo.
17309
173102008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17311
17312 * m/sequent-ptx.h:
17313 * m/sequent.h:
17314 * s/ptx.h:
17315 * s/ptx4-2.h:
17316 * s/ptx4.h: Remove files for systems no longer supported.
17317
17318 * callproc.c (Fcall_process): Fix previous change.
17319
173202008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17321
17322 * unexsunos4.c: Remove file, system not supported anymore.
17323
17324 * m/mips.h:
17325 * m/intel386.h:
17326 * callproc.c:
17327 * config.in:
17328 * ecrt0.c:
17329 * emacs.c:
17330 * fileio.c:
17331 * frame.c:
17332 * getpagesize.h:
17333 * keyboard.c:
17334 * lread.c:
17335 * process.c:
17336 * puresize.h:
17337 * sysdep.c:
17338 * systty.h:
17339 * syswait.h:
17340 * unexec.c:
17341 * xdisp.c:
17342 * alloc.c: Remove code containing references to symbols defined by
17343 unsupported systems.
17344
173452008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17346
17347 * coding.c (detect_coding_mask): Fix previous change.
17348
173492008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17350
17351 * coding.c (detect_coding_iso2022): New arg
17352 latin_extra_code_state. Allow Latin extra codes only
17353 when *latin_extra_code_state is nonzero.
17354 (detect_coding_mask): If there is a NULL byte, detect the encoding
17355 as UTF-16 or binary. If Latin extra codes exist, detect the
17356 encoding as ISO-2022 only when there's no other proper encoding is
17357 found.
17358
173592008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17360
17361 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17362 #ifdef MAC_OS.
17363
173642008-01-08 Richard Stallman <rms@gnu.org>
17365
17366 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17367
173682008-01-06 Nick Roberts <nickrob@snap.net.nz>
17369
17370 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17371 menu bar in parentheses.
17372
173732008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17374
17375 * m/7300.h:
17376 * m/acorn.h:
17377 * m/alliant-2800.h:
17378 * m/alliant.h:
17379 * m/alliant1.h:
17380 * m/alliant4.h:
17381 * m/altos.h:
17382 * m/amdahl.h:
17383 * m/apollo.h:
17384 * m/att3b.h:
17385 * m/aviion-intel.h:
17386 * m/aviion.h:
17387 * m/celerity.h:
17388 * m/clipper.h:
17389 * m/cnvrgnt.h:
17390 * m/convex.h:
17391 * m/cydra5.h:
17392 * m/delta88k.h:
17393 * m/dpx2.h:
17394 * m/dual.h:
17395 * m/elxsi.h:
17396 * m/f301.h:
17397 * m/gould-np1.h:
17398 * m/gould.h:
17399 * m/i860.h:
17400 * m/ibmps2-aix.h:
17401 * m/ibmrt-aix.h:
17402 * m/ibmrt.h:
17403 * m/irist.h:
17404 * m/is386.h:
17405 * m/isi-ov.h:
17406 * m/mega68.h:
17407 * m/mg1.h:
17408 * m/news-r6.h:
17409 * m/news-risc.h:
17410 * m/news.h:
17411 * m/nh3000.h:
17412 * m/nh4000.h:
17413 * m/ns16000.h:
17414 * m/ns32000.h:
17415 * m/nu.h:
17416 * m/orion.h:
17417 * m/orion105.h:
17418 * m/paragon.h:
17419 * m/pfa50.h:
17420 * m/plexus.h:
17421 * m/pyramid.h:
17422 * m/pyrmips.h:
17423 * m/sh3el.h:
17424 * m/sps7.h:
17425 * m/sr2k.h:
17426 * m/stride.h:
17427 * m/sun1.h:
17428 * m/sun2.h:
17429 * m/sun3-68881.h:
17430 * m/sun3-fpa.h:
17431 * m/sun3-soft.h:
17432 * m/sun3.h:
17433 * m/sun386.h:
17434 * m/symmetry.h:
17435 * m/tad68k.h:
17436 * m/tahoe.h:
17437 * m/targon31.h:
17438 * m/tek4300.h:
17439 * m/tekxd88.h:
17440 * m/tower32.h:
17441 * m/tower32v3.h:
17442 * m/ustation.h:
17443 * m/wicat.h:
17444 * m/xps100.h:
17445 * s/cxux.h:
17446 * s/cxux7.h:
17447 * s/dgux.h:
17448 * s/dgux4.h:
17449 * s/dgux5-4-3.h:
17450 * s/dgux5-4r2.h:
17451 * s/esix.h:
17452 * s/esix5r4.h:
17453 * s/hiuxmpp.h:
17454 * s/hiuxwe2.h:
17455 * s/iris3-5.h:
17456 * s/iris3-6.h:
17457 * s/isc2-2.h:
17458 * s/isc3-0.h:
17459 * s/isc4-0.h:
17460 * s/isc4-1.h:
17461 * s/newsos5.h:
17462 * s/newsos6.h:
17463 * s/osf1.h:
17464 * s/osf5-0.h:
17465 * s/riscix1-1.h:
17466 * s/riscix12.h:
17467 * s/sco4.h:
17468 * s/sco5.h:
17469 * s/sunos4-0.h:
17470 * s/sunos4-1.h:
17471 * s/sunos413.h:
17472 * s/sunos4shr.h:
17473 * s/umax.h:
17474 * s/unipl5-2.h:
17475 * s/xenix.h:
17476 * cxux-crt0.s:
17477 * unexapollo.c:
17478 * unexconvex.c:
17479 * unexenix.c:
17480 * unexsni.c: Remove files for systems no longer supported.
17481
17482 * m/intel386.h: Remove references to unsupported systems.
17483
17484 * w32.c (get_emacs_configuration): Remove reference to i860.
17485
17486 * sysdep.c: Remove dead code.
17487
174882008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17489
17490 * s/rtu.h:
17491 * m/masscomp.h: Remove files. Platform is obsolete.
17492
174932008-01-04 Michael Albinus <michael.albinus@gmx.de>
17494
17495 * dbusbind.c (Fdbus_method_return): New function.
17496 (xd_read_message): Add the serial number to the event.
17497 (Fdbus_register_method): Activate the function.
17498
174992008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17500
17501 * keyboard.c (read_key_sequence): Fix typo.
17502
175032008-01-03 Michael Albinus <michael.albinus@gmx.de>
17504
17505 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17506 (xd_signature, xd_append_arg): Handle element type detection for
17507 empty arrays.
17508 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17509 SDATA () calls; this must be solved more general.
17510 (Fdbus_register_signal): Use SBYTES instead of strlen.
17511
175122008-01-03 Magnus Henoch <magnus@zemdatav>
17513
17514 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17515 unsigned int for byte values (necessary for big-endian platform).
17516 (Fdbus_call_method): Handle the case of no returned arguments.
17517
175182007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17519
17520 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17521
175222007-12-31 Magnus Henoch <mange@freemail.hu>
17523
17524 * dbusbind.c (xd_signature): Signature of variant is just "v".
17525
175262007-12-30 Michael Albinus <michael.albinus@gmx.de>
17527
17528 * dbusbind.c: Fix several errors and compiler warnings.
17529 Reported by Tom Tromey <tromey@redhat.com>.
17530 (XD_ERROR, XD_DEBUG_MESSAGE)
17531 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17532 (xd_append_arg): Part for basic D-Bus types rewritten.
17533 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17534 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17535 appropriate.
17536 (xd_read_message): Return Qnil. Don't signal an error; it is not
17537 useful during event reading.
17538 (Fdbus_register_signal): Signal an error if the check for
17539 FUNCTIONP fails.
17540 (Fdbus_register_method): New function. The implementation is not
17541 complete, the call of the function signals an error therefore.
17542 (Fdbus_unregister_object): New function, renamed from
17543 Fdbus_unregister_signal. The initial check signals an error, if
17544 the object is not well formed.
17545
175462007-12-30 Richard Stallman <rms@gnu.org>
17547
17548 * textprop.c (get_char_property_and_overlay):
17549 Signal error if POSITION is out of range in a buffer.
17550
175512007-12-29 Martin Rudalics <rudalics@gmx.at>
17552
17553 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17554 because the original parameters are in pure storage now.
17555
175562007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17557
17558 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17559
175602007-12-22 Eli Zaretskii <eliz@gnu.org>
17561
17562 * callint.c (syms_of_callint) <command-history>: Add reference to
17563 history-length in the doc string.
17564
175652007-12-17 Jason Rumney <jasonr@gnu.org>
17566
17567 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17568 before passing as wParam.
17569
175702007-12-22 Michael Albinus <michael.albinus@gmx.de>
17571
17572 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17573 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17574 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17575 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17576 as number.
17577 (Fdbus_call_method): Fix docstring.
17578
175792007-12-21 Michael Albinus <michael.albinus@gmx.de>
17580
17581 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17582 New macros.
17583 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17584 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17585 Simplify.
17586 (xd_signature): New function.
17587 (xd_append_arg): Compute also signatures. Major rewrite.
17588 (xd_retrieve_arg): Make debug messages friendly.
17589 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17590 Check for signatures of arguments.
17591
175922007-12-19 Michael Albinus <michael.albinus@gmx.de>
17593
17594 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17595 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17596 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17597 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17598 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17599 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17600 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17601 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17602 (xd_retrieve_value): Remove. Functionality included in ...
17603 (xd_append_arg): New function.
17604 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17605
176062007-12-16 Michael Albinus <michael.albinus@gmx.de>
17607
17608 * dbusbind.c (top): Include <stdio.h>.
17609 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17610 dbus_message_new_method_call and dbus_message_new_signal.
17611 (Fdbus_register_signal): Rename unique_name to uname.
17612 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17613 non-existing unique name. Fix typos in matching rule. Return an
17614 object which is useful in Fdbus_unregister_signal.
17615 (Fdbus_unregister_signal): Reimplementation, in order to remove
17616 only the corresponding entry.
17617 (Vdbus_registered_functions_table): Change the order of entries.
17618 Apply these changes in xd_read_message and Fdbus_register_signal.
17619
176202007-12-16 Andreas Schwab <schwab@suse.de>
17621
17622 * fileio.c (Finsert_file_contents): Fix overflow check to not
17623 depend on undefined integer overflow.
17624
176252007-12-14 Jason Rumney <jasonr@gnu.org>
17626
17627 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17628 for characters above 127.
17629
176302007-12-13 Jason Rumney <jasonr@gnu.org>
17631
17632 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17633 before dereferencing array.
17634 (lookup_vk_code): Remove zero comparison.
17635
176362007-12-14 Michael Albinus <michael.albinus@gmx.de>
17637
17638 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17639 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17640 Use `unsigned int' instead of `uint'.
17641 (xd_read_message, Fdbus_register_signal): Split expressions into
17642 multiple lines before operators "&&" and "||", according to the
17643 GNU Coding Standards.
17644
176452007-12-14 Eli Zaretskii <eliz@gnu.org>
17646
17647 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17648
176492007-12-12 Juri Linkov <juri@jurta.org>
17650
17651 * buffer.c (Frename_buffer): In interactive spec replace
17652 `read-buffer' with `read-string' that uses `buffer-name-history'
17653 as history, and the current buffer's name as default.
17654
176552007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17656
17657 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17658 manipulating the backtrace manually.
17659 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17660 (struct backtrace, backtrace_list): Remove.
17661 (command_loop_1): Remove dead var `no_direct'.
17662
17663 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17664 preserve non-built-in buffer-local variables.
17665 (Fkill_all_local_variables): Don't re-create&re-set permanent
17666 buffer-local variables.
17667
176682007-12-09 Juri Linkov <juri@jurta.org>
17669
17670 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17671 Lisp code that uses `read-buffer' with current buffer as default.
17672
176732007-12-08 Michael Albinus <michael.albinus@gmx.de>
17674
17675 * dbusbind.c (xd_read_message): Generate an event for every
17676 registered handler. There might be several handlers registered
17677 for the same signal.
17678 (Fdbus_register_signal): Don't overwrite a registration for the
17679 same signal. Add a new registration if handlers are different.
17680 (Vdbus_registered_functions_table): Rework doc string.
17681
176822007-12-07 Michael Albinus <michael.albinus@gmx.de>
17683
17684 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17685 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17686 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17687 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17688 Unify argument lists.
17689 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17690 arguments and hash table keys. Use unique name for service.
17691 (Fdbus_unregister_signal): Remove checks.
17692 (Vdbus_registered_functions_table): Fix doc string.
17693
176942007-12-05 Magnus Henoch <mange@freemail.hu>
17695
17696 * process.c (make_process): Initialize pty_flag to 0.
17697
176982007-12-05 Jason Rumney <jasonr@gnu.org>
17699
17700 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17701 specified XBMs.
17702
177032007-12-05 Richard Stallman <rms@gnu.org>
17704
17705 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17706
177072007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17708
17709 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17710 New variable.
17711 (mac_try_close_socket) [MAC_OSX]: New function.
17712 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17713 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17714
17715 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17716 Use mac_try_close_socket.
17717
177182007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17719
17720 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17721 reloc_base.
17722 (copy_dysymtab): Compute relocation base here.
17723 (rebase_reloc_address) [__ppc64__]: New function.
17724 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17725 changed.
17726
177272007-12-05 Jason Rumney <jasonr@gnu.org>
17728
17729 * w32proc.c (sys_spawnve): Quote args with wildcards.
17730
177312007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17732
17733 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17734 __objc_* sections.
17735 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17736
177372007-12-05 Michael Albinus <michael.albinus@gmx.de>
17738
17739 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17740 Move check for Vdbus_registered_functions_table to
17741 xd_read_queued_messages.
17742 (xd_read_queued_messages): Protect xd_read_message calls by
17743 internal_condition_case_1.
17744
177452007-12-04 Michael Albinus <michael.albinus@gmx.de>
17746
17747 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17748 Qdbus_system_bus and Qdbus_session_bus, respectively.
17749 (Vdbus_intern_symbols): Remove.
17750 (Vdbus_registered_functions_table): New hash table.
17751 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17752 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17753 Rewrite in order to manage registered functions by hash table
17754 Vdbus_registered_functions_table.
17755
177562007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17757
17758 * xterm.c: Update URL to Window Manager Specification in comment.
17759
177602007-12-02 Michael Albinus <michael.albinus@gmx.de>
17761
17762 * config.in (HAVE_DBUS): Add.
17763
17764 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17765 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17766 (obj): Add $(DBUS_OBJ).
17767 (LIBES): Add $(DBUS_LIBS).
17768 (dbusbind.o): New target.
17769
17770 * dbusbind.c: New file.
17771
17772 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17773
17774 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17775 (Qdbus_event): New Lisp symbol.
17776 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17777 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17778 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17779
17780 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17781
177822007-12-01 Richard Stallman <rms@gnu.org>
17783
17784 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17785
177862007-11-30 Jason Rumney <jasonr@gnu.org>
17787
17788 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17789 (w32con_reset_terminal_modes): Clear screen buffer.
17790 (w32_face_attributes): Don't use color indexes that are out of range.
17791 Only reverse the default colors.
17792
17793 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17794 WINDOWSNT.
17795
17796 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17797
177982007-11-29 Jason Rumney <jasonr@gnu.org>
17799
17800 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17801 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17802 if the terminal colors are initialized.
17803 (unspecified_fg, unspecified_bg): Remove unused declarations.
17804
178052007-11-29 Andreas Schwab <schwab@suse.de>
17806
17807 * keyboard.c (apply_modifiers): Fix typo.
17808
178092007-11-29 Richard Stallman <rms@gnu.org>
17810
17811 * keymap.c (Fcurrent_local_map): Doc fix.
17812
178132007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17814
17815 * s/gnu-kfreebsd.h: New file.
17816
178172007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17818
17819 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17820 Don't cast redundantly.
17821
17822 * keyboard.c (KEY_TO_CHAR): New macro.
17823 (parse_modifiers, apply_modifiers): Accept integer arguments.
17824 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17825 for chars and symbol keys.
17826 After doing such remapping, apply function-key-map again.
17827
178282007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17829
17830 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17831 compiled anymore.
17832
178332007-11-26 Andreas Schwab <schwab@suse.de>
17834
17835 * process.c (list_processes_1): Fix indentation level of the
17836 command column.
17837
178382007-11-23 Andreas Schwab <schwab@suse.de>
17839
17840 * editfns.c (Fformat): Handle %c specially since it requires the
17841 argument to be of type int.
17842
178432007-11-23 Markus Triska <markus.triska@gmx.at>
17844
17845 * emacs.c (main): Call init_editfns before init_process, since
17846 init_process sets Vprocess_connection_type depending on OS release.
17847
178482007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17849
17850 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17851 (find_symbol_value): Use do_symval_forwarding.
17852
17853 * data.c (set_internal): Set the value in the `cons-cell' (for
17854 Buffer_Local_values) not only for frame-local variables.
17855
178562007-11-22 Andreas Schwab <schwab@suse.de>
17857
17858 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17859 values to sprintf.
17860 * keymap.c (Fsingle_key_description): Likewise.
17861 * print.c (print_object): Likewise.
17862
178632007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17864
17865 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17866 file for image is nil.
17867
178682007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17869
17870 * term.c: Include stdarg.h.
17871 (fatal): Implement using varargs.
17872 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17873
178742007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17875
17876 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17877 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17878 Update call to buffer_slot_type_mismatch.
17879 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17880 (buffer_slot_type_mismatch): Update.
17881 * buffer.c (buffer_local_types): Remove.
17882 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17883 (defvar_per_buffer): Set the type in the buffer_objfwd.
17884
178852007-11-21 Jason Rumney <jasonr@gnu.org>
17886
17887 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17888 CreateFileMapping returns NULL on failure.
17889
178902007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17891
17892 * search.c (Fset_match_data): Remove the `evaporate' feature.
17893 (unwind_set_match_data): Don't use the `evaporate' feature.
17894
178952007-11-21 Jason Rumney <jasonr@gnu.org>
17896
17897 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17898
17899 * w32console.c (w32con_write_glyphs): Remove unused variables.
17900
179012007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17902
17903 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17904
17905 * s/darwin.h (MULTI_KBOARD): Remove.
17906
17907 * macfns.c (x_create_tip_frame, Fx_create_frame)
17908 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17909
179102007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17911
17912 * buffer.c (Fbuffer_local_value): Remove redundant test.
17913 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17914 than in `current-buffer' to match the comment.
17915 Do the swap using swap_in_global_binding.
17916
17917 * data.c (store_symval_forwarding, set_internal):
17918 * eval.c (specbind): Remove dead code.
17919
17920 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17921 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17922 Since we do not want to see internal Lisp_*fwd objects here.
17923
179242007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17925
17926 * sysdep.c (init_system_name): Use getaddrinfo if available.
17927
17928 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17929 (x_scroll_bar_note_movement): start, end, with, height in struct
17930 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17931
179322007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17933
17934 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17935
179362007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17937
17938 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17939 This undoes Richard's change of 14-Oct-2002.
17940
17941 * alloc.c (allocate_other_vector):
17942 * lisp.h (allocate_other_vector): Remove.
17943
17944 * window.c (struct save_window_data): Move non-lisp data to the end
17945 and make it `int' rather than Lisp_Object.
17946 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17947 Done wrap/unwrap integer values.
17948 (Fset_window_configuration, compare_window_configurations):
17949 Update use of fields to their new types.
17950
17951 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17952 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17953 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17954 (SET_SCROLL_BAR_X_WINDOW): Remove.
17955 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17956 Access the new x_window field directly.
17957 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17958 Don't wrap/unwrap integers into Lisp_Objects.
17959 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17960 (x_scroll_bar_report_motion):
17961 Don't wrap/unwrap integers into Lisp_Objects.
17962 (x_term_init): Use SDATA.
17963 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17964 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17965 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17966 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17967 * xfns.c (x_set_background_color):
17968 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17969 Access the new x_window field directly.
17970
17971 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17972 (allocate_pseudovector): Make non-static.
17973
17974 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17975 (allocate_pseudovector): Declare.
17976 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17977
179782007-11-15 Andreas Schwab <schwab@suse.de>
17979
17980 * editfns.c (Fformat): Correctly format EMACS_INT values.
17981 Also take precision into account when formatting an integer.
17982
17983 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17984
179852007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17988 (syms_of_keyboard): Defsubr it.
17989
17990 * data.c (swap_in_global_binding): Fix longstanding bug where
17991 store_symval_forwarding was not called with the right second argument,
17992 thus causing objfwd-ing from being dropped.
17993
179942007-11-14 Juanma Barranquero <lekktu@gmail.com>
17995
17996 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17997 (Fx_display_pixel_height, Fx_display_planes)
17998 (Fx_display_color_cells, Fx_server_max_request_size)
17999 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18000 (Fx_display_visual_class, Fx_display_save_under):
18001 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18002 (Fx_display_pixel_height, Fx_display_planes)
18003 (Fx_display_color_cells, Fx_server_max_request_size)
18004 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18005 (Fx_display_mm_height, Fx_display_mm_width)
18006 (Fx_display_backing_store, Fx_display_visual_class)
18007 (Fw32_select_font, Fx_display_save_under):
18008 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18009 (Fx_display_pixel_height, Fx_display_planes)
18010 (Fx_display_color_cells, Fx_server_max_request_size)
18011 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18012 (Fx_display_save_under): Fix typos in docstrings.
18013
180142007-11-14 Juanma Barranquero <lekktu@gmail.com>
18015
18016 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18017 corresponding to deleted entries; they are an implementation detail.
18018 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18019 Remove variables.
18020 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18021 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18022 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18023 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18024 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18025 (Fw32_define_rgb_color, Fw32_load_color_file)
18026 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18027 Fix typos in docstrings.
18028 (Fx_server_version): Reflow docstring.
18029 (Fw32_shell_execute): Doc fixes.
18030
180312007-11-13 Juanma Barranquero <lekktu@gmail.com>
18032
18033 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18034 if w32_parse_hot_key returned nil.
18035
180362007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18037
18038 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18039
180402007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18041
aac0c6e3
MR
18042 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18043
18044 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18045
18046 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18047 Remove W32_SCROLL_BAR_CLICK_EVENT.
18048
18049 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18050 Add MULTIMEDIA_KEY_EVENT.
18051
18052 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18053 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18054 (make_lispy_event) [WINDOWSNT]: Use it to translate
18055 MULTIMEDIA_KEY_EVENT.
18056
18057 * w32term.h (WM_APPCOMMAND): Define if not already.
18058 (GET_APPCOMMAND_LPARAM): Likewise.
18059
18060 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18061 WM_APPCOMMAND.
18062
18063 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18064 (syms_of_w32fns): Export and initialize it.
18065 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18066
180672007-11-09 Chong Yidong <cyd@stupidchicken.com>
18068
18069 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18070 twice.
18071
18072 * xdisp.c (handle_face_prop): Fix last change.
18073
180742007-11-09 Richard Stallman <rms@gnu.org>
18075
18076 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18077 not just for after-strings and before-strings.
18078 Call face_for_overlay_string and pass the overlay to it.
18079 (handle_display_prop): Determine whether property came from an overlay.
18080 Pass OVERLAY arg to handle_single_display_spec.
18081 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18082 (load_overlay_strings): Fill in it->string_overlays.
18083 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18084
18085 * xfaces.c (face_for_overlay_string): Function renamed from
18086 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18087
18088 * dispextern.h (struct it): New elt string_overlays.
18089 New elt from_overlay, also in stack.
18090 Rearrange a few elements.
18091 (face_for_overlay_string): Decl renamed from
18092 face_at_buffer_position_no_overlays, and add argument.
18093
180942007-11-09 Richard Stallman <rms@gnu.org>
18095
18096 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18097 to get the base face for an overlay string.
18098
18099 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18100
18101 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18102
18103 * xdisp.c (handle_stop): Move some code out of loop.
18104
181052007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18106
18107 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18108 Fix conversion from Lisp object to ATSUFontID.
18109
181102007-11-09 Jason Rumney <jasonr@gnu.org>
18111
18112 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18113
181142007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18115
18116 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18117 Don't assume regions are aligned to page boundary.
18118 (print_load_command_name): Add LC_UUID if defined.
18119
181202007-11-09 Richard Stallman <rms@gnu.org>
18121
18122 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18123
181242007-11-07 Jason Rumney <jasonr@gnu.org>
18125
18126 * s/windows95.h: Remove.
18127
181282007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18129
18130 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18131 abort with a message on unhandled store_type values.
18132
181332007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18134
18135 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18136 Remove HAVE_X11R5 and HAVE_X11R4.
18137
181382007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18139
18140 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18141
181422007-11-01 Johan Bockgård <bojohan@gnu.org>
18143
18144 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18145 Don't set s->stippled_p here, since it has already been set by
18146 x_set_glyph_string_gc from x_draw_glyph_string.
18147
181482007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18149
18150 * sunfns.c: Remove file.
18151
18152 * m/sun386.h:
18153 * m/sun2.h:
18154 * m/sparc.h: Remove Sun windows code.
18155
181562007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18157
18158 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18159 (init_keyboard): Set current_kboard's window-system to nil.
18160 (tty_read_avail_input): Typo.
18161 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18162
181632007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18164
18165 * s/usg5-4.h:
18166 * s/usg5-3.h:
18167 * s/ptx.h:
18168 * m/is386.h:
18169 * m/ibmps2-aix.h:
18170 * Makefile.in: Remove all mentions of X10.
18171
18172 * dispnew.c (syms_of_display): Don't mention version 10.
18173
181742007-10-28 Juanma Barranquero <lekktu@gmail.com>
18175
18176 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18177 ($(BLD)/abbrev.$(O)): Remove.
18178
181792007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18180
18181 Rewrite abbrev.c in Elisp.
18182 * image.c (Qcount): Don't declare as extern.
18183 (syms_of_image): Initialize and staticpro `Qcount'.
18184 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18185 * emacs.c (main): Don't call syms_of_abbrev.
18186 * Makefile.in (obj): Remove abbrev.o.
18187 (abbrev.o): Remove.
18188 * abbrev.c: Remove.
18189
181902007-10-26 Martin Rudalics <rudalics@gmx.at>
18191
18192 * window.c (window_min_size_2): Don't count header-line.
18193
181942007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18195
18196 * frame.h (struct frame): Move all bit fields after the first bit
18197 field to take advantage of the available space. Group all the
18198 chars together to reduce wasted space due to padding.
18199
182002007-10-26 Juanma Barranquero <lekktu@gmail.com>
18201
18202 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18203
18204 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18205 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18206 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18207 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18208 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18209 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18210 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18211 (last_marked, mark_object_loop_halt): Make static.
18212
18213 * frame.c (syms_of_frame) <delete-frame-functions>:
18214 Fix typo in docstring.
18215
182162007-10-25 Juanma Barranquero <lekktu@gmail.com>
18217
18218 * w32.c (init_environment): Fix tiny memory leak.
18219 (w32_get_resource): Remove unused variable `ok'.
18220
182212007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18222
18223 Make `window-system' into a keyboard-local variable (rather than
18224 frame-local as done originally by multi-tty).
18225
18226 * keyboard.h (struct kboard): Add Vwindow_system.
18227 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18228 (mark_kboards): Mark Vwindow_system.
18229
18230 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18231 (init_display): Don't set the obsolete `window-system' frame-param.
18232
18233 * xterm.c (x_term_init):
18234 * w32term.c (w32_create_terminal):
18235 * term.c (init_tty): Set Vwindow_system.
18236 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18237 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18238
18239 * xfns.c (Fx_create_frame, x_create_tip_frame):
18240 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18241 * macfns.c (Fx_create_frame):
18242 Don't set the obsolete `window-system' frame-param.
18243
18244 * frame.h (Qwindow_system): Remove.
18245 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18246 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18247
182482007-10-24 Richard Stallman <rms@gnu.org>
18249
18250 * frame.c (x_figure_window_size): For fullscreen case,
18251 set USPosition | PPosition without clobbering rest of window_prompting.
18252
18253 * keyboard.c (Fcurrent_idle_time): Doc fix.
18254
18255 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18256
182572007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18258
18259 * process.c (unwind_request_sigio): Only define if __ultrix__.
18260
18261 * callproc.c (child_setup): Remove spurious *.
18262
18263 * lisp.h (Fget_text_property): Declare.
18264 (have_menus_p): Declare it here rather than in sys-dep header files.
18265 * macterm.h (have_menus_p):
18266 * msdos.h (have_menus_p):
18267 * xterm.h (have_menus_p): Remove.
18268
18269 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18270 (Fmake_variable_frame_local): Just check the variable's const-ness
18271 rather than checking nil or t.
18272
182732007-10-22 Jason Rumney <jasonr@gnu.org>
18274
18275 * w32fns.c: Include math.h.
18276 (w32_abort): Declaration moved to nt/config.nt.
18277
18278 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18279 (abort): Redefinition moved to nt/config.nt.
18280
18281 * m/windowsnt.h: Remove.
18282
182832007-10-22 Juanma Barranquero <lekktu@gmail.com>
18284
18285 * emacs.c (Fdump_emacs): Fix typo in message.
18286 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18287 <installation-directory>: Reflow docstring.
18288
182892007-10-22 Juri Linkov <juri@jurta.org>
18290
18291 * minibuf.c: Allow minibuffer default to be a list of default values.
18292 With empty input use the first element of this list as returned default.
18293 (string_to_object)
18294 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18295 (read_minibuf): If defalt is cons, set histstring to its car.
18296 (Fread_string): If default_value is cons, set val to its car.
18297 (Fread_buffer): If def is cons, use its car.
18298 (Fcompleting_read): If defalt is cons, set val to its car.
18299
183002007-10-21 Michael Albinus <michael.albinus@gmx.de>
18301
18302 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18303
183042007-10-20 Juanma Barranquero <lekktu@gmail.com>
18305
18306 * doc.c (Fdocumentation): Check for advice in all cases.
18307
183082007-10-19 Chong Yidong <cyd@stupidchicken.com>
18309
18310 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18311
183122007-10-19 Richard Stallman <rms@gnu.org>
18313
18314 * doc.c (Fdocumentation): Check for and handle an advised function.
18315
183162007-10-19 Juanma Barranquero <lekktu@gmail.com>
18317
18318 * process.c (Fset_process_filter): Doc fix.
18319
183202007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18321
18322 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18323 which caused key-translation-map to applied repeatedly (thus breaking
18324 double-mode).
18325
183262007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18327
18328 * xselect.c (x_own_selection, x_handle_selection_clear)
18329 (x_clear_frame_selections):
18330 * w32menu.c (list_of_panes, list_of_items):
18331 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18332 * textprop.c (validate_plist, interval_has_all_properties)
18333 (interval_has_some_properties, interval_has_some_properties_list)
18334 (add_properties, text_property_list):
18335 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18336 * minibuf.c (Fassoc_string):
18337 * macselect.c (x_own_selection, x_clear_frame_selections)
18338 (Fx_disown_selection_internal):
18339 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18340 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18341
183422007-10-17 Chong Yidong <cyd@stupidchicken.com>
18343
18344 * process.c: Link to libs for calling res_init() if available.
18345 (Fmake_network_process): Call res_init() before getaddrinfo or
18346 gethostbyname, if possible.
18347
183482007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18349
18350 * lread.c (read1): Set pvectype for char_tables.
18351
18352 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18353 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18354 Add type checks.
18355 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18356
18357 * alloc.c (free_misc): Use XMISCTYPE.
18358 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18359
183602007-10-17 Glenn Morris <rgm@gnu.org>
18361
18362 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18363 (syms_of_minibuf): Add Qcompletion_ignore_case.
18364 * dired.c (Qcompletion_ignore_case): Change to external.
18365 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18366 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18367 (Fread_file_name): Use it rather than intern'ing.
18368
18369 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18370 (Fread_coding_system): Ignore case of user input.
18371
183722007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18373
18374 * xdisp.c (handle_display_prop): Ignore display specs after
18375 replacing one when string text is being replaced.
18376 (handle_single_display_spec): Pretend as if characters with display
18377 property haven't been consumed only when buffer text is being replaced.
18378
183792007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18380
18381 * xfns.c (Fx_create_frame, Fx_display_list):
18382 * window.c (window_fixed_size_p, enlarge_window)
18383 (shrink_window_lowest_first):
18384 * macterm.c (init_font_name_table):
18385 * macfns.c (Fx_create_frame, Fx_display_list):
18386 * lread.c (close_load_descs):
18387 * keyboard.c (read_char_x_menu_prompt):
18388 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18389 * coding.c (code_convert_region_unwind): Test the type of an object
18390 rather than just !NILP before extracting data from it.
18391
18392 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18393
18394 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18395 (XMISCANY): New macro.
18396 (XMISCTYPE): Use it.
18397 (struct Lisp_Misc_Any): New type.
18398 (union Lisp_Misc): Use it.
18399 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18400 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18401 (find_symbol_value, set_internal, default_value, Fset_default)
18402 (Fmake_variable_buffer_local, Fmake_local_variable)
18403 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18404 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18405 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18406 * alloc.c (allocate_buffer): Set the size and tag.
18407 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18408 Use XMISCANY.
18409 (die): Follow the GNU convention for error messages.
18410 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18411 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18412 tag any more.
18413 (set_buffer_internal_1):
18414 * frame.c (store_frame_param):
18415 * eval.c (specbind):
18416 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18417
18418 * doc.c (Fsnarf_documentation): Simplify.
18419
184202007-10-14 Juanma Barranquero <lekktu@gmail.com>
18421
18422 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18423 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18424
184252007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18426
18427 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18428
184292007-10-14 Juanma Barranquero <lekktu@gmail.com>
18430
18431 * eval.c (do_autoload): Don't save autoloads.
18432
18433 * data.c (Ffset): Save autoload of the function being set.
18434
184352007-10-07 John Paul Wallington <jpw@pobox.com>
18436
18437 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18438 parameter before setting up faces.
18439
184402007-10-13 Eli Zaretskii <eliz@gnu.org>
18441
18442 * ccl.c (Fregister_code_conversion_map):
18443 * keyboard.c (append_tool_bar_item): Reformat last change.
18444
18445 * lisp.h (eabs): Rename from `abs'. All callers changed.
18446
184472007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18448
18449 * buffer.c (add_overlay_mod_hooklist):
18450 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18451 * fontset.c (make_fontset):
18452 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18453 (append_tool_bar_item):
18454 * macmenu.c (grow_menu_items):
18455 * w32menu.c (grow_menu_items):
18456 * xmenu.c (grow_menu_items): Use larger_vector.
18457
184582007-10-13 Eli Zaretskii <eliz@gnu.org>
18459
18460 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18461 selected frame'' on MSDOS).
18462
184632007-10-12 Martin Rudalics <rudalics@gmx.at>
18464
18465 * frame.c (Qexplicit_name): New variable.
18466 (x_report_frame_params): Report it in parameter alist.
18467 (syms_of_frame): Intern and staticpro it.
18468
184692007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18470
18471 * macfns.c (x_create_tip_frame): Set terminal for frame.
18472
184732007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18474
18475 * frame.c (Qenvironment): Remove.
18476 (syms_of_frame) <Qenvironment>: Don't initialize.
18477 (Fdelete_frame): Don't treat the `environment' param specially.
18478 * frame.h (Qenvironment): Don't declare.
18479 * callproc.c (set_initial_environment): Don't set unused frame param.
18480
18481 * frame.c (Fframe_with_environment): Remove.
18482 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18483
18484 * lisp.h (Fframe_with_environment): Don't declare.
18485
184862007-10-10 Juanma Barranquero <lekktu@gmail.com>
18487
18488 * indent.c (indent_tabs_mode, last_known_column)
18489 (last_known_column_modified): Make static.
18490 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18491
184922007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18493
18494 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18495
184962007-10-09 Jason Rumney <jasonr@gnu.org>
18497
18498 * w32term.c (x_set_window_size): Disable code that attempts to tell
18499 Lisp code about a size change before it actually happens.
18500
185012007-10-09 Richard Stallman <rms@gnu.org>
18502
18503 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18504 return HANDLED_RETURN.
18505
185062007-10-08 Martin Rudalics <rudalics@gmx.at>
18507
18508 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18509 when there's an unread command event.
18510
18511 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18512 window autoselection act appropriately when leaving selected frame.
18513 (syms_of_frame): Initialize focus_follows_mouse.
18514 * frame.h (focus_follows_mouse): Extern it.
18515 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18516 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18517 * msdos.c (dos_rawgetc): Likewise.
18518 * w32term.c (w32_read_socket): Likewise.
18519 * xterm.c (handle_one_xevent): Likewise.
18520 * xdisp.c (syms_of_xdisp): In doc-string of
18521 mouse-autoselect-window mention focus-follows-mouse.
18522
185232007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18524
18525 * macterm.c (mac_load_query_font): Fix missing return value.
18526 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18527 Add BLOCK_INPUT.
18528
185292007-10-08 Richard Stallman <rms@gnu.org>
18530
18531 * xdisp.c (get_window_cursor_type): Implement documented behavior
18532 for cursor-in-non-selected-windows = t.
18533
185342007-10-08 Jason Rumney <jasonr@gnu.org>
18535
18536 * w32.c (w32_get_resource): Always close registry keys.
18537
185382007-10-08 Jason Rumney <jasonr@gnu.org>
18539
18540 * makefile.w32-in (LIBS): Add COMCTL32.
18541
18542 * w32fns.c (globals_of_w32fns): Init common controls.
18543
185442007-10-08 Richard Stallman <rms@gnu.org>
18545
18546 * image.c (our_memory_buffer): Rename from omfib_buffer.
18547
185482007-10-08 Richard Stallman <rms@gnu.org>
18549
18550 * buffer.c (Foverlays_at): Doc fix.
18551
185522007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18553
18554 * fns.c (Fplist_put): Preserve uneven tail data.
18555
185562007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18557
18558 * termhooks.h (enum event_kind): Remove trailing comma.
18559
18560 * frame.h (enum): Remove trailing comma.
18561
185622007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18563
18564 * w32proc.c (delete_child): Don't terminate threads of zombies.
18565
185662007-10-08 Martin Rudalics <rudalics@gmx.at>
18567
18568 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18569
18570 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18571 last-repeatable-command.
18572 (init_kboard): Initialize Vlast_repeatable_command.
18573 (command_loop_1): Set it to real_this_command unless that was
18574 bound to an input event.
18575 (mark_kboards): Mark it.
18576
185772007-10-08 Richard Stallman <rms@gnu.org>
18578
18579 * eval.c (condition-case): Doc fix.
18580
185812007-10-08 Masatake YAMATO <jet@gyve.org>
18582
18583 * xfaces.c (tty_supports_face_attributes_p): Fix code
18584 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18585 was copied and not edited.
18586
185872007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18588
18589 Add new `input-decode-map' keymap and use it for terminal
18590 escape sequences.
18591 * keyboard.h (struct kboard): Add Vinput_decode_map.
18592 Remove Vlocal_key_translation_map.
18593 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18594 (init_kboard): Init input-decode-map.
18595 Replace local-key-translation-map back with key-translation-map.
18596 (syms_of_keyboard): Declare input-decode-map.
18597 Remove local-key-translation-map. Update docstrings.
18598 (mark_kboards): Mark Vinput_decode_map.
18599 Don't mark Vlocal_key_translation_map.
18600 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18601 Replace local-key-translation-map back with key-translation-map.
18602 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18603 Bind in input-decode-map rather than function-key-map.
18604
18605 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18606 This was made redundant by the previous introduction of XSETPVECTYPE.
18607
186082007-10-09 Richard Stallman <rms@gnu.org>
18609
18610 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18611
186122007-09-29 Richard Stallman <rms@gnu.org>
18613
18614 * eval.c (internal_condition_case_2, internal_condition_case_1)
18615 (internal_condition_case): Reenable abort if x_catching_errors ()
18616 to see if that really happens and why.
18617
186182007-10-06 Andreas Schwab <schwab@suse.de>
18619
18620 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18621
186222007-10-04 Juanma Barranquero <lekktu@gmail.com>
18623
18624 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18625
186262007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18627
18628 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18629
186302007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18631
18632 * window.h (struct window):
18633 * window.c (struct save_window_data, struct saved_window):
18634 * termhooks.h (struct terminal):
18635 * process.h (struct Lisp_Process):
18636 * frame.h (struct frame):
18637 * buffer.h (struct buffer):
18638 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18639 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18640 The size field of (pseudo)vectors is now unsigned.
18641 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18642
18643 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18644 Turn `count' into an integer.
18645
18646 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18647 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18648 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18649 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18650 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18651
18652 * alloc.c (allocate_pseudovector): New fun.
18653 (ALLOCATE_PSEUDOVECTOR): New macro.
18654 (allocate_window, allocate_terminal, allocate_frame)
18655 (allocate_process): Use it.
18656 (mark_vectorlike): New function.
18657 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18658 (mark_terminals): Use it.
18659 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18660 (Fmake_byte_code): Use XSETPVECTYPE.
18661
18662 * frame.c (Fframe_parameters): Minor simplification.
18663
18664 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18665
18666 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18667
18668 * buffer.c (Fget_buffer_create, init_buffer_once):
18669 * lread.c (defsubr):
18670 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18671
18672 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18673 defined differently in the m/*.h files.
18674 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18675 (XSETPVECTYPE): New macro.
18676 (XSETPSEUDOVECTOR): Use it.
18677
18678 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18679 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18680
18681 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18682 * lread.c (defvar_per_buffer):
18683 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18684
18685 * window.c (candidate_window_p): Only consider as visible frames that
18686 are on the same terminal.
18687
18688 * m/ibms390x.h (MARKBIT): Remove unused macro.
18689
186902007-10-01 Juanma Barranquero <lekktu@gmail.com>
18691
18692 * lread.c (Fload): Fix typo in docstring.
18693
186942007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18695
18696 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18697 of a non-zero value can't yield zero.
18698
186992007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18700
18701 * term.c (term_clear_mouse_face, term_mouse_highlight)
18702 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18703
18704 * print.c (safe_debug_print): Use XHASH.
18705
18706 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18707 Lisp elements such as tags.
18708 (XHASH): New macro.
18709 (EQ): Use it.
18710 (SREF, SSET, STRING_COPYIN): Use SDATA.
18711 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18712
18713 * alloc.c (mark_terminal): Remove left-over declaration.
18714 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18715 (allocate_vectorlike): Remove type argument. Adjust callers.
18716 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18717 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18718
18719 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18720 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18721 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18722 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18723 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18724 Use them.
18725
18726 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18727 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18728 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18729
187302007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18731
18732 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18733 loaded by default.
18734
187352007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18736
18737 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18738 on this tty.
18739 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18740
18741 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18742 Update all users.
18743 (handle_one_term_event): Use Gpm_DrawPointer.
18744 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18745 Signal errors instead of returning nil. Always return nil.
18746 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18747 Make it a noop if gpm-mouse was not activated.
18748 (syms_of_term): Update names.
18749
187502007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18751
18752 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18753 (init_sys_modes): Check that gpm_tty is the current tty.
18754
18755 * alloc.c (allocate_terminal): Set the vector size to only count the
18756 lisp fields. Initialize those to nil.
18757 (mark_object): Don't treat terminals specially.
18758 (mark_terminal): Remove.
18759 (mark_terminals): Use mark_object instead.
18760
18761 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18762 the GC to the beginning.
18763
18764 * indent.h:
18765 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18766
18767 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18768
187692007-09-25 Jason Rumney <jasonr@gnu.org>
18770
18771 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18772
18773 * w32console.c (create_w32cons_output): Remove.
18774
18775 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18776
18777 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18778 (reset_sys_modes): Use reset_terminal_modes_hook.
18779
187802007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18781
18782 * eval.c (do_autoload): Don't output any message.
18783
187842007-09-24 Juri Linkov <juri@jurta.org>
18785
18786 * emacs.c (standard_args): Change priority of "--no-splash"
18787 from 40 to 3. Add "--no-desktop" with the same priority.
18788
187892007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18790
18791 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18792 and optimize the case where they are all 1.
18793
187942007-09-23 Johannes Weiner <hannes@saeurebad.de>
18795
18796 * lisp.h (abs): Define if not defined.
18797 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18798 Don't define `abs', since it's defined in lisp.h.
18799
188002007-09-22 Eli Zaretskii <eliz@gnu.org>
18801
18802 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18803 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18804 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18805 (init_tty): Use DEV_TTY instead of "/dev/tty".
18806 [WINDOWSNT]: No need to protect from NAME arg being null.
18807
188082007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18809
18810 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18811 up the tty state.
18812
188132007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18814
18815 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18816 (gpm_tty): Change its type.
18817 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18818 (gpm_tty): Change its type and initialize it.
18819 (Fterm_open_connection): Check the frame is indeed a tty.
18820 Use the new gpm_tty.
18821 (Fterm_close_connection): Use the new gpm_tty.
18822 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18823 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18824
188252007-09-21 Juanma Barranquero <lekktu@gmail.com>
18826
18827 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18828 underline_color, to draw strike-through.
18829
188302007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18831
18832 * lisp.h (allocate_terminal): Declare.
18833
18834 * window.c (candidate_window_p): Consider frames that are being placed
18835 by the user as somewhere between visible and iconified.
18836 (window_loop): Prefer windows on the current frame.
18837 (Fselect_window): Move the use of select-frame to the beginning so we
18838 can just delegate all the work (it'll call us back anyway).
18839
18840 * frame.c (Qdisplay_environment_variable):
18841 * frame.h (Qdisplay_environment_variable): Delete.
18842
18843 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18844 of the first arg, since that value may be a union.
18845
18846 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18847 parameter rather than Qdisplay_environment_variable. If all else
18848 fails, look for DISPLAY in initial-environment.
18849
188502007-09-21 Glenn Morris <rgm@gnu.org>
18851
18852 * Makefile.in (emacstool): Remove target.
18853 (lisp, shortlisp): Remove termdev.elc.
18854
188552007-09-21 Markus Triska <markus.triska@gmx.at>
18856
18857 * xterm.c (x_delete_display): Compile session management conditionally.
18858
188592007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18860
18861 * callproc.c (getenv_internal_1): New function.
18862 (getenv_internal): Use it.
18863 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18864
18865 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18866 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18867 (Fset_terminal_parameter): Work with dead terminals as well.
18868 (Fmodify_terminal_parameters): Remove.
18869
18870 * terminal.c (get_terminal): Handle terminals.
18871 Make sure the terminal returned is live.
18872 (create_terminal): Use allocate_terminal.
18873 (mark_terminals): Move to alloc.c.
18874 (delete_terminal): Use terminal->name as liveness status.
18875 NULL out fields after freeing their contents.
18876 Don't deallocate the object.
18877 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18878 rather than an int.
18879 (Fterminal_live_p): Accept non-integer arguments.
18880 (Fterminal_list): Return terminal objects rather than an ints.
18881
18882 * alloc.c (enum mem_type): New member for `terminal' objects.
18883 (allocate_terminal): New function.
18884 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18885 Handle terminals.
18886 (mark_terminal): New fun.
18887 (mark_terminals): Move from terminal.c.
18888
18889 * term.c (get_tty_terminal): Don't treat output_initial specially.
18890 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18891 (delete_tty): Use terminal->name as liveness status.
18892
18893 * termhooks.h (struct terminal): Make it into a pseudovector.
18894 Remove `deleted' replaced by checking `name's nullness.
18895
18896 * print.c (print_object): Handle terminals.
18897
18898 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18899 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18900
18901 * frame.c (make_terminal_frame):
18902 * keyboard.c (tty_read_avail_input):
18903 * w32term.c (x_delete_terminal):
18904 * xfns.c (Fx_create_frame, x_create_tip_frame):
18905 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18906
189072007-09-20 Glenn Morris <rgm@gnu.org>
18908
18909 * process.c (Fmake_network_process): Doc fix.
18910
189112007-09-19 Jason Rumney <jasonr@gnu.org>
18912
18913 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18914
189152007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18916
18917 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18918 Fix a C warning regarding variable constness.
18919
18920 * xterm.c (handle_one_xevent): Fix a C warning.
18921
189222007-09-18 Jason Rumney <jasonr@gnu.org>
18923
18924 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18925
189262007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18927
18928 * gtkutil.c (gdpy_def): New variable.
18929 (xg_initialize): Initialize gdpy_def.
18930 (xg_display_close): If no other display exists, set gdpy_def to a
18931 new connection.
18932
189332007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18934
18935 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18936 when we have no file name for the icon.
18937 (xg_tool_bar_expose_callback): Remove.
18938 (xg_create_tool_bar): Don't connect expose signal to
18939 xg_tool_bar_expose_callback.
18940 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18941
189422007-09-16 Andreas Schwab <schwab@suse.de>
18943
18944 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18945 values instead of zapping them.
18946
189472007-09-14 Glenn Morris <rgm@gnu.org>
18948
18949 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18950 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18951 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18952 scope and rename to omfib_buffer for clarity.
18953 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18954
189552007-09-14 Kenichi Handa <handa@m17n.org>
18956
18957 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18958
189592007-09-13 Jason Rumney <jasonr@gnu.org>
18960
18961 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18962
18963 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18964
18965 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18966 (mac_term_init): Call here instead, passing rif.
18967
189682007-09-13 Glenn Morris <rgm@gnu.org>
18969
18970 * s/hpux.h: No longer define `static' as nothing.
18971
189722007-09-13 Johan Bockgård <bojohan@gnu.org>
18973
18974 * callint.c (Fcall_interactively): Remove unused var `fun'.
18975
189762007-09-12 Romain Francoise <romain@orebokech.com>
18977
18978 * window.c (prefer_window_split_horizontally, display_buffer):
18979 Revert 2007-09-08 change.
18980
189812007-09-12 Glenn Morris <rgm@gnu.org>
18982
18983 * alloca.c: Remove file.
18984 * Makefile.in (alloca): Do not undef.
18985 (allocaobj, alloca.o): Remove.
18986 (otherobj): Remove allocaobj.
18987 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18988 * regex.c (C_ALLOCA): Remove all references and code that was only
18989 used when this was defined.
18990 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18991 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18992 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18993
18994 * Makefile.in (SOURCES, unlock, relock): Delete.
18995
18996 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18997 (menu_grab_callback): All uses changed.
18998
18999 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19000 (x_reply_selection_request): All uses changed.
19001
190022007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19003
19004 * lread.c (load_warn_old_style_backquotes): Change message to look
19005 better when it appears in the middle of byte-compiler messages.
19006
190072007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19008
19009 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19010
19011 * xterm.c (x_create_terminal): Add comment.
19012
19013 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19014
190152007-09-10 Richard Stallman <rms@gnu.org>
19016
19017 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19018
190192007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19020
19021 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19022 (DEFUN): Document `intspec', use it instead of `prompt'.
19023
19024 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19025
19026 * data.c (Finteractive_form): If the interactive specification starts
19027 with a `(', use it as a Lisp form.
19028
19029 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19030 name and file modes.
19031
19032 * callint.c (Fcall_interactively): Comment fixes.
19033
190342007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19035
19036 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19037 and compiled functions.
19038
190392007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19040
19041 * window.c (prefer_window_split_horizontally): New variable.
19042 (display_buffer): Consider splitting window horizontally depending
19043 on prefer_window_split_horizontally.
19044
190452007-09-08 Eli Zaretskii <eliz@gnu.org>
19046
19047 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19048
190492007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19050
19051 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19052
19053 * frame.c (x_set_frame_parameters): Check number is positive before
19054 using XFASTINT.
19055
19056 * window.c (freeze_window_start): Don't presume selected_window holds
19057 a window object.
19058 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19059
190602007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19061
19062 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19063
190642007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19065
19066 * window.c (Vsplit_window_preferred_function): New var.
19067 (Fdisplay_buffer): Use it.
19068 (syms_of_window): Export, and initialize it.
19069
190702007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19071
19072 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19073
190742007-09-06 Glenn Morris <rgm@gnu.org>
19075
19076 * gtkutil.c (menu_grab_callback) <cnt>:
19077 * xselect.c (x_reply_selection_request) <cnt>: Move static
19078 variable to file scope.
19079
190802007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19081
19082 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19083 consistent values of selected_frame and selected_window.
19084
190852007-09-04 Jason Rumney <jasonr@gnu.org>
19086
19087 * w32console.c (initialize_w32_display): Zero unused hooks.
19088
190892007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19090
19091 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19092 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19093
190942007-09-04 Jason Rumney <jasonr@gnu.org>
19095
19096 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19097 in w32console.c. Set up input. Remove XXX comments that have been
19098 confirmed as correct.
19099
19100 * s/ms-w32.h (MULTI_KBOARD): Define.
19101
19102 * w32console.c (one_and_only_w32cons): Remove.
19103 (initialize_w32_display): Take terminal argument.
19104
19105 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19106 initialize_w32_display.
19107 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19108
19109 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19110
19111 * keyboard.c (discard_mouse_events): Discard it.
19112 (make_lispy_event): Translate it to a lisp event.
19113 (lispy_wheel_names): Add wheel-left and right events.
19114 (syms_of_keyboard): Enlarge wheel_syms.
19115
19116 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19117 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19118
19119 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19120
19121 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19122 from WM_MOUSEHWHEEL.
19123 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19124
19125 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19126 terminal.
19127
19128 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19129 keyboard for the terminal.
19130
191312007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19132
19133 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19134 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19135 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19136 and resume-tty-function to resume-tty-hook.
19137 (Fsuspend_tty, Fresume_tty): Use new names.
19138
191392007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19140
19141 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19142 if it starts with "n:".
19143
191442007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19145
19146 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19147
191482007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19149
19150 * frame.h:
19151 * frame.c (Qterm_environment_variable): Remove.
19152 (syms_of_frame): Don't init and staticpro it.
19153
19154 * callproc.c (getenv_internal): Remove special case for $TERM.
19155
19156 * callproc.c (Vinitial_environment): New variable.
19157 (set_initial_environment): Initialize it.
19158 (syms_of_callproc): Declare it.
19159 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19160 TERM under which a process runs is never related to the TERM in which
19161 Emacs is running.
19162
191632007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19164
19165 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19166 * s/darwin.h: ... do it here.
19167
191682007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19169
19170 * lisp.h (set_initial_environment): Rename from set_global_environment.
19171
19172 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19173 removed by mistake on the multi-tty branch.
19174
19175 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19176 (Fmodify_frame_parameters): Return a value.
19177
19178 * image.c (png_load): Comment-out var only used in commented-out code.
19179
19180 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19181 before passing it to mark_object.
19182
19183 * xfaces.c (internal_resolve_face_name): Return a value.
19184 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19185
19186 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19187 (x_icon): Comment-out var only used in commented-out code.
19188
191892007-08-29 Romain Francoise <romain@orebokech.com>
19190
19191 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19192 QUIT hasn't been provided.
19193
191942007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19195
19196 * callproc.c (child_setup, getenv_internal): Use the
19197 display-environment-variable and term-environment-variable frame params.
19198 (set_initial_environment): Initialise Vprocess_environment.
19199
19200 * config.in: Disable multi-keyboard support on a mac.
19201
19202 * frame.c (Qterm_environment_variable)
19203 (Qdisplay_environment_variable): New variables.
19204 (syms_of_frame): Intern and staticpro them.
19205 (Fmake_terminal_frame): Disable output method test.
19206
19207 * frame.h: Declare them here.
19208
19209 * macfns.c (x_set_mouse_color): Get rif from the frame.
19210 (x_set_tool_bar_lines): Don't use updating_frame.
19211 (mac_window): Add 2 new parameters for consistency with other systems.
19212 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19213 frame parameters following what is done in X11 and w32. Don't use
19214 FRAME_MAC_DISPLAY_INFO.
19215 (Fx_open_connection, start_hourglass): Remove window-system check.
19216 (x_create_tip_frame): Get the keyboard from the terminal.
19217
19218 * macmenu.c: Reorder includes.
19219 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19220
19221 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19222 terminal parameter.
19223 (x_clear_frame): Add a frame parameter.
19224 (note_mouse_movement): Get rif from the frame.
19225 (mac_term_init): Initialize the terminal.
19226 (mac_initialize): Make static and move terminal initialization ...
19227 (mac_create_terminal): ... to this new function.
19228
19229 * macterm.h (struct mac_display_info): Add terminal.
19230 (mac_initialize): Delete declaration.
19231
19232 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19233
19234 * sysdep.c: Comment out text after #endif.
19235
19236 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19237 is defined. Better initialize ttys in windows. Use terminal
19238 specific mouse_position_hook.
19239
19240 * termhooks.h (union display_info): Add mac_display_info.
19241
19242 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19243 Set the default minibuffer frame, window_system and the rest of the
19244 frame parameters following what is done in X11.
19245
19246 * w32term.c (w32_initialize): Make static.
19247
19248 * xselect.c (x_handle_selection_clear): Only access
19249 terminal->kboard when MULTI_KBOARD is defined.
19250
19251 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19252 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19253
192542007-08-29 Jason Rumney <jasonr@gnu.org>
19255
19256 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19257 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19258
19259 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19260 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19261
19262 * keyboard.c (restore_kboard_configuration): Only define when
19263 MULTI_KBOARD defined.
19264
19265 * makefile.w32-in: Update dependancies from Makefile.in.
19266 (OBJ1): Add terminal.$(O)
19267
19268 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19269 Don't define function body.
19270 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19271
19272 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19273
19274 * w32.c (request_sigio, unrequest_sigio): Remove.
19275
19276 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19277 (w32con_clear_frame, w32con_clear_end_of_line)
19278 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19279 (w32con_delete_glyphs, w32con_set_terminal_window)
19280 (scroll_line, w32_sys_ring_bell): Add frame arg.
19281 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19282 Add terminal arg.
19283 (PICK_FRAME): Remove.
19284 (w32con_write_glyphs): Use frame specific terminal coding.
19285 (one_and_only_w32cons): New global variable.
19286 (initialize_w32_display): Use it for storing hooks.
19287 (create_w32cons_output): New function.
19288
19289 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19290 arg a frame.
19291
19292 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19293 Set window_system.
19294 (x_set_tool_bar_lines): Don't use updating_frame.
19295 (Fx_create_frame): Set terminal and ref count.
19296 (Fx_open_connection): Remove window-system check.
19297
19298 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19299
19300 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19301 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19302 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19303 Add frame arg.
19304 (x_delete_terminal, w32_create_terminal): New functions.
19305 (w32_term_init): Create a terminal.
19306 (w32_initialize): Move terminal specific initialization to
19307 w32_create_terminal.
19308
19309 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19310 (w32_clear_rect, w32_clear_area): Use background from frame.
19311 (w32_display_info): Add terminal.
19312 (w32_sys_ring_bell, x_delete_display): Declare here.
19313
19314 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19315
19316 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19317
193182007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19319
19320 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19321 Fix get_named_tty calls for the controlling tty.
19322
193232007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19324
19325 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19326
193272007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19328
19329 * term.c (tty_insert_glyphs): Add missing first parameter.
19330
193312007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19332
19333 * buffer.c (Fbuffer_list, Fbury_buffer):
19334 Take frame->buried_buffer_list into account.
19335
19336 * cm.c (current_tty): New variable, for cmputc().
19337 (cmputc): Use it.
19338 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19339 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19340 (cmgoto): Add tty parameter. Pass it on to calccost().
19341 Use emacs_tputs() instead of tputs().
19342
19343 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19344 tputs().
19345 (current_tty): New variable, for cmputc().
19346 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19347
19348 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19349 (internal_condition_case, internal_condition_case_1)
19350 (internal_condition_case_2): Don't abort when x_catching_errors.
19351
19352 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19353 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19354 prevent crashes caused by bogus longjmps in read_char.
19355
19356 * keymap.h (Fset_keymap_parent): Add EXFUN.
19357
19358 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19359 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19360 Remove redundant definition.
19361
19362 * macfns.c (x_set_mouse_color, x_make_gc):
19363 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19364
19365 * w32term.c (x_free_frame_resources):
19366 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19367 (w32_initialize): Use the accessor macros for terminal characteristics.
19368
19369 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19370 Use the accessor macros for terminal characteristics.
19371 * msdos.c (internal_terminal_init): Use the accessor macros for
19372 terminal characteristics.
19373 (ScreenVisualBell, internal_terminal_init):
19374 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19375
19376 * termopts.h (no_redraw_on_reenter): Declare.
19377
19378 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19379 (mark_terminals, mark_ttys): Declare.
19380 (Fgarbage_collect): Call them.
19381 (mark_object): Mark buried_buffer_list.
19382
19383 * prefix-args.c: Include stdlib.h for exit.
19384
19385 * syssignal.h: Add comment.
19386
19387 * indent.c: Include stdio.h.
19388
19389 * window.h (Vinitial_window_system): Declare.
19390 (Vwindow_system): Delete declaration.
19391
19392 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19393
19394 * image.c (lookup_image): Don't initialize `c' until the xasserts
19395 have been run.
19396
19397 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19398 FRAME_FOREGROUND_PIXEL.
19399
19400 * print.c (print_preprocess): Don't lose print_depth levels while
19401 iterating.
19402
19403 * widget.c (update_from_various_frame_slots):
19404 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19405
19406 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19407 frames.
19408 (window_internal_height): Remove bogus make_number call.
19409 (init_window_once): Call make_terminal_frame with two zero parameters.
19410
19411 * fileio.c (Fread_file_name): Update comment.
19412
19413 * callint.c (Fcall_interactively):
19414 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19415 Make sure it is correctly unwound.
19416
19417 * xsmfns.c (x_session_close): New function.
19418
19419 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19420 Delete declarations.
19421
19422 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19423 (x_output): Remove background_pixel and foreground_pixel fields.
19424 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19425 (x_delete_device, x_session_close): Declare.
19426
19427 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19428 (read_filtered_event): Call `read_char' with a local
19429 `wrong_kboard_jmpbuf'.
19430
19431 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19432 Don't call single_kboard_state. Use FRAME_RIF.
19433
19434 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19435 systems.
19436
19437 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19438 (Fframe_with_environment, Fset_input_meta_mode)
19439 (Fset_quit_char): EXFUN.
19440 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19441 (init_sys_modes, reset_sys_modes): Update prototypes.
19442 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19443
19444 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19445 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19446 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19447 Delete declarations.
19448 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19449 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19450 New declarations.
19451
19452 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19453 already does that during init_display(). Call syms_of_keymap
19454 before syms_of_keyboard. Call `syms_of_terminal'.
19455 Call set_initial_environment, not set_process_environment.
19456 (shut_down_emacs): Call reset_all_sys_modes() instead of
19457 reset_sys_modes().
19458
19459 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19460 (internal_resolve_face_name, resolve_face_name_error): New functions.
19461 (resolve_face_name): Protect against loops and errors thrown by Fget.
19462 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19463 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19464
19465 * scroll.c: Replace CURTTY() with local variables throughout the
19466 file (where applicable).
19467 (calculate_scrolling, calculate_direct_scrolling)
19468 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19469 characteristics.
19470
19471 * keymap.c (Vfunction_key_map): Remove.
19472 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19473 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19474 (Vkey_translation_map): Remove.
19475 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19476 (Fdescribe_buffer_bindings)
19477 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19478 Update for terminal-local key-translation-map.
19479
19480 * Makefile.in (callproc.o): Update dependencies.
19481 (lisp, shortlisp): Add termdev.elc.
19482 (obj): Add terminal.o.
19483 (terminal.o): Add dependencies.
19484 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19485 (data.o, fns.o): Add termhooks.h dependency.
19486 (SOME_MACHINE_LISP): Add dnd.elc.
19487 (minibuf.o): Fix typo.
19488 Update dependencies.
19489
19490 * data.c (do_symval_forwarding, store_symval_forwarding)
19491 (find_symbol_value): Use the selected frame's keyboard, not
19492 current_kboard.
19493
19494 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19495 Vwindow_system.
19496
19497 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19498 Fmenu_bar_open.
19499 (syms_of_xmenu): Update defsubr.
19500 (mouse_position_for_popup, Fx_popup_menu)
19501 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19502 (set_frame_menubar, free_frame_menubar)
b97439ce 19503 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19504 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19505 an X frame.
19506
19507 * xselect.c (x_own_selection): Abort if not an X frame.
19508 (some_frame_on_display): Check if it is an X frame.
19509 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19510
19511 * coding.c: Include frame.h and termhooks.h.
19512 (terminal_coding, keyboard_coding): Delete.
19513 (Fset_terminal_coding_system_internal)
19514 (Fset_keyboard_coding_system_internal)
19515 (Fkeyboard_coding_system)
19516 (Fterminal_coding_system): Add a terminal parameter.
19517 Get terminal_coding from the terminal.
19518 (init_coding_once): Don't call setup_coding_system here.
19519
19520 * dispextern.h (set_scroll_region, turn_off_insert)
19521 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19522 (tty_clear_end_of_line, tty_setup_colors)
19523 (delete_tty, updating_frame)
19524 (produce_special_glyphs, produce_glyphs, write_glyphs)
19525 (insert_glyphs): Remove.
19526 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19527 (tty_turn_off_highlight, get_tty_size): Add declaration.
19528 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19529
19530 * frame.h (enum output_method): Add output_initial.
19531 (struct x_output): Delete.
19532 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19533 Access foreground_pixel and background_pixel directly from the frame.
19534 (tty_display): Delete.
19535 (struct frame): Add buried_buffer_list, foreground_pixel,
19536 background_pixel and terminal. Delete kboard.
19537 (union output_data): Add tty.
19538 (FRAME_KBOARD): Get the kboard from the terminal.
19539 (FRAME_INITIAL_P): New macro.
19540 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19541 (Qterm_environment_variable, Qdisplay_environment_variable)
19542 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19543 New declarations.
19544
19545 * termchar.h (tty_output, tty_display_info): New structures.
19546 (tty_list): Declare.
19547 (FRAME_TTY, CURTTY): New macros.
19548 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19549 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19550 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19551 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19552
19553 * callproc.c: Include frame.h and termhooks.h, for terminal
19554 parameters.
19555 (add_env): New function.
19556 (child_setup): Use it.
19557 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19558 (getenv_internal): Fix get_terminal_param call.
19559 (Fgetenv_internal, egetenv): Update doc.
19560 (syms_of_callproc): Initialize Vprocess_environment to nil.
19561 Register and initialize them. Remove obsolete defvars. Update doc
19562 strings.
19563 (child_setup): Handle Vlocal_environment_variables.
19564 (getenv_internal): Add terminal parameter.
19565 Handle Vlocal_environment_variables.
19566 (Fgetenv_internal): Add terminal parameter.
19567 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19568 environment in a frame (not terminal) parameter. Update doc strings.
19569 (set_initial_environment): Rename from set_global_environment.
19570 Store Emacs environment in initial frame parameter.
19571
19572 * xdisp.c (redisplay_internal): Update references to
19573 `previous_terminal_frame'.
19574 (display_mode_line, Fformat_mode_line): Replace calls to
19575 `push_frame_kboard' with `push_kboard'.
19576 (get_glyph_string_clip_rects): Add extra parentheses and
19577 braces to prevent compiler warnings.
19578 (calc_pixel_width_or_height): Add xassert to check that the
19579 frame is alive. Don't call `lookup_image' on a termcap frame.
19580 (message2_nolog, message3_nolog, redisplay_internal)
19581 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19582 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19583 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19584 (Fx_display_pixel_width, Fx_display_pixel_height)
19585 (Fx_display_planes, Fx_display_color_cells)
19586 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19587 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19588 (Fx_display_backing_store, Fx_display_visual_class)
19589 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19590 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19591
19592 * xfns.c (x_set_foreground_color x_set_background_color)
19593 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19594 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19595 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19596 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19597 terminal that is being deleted.
19598 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19599 frame parameter, and make sure it overrides any user-supplied setting.
19600 (Fx_close_connection, Fx_synchronize): Unify argument names with
19601 the rest of the DEFUNs.
19602
19603 * dispnew.c (Fsend_string_to_terminal): Update call to
19604 `get_tty_terminal'.
19605 (Fredraw_frame, Fsend_string_to_terminal)
19606 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19607 FRAME_TERMCAP_P and FRAME_TTY.
19608 (window_change_signal): Don't believe width/height values that are
19609 impossibly small.
19610 (Vinitial_window_system): Rename from Vwindow_system.
19611 (termscript, Wcm, rif): Delete.
19612
19613 * termhooks.h (struct terminal): New struct containing the
19614 previously global text display hooks and new members NAME,
19615 DELETED and PARAM_ALIST.
19616 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19617 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19618 (FRAME_RIF): New macros.
19619 (get_terminal_param, get_device): New declarations.
19620 (termscript): Delete declaration.
19621
19622 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19623 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19624 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19625 FRAME_FOREGROUND_PIXEL.
19626 (x_fully_uncatch_errors): Disable definition.
19627 (x_scroll_bar_expose): Fix reference to foreground pixel.
19628 (XTread_socket): Disable loop on all X displays.
19629 (x_delete_terminal): Don't set terminal->deleted and let
19630 delete_terminal delete the frames on the terminal.
19631 (x_delete_display): Doc update to reflect changes in
19632 delete_terminal.
19633 (x_display_info) <terminal>: Move member earlier in the struct.
19634 (deleting_tty): Remove old variable.
19635 (Fsuspend_tty): Call clear_tty_hooks.
19636 (Fresume_tty, init_tty): Call set_tty_hooks.
19637 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19638 errors on X frames.
19639 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19640 (handle_one_xevent): Initialize `f' to NULL.
19641 (x_delete_terminal, x_create_terminal): New functions.
19642 (XTset_terminal_modes, XTreset_terminal_modes)
19643 (XTread_socket, x_connection_closed, x_term_init)
19644 (x_term_init, x_delete_display): Add terminal parameter.
19645 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19646 X connections.
19647
19648 * frame.c: Include termchar.h.
19649 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19650 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19651 (Qdisplay_environment_variable): New vars.
19652 (Fframep): Deal with output_initial.
19653 (Fframe-live-p): Doc fix.
19654 (Fwindow-system): New function.
19655 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19656 (make_terminal_frame): Don't create frames on a terminal that is
19657 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19658 (store_frame_param): Check for found_for_frame before calling XFRAME.
19659 (Fmake_terminal_frame): Handle NULL tty names correctly.
19660 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19661 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19662 frames to refer to a deleted frame in their 'environment parameter.
19663 (Fframe_with_environment): New function.
19664 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19665 (get_future_frame_param): New function.
19666 (Fmake_terminal_frame): Use it.
19667 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19668
19669 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19670 * sysdep.c (reset_sys_modes): Update for renames.
19671
19672 * keyboard.c (tty_read_avail_input): New function.
19673 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19674 (syms_of_keyboard): Defsubr them.
19675 (Fset_input_meta_mode, Fset_quit_char): New functions.
19676 (Fset_input_mode): Split to above functions.
19677 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19678 parameter. Use it in call to `read_char'.
19679 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19680 Set wrong_kboard_jmpbuf correctly in recursive calls.
19681 Use current_kboard to access Vkeyboard_translate_table.
19682 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19683 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19684 Update longjmp invocations. Remember the original current_kboard,
19685 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19686 changes it. Comment out unnecessary calls to
19687 `record_single_kboard_state' and `any_kboard_state'.
19688 Update recursive calls.
19689 (wrong_kboard_jmpbuf): Remove global variable.
19690 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19691 Handle deleted interrupted_kboards correctly; that is a legal
19692 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19693 and read_char calls. Abort if interrupted_kboard died in read_char.
19694 (any_kboard_state, single_kboard_state)
19695 (push_frame_kboard): Remove function.
19696 (pop_kboard): Switch out of single_kboard mode if the kboard has
19697 been deleted. Remove unused variable. Help debugging by not
19698 changing current_kboard unnecessarily. Set current_kboard to the
19699 kboard of the selected frame when the stored kboard object has
19700 been deleted before pop_kboard.
19701 (temporarily_switch_to_single_kboard): Change first parameter to a
19702 frame pointer. Throw an error when caller wants to change kboards
19703 while in single_kboard mode. Don't push_kboard if we weren't in
19704 single kboard state. Don't pop_kboard if we popped into any
19705 kboard state.
19706 (restore_kboard_configuration): Abort if pop_kboard changed the
19707 kboard in single_kboard mode. Call pop_kboard only after setting
19708 up single_kboard mode.
19709 (Frecursive_edit): Switch to single_kboard mode only in nested
19710 command loops.
19711 (cmd_error, command_loop, command_loop_1, timer_check):
19712 Comment out unnecessary call to `any_kboard_state' and
19713 `record_single_kboard_state'.
19714 (delete_kboard): Exit single_kboard mode if we have just deleted
19715 that kboard. Use FRAME_KBOARD.
19716 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19717 `fatal_error_signal'.
19718 (record_single_kboard_state): Don't push_kboard if we weren't in
19719 single kboard state. Don't pop_kboard if we popped into any
19720 kboard state.
19721 (push_frame_kboard): Rename to push_kboard.
19722 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19723 (read_avail_input): Read input from all terminals.
19724 (mark_kboards): Also mark Vkeyboard_translate_table.
19725 (kbd_buffer_store_event_hold): Simplify condition.
19726 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19727 (Vkeyboard_translate_table): Move to struct kboard.
19728 (init_kboard): Initialize Vkeyboard_translate_table.
19729 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19730 Vkeyboard_translate_table. Update doc strings. Update docs of
19731 local-function-key-map and function-key-map.
19732
19733 * terminal.c: New file.
19734
19735 * term.c: Include errno.h.
19736 (Vring_bell_function, device_list, initial_device)
19737 (next_device_id, ring_bell, update_begin, update_end)
19738 (set_terminal_window, cursor_to, raw_cursor_to)
19739 (clear_to_end, clear_frame, clear_end_of_line)
19740 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19741 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19742 (syms_of_term): Move their initialization to terminal.c.
19743 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19744 (Ftty_display_color_cells)
19745 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19746 (clear_tty_hooks, set_tty_hooks)
19747 (init_tty, maybe_fatal): New functions.
19748 (Ftty_type): Return nil if terminal is not on a tty instead of
19749 throwing an error. Doc update.
19750 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19751 Doc update. Initialize new subrs and variables.
19752 (delete_tty): Use terminal->deleted.
19753 (tty_set_terminal_modes): Rename from set_terminal_modes.
19754 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19755 (set_scroll_region): Rename to `tty_set_scroll_region'.
19756 (turn_on_insert): Rename to `tty_turn_on_insert'.
19757 (turn_off_insert): Rename to `tty_turn_off_insert'.
19758 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19759 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19760 (toggle_highligh): Rename to `tty_toggle_highlight'.
19761 (background_highlight): Rename to `tty_background_highlight'.
19762 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19763 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19764 (tty_set_scroll_region, tty_background_highlight)
19765 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19766 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19767 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19768 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19769 Add static modifier.
19770 (tty_reset_terminal_modes, tty_set_terminal_window)
19771 (tty_set_scroll_region, tty_background_highlight)
19772 (tty_highlight_if_desired, tty_cursor_to)
19773 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19774 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19775 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19776 renames.
19777
197782007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19779
19780 * keyboard.c: Qrtl is new.
19781 (parse_tool_bar_item): Handle :rtl keyword.
19782 (syms_of_keyboard): Intern :rtl keyword.
19783
19784 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19785
19786 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19787 so no Lisp code is executed.
19788 (file_for_image, find_rtl_image): New functions.
19789 (xg_get_image_for_pixmap): Use file_for_image.
19790 (update_frame_tool_bar): If direction is RTL, use RTL image if
19791 defined. Use Gtk stock images if defined.
19792
197932007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19794
19795 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19796 for nonexistent or zero-width glyph in composition glyph.
19797
197982007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19799
19800 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19801
19802 * xdisp.c (Finvisible_p): New function.
19803 (syms_of_xdisp): defsubr it.
19804
198052007-08-24 Juanma Barranquero <lekktu@gmail.com>
19806
19807 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19808 Doc fixes.
19809
198102007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19811
19812 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19813
198142007-08-24 Martin Rudalics <rudalics@gmx.at>
19815
19816 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19817 whether decoding has modified buffer contents.
19818
198192007-08-24 Jason Rumney <jasonr@gnu.org>
19820
19821 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19822 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19823 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19824 (init_svg_functions) [HAVE_NTGUI]: New function.
19825 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19826 (svg_load_image): Use them.
19827 (svg_load_image) [HAVE_NTGUI]: Implement background.
19828
198292007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19830
19831 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19832 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19833 (LIBX): Remove @RSVG_LIBS@.
19834 (LIBES): Add $(RSVG_LIBS).
19835
19836 * image.c (svg_load_image): Blend with specified background if exists.
19837 Use IMAGE_BACKGROUND. Add Mac OS Support.
19838
19839 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19840 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19841 Remove macros.
19842 [MAC_OSX] (socket_callback): Do nothing.
19843 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19844 ReceiveNextEvent.
19845 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19846 socket_callback.
19847 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19848
198492007-08-22 Glenn Morris <rgm@gnu.org>
19850
19851 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19852
198532007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19854
19855 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19856
19857 * image.c: Add support for SVG images. Some additional comments
19858 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19859 (svg_image_p): New function to test for SVG image.
19860 (svg_load): New function to load SVG image.
19861 (svg_load_image): New function, helper for svg_load.
19862 (Qsvg): New Lisp_object.
19863 (svg_keyword_index): New enum.
19864 (svg_format): New static `image_keyword' struct.
19865 (svg_type): New static `image_type' struct.
19866 (librsvg/rsvg.h): Include it.
19867
198682007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19869
19870 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19871
198722007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19873
19874 * lread.c (Qold_style_backquotes): New var.
19875 (syms_of_lread): Init and staticpro it.
19876 (load_warn_old_style_backquotes): New fun.
19877 (Fload): Use them to warn about old style backquotes.
19878 (end_of_file_error, Fload): Remove unused vars.
19879
19880 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19881
19882 * lread.c (Vold_style_backquotes): New var.
19883 (syms_of_lread): Init and export it to Elisp.
19884 (read1): Set it when we find an old-style (back)quote.
19885
198862007-08-22 Jason Rumney <jasonr@gnu.org>
19887
19888 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19889
198902007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19891
19892 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19893
198942007-08-19 Richard Stallman <rms@gnu.org>
19895
19896 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19897
198982007-08-19 Andreas Schwab <schwab@suse.de>
19899
19900 * alloc.c (pure): Round PURESIZE up.
19901
199022007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19903
19904 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19905 active frame.
19906
199072007-08-16 Richard Stallman <rms@gnu.org>
19908
19909 * eval.c (Fcommandp): Add parens to clarify.
19910
19911 * minibuf.c (Fall_completions): Use enum for type of table.
19912
19913 * emacs.c (USAGE2): Improve text.
19914
199152007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19916
19917 * term.c (tty_default_color_capabilities): Declare static
19918 variables in file scope, to avoid HPUX compiler problem.
19919
199202007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19921
19922 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19923 to gtk_toolbar_insert.
19924
199252007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19926
19927 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19928
19929 * insdel.c (reset_var_on_error): New fun.
19930 (signal_before_change, signal_after_change):
19931 Use it to reset (after|before)-change-functions to nil in case of error.
19932 Bind inhibit-modification-hooks to t.
19933 Don't bind (after|before)-change-functions to nil while they run.
19934
199352007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19936
19937 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19938 filling pixmap with stippled background.
19939
199402007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19941
19942 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19943 Don't use invisible frame as parent window for repositioning.
19944
199452007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19946
19947 * print.c (new_backquote_output): Rename from old_backquote_output.
19948 (print): Inverse its logic (according to its name) so as to match the
19949 behavior of new_backquote_flag in lread.c.
19950
199512007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19952
19953 * gmalloc.c (posix_memalign): New function.
19954
19955 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19956 ActivateControl/DeactivateControl here.
19957 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19958 frame-notice-user-settings is non-nil.
19959 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19960 for kEventParamFMFontStyle.
19961 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19962 mac_pass_command_to_system and mac_pass_control_to_system here.
19963 (XTread_socket): Call ActivateControl/DeactivateControl here.
19964 (XTread_socket) [TARGET_API_MAC_CARBON]:
19965 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19966 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19967 for window repositioning.
19968
199692007-08-08 Glenn Morris <rgm@gnu.org>
19970
19971 * Replace `iff' in doc-strings and comments.
19972
199732007-08-07 Chong Yidong <cyd@stupidchicken.com>
19974
19975 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19976
199772007-08-07 Martin Rudalics <rudalics@gmx.at>
19978
19979 * fileio.c (Finsert_file_contents): Run format-decode and
19980 after_insert_file_functions on entire buffer when REPLACE is
19981 non-nil and inhibit modification_hooks and point_motion_hooks.
19982 For consistency, run after_insert_file_functions iff something
19983 got inserted. Move signal_after_change and update_compositions
19984 after code running after_insert_file_functions. Make sure that
19985 undo_list doesn't record intermediate steps of the decoding process.
19986
199872007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19988
19989 * emacs.c (main)
19990 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19991 Call malloc_enable_thread on interactive startup.
19992
19993 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19994 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19995 [USE_PTHREAD]: Conditionalize with it.
19996 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19997 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19998 New functions.
19999
200002007-08-06 Chong Yidong <cyd@stupidchicken.com>
20001
20002 * xdisp.c (redisplay_window): When restoring original buffer
20003 position, make sure it is still valid.
20004
20005 * image.c (png_load): Ignore png-supplied background color.
20006
200072007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20008
20009 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20010 Use kCFAbsoluteTimeIntervalSince1970.
20011
20012 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20013 New variable.
20014 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20015 event loop should be quit.
20016 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20017 Quit dialog event loop if quit_dialog_event_loop is set.
20018
20019 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20020 (Selection): New typedef. Use instead of ScrapRef.
20021 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20022 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20023 (mac_clear_selection): Rename from clear_scrap.
20024 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20025 scrap_has_target_type. All uses changed.
20026 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20027 (mac_selection_has_target_p): New functions.
20028 (mac_put_selection_value): Rename from put_scrap_string.
20029 (mac_get_selection_value): Rename from get_scrap_string.
20030 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20031 (put_scrap_private_timestamp, scrap_has_target_type)
20032 (get_scrap_private_timestamp): Remove functions.
20033 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20034 (x_own_selection, x_get_local_selection):
20035 Use mac_valid_selection_value_p.
20036 (x_own_selection): Don't use put_scrap_private_timestamp.
20037 Record OWNERSHIP-INFO into Vselection_alist instead.
20038 (x_get_local_selection): Don't check type if request is local.
20039 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20040 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20041
200422007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20043
20044 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20045 add comment explaining why.
20046
200472007-08-03 Richard Stallman <rms@gnu.org>
20048
20049 * fileio.c (Fvisited_file_modtime): Use make_time.
20050
200512007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20052
20053 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20054 build.
20055
200562007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20057
20058 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20059
200602007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20061
20062 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20063
200642007-07-30 Richard Stallman <rms@gnu.org>
20065
20066 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20067
200682007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20069
20070 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20071
200722007-07-28 Nick Roberts <nickrob@snap.net.nz>
20073
20074 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20075 remote default-directory.
20076
20077 * buffer.c (mode-line-format): Update doc string.
20078
200792007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20080
20081 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20082 scroll bar gap.
20083 (x_scroll_bar_create): Set bar->fringe_extended_p.
20084 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20085 on frame edge. Check fringe background extension. Don't clear
20086 extended fringe background area.
20087
20088 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20089 (w32_fill_area): Enclose multiple statements with do ... while (0).
20090
20091 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20092 Extend fringe background to scroll bar gap.
20093 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20094 Set bar->fringe_extended_p.
20095 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20096 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20097 background extension. Don't clear extended fringe background area.
20098
20099 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20100 New member fringe_extended_p.
20101
201022007-07-25 Glenn Morris <rgm@gnu.org>
20103
20104 * Relicense all FSF files to GPLv3 or later.
20105
20106 * COPYING: Switch to GPLv3.
20107
201082007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20109
20110 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20111
20112 * data.c (Finteractive_form): Check for the presence of an
20113 `interactive-form' symbol property more thoroughly.
20114
20115 * data.c (Finteractive_form): Use an `interactive-form' property if
20116 present, analogous to the function-documentation property.
20117
201182007-07-24 Jason Rumney <jasonr@gnu.org>
20119
20120 * w32fns.c (x_real_positions): Get real position from OS instead of
20121 calculating it.
20122
201232007-07-23 Jason Rumney <jasonr@gnu.org>
20124
20125 * filelock.c (current_lock_owner): Allow for @ sign in username.
20126
201272007-07-22 Nick Roberts <nickrob@snap.net.nz>
20128
20129 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20130 remote default-directory.
20131
20132 * buffer.c (mode-line-format): Describe above case in doc string.
20133
201342007-07-20 Eli Zaretskii <eliz@gnu.org>
20135
20136 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20137 Define if not defined.
20138
201392007-07-18 Jason Rumney <jasonr@gnu.org>
20140
20141 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20142
201432007-07-18 Richard Stallman <rms@gnu.org>
20144
20145 * data.c (Fsetq_default): Doc fix.
20146
20147 * eval.c (Fsetq): Doc fix.
20148
201492007-07-18 Juanma Barranquero <lekktu@gmail.com>
20150
20151 * coding.c (Ffind_operation_coding_system):
20152 * eval.c (For, Fand): Doc fixes.
20153 Reported by Johan Bockgård.
20154
201552007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20156
20157 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20158
20159 * xterm.h: Declare x_ewmh_activate_frame.
20160
20161 * xterm.c (x_ewmh_activate_frame): New function.
20162 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20163
201642007-07-17 Martin Rudalics <rudalics@gmx.at>
20165
20166 * window.c (Fdisplay_buffer): If largest or LRU window is the
20167 only window, split it even if it is not eligible for splitting.
20168 This restores the original behavior broken by the 2007-07-15
20169 change.
20170
201712007-07-17 Glenn Morris <rgm@gnu.org>
20172
20173 * abbrev.c (abbrev_check_chars): New function.
20174 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20175 Call abbrev_check_chars to check abbrev characters are word
20176 constituents. Doc fix.
20177
201782007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20179
20180 * process.c (Fstart_process, Fmake_network_process)
20181 (read_process_output): Fix up last changes.
20182
201832007-07-16 Eli Zaretskii <eliz@gnu.org>
20184
20185 * makefile.w32-in (clean): Don't delete *~.
20186
201872007-07-16 Andreas Schwab <schwab@suse.de>
20188
20189 * window.c (Fdisplay_buffer): Use NILP.
20190 (Fset_window_scroll_bars): Likewise.
20191
201922007-07-15 Martin Rudalics <rudalics@gmx.at>
20193
20194 * window.c (window_min_size_2): New function.
20195 (window_min_size_1, size_window, Fdisplay_buffer)
20196 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20197 windows without mode- or header-lines when window-min-height is
20198 too small.
20199 (size_window): Reset nodelete_p after testing it, following an
20200 earlier note by Kim F. Storm.
20201 (display_buffer): Do not set split_height_threshold to twice the
20202 value of window_min_height to avoid changing the value of a
20203 customizable variable. Rather explicitly check whether the
20204 height of the window that shall be splitted is at least as large
20205 as split_height_threshold.
20206 (Fwindow_full_width_p): New defun.
20207 (syms_of_window): Defsubr it.
20208
20209 * window.h: Add EXFUN for Fwindow_full_width_p.
20210
202112007-07-14 Jason Rumney <jasonr@gnu.org>
20212
20213 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20214
202152007-07-14 Richard Stallman <rms@gnu.org>
20216
20217 * eval.c (maybe_call_debugger): New function.
20218 (find_handler_clause): Use maybe_call_debugger.
20219 Call it when the handler says `debug'.
20220 Eliminate DEBUGGER_VALUE_PTR.
20221 (Fsignal): Eliminate debugger_value.
20222 (Qdebug): New variable.
20223 (syms_of_eval): Initialize it.
20224
202252007-07-14 Juanma Barranquero <lekktu@gmail.com>
20226
20227 * eval.c (Fprogn):
20228 * keyboard.c (Ftrack_mouse):
20229 * print.c (Fwith_output_to_temp_buffer):
20230 * window.c (Fsave_window_excursion): Doc fix.
20231
202322007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20233
20234 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20235
202362007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20237
20238 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20239 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20240 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20241 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20242 Remove unused encoding_carryover.
20243 * process.c: Adjust all functions accordingly.
20244
202452007-07-12 Richard Stallman <rms@gnu.org>
20246
20247 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20248
202492007-07-11 Jason Rumney <jasonr@gnu.org>
20250
20251 * makefile.w32-in (LIBS): Include OLE32.
20252
20253 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20254 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20255
202562007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20257
20258 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20259 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20260 from a Lisp_Object into a bare pointer.
20261 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20262 Adjust the code correspondingly.
20263
20264 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20265
20266 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20267 (term_show_mouse_face): Remove unused var `j'.
20268 (handle_one_term_event): Remove unused vars `i' and `j'.
20269 Don't cast return value of ttyname since it's not necessary.
20270
202712007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20272
20273 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20274 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20275
20276 * fns.c (map_char_table): Use an array of int for `indices' rather than
20277 an array of Lisp_Objects (which are only ever integers anyway).
20278 (Fmap_char_table): Update caller.
20279 * lisp.h: Update prototype.
20280 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20281 * fontset.c (Ffontset_info):
20282 * casetab.c (set_case_table): Update callers.
20283
20284 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20285
20286 * keymap.c (struct accessible_keymaps_data)
20287 (struct where_is_internal_data): New structures.
20288 (accessible_keymaps_1, where_is_internal_1): Use them to change
20289 interface to adhere to the one used by map_keymap.
20290 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20291 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20292
20293 * keymap.h (map_keymap_function_t): More informative prototype.
20294
202952007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20296
20297 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20298 (looking_at_1): Don't change search_regs and last_thing_searched
20299 if `inhibit-changing-match-data' is non-nil.
20300 (string_match_1, search_buffer, set_search_regs): Likewise.
20301 (syms_of_search): Add Lisp level definition for
20302 `inhibit-changing-match-data' and set it to nil.
20303 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20304 start and end of the match, instead of using values in search_regs.
20305
203062007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20307
20308 * minibuf.c (Fcompleting_read): New value `confirm-only'
20309 for `require-match'.
20310
203112007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20312
20313 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20314 part of the 2007-06-27 change to syms_of_fileio.
20315
203162007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20317
20318 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20319 Check WINDOWP before using XWINDOW. Consolidate return statements.
20320
203212007-06-27 Richard Stallman <rms@gnu.org>
20322
20323 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20324
203252007-06-27 Juanma Barranquero <lekktu@gmail.com>
20326
20327 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20328
203292007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20330
20331 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20332 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20333 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20334 (_free_internal, memalign): Use them.
20335 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20336 Initialize to PTHREAD_MUTEX_INITIALIZER.
20337 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20338 (morecore_nolock): Rename from morecore. All uses changed.
20339 Use only nolock versions of internal allocation functions.
20340 (_malloc_internal_nolock, _realloc_internal_nolock)
20341 (_free_internal_nolock): New functions created from
20342 _malloc_internal, _realloc_internal, and _free_internal.
20343 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20344 Copy hook value to automatic variable before its use.
20345 (memalign): Copy hook value to automatic variable before its use.
20346
203472007-06-26 Kenichi Handa <handa@m17n.org>
20348
20349 * coding.c (Ffind_operation_coding_system): Docstring improved.
20350 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20351
203522007-06-25 David Kastrup <dak@gnu.org>
20353
20354 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20355 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20356 cater for additional parameter.
20357
20358 * keymap.h: Adjust number of parameters to `current-active-maps'.
20359
20360 * doc.c (Fsubstitute_command_keys): Adjust call of
20361 `current-active-maps'.
20362
203632007-06-25 David Kastrup <dak@gnu.org>
20364
20365 * callint.c (Fcall_interactively): Make the parsing of interactive
20366 specs somewhat more readable.
20367
203682007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20369
20370 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20371 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20372 if extended background has already been filled.
20373
203742007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20375
20376 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20377 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20378
20379 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20380 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20381 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20382 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20383 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20384 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20385 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20386 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20387 Run timers during dialog popup.
20388 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20389
203902007-06-21 Jason Rumney <jasonr@gnu.org>
20391
20392 * image.c (convert_mono_to_color_image): Swap fore and background.
20393
203942007-06-20 Jason Rumney <jasonr@gnu.org>
20395
20396 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20397 (w32_free_bdf_font): Unmap memory not handle.
20398
203992007-06-20 Sam Steingold <sds@gnu.org>
20400
20401 * gmalloc.c (__morecore): Fix the declaration to comply with the
20402 definition.
20403
204042007-06-20 Juanma Barranquero <lekktu@gmail.com>
20405
20406 * w32term.c (w32_delete_display): Remove leftover declaration.
20407 (w32_define_cursor, w32_initialize): Make static.
20408
20409 * w32.c (_wsa_errlist): Fix typo in error message.
20410 (init_environment): Ignore any environment variable from the
20411 registry having a null value.
20412
204132007-06-20 Glenn Morris <rgm@gnu.org>
20414
20415 * Makefile.in (LIBGIF): Default to -lgif.
20416
204172007-06-17 Jason Rumney <jasonr@gnu.org>
20418
20419 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20420 unicode strings.
20421
204222007-06-16 Juanma Barranquero <lekktu@gmail.com>
20423
20424 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20425 Fix typo in docstring.
20426
204272007-06-16 Eli Zaretskii <eliz@gnu.org>
20428
20429 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20430 and their keybindings.
20431
204322007-06-15 Chong Yidong <cyd@stupidchicken.com>
20433
20434 * composite.c (update_compositions): Fix last fix.
20435
204362007-06-14 Jason Rumney <jasonr@gnu.org>
20437
20438 * w32.c (get_process_times_fn): New function pointer.
20439 (globals_of_w32): Intialize it if present in kernel32.dll.
20440 (w32_get_internal_run_time): New function.
20441
20442 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20443
204442007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20445
20446 * composite.c (update_compositions): Check the validness of
20447 compositions.
20448
204492007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20450
20451 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20452 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20453
20454 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20455 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20456
20457 * macgui.h (USE_MAC_TOOLBAR): New define.
20458
20459 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20460 Return immediately unless popup is activated.
20461
20462 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20463 background to scroll bar gap.
20464 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20465 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20466 scroll bars on frame edge. Check fringe background extension.
20467 Don't clear extended fringe background area.
20468 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20469 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20470 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20471 [USE_MAC_TOOLBAR]: New macros.
20472 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20473 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20474 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20475 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20476 [USE_MAC_TOOLBAR]: New functions.
20477 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20478 manually if previous repositioning has failed.
20479 (mac_handle_keyboard_event): Use precomputed event kind.
20480 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20481 as tool bar item click. Handle mouse movement over tool bar items.
20482
20483 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20484 toolbar_win_gravity.
20485 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20486 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20487 Add externs.
20488
20489 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20490 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20491
204922007-06-14 Chong Yidong <cyd@stupidchicken.com>
20493
20494 * image.c (search_image_cache): Remove unused variable.
20495
204962007-06-13 Chong Yidong <cyd@stupidchicken.com>
20497
20498 * xfns.c, xmenu.c: Link to xaw3d if available.
20499
205002007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20501
20502 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20503 frame_foreground and frame_background.
20504
20505 * image.c (lookup_image): Save frame foreground and background colors.
20506 (search_image_cache): Check if saved and current frame colors match.
20507
205082007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20509
20510 * regex.c (regex_compile): Remove the `regnum' counter.
20511 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20512
205132007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20514
20515 * term.c: Include intervals.h to declare Fget_text_property.
20516
205172007-06-10 Jason Rumney <jasonr@gnu.org>
20518
20519 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20520
205212007-06-08 Juanma Barranquero <lekktu@gmail.com>
20522
20523 * callint.c (Fcall_interactively):
20524 * editfns.c (Fdelete_and_extract_region):
20525 * fileio.c (Fread_file_name):
20526 * fns.c (Fmapconcat):
20527 * keyboard.c (cmd_error_internal):
20528 * keymap.c (Fkey_description):
20529 * lread.c (openp):
20530 * minibuf.c (read_minibuf):
20531 * search.c (wordify):
20532 * sunfns.c (sel_read):
20533 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20534 * xfns.c (x_default_scroll_bar_color_parameter):
20535 * xmenu.c (menu_help_callback):
20536 * xselect.c (Fx_get_atom_name):
20537 * xterm.c (x_term_init): Use empty_unibyte_string.
20538
205392007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20540
20541 * alloc.c (init_strings): Initialize canonical empty strings.
20542 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20543 canonical empty string when the requested size is 0.
20544
20545 * emacs.c (empty_unibyte_string): Rename from empty_string.
20546 (empty_multibyte_string): New canonical empty string.
20547 (syms_of_emacs): Don't initialize empty_string.
20548
20549 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20550 string, if appropriate.
20551 (empty_unibyte_string, empty_multibyte_string): New externs.
20552 (empty_string): Remove extern.
20553
20554 * lread.c (syms_of_lread): Use empty_unibyte_string.
20555
205562007-06-07 Jason Rumney <jasonr@gnu.org>
20557
20558 * s/ms-w32.h: Don't define HAVE_TZNAME.
20559
20560 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20561
205622007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20563
20564 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20565
20566 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20567 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20568
20569 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20570 Don't call next handler.
20571 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20572 Remove argument. Install handler to application.
20573 (set_frame_menubar): Don't change deep_p.
20574 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20575 FRAME_OUTER_TO_INNER_DIFF_Y.
20576 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20577 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20578 [HAVE_DIALOGS]: New macros.
20579 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20580 Use them.
20581 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20582
20583 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20584 init_service_handler. All callers changed. Return OSStatus value.
20585
20586 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20587 All callers changed so as not to call SetPortWindowPort.
20588 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20589 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20590 mac_draw_string_common.
20591 (mac_draw_image_string_qd): Likewise.
20592 (mac_draw_string_common): Use them. Add INLINE.
20593 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20594 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20595 GetGlobalMouse.
20596 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20597 and FRAME_OUTER_TO_INNER_DIFF_Y.
20598 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20599 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20600 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20601 repositioning window to mac_handle_window_event.
20602 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20603 saving window location to mac_handle_window_event
20604 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20605 (install_menu_target_item_handler): Remove argument in extern.
20606 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20607 Also accept command events.
20608 (do_keystroke): New function created from XTread_socket.
20609 (init_command_handler): Remove functions.
20610 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20611 and save window location by kEventWindowShowing and kEventWindowHiding
20612 handlers here. Don't call next handler for window state change and
20613 focus events.
20614 (mac_handle_application_event, mac_handle_keyboard_event)
20615 [TARGET_API_MAC_CARBON]: New functions.
20616 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20617 kEventWindowShowing and kEventWindowHiding events. Move installation
20618 of mouse, font, text input and menu target item handlers to
20619 install_application_handler.
20620 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20621 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20622 New function.
20623 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20624 Register it.
20625 (XTread_socket) [TARGET_API_MAC_CARBON]:
20626 Consolidate SendEventToEventTarget calls.
20627 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20628 Move application activation handler to mac_handle_application_event.
20629 Move keyboard handler to mac_handle_keyboard_event.
20630 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20631 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20632 init_command_handler. Call install_application_handler.
20633
20634 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20635 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20636
206372007-06-07 Glenn Morris <rgm@gnu.org>
20638
20639 * emacs.c (main): Use `emacs-copyright' in --version output.
20640
206412007-06-06 Chong Yidong <cyd@stupidchicken.com>
20642
20643 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20644
206452007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20646
20647 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20648
20649 * macgui.h: Replace WindowPtr with WindowRef.
20650
20651 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20652 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20653 Replace ControlHandle with ControlRef.
20654 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20655
20656 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20657 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20658 Replace ControlHandle with ControlRef.
20659 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20660 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20661
20662 * macterm.h (struct scroll_bar): Rename member control_handle_low
20663 and control_handle_high to control_ref_low and control_ref_high.
20664 All uses changed.
20665 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20666 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20667 respectively. All uses changed.
20668 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20669 (install_window_handler, remove_window_handler): Replace WindowPtr
20670 with WindowRef in externs.
20671
206722007-06-05 Juanma Barranquero <lekktu@gmail.com>
20673
20674 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20675
206762007-06-03 Nick Roberts <nickrob@snap.net.nz>
20677
20678 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20679
20680 * frame.c (Fmouse_position, Fmouse_pixel_position):
20681 Condition on HAVE_GPM too.
20682
20683 * term.c (term_mouse_highlight): Remove unused variables.
20684 (Fterm_open_connection): Set gpm_zerobased to 1.
20685 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20686 Use zero based co-ordinates.
20687 (handle_one_term_event): Report a drag as mouse movement too.
20688
20689 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20690
206912007-06-03 Chong Yidong <cyd@stupidchicken.com>
20692
20693 * image.c (search_image_cache): New function. Require background
20694 color match if background color is unspecified in the image spec.
20695 (uncache_image, lookup_image): Use it.
20696
206972007-06-01 Juanma Barranquero <lekktu@gmail.com>
20698
20699 * window.c (Fshrink_window): Reflow docstring.
20700
207012007-06-02 Chong Yidong <cyd@stupidchicken.com>
20702
20703 * Version 22.1 released.
20704
207052007-06-01 Richard Stallman <rms@gnu.org>
20706
20707 * xfns.c (x_encode_text): Add GCPRO.
20708
207092007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20710
20711 * xfns.c (x_set_name_internal): Save encoded name before
20712 x_encode_text in case string data is relocated.
20713
207142007-05-31 Richard Stallman <rms@gnu.org>
20715
20716 * buffer.c (syms_of_buffer): Doc fix.
20717
207182007-05-30 Nick Roberts <nickrob@snap.net.nz>
20719
20720 * sysdep.c (init_sys_modes): Add rather than replace with
20721 O_NONBLOCK.
20722
20723 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20724 term_mouse_moveto.
20725
20726 * termhooks.h (term_mouse_moveto): New extern.
20727
20728 * term.c (mouse_face_window): Rename...
20729 (Qmouse_face_window): ...to this.
20730 (term_show_mouse_face, term_clear_mouse_face)
20731 (term_mouse_highlight): Use Qmouse_face_window.
20732 (term_mouse_moveto): New function.
20733 (term_mouse_position): Make it work.
20734 (syms_of_term): Uncomment assignment to mouse_position_hook.
20735 Staticpro Qmouse_face_window.
20736
207372007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20738
20739 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20740 around current_column call.
20741
207422007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20743
20744 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20745 * xdisp.c (next_element_from_buffer):
20746 * window.c (delete_window):
20747 * term.c (term_mouse_highlight):
20748 * msdos.c (getdefdir):
20749 * macterm.c (mac_create_bitmap_from_bitmap_data)
20750 (init_font_name_table):
20751 * fns.c (Fsxhash):
20752 * data.c (Fmake_local_variable):
20753 * ccl.c (ccl_driver): Likewise.
20754
207552007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20756
20757 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20758 Call mac_wakeup_from_rne on window size change.
20759
207602007-05-25 Chong Yidong <cyd@stupidchicken.com>
20761
20762 * image.c (uncache_image): Fix typo.
20763
207642007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20765
20766 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20767
207682007-05-22 Richard Stallman <rms@gnu.org>
20769
20770 * xterm.c (x_connection_closed): Remove NO_RETURN.
20771
207722007-05-22 Martin Rudalics <rudalics@gmx.at>
20773
20774 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20775
207762007-05-21 Chong Yidong <cyd@stupidchicken.com>
20777
20778 * image.c (uncache_image): New function.
20779 (Fimage_refresh): New function.
20780
207812007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20782
20783 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20784
207852007-05-20 Nick Roberts <nickrob@snap.net.nz>
20786
20787 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20788 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20789
207902007-05-20 Nick Roberts <nickrob@snap.net.nz>
20791
20792 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20793 conditional on [HAVE_GPM_H].
20794
207952007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20796
20797 * syntax.c (skip_chars): Update syntax-table only after we checked that
20798 the new location is valid.
20799
208002007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20801
20802 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20803 mac_get_window_bounds.
20804
208052007-05-20 Nick Roberts <nickrob@snap.net.nz>
20806
20807 * Makefile.in (LIBGPM): Allow it to be set from configure.
20808 If set then link Emacs with it.
20809
20810 * config.in: Regenerate.
20811
20812 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20813 New externs.
20814
20815 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20816 Include gpm.h.
20817 (handle_one_term_event, term_gpm): New externs.
20818
20819 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20820 and allow it to be interrupted by SIGIO.
20821
20822 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20823 (wait_reading_process_output): Wait on gpm_fd too.
20824 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20825 (add_gpm_wait_descriptor_called_flag): New variable.
20826 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20827
20828 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20829 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20830 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20831 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20832 (make_lispy_event): Add case GPM_CLICK_EVENT.
20833 (read_avail_input): Handle mouse input.
20834
20835 * term.c (write_glyphs_with_face): New function.
20836 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20837 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20838 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20839 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20840 (last_mouse_x, last_mouse_y): New variables.
20841 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20842 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20843 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20844 (Fterm_close_connection): New functions.
20845 (term_init): Initialise mouse_face_window.
20846
208472007-05-19 Chong Yidong <cyd@stupidchicken.com>
20848
20849 * xdisp.c (redisplay_window): If first window line is a
20850 continuation line, recompute the new window start instead of
20851 recentering.
20852
208532007-05-18 Glenn Morris <rgm@gnu.org>
20854
20855 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20856 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20857
208582007-05-17 Glenn Morris <rgm@gnu.org>
20859
20860 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20861
208622007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20863
20864 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20865 dead key repeat and up events.
20866
208672007-05-14 Chong Yidong <cyd@stupidchicken.com>
20868
20869 * image.c (pbm_load): Check image size for monochrome pbm.
20870
208712007-05-13 Chong Yidong <cyd@stupidchicken.com>
20872
20873 * xterm.c (XTread_socket): Revert last change.
20874
208752007-05-12 Chong Yidong <cyd@stupidchicken.com>
20876
20877 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20878
20879 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20880
208812007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20882
20883 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20884 mixup (YAILOM).
20885
208862007-05-07 Andreas Schwab <schwab@suse.de>
20887
20888 * keymap.c (Flookup_key): Fix typo in last change.
20889
208902007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20891
20892 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20893 mapping for unibyte strings.
20894
208952007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20896
20897 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20898 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20899
209002007-04-29 Richard Stallman <rms@gnu.org>
20901
20902 * insdel.c (replace_range): For undo, record insertion first.
20903
209042007-04-29 Andreas Schwab <schwab@suse.de>
20905
20906 * lisp.h (VECSIZE): Use OFFSETOF.
20907
209082007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20909
20910 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20911 disabled lines.
20912
209132007-04-28 Richard Stallman <rms@gnu.org>
20914
20915 * lread.c (read_escape): In a string, \s is always space.
20916
209172007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20918
20919 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20920
20921 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20922 submenu for menu bar items.
20923
20924See ChangeLog.10 for earlier changes.
20925
20926;; Local Variables:
20927;; coding: utf-8
20928;; add-log-time-zone-rule: t
aac0c6e3
MR
20929;; End:
20930
76b6f707 20931 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20932
20933 This file is part of GNU Emacs.
20934
20935 GNU Emacs is free software: you can redistribute it and/or modify
20936 it under the terms of the GNU General Public License as published by
20937 the Free Software Foundation, either version 3 of the License, or
20938 (at your option) any later version.
20939
20940 GNU Emacs is distributed in the hope that it will be useful,
20941 but WITHOUT ANY WARRANTY; without even the implied warranty of
20942 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20943 GNU General Public License for more details.
20944
20945 You should have received a copy of the GNU General Public License
20946 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20947
20948;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40