Require help-mode instead of help-fns.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
944a300c
AS
12009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2
3 * unexelf.c (unexec): Don't search for .data twice.
4
022eef62
CY
52009-12-05 Chong Yidong <cyd@stupidchicken.com>
6
426ac949
CY
7 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
8 if push failed.
9 (handle_line_prefix): Set avoid_cursor_p here. Check return value
10 of push_display_prop (Bug#5000).
11
022eef62
CY
12 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
13 value of font_list_entities (Bug#5085).
14
be95bee9
JB
152009-12-04 Juanma Barranquero <lekktu@gmail.com>
16
17 Fix `string-to-number' to deal consistently with integers and floats.
18 * lread.c (isfloat_string): New argument ignore_trailing to accept all
19 trailing characters, not just whitespace.
20 (read1): Pass new arg 0 to keep old behavior.
21 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
22 trailing chars, as it is already done for integers. Doc fixes.
23 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
24
24c2d7ce
EZ
252009-12-04 Eli Zaretskii <eliz@gnu.org>
26
27 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
28 unused enumeration value.
29
7e694795
EZ
302009-12-03 Eli Zaretskii <eliz@gnu.org>
31
32 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
33
84b31826
SM
342009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
35
36 * process.c (Fmake_network_process): Fix up the tests for
37 "connectionless socket", so they DTRT for seqpacket sockets as well.
38
f00c449b
SM
392009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
40
41 * process.c (Qseqpacket): New symbol.
42 (HAVE_SEQPACKET): New macro.
43 (Fmake_network_process): Accept new :type `seqpacket'.
44 (init_process): Add `seqpacket' feature when applicable.
45 (syms_of_process): Initialize Qseqpacket.
46
8096a0ff
YM
472009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
48
49 * font.c (font_load_for_lface, font_open_by_name): Don't store name
50 if entity is Qnil.
51
3e0de07f
SM
522009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
53
54 * print.c (print_preprocess): Preprocess the key_and_value table of
55 hashtables, even tho they're "hidden" (bug#5082).
56
abeafb2a
JD
572009-11-29 Jan Djärv <jan.h.d@swipnet.se>
58
59 * frame.c (frame_make_pointer_invisible)
60 (frame_make_pointer_visible): Declare f before statements.
61
4bf47195
EZ
622009-11-28 Eli Zaretskii <eliz@gnu.org>
63
64 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
65 omitted dependencies on lisp.h.
66
c525b3f2
JD
672009-11-27 Jan Djärv <jan.h.d@swipnet.se>
68
ece2d4ed
JD
69 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
70 is NULL.
71
72 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
73
74 * frame.c (frame_make_pointer_invisible)
3e0de07f 75 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
76 frame.
77
c525b3f2
JD
78 * search.c (simple_search): Remove warning by making *p const.
79
2f00e299
DN
802009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
81
82 * xdisp.c (power_letter): Remove duplicate const.
83
084b049b
JD
842009-11-25 Jan Djärv <jan.h.d@swipnet.se>
85
a1fadc6f
JD
86 * term.c (delete_tty): Remove check for last terminal (bug#4970).
87
084b049b
JD
88 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
89 defaults (bug #5025).
90
28259cac
SM
912009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
92
93 * insdel.c (adjust_markers_for_delete): Move it in the
94 right direction! (bug#4803)
95
e8e14166
YM
962009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
97
98 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
99
100 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
101
86677b58
GM
1022009-11-24 Glenn Morris <rgm@gnu.org>
103
104 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
105
581e51e8
JD
1062009-11-23 Jan Djärv <jan.h.d@swipnet.se>
107
cfc86c7a
JD
108 * Makefile.in: Must create deps for ecrt0.o in its rule.
109
581e51e8
JD
110 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
111 because that is what Gtk+ font dialog understands.
112
113 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
114 of Fcopy_sequence.
115 (font_open_by_name): Put name given into QCname for font-object returned.
116
117 * frame.c (x_set_font): Save original font name as frame parameter
118 font-parameter.
119
120 * xsettings.c (set_default_xft_settings): New function.
121 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
122 is found.
123
8b264ecb
AS
1242009-11-22 Andreas Schwab <schwab@linux-m68k.org>
125
126 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
127 searching backwards through multibyte buffer.
128
872870b2
JD
1292009-11-21 Jan Djärv <jan.h.d@swipnet.se>
130
131 * xterm.c: #include xgselect.h.
132 (x_initialize): Call xgselect_initialize.
133
134 * xsettings.c (something_changedCB): C++ comments => C comments.
135 (init_gconf): Do not deal with any GLib file descriptors, xg_select
136 does that now.
137
138 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
139 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
140 (scroll_bar_button_cb): Remove.
141 (create_menus): C++ comments => C comments. Don't bind grab-notify
142 event.
143 (xg_create_scroll_bar): Don't bind button-press-event and
144 button-release-event.
145
146 * process.c: Include xgselect.h if defined (USE_GTK) ||
147 defined (HAVE_GCONF).
148 (wait_reading_process_output): Call xg_select for the same condition.
149
150 * xgselect.c (xg_select): New function to better integrate with
151 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
152
153 * xgselect.h: New file, declare xg_select, xgselect_initialize.
154
155 * Makefile.in (XOBJ): Add xgselect.o.
156
62a6e103
AS
1572009-11-21 Andreas Schwab <schwab@linux-m68k.org>
158
159 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
160 ignored second argument. All callers changed.
161 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
162 (RE_STRING_CHAR_AND_LENGTH): Likewise.
163 * xdisp.c (string_char_and_length): Likewise.
164
b0ca0f33
DN
1652009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
166
167 * xterm.c (x_new_font):
168 * print.c (print_object):
169 * cmds.c (Fself_insert_command): Move declarations before statements.
170
dd5a6279
CY
1712009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
172
173 * s/cygwin.h: Remove unneeded linker flags.
174
4a8e097d
JD
1752009-11-20 Jan Djärv <jan.h.d@swipnet.se>
176
0d1d0d26
JD
177 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
178
179 * xsettings.h: Declare xsettings_get_system_font.
180
181 * xsettings.c (xsettings_get_system_font): New function.
182 (init_gconf): No use initiating gconf unless we have Xft also.
183 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
184 HAVE_GCONF.
185
4a8e097d
JD
186 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
187 add a blank entry so it doesn't collapse into nothing.
188
8ab1650e
SM
1892009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
190
191 * lread.c (Funintern): Comment out last change.
192
82c602f0
RS
1932009-11-19 Richard Stallman <rms@gnu.org>
194
195 * lread.c (Funintern): Error if symbol is t or nil.
196
87e32266
SM
1972009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
198
199 * insdel.c (make_gap_larger): Don't make as many assumptions about the
200 representation of Lisp integers.
201 Reported by MJ Chan <mjchan.inbox@gmail.com>.
202
1b9ac145
AS
2032009-11-17 Andreas Schwab <schwab@linux-m68k.org>
204
205 * lisp.h: Remove declaration of Ffont_get_system_font.
206 * xfns.c: Move include of "xsettings.h".
207 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
208
dfb3c4c6
JD
2092009-11-17 Jan Djärv <jan.h.d@swipnet.se>
210
87e32266
SM
211 * xsettings.c (something_changedCB, Ffont_get_system_font):
212 Check use_system_font.
dfb3c4c6
JD
213 (syms_of_xsettings): DEFVAR font-use-system-font.
214
9370c1d8
AS
2152009-11-17 Andreas Schwab <schwab@linux-m68k.org>
216
25fe851a
AS
217 * xfns.c (x_default_font_parameter): Remove dead assignment.
218
9370c1d8
AS
219 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
220
637fa988
JD
2212009-11-17 Jan Djärv <jan.h.d@swipnet.se>
222
87e32266 223 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 224 not have FC_LCD_*. #define them if not there.
a6eb20d8 225
87e32266 226 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 227
637fa988
JD
228 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
229
230 * xterm.c (handle_one_xevent): Call xft_settings_event for
231 ClientMessage, PropertyNotify and DestroyNotify.
232 (x_term_init): If we have XFT, get DPI from Xft.dpi.
233 Call xsettings_initialize.
234
235 * xftfont.c (xftfont_fix_match): New function.
236 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
237 Call xftfont_fix_match after XftFontMatch.
238
239 * xfont.c (xfont_driver): Initialize all members.
240
87e32266
SM
241 * xfns.c (x_default_font_parameter):
242 Try font from Ffont_get_system_font.
637fa988
JD
243 Do not get font from x_default_parameter if we got one from
244 Ffont_get_system_font.
87e32266 245 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
246
247 * w32font.c (w32font_driver): Initialize all members.
248
249 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
250
251 * lisp.h: Declare syms_of_xsettings.
252
87e32266
SM
253 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
254 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
255
256 * ftfont.c (ftfont_filter_properties): New function.
257
258 * frame.c (x_set_font): Remove unused variable lval.
259
87e32266 260 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
261
262 * font.c (font_put_extra): Don't return if val is nil, it means
263 boolean option is off.
264 (font_parse_fcname): Collect all extra properties in extra_props
265 and call filter_properties for all drivers with extra_props and
266 font as parameter.
87e32266
SM
267 (font_open_entity): Do not use cache, it does not pick up new
268 fontconfig settings like hinting.
637fa988
JD
269 (font_load_for_lface): If spec had a name in it, store it in entity.
270
271 * emacs.c (main): Call syms_of_xsettings
272
273 * config.in: HAVE_GCONF is new.
274
275 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
276 xsettings.o is new.
277
5a942932
KH
2782009-11-17 Kenichi Handa <handa@m17n.org>
279
280 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
281 back to the default font in case that no suitable font is found.
282
b7c7a4d1
SM
2832009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
284
285 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
286 Suggested by Chad Brown <yandros@mit.edu>.
287 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
288
072f1e39
JD
2892009-11-16 Jan Djärv <jan.h.d@swipnet.se>
290
291 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
292
5d1e70a2
AS
2932009-11-14 Andreas Schwab <schwab@linux-m68k.org>
294
87e32266 295 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 296
a53cfbe5
JD
2972009-11-14 Jan Djärv <jan.h.d@swipnet.se>
298
473a99b7
JD
299 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
300 has a parent.
301
a53cfbe5
JD
302 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
303 dependency files in deps/. Include those files into Makefile.
304
305 * config.in: Generated (AUTO_DEPEND).
306
f04bb9b2
MA
3072009-11-13 Michael Albinus <michael.albinus@gmx.de>
308
b7c7a4d1 309 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
310 Vdbus_registered_functions_table, because it contains also
311 properties. Fix docstring.
b7c7a4d1 312 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 313
8f11f7ec
SM
3142009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
315
316 * alloc.c (mark_object): Don't reprocess marked strings.
317 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
318 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
319
8a605fe8
KH
3202009-11-13 Kenichi Handa <handa@m17n.org>
321
8f11f7ec 322 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
323 semantics of Vword_combining_categories.
324 (Vword_combining_categories): Describe the slight change of the
325 semantics.
326
241c4680
EZ
3272009-11-13 Eli Zaretskii <eliz@gnu.org>
328
329 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
330
331 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
332
5d58e44c
SM
3332009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
334
335 * xdisp.c (syms_of_xdisp): Fix typo in last change.
336
5e13f9d3
JB
3372009-11-12 Juanma Barranquero <lekktu@gmail.com>
338
339 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
340
cf54c754
DR
3412009-11-11 David Reitter <david.reitter@gmail.com>
342
343 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
344 variables to fix 2009-11-09 change.
345
a4ada374
DN
3462009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
347
91433552
DN
348 * process.c (ifflag_def): Make flag_sym constant.
349 (Fnetwork_interface_info): Use a constant pointer.
350 (ifflag_table):
351 * xfns.c (cursor_bits):
352 * xdisp.c (power_letter):
353 * termcap.c (speeds, esctab):
354 * sysdep.c (baud_convert):
355 * keyboard.c (lispy_accent_codes, modifier_names):
356 * image.c (xbm_format, xpm_format, pbm_format, png_format)
357 (jpeg_format, tiff_format, gif_format, svg_format)
358 (interlace_start, interlace_increment, gs_format):
359 * gtkutil.c (separator_names):
360 * fringe.c (swap_nibble):
361 * fns.c (base64_value_to_char, base64_char_to_value):
362 * fileio.c (make_temp_name_tbl):
363 * coding.c (suffixes): Make constant.
364
f4265f6c
DN
365 * frame.c (make_initial_frame):
366 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
367 build_string.
368 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
369
04420943
DN
370 * s/freebsd.h:
371 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
372
0a5d24ae
DN
373 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
374 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
375
a4ada374
DN
376 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
377 * xterm.c (syms_of_xterm):
378 * xfaces.c (syms_of_xfaces):
379 * xdisp.c (syms_of_xdisp):
380 * lread.c (syms_of_lread):
381 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
382 build_string.
91433552 383
a4ada374
DN
384 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
385
af98fc7f
SM
3862009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
387
8ab1650e 388 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 389
e90292a9
JD
3902009-11-10 Jan Djärv <jan.h.d@swipnet.se>
391
392 * keyboard.h: Declare timer_check.
393
394 * keyboard.c (timer_check_2): New function that does what the old
395 timer_check did.
396 (timer_check): Call timer_check_2 until -1 or a non-zero time is
397 returned, i.e. don't return -1 with timers pending.
398
399 * process.c: Remove extern declaration of timer_check.
400
401 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
402 even if timer_check returned -1.
403
af98fc7f
SM
404 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
405 xg_dialog_data.
e90292a9
JD
406 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
407 the event loop.
408 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
409 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
410 Destroy the dialog after xg_dialog_run.
411
045b83c0
SM
4122009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
413
414 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
415
1fb99a3a
JD
4162009-11-10 Jan Djärv <jan.h.d@swipnet.se>
417
418 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
419
04e452cb
JB
4202009-11-09 Juanma Barranquero <lekktu@gmail.com>
421
422 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
423
ef7417fd
SM
4242009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
425
426 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
427 w32menu.c, and nsmenu.m.
428 Simplify the obsolete case where position is nil.
429 (cleanup_popup_menu): New function, moved from nsmenu.m.
430 (struct skp): Remove slot `notreal'.
431 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
432 adjust callers.
433 (single_menu_item): Adjust call to parse_menu_item.
434 (syms_of_menu): Defsubr x-popup-menu.
435 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
436 (keymap_panes): Don't export any more.
437 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
438 (xmenu_show): Declare.
439 * keyboard.c (parse_menu_item): Remove arg `notreal'.
440 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
441 * keyboard.h (parse_menu_item): Update declaration.
442 * xmenu.c (Fx_popup_menu): Remove.
443 (syms_of_xmenu): Don't defsubr x-popup-menu.
444 * w32menu.c (Fx_popup_menu): Remove.
445 (syms_of_w32menu): Don't defsubr x-popup-menu.
446 * nsmenu.m (cleanup_popup_menu): Remove.
447 (ns_menu_show): Rename from ns_popup_menu and remove all the code
448 moved to menu.c's Fx_popup_menu.
449 (Fx_popup_menu): Remove.
450 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
451 menu_items (it's done in menu.c already).
452
424d6179
SM
4532009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
454
455 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
456 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
457
c0df13a6 4582009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
459
460 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 461 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
462 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
463 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
464
2de9f71c
SM
4652009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
466
467 Let integers use up 2 tags to give them one extra bit and thus double
468 their range.
469 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
470 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
471 New macros.
472 (enum Lisp_Type): Use them. Give explicit values.
473 (Lisp_Type_Limit): Remove.
474 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
475 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
476 Pay attention to USE_2_TAGS_FOR_INTS.
477 (INTEGERP): Use LISP_INT_TAG_P.
478 * fns.c (internal_equal): Simplify the default case.
479 (sxhash): Use case_Lisp_Int.
480 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
481 any more.
482 (Ftype_of): Use case_Lisp_Int.
483 (store_symval_forwarding): Take into account the fact that Ints can
484 now have more than one tag.
485 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
486 buffer_slot_type_mismatch):
487 * xfaces.c (face_attr_equal_p):
488 * print.c (print_object):
489 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
490 Use case_Lisp_Int.
491
323637a2
EZ
4922009-11-06 Eli Zaretskii <eliz@gnu.org>
493
7ac65b38
EZ
494 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
495
323637a2
EZ
496 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
497 warning.
498
e511451f
JD
4992009-11-06 Jan Djärv <jan.h.d@swipnet.se>
500
501 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
502
503 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
504
505 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
506 ButtonPressRelease and MotionNotify (bug#4870).
507
5e2327cf
DN
5082009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
509
5adc433e
DN
510 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
511
d67b4f80
DN
512 * xterm.c (syms_of_xterm):
513 * xselect.c (syms_of_xselect):
514 * xmenu.c (syms_of_xmenu):
515 * xfns.c (syms_of_xfns):
516 * xfaces.c (syms_of_xfaces):
517 * xdisp.c (syms_of_xdisp):
518 * window.c (syms_of_window):
519 * w32fns.c (syms_of_w32fns):
520 * undo.c (syms_of_undo):
521 * textprop.c (syms_of_textprop):
522 * terminal.c (syms_of_terminal):
523 * syntax.c (syms_of_syntax):
524 * sound.c (syms_of_sound):
525 * search.c (syms_of_search):
526 * print.c (syms_of_print):
527 * minibuf.c (syms_of_minibuf):
528 * macros.c (syms_of_macros):
529 * keymap.c (syms_of_keymap, initial_define_key)
530 (initial_define_lispy_key):
531 * keyboard.c (syms_of_keyboard):
532 * insdel.c (syms_of_insdel):
533 * image.c (syms_of_image):
534 * fringe.c (syms_of_fringe):
535 * frame.c (syms_of_frame):
536 * fontset.c (syms_of_fontset):
537 * fns.c (syms_of_fns):
538 * fns.c (syms_of_fns):
539 * fileio.c (syms_of_fileio):
540 * fileio.c (syms_of_fileio):
541 * eval.c (syms_of_eval):
542 * doc.c (syms_of_doc):
543 * dispnew.c (syms_of_display):
544 * dired.c (syms_of_dired):
545 * dbusbind.c (syms_of_dbusbind):
546 * data.c (syms_of_data):
547 * composite.c (syms_of_composite):
548 * coding.c (syms_of_coding):
549 * cmds.c (syms_of_cmds):
550 * charset.c (define_charset_internal, syms_of_character):
551 * ccl.c (syms_of_ccl):
552 * category.c (syms_of_category, init_category_once):
553 * casetab.c (syms_of_casetab):
554 * casefiddle.c (syms_of_casefiddle):
555 * callint.c (syms_of_callint):
556 * bytecode.c (syms_of_bytecode):
557 * buffer.c (keys_of_buffer, syms_of_buffer):
558 * alloc.c (syms_of_alloc):
559 * process.c (syms_of_process, init_process):
560 * lread.c (syms_of_lread, init_obarray):
561 * font.c (build_style_table):
562 * emacs.c (syms_of_emacs, main): Replace calls to intern with
563 intern_c_string, calls to make_pure_string with
564 make_pure_c_string. Use pure_cons instead of Fcons.
565
5e2327cf
DN
566 * process.c (socket_options): Make it const.
567 (set_socket_option, init_process): Use a const pointer.
568
569 * lread.c (intern_c_string): New function.
570 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
571 (defvar_int): Uset it. Make the name const char*.
572
573 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
574 (defvar_int): Update prototypes.
575 (DEFUN, EXFUN): Support for prototypes is now required.
576 (intern_c_string): New prototype.
577 (struct Lisp_Subr): Make symbol_name constant.
578
579 * font.c (struct table_entry): Remove unused member. Make NAMES
580 constant.
581 (weight_table, slant_table, width_table): Make constant.
582
583 * emacs.c (struct standard_args): Make name and longname constant.
584
585 * character.h (DEFSYM): Use intern_c_string.
586
a56eaaef
DN
5872009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
588
589 * alloc.c (make_pure_c_string): New function.
590
591 * eval.c (Fautoload): Purecopy all arguments.
592
f6a07420
KH
5932009-11-05 Kenichi Handa <handa@m17n.org>
594
595 * fileio.c (Finsert_file_contents): Be sure set coding-system of
596 the buffer in case of replace.
597
5d28d4b1
DN
5982009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
599
600 * puresize.h (BASE_PURESIZE): Increase to 1620000.
601
b349d111
SM
6022009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
603
d528b1ce
SM
604 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
605 when applicable (bug#4851).
606
b349d111
SM
607 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
608 (P_): Support for prototypes is now required.
609
c38eb027
CY
6102009-10-31 Chong Yidong <cyd@stupidchicken.com>
611
612 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
613 (Bug#4827).
614
0405f8d9
EZ
6152009-10-30 Eli Zaretskii <eliz@gnu.org>
616
d528b1ce 617 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 618
ca0a881a
DN
6192009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
620
621 * puresize.h (BASE_PURESIZE): Increase to 1470000.
622
d528b1ce
SM
623 * lread.c (Fload): Purecopy the file name when building
624 Vpreloaded_file_list.
ca0a881a 625
47e0e0e4
JR
6262009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
627
628 * w32fns.c (syms_of_w32fns): Change default value of
629 w32-scroll-lock-modifier to nil. (Bug#2827)
630
057bce6f
JB
6312009-10-26 Juanma Barranquero <lekktu@gmail.com>
632
782a943e 633 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 634
242bc74c
AS
6352009-10-26 Andreas Schwab <schwab@redhat.com>
636
637 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
638
522d013a
JB
6392009-10-26 Juanma Barranquero <lekktu@gmail.com>
640
641 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
642 For delta < 0, skip check that only makes sense when the mini-window
643 is going to be enlarged. (Bug#4534)
644
18060980
CY
6452009-10-25 Chong Yidong <cyd@stupidchicken.com>
646
647 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
648 string in menu maps (Bug#4471).
649
fec8f0fe
CY
6502009-10-24 Chong Yidong <cyd@stupidchicken.com>
651
652 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
653 FRAME_NS_VIEW on terminal frames (Bug#4765).
654
10d66ec0
AS
6552009-10-24 Andreas Schwab <schwab@linux-m68k.org>
656
1cae01f7
AS
657 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
658 DBUS_TYPE_UINTnn separately to get proper sign extension.
659
58a12889
AS
660 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
661 can properly handle unsigned types.
d528b1ce 662 (make_uid, make_gid): Remove.
58a12889 663
987c9327
AS
664 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
665 types again.
666
522d013a 667 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
668 (system_process_attributes): Likewise.
669
905a9ed3
DN
6702009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
671
672 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
673
674 * eval.c (Fautoload): Purecopy the filename. Simplify.
675
676 * category.c (Fdefine_category): Purecopy docstring.
677
a599b3e8
AS
6782009-10-23 Andreas Schwab <schwab@linux-m68k.org>
679
7b792fc9
AS
680 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
681
a599b3e8
AS
682 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
683
b35ac83e
CY
6842009-10-23 Chong Yidong <cyd@stupidchicken.com>
685
686 * window.c (Fwindow_edges, Fwindow_pixel_edges)
687 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
688 (Bug#4775).
689
e8903e00
SM
6902009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
691
692 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
693 (init_fileio_once):
694 * lisp.h (init_fileio_once): Remove.
695 * emacs.c (main): Don't call init_fileio_once.
696
8f43cbf3
DN
6972009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
698
699 * puresize.h (BASE_PURESIZE): Increase to 1430000.
700
26898943
AS
7012009-10-21 Andreas Schwab <schwab@linux-m68k.org>
702
703 * doprnt.c (doprnt): Fix overflow check.
704
5c646d5a
JD
7052009-10-21 Jan Djärv <jan.h.d@swipnet.se>
706
3132a7ea
JD
707 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
708
5c646d5a
JD
709 * xterm.h (x_wait_for_event): Declare it.
710
711 * xterm.c (pending_event_wait): New variable.
712 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
713 see pending_event_wait.eventtype.
714 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
715 (x_new_font): Call change_frame_size with new rows/columns before we
716 try to resize the frame.
5c646d5a 717 (x_wait_for_event): New function.
d528b1ce
SM
718 (x_set_window_size_1): Don't change gravity unless change_gravity
719 is set.
5c646d5a
JD
720 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
721 don't change frame size, instead wait for the ConfigureNotify.
722 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
723 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
724 (x_initialize): Initialize pending_event_wait.
725
726 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
727 size.
728
729 * widget.c (EmacsFrameSetValues): Add comment.
730 (EmacsFrameSetCharSize): Just call x_set_window_size.
731
732 * gtkutil.c (xg_frame_set_char_size): Flush events and call
733 x_wait_for_event.
d528b1ce 734 (flush_and_sync): Remove again.
5c646d5a
JD
735 (xg_get_font_name): Suggest monospace if no previous font is known.
736
e9c1637d
SM
7372009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
738
739 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 740 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 741
5a72cccb
YM
7422009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
743
744 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
745 processing pending events when event is filtered for input method.
ab04798f 746 (Bug#3681)
5a72cccb 747
2629aa37
JB
7482009-10-20 Juanma Barranquero <lekktu@gmail.com>
749
750 * fns.c: Add #endif accidentally removed in previous change.
751
c3417a74
DN
7522009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
753
754 * fns.c: Remove code for unsupported system: MAC_OS.
755 * image.c: Likewise. Include setjmp.h.
756
9685cef2
JD
7572009-10-19 Jan Djärv <jan.h.d@swipnet.se>
758
759 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
760 pixel -1 (bug #4742).
761
d7306fe6
DN
7622009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
763
019d2c4c
DN
764 * process.c (create_pty): Remove conditionals for no longer
765 supported systems: UNIPLUS and RTU.
766
ee6bacd4
DN
767 * xterm.c:
768 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
769
d7306fe6
DN
770 * alloc.c: Do not define struct catchtag.
771 * eval.c: Move struct catchtag definition ...
772 * lisp.h: ... here.
773
774 * image.c: Move png.h #include earlier to avoid warnings.
775
776 * xterm.c:
777 * xsmfns.c:
778 * xselect.c:
779 * xrdb.c:
780 * xmenu.c:
781 * xftfont.c:
782 * xfont.c:
783 * xfns.c:
784 * xfaces.c:
785 * xdisp.c:
786 * window.c:
787 * widget.c:
788 * w32xfns.c:
789 * w32uniscribe.c:
790 * w32term.c:
791 * w32select.c:
792 * w32reg.c:
793 * w32proc.c:
794 * w32menu.c:
795 * w32inevt.c:
796 * w32heap.c:
797 * w32font.c:
798 * w32fns.c:
799 * w32console.c:
800 * w32.c:
801 * w16select.c:
802 * vm-limit.c:
803 * unexsol.c:
804 * unexec.c:
805 * unexcw.c:
806 * unexaix.c:
807 * undo.c:
808 * tparam.c:
809 * textprop.c:
810 * terminfo.c:
811 * terminal.c:
812 * termcap.c:
813 * term.c:
814 * syntax.c:
815 * sound.c:
816 * sheap.c:
817 * search.c:
818 * scroll.c:
819 * region-cache.c:
820 * regex.c:
821 * ralloc.c:
822 * process.c:
823 * print.c:
b024548b
DN
824 * nsterm.m:
825 * nsselect.m:
826 * nsmenu.m:
827 * nsimage.m:
828 * nsfont.m:
829 * nsfns.m:
d7306fe6
DN
830 * msdos.c:
831 * minibuf.c:
832 * menu.c:
833 * marker.c:
834 * macros.c:
835 * keymap.c:
836 * keyboard.c:
837 * intervals.c:
838 * insdel.c:
839 * indent.c:
840 * gtkutil.c:
841 * ftxfont.c:
842 * ftfont.c:
843 * fringe.c:
844 * frame.c:
845 * fontset.c:
846 * font.c:
847 * fns.c:
848 * floatfns.c:
849 * filelock.c:
850 * fileio.c:
851 * emacs.c:
852 * editfns.c:
853 * dosfns.c:
854 * doprnt.c:
855 * doc.c:
856 * dispnew.c:
857 * dired.c:
858 * dbusbind.c:
859 * data.c:
860 * composite.c:
861 * coding.c:
862 * cmds.c:
863 * cm.c:
864 * chartab.c:
865 * charset.c:
866 * character.c:
867 * ccl.c:
868 * category.c:
869 * casetab.c:
870 * casefiddle.c:
871 * callproc.c:
872 * callint.c:
873 * bytecode.c:
874 * buffer.c:
875 * atimer.c: Include setjmp.h. (Bug#4643)
876
fd5f21e6
SM
8772009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
878
4c0354d7
SM
879 Remove leftover table unibyte_to_multibyte_table.
880 * character.c (unibyte_to_multibyte_table): Remove.
881 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
882 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
883 * character.h (UNIBYTE_TO_CHAR): New macro.
884 (MAKE_CHAR_MULTIBYTE): Use it.
885 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
886 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
887 (message_dolog, set_message_1):
888 * search.c (Freplace_match):
889 * editfns.c (Fcompare_buffer_substrings):
890 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
891 (concat):
892 * insdel.c (copy_text, count_size_as_multibyte):
893 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
894 * term.c (produce_glyphs):
895 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
896 * regex.c (RE_CHAR_TO_MULTIBYTE):
897 * cmds.c (internal_self_insert):
898 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
899
fd5f21e6
SM
900 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
901
4418646e
DN
9022009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
903
904 * puresize.h (BASE_PURESIZE): Increase to 1310000.
905
35f5c1d2
JB
9062009-10-16 Juanma Barranquero <lekktu@gmail.com>
907
908 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
909
a0cd8f6b
AR
9102009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
911
912 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
913 still needed under Tiger.
914
915 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
916
917 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
918 __Apple__.
919
920 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
921
01a8d3fa
KH
9222009-10-15 Kenichi Handa <handa@m17n.org>
923
924 * print.c (print_object): Escape a symbol like "2E10" too.
925
bf6c75c9 9262009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
927
928 Cleanups and changes for 64-bit compile under Snow Leopard.
929 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
930
931 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
932
c5959062 933 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
934 (ns_findfonts, nsfont_list_family): Use long format in printf, and
935 cast argument.
936 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 937 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
938
939 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
940
941 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
942 where appropriate.
943
944 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
945 where appropriate.
6e4780c5
JB
946 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
947 Use stringWithUTF8String.
bf6c75c9
AR
948 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
949
6e4780c5
JB
950 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
951 Add formal protocol mention to inheritance.
bf6c75c9
AR
952 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
953
6e4780c5
JB
954 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
955 Fix printf format.
bf6c75c9
AR
956 (ns_query_color): Use CGFloat where appropriate.
957 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
958 (EmacsScroller-mouseDown:) Use long format in printf, and cast
959 argument.
960
3d87f118
AR
961 * config.in (NS_HAVE_NSINTEGER): Drop.
962
a95c8102
AR
963 * dbusbind.c (dbus-method-return-internal)
964 (dbus-method-error-internal): Use long format in printf, and cast
965 argument.
966
967 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
968 in printf, and cast argument.
969
6873acca 970 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
971 cast argument.
972
9ec6f100
GM
9732009-10-11 Glenn Morris <rgm@gnu.org>
974
975 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
976
5be883cd
JD
9772009-10-08 Jan Djärv <jan.h.d@swipnet.se>
978
979 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
980 menu bar with a small width so it doesn't enlarge the frame.
981
d7a39b51
JB
9822009-10-08 Juanma Barranquero <lekktu@gmail.com>
983
984 * fontset.c (Fset_fontset_font): Fix typos in error messages.
985
0c2b6f8e
GM
9862009-10-06 Glenn Morris <rgm@gnu.org>
987
988 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
989 SOME_MACHINE_LISP (this enters indirectly via DOC).
990
e02131a2
EZ
9912009-10-05 Eli Zaretskii <eliz@gnu.org>
992
993 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
994
b4744254
EZ
9952009-10-04 Eli Zaretskii <eliz@gnu.org>
996
997 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
998 Doc fix.
999
dbf64827
JB
10002009-10-03 Martin Rudalics <rudalics@gmx.at>
1001
1002 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1003
e9a0aef8
MA
10042009-10-02 Michael Albinus <michael.albinus@gmx.de>
1005
d528b1ce 1006 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1007 used anymore outside fileio.c.
1008
1009 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1010
64eb2b56
JB
10112009-10-01 Juanma Barranquero <lekktu@gmail.com>
1012
1013 * lisp.h (Qdelete_directory_internal):
1014 Declare, instead of Qdelete_directory.
1015
1016 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1017
9d28c33e
SM
10182009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1019
1020 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1021
9d8f3bd9
MA
10222009-10-01 Michael Albinus <michael.albinus@gmx.de>
1023
9d28c33e 1024 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1025 Fdelete_directory. It is not a command anymore. It has no file
1026 name handler.
1027
9694740b
SM
10282009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1029
1030 * xdisp.c (get_next_display_element): Use an enum in last change.
1031
748e162f
KH
10322009-09-28 Kenichi Handa <handa@m17n.org>
1033
9694740b 1034 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1035 unibyte_display_via_language_environment in handling
1036 Vnobreak_char_display.
1037
17efd58d
AR
10382009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1039
1040 * nsterm.h (ns_app_name): New extern variable.
1041
1042 * nsterm.m (ns_app_name): New variable.
1043 (ns_term_init): Set and use it.
1044 (ns_term_shutdown): Use it.
1045
1046 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1047 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1048
1049 * nsfns.m (ns_set_name_iconic, ns_set_name)
1050 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1051 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1052
9694740b
SM
1053 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1054 Remove double-casting in client_data comparison.
31c2d412 1055
3208cb35
YM
10562009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1057
1058 * keyboard.c (make_lispy_event): Remember last wheel direction.
1059 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1060
b7d552d6
GM
10612009-09-26 Glenn Morris <rgm@gnu.org>
1062
1063 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1064 internal.elc. Add term/pc-win.elc.
1065 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1066 term/x-win.elc.
1067 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1068 term/w32-win.elc.
1069 (NS_SUPPORT): New.
1070 (lisp): Add NS_SUPPORT.
1071 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1072
4ff670a8
DR
10732009-09-25 David Reitter <david.reitter@gmail.com>
1074
1075 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1076 on Mac OS X 10.6+ (bug#4513).
1077
feabfb6c
JB
10782009-09-24 Juanma Barranquero <lekktu@gmail.com>
1079
1080 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1081 some parts of Emacs code (like font selection) don't grok them.
1082 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1083
de59072a
AS
10842009-09-24 Andreas Schwab <schwab@redhat.com>
1085
1086 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1087
a489517b
JB
10882009-09-24 Juanma Barranquero <lekktu@gmail.com>
1089
1090 * dired.c (Fdirectory_files): Fix typo in docstring.
1091
0592970c
AR
10922009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1093
1094 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1095 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1096 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1097 under GNUstep.
1098 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1099
1100 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1101 glyph advancement.
1102
48e8a88b
AR
11032009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1104
1105 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1106 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1107
1108 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1109 deleted (bug #4492).
1110
e14f0a78
AR
1111 * nsfont.m (Vns_reg_to_script): New lisp variable.
1112 (syms_of_nsfont): Declare it.
1113 (ns_registry_to_script): New function.
1114 (ns_get_req_script): Call it.
1115 (ns_findfonts): Don't give up on non-unicode registry.
1116
1117 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1118
5b650faa
SM
11192009-09-20 Tom Tromey <tromey@redhat.com>
1120
1121 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1122 batch mode (bug#4228).
1123
a489517b 11242009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1125
1126 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1127 carefully. (Bug #4339)
0bae4e09 1128
fcfe06f3
CY
11292009-09-18 Chong Yidong <cyd@stupidchicken.com>
1130
d798ba87 1131 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1132
31642728
AR
11332009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1134
1135 * emacs.c (inhibit_x_resources): Update doc string for NS.
1136 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1137 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1138
1139 * nsterm.h (ns_no_defaults): Remove.
1140
1141 * nsterm.m (ns_no_defaults): Remove.
1142 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1143 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1144 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1145 don't update the NSWindow itself.
1146 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1147 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1148
1149 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1150 ns_use_qd_smoothing.
1151
1152 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1153 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1154 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1155 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1156
8686ac71
JB
11572009-09-17 Juanma Barranquero <lekktu@gmail.com>
1158
1159 * emacs.c (inhibit_x_resources): New variable.
1160 (main) [HAVE_NS]: Don't process --quick command line option.
1161 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1162
1163 * lisp.h (inhibit_x_resources): Declare it extern.
1164
1165 * w32reg.c (x_get_string_resource):
1166 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1167
e227ba05
EZ
11682009-09-17 Eli Zaretskii <eliz@gnu.org>
1169
362654a6
JB
1170 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1171 Add lisp/term/internal.elc.
e227ba05 1172
742d40e8
SM
11732009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1174
1175 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1176 (bug#4461).
1177
005bd5a2
DN
11782009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1179
1180 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1181
1182 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1183 (OBJECTS_MACHINE): Remove, unused.
1184
f9af9719
SM
11852009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1186
1187 * frame.c (x_get_resource_string): Remove unused.
1188
0307c7d2
JD
11892009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1190
1191 * xterm.c (x_new_font): Call change_frame_size before calling
1192 x_set_window_size, in case frame size won't change.
1193
1194 * frame.c (x_set_font): Remove dead code.
1195
428b13d6
SM
11962009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1197
1198 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1199
5766c380
SM
12002009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1201
1202 * lread.c (Fload): Don't output a message after loading an obsolete
1203 package any more (done in Lisp now).
1204
2fd0161b
CY
12052009-09-12 Chong Yidong <cyd@stupidchicken.com>
1206
1207 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1208
bc5e75b6
SM
12092009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1210
1211 * keymap.c (Fwhere_is_internal): Use nconc2.
1212
c31c985e
AM
12132009-09-11 Alan Mackenzie <acm@muc.de>
1214
1215 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1216 batch mode.
1217
78012bd2
AS
12182009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1219
1220 * xdisp.c (display_mode_element): Detect cycles.
1221
9d889332
SM
12222009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1223
1224 * keymap.c (where_is_internal): Don't erroneously return nil right after
1225 filling the cache.
1226 (where_is_internal_1): Fix up typo.
1227
7ab5d780
GM
12282009-09-11 Glenn Morris <rgm@gnu.org>
1229
1230 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1231 share a common doc-string.
1232
5238a749
SM
12332009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1234
66d77eda
SM
1235 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1236 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1237
5238a749
SM
1238 * keymap.c (QCadvertised_binding): New constant.
1239 (syms_of_keymap): Initialize it.
1240 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1241 if applicable.
1242
19f48442
SM
12432009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1244
50d4ba39
SM
1245 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1246 (parse_menu_item): Streamline since bindings are recomputed all the
1247 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1248 more and don't support lmenu's menu-alias any more either.
1249
a88a5372
SM
1250 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1251 (where_is_internal): Strip it down to only traverse the keymaps.
1252 Move the cache handling from Fwhere_is_internal to here.
1253 (Fwhere_is_internal): Move the handling of remapping and the choice of
1254 the best binding from where_is_internal to here.
1255 Unify the cached/noncached paths, so remapping is also handled
1256 correctly when the cache is used, and so the cache can be used to
1257 speed up remap-handling when applicable.
1258 Give preference to non-remapped bindings.
1259 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1260 non-remapped bindings.
1261 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1262 command remapping.
1263
19f48442
SM
1264 * xdisp.c (display_mode_element): Move list length limit from 50 to
1265 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1266
599498c3 12672009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1268
1269 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1270
f9b7b5ac
SM
12712009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1272
a53af587
JB
1273 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1274 (Bug#4334)
1275
f9b7b5ac
SM
1276 * keymap.c (where_is_internal): Filter out shadowed remappings.
1277 Assume that where_is_internal returns unshadowed bindings to simplify
1278 the code and get rid of the gotos. Use ASIZE.
1279
04f4b72d
JD
12802009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1281
4da146f2
JD
1282 * xterm.c (x_focus_changed): If we get a focusout and pointer
1283 is invisible, make it visible.
1284
04f4b72d
JD
1285 * xterm.h: Remove condition for declaration of
1286 x_*_window_to_frame.
1287
7cef7ce3
SM
12882009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1289
1290 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1291 initial terminal as well.
1292
a54fa5b7
JD
12932009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1294
1295 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1296 x_menubar_window_to_frame.
a54fa5b7
JD
1297
1298 * xterm.c: Remove declarations also in xterm.h
1299 (XTmouse_position): Do not return valid positions
1300 for clicks in the menubar and the toolbar for Gtk+.
1301
1302 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1303 if the widget for the event has the same top level as a frame,
1304 return the frame.
1305 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1306 internal windows, bug #4122.
1307 (x_non_menubar_window_to_frame): Remove.
1308
5a021dd0
GM
13092009-09-02 Glenn Morris <rgm@gnu.org>
1310
1311 * buffer.c (default-major-mode): Move most of the doc from here...
1312 (major-mode): ... to here.
1313
548fe2f3
NR
13142009-08-30 Nick Roberts <nickrob@snap.net.nz>
1315
1316 * process.c (wait_reading_process_output): Keep the descriptor
1317 when pty is used by a non-child process, e.g., in I/O buffer of
1318 GDB this allows inferior to be restarted.
1319
e0840eef
EZ
13202009-08-29 Eli Zaretskii <eliz@gnu.org>
1321
1322 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1323 both branches into one.
1324
82e98df4
SM
13252009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1326
1327 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1328 (main): Use enable-multibyte-characters rather than
1329 default-enable-multibyte-characters. Output a warning message when
1330 running a unibyte session.
1331
890617cb
YM
13322009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1333
1334 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1335 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1336 (copy_data_segment): Also copy __program_vars section.
1337 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1338 (dump_it) [LC_DYLD_INFO]: Use it.
1339
1340 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1341
e7adeadc
EZ
13422009-08-28 Eli Zaretskii <eliz@gnu.org>
1343
1344 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1345 $(SRC)/buildobj.h.
1346 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1347 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1348 $(SRC)/buildobj.h.
1349 (clean): Add buildobj.h.
1350
3ed8bbdc
TZ
13512009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1352
1353 * print.c (print_object): Set escapeflag to 1 when printing
1354 hashtable keys and values.
1355
155a6764
SM
13562009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1357
1358 * lread.c (read_integer): Use doubles (and potentially return a float
1359 number) as we do in string-to-number.
1360 (read1): Use strtol to read integers, signal errors on strtol's
1361 overflow and use floats if strtol's output is too large for
1362 Elisp integers.
1363
877610de
EZ
13642009-08-27 Eli Zaretskii <eliz@gnu.org>
1365
1366 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1367 (make-buildobj-SH): Fix last change.
1368 (SRC): Move to before where it's first used.
1369
ef73e7be
KH
13702009-08-27 Kenichi Handa <handa@m17n.org>
1371
550c8289
KH
1372 * process.c (send_process): Use encode_coding_object instead of
1373 encode_coding_string to perform eol-conversion even if the string
1374 is unibyte.
1375
60afa08d
KH
1376 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1377 character.
1378
ef73e7be 1379 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1380 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1381
7b3a82d7
DN
13822009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1383
5654bf63
DN
1384 * callproc.c (Fcall_process): Remove always true #if.
1385
7b3a82d7
DN
1386 * lisp.h: Replace #if 0 code for checking with text pointing to
1387 the --enable-checking configure flag.
1388
1389 * emacs.c (main): Mention the --enable-profiling configure flag
1390 instead of using CFLAGS.
1391
878bde49
KR
13922009-08-26 Ken Raeburn <raeburn@raeburn.org>
1393
1394 * Makefile.in (buildobj.h): New target.
1395 (doc.o): Depend on it.
1396 (temacs${EXEEXT}): Don't generate buildobj.lst.
1397 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1398 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1399 ($(BLD)/doc.$(O)): Depend on it.
1400 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1401 provided by Eli Zaretskii.)
1402 ($(TEMACS)): Don't generate buildobj.lst.
1403 * doc.c: Include buildobj.h.
1404 (buildobj): New static variable.
1405 (Fsnarf_documentation): Use it, instead of opening and reading
1406 buildobj.lst.
1407
1574224c
MA
14082009-08-25 Michael Albinus <michael.albinus@gmx.de>
1409
1410 * dbusbind.c (Fdbus_call_method)
1411 (Fdbus_call_method_asynchronously): Use English numeric format for
1412 timeout values in doc string.
1413
d9da2f45
KH
14142009-08-25 Kenichi Handa <handa@m17n.org>
1415
ef73e7be
KH
1416 * alloc.c (mark_char_table): New function.
1417 (mark_object): Use mark_char_table for a char-table.
1418
d9da2f45
KH
1419 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1420 (CHAR_TABLE_REF): Use it.
1421
c8edcc01
KR
14222009-08-23 Ken Raeburn <raeburn@raeburn.org>
1423
1424 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1425 before invoking the newly build emacs to check for load-path
1426 shadowing.
1427
7763401b
GM
14282009-08-22 Glenn Morris <rgm@gnu.org>
1429
1430 * Makefile.in (bootstrap_exe): New variable.
1431 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1432 Use ${bootstrap_exe}.
1433
729eadda
EZ
14342009-08-22 Eli Zaretskii <eliz@gnu.org>
1435
1436 * coding.h (encode_coding_string): Don't encode unibyte strings.
1437 (Bug#4047)
1438
eb4c6ace
MA
14392009-08-22 Michael Albinus <michael.albinus@gmx.de>
1440
1441 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1442
1443 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1444 intended as hotfix only.
1445 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1446
36e34d1b
AR
14472009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1448
1449 * nsterm.m (ns_get_color): Update documentation properly for last
1450 change, and clean up loose ends in the code left by it. Fix
1451 longstanding bug with 16-bit hex parsing, and add support for
1452 yet another X11 format (rgb:r/g/b) for compatibility.
1453 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1454 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1455
f983eb8a
SM
14562009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1457
1458 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1459
3f56d3c6
MA
14602009-08-20 Michael Albinus <michael.albinus@gmx.de>
1461
1462 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1463 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1464 (xd_initialize, xd_pending_messages): Check, whether
1465 $DBUS_SESSION_BUS_ADDRESS is set.
1466
fb641d68
YM
14672009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1468
1469 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1470
1471 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1472
cf59a374
GM
14732009-08-20 Glenn Morris <rgm@gnu.org>
1474
1475 * emacs.c (system-type): Doc fix.
1476
1373f3be
SM
14772009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1478
1479 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1480 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1481
058ed861
MA
14822009-08-18 Michael Albinus <michael.albinus@gmx.de>
1483
1373f3be
SM
1484 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1485 New functions.
058ed861
MA
1486 (xd_initialize): Revert change from 2009-08-16.
1487
563a866e 14882009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1489
1490 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1491 font-group vector, return nil.
5fc05db0 1492
e42bdf01
CY
14932009-08-17 Chong Yidong <cyd@stupidchicken.com>
1494
1495 * process.c (status_notify): Don't perform redisplay.
1496 (Fdelete_process, list_processes_1, process_send_signal):
1497 Expliticly perform redisplay.
1498 (wait_reading_process_output): Always check process status, but
1499 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1500
4230ab74
KR
15012009-08-17 Ken Raeburn <raeburn@raeburn.org>
1502
1373f3be 1503 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1504 (XFLOAT_INIT): New macro for storing a float value.
1505 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1506 * fns.c (sxhash): Copy out the value of a float in order to
1507 examine its bytes.
1508 * dbusbind.c (xd_append_arg): Likewise.
1509
4230ab74
KR
1510 * emacs.c (main): Don't call syms_of_data twice.
1511
a0645cdd
MA
15122009-08-16 Michael Albinus <michael.albinus@gmx.de>
1513
1514 * dbusbind.c (xd_initialize): Add connection file descriptor to
1515 input_wait_mask, in order to let select() detect, whether a new
1516 message has been arrived.
ca4f31ea 1517 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1518
485db0ba
MA
15192009-08-15 Michael Albinus <michael.albinus@gmx.de>
1520
1373f3be
SM
1521 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1522 New functions.
485db0ba
MA
1523
1524 * lisp.h (xd_pending_messages): Declare.
1525
1526 * keyboard.c (readable_events): Call xd_pending_messages.
1527
b5b98ff4
CY
15282009-08-15 Chong Yidong <cyd@stupidchicken.com>
1529
1373f3be 1530 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1531
f8354c6e
CY
1532 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1533
b5b98ff4
CY
1534 * buffer.c (set_buffer_internal_1)
1535 (swap_out_buffer_local_variables): Check for unbound local
1536 variables (Bug#4138).
1537
8b9fc636
EZ
15382009-08-14 Eli Zaretskii <eliz@gnu.org>
1539
1540 * process.c (create_pty): Fix last change.
1541
ce959360
CY
15422009-08-13 Chong Yidong <cyd@stupidchicken.com>
1543
1544 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1545 (xbm_load_image): Caller changed.
64b807c9 1546 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1547
c7baf7e9
NR
15482009-08-13 Nick Roberts <nickrob@snap.net.nz>
1549
1550 * process.c (create_pty): New function.
1551 (Fstart_process): Use it to allow Emacs to just associate a pty
1552 with the buffer. See associated change in gdb-mi.el.
1553 (list_processes_1): Deal with no program name.
1554 (start_process_unwind): Use pid == -2 to mean no process.
1555
1ac9108a
SM
15562009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1557
1558 * cmds.c (nonundocount): New global variable.
1559 (keys_of_cmds): Initialize it.
1560 (Fself_insert_command): Use it to combine upto 20 sequential chars
1561 into a single undo entry, just like the Qself_insert_command code in
1562 keyboard.c does.
1563 Call frame_make_pointer_invisible, also like the Qself_insert_command
1564 code in keyboard.c does.
1565 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1566 than its own local replacement for it.
1567
e267324c
KR
15682009-08-10 Ken Raeburn <raeburn@raeburn.org>
1569
1ac9108a 1570 * fns.c (concat): Don't re-set string length to its current value.
77437343 1571
1ac9108a
SM
1572 * coding.h (decode_coding_string, encode_coding_string):
1573 Use SBYTES macro.
f0bed503 1574
1ac9108a 1575 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1576 (doprnt): Merge with doprnt1, discarding lispstrings code.
1577 * lisp.h (doprnt_lisp): Don't declare.
1578
416e006d
JL
15792009-08-07 Juri Linkov <juri@jurta.org>
1580
1581 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1582
6f7d5780
DN
15832009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1584
1585 * print.c (syms_of_print): Undo previous change.
1586
f19a0f5b
TZ
15872009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1588
1589 * lread.c (read1, syms_of_lread): Read hashtables back from the
1590 readable format.
1591
1592 * print.c (print_preprocess, print_object): Print hashtables fully
1593 and readably.
1594 (syms_of_print): Provide 'hashtable-print-readable.
1595
b9173dc2
AR
15962009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1597
1598 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1599 no family set.
1600 (nsfont_open): Handle case when entity has no family.
1601
1586503c
AR
16022009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1603
1604 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1605 element, not a list, for match case.
1606
087048cd
KH
16072009-07-28 Kenichi Handa <handa@m17n.org>
1608
1609 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1610 rigidly.
1611
1612 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1613 font_parse_xlfd. Check font properties more rigidly.
1614
780c2506
DN
16152009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1616
31fd7c5c
JB
1617 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1618 bsd-common.h.
780c2506 1619
a8c0cc18
KH
16202009-07-27 Kenichi Handa <handa@m17n.org>
1621
1622 * xfaces.c (face_with_height): Call font_clear_prop.
1623
4fbe2306
CY
16242009-07-26 Chong Yidong <cyd@stupidchicken.com>
1625
111d9af3
CY
1626 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1627
1628 * xterm.c (x_term_init): Use Qx.
1629
4fbe2306
CY
1630 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1631
1ac9108a 1632 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1633 (ns_get_color): Revert 2009-07-16 change.
1634
beb0b7f9
EZ
16352009-07-25 Eli Zaretskii <eliz@gnu.org>
1636
1637 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1638 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1639
2baf5e76
KR
16402009-07-25 Ken Raeburn <raeburn@raeburn.org>
1641
1ac9108a
SM
1642 * coding.h (decode_coding_string, encode_coding_string):
1643 Use SCHARS macro.
8890e5f5 1644
2baf5e76 1645 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1646 (load_depth): Delete.
2baf5e76
KR
1647 (Qload_in_progress): New variable.
1648 (load_unwind): Don't reference load_depth or load_in_progress.
1649 (Fload): Likewise; specbind Qload_in_progress instead.
1650 (init_lread): Don't initialize load_depth.
1651 (syms_of_lread): Initialize and protect Qload_in_progress.
1652
1395c6f5
AR
16532009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1654
1655 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1656
4e2f36cf
AR
16572009-07-23 Yavor Doganov <yavor@gnu.org>
1658
1659 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1660
5dd9a6f7
AR
16612009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1662
1663 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1664 Bugs 3792, 3720, 2402.
1665 (ns_lookup_indexed_color): Check for bad index.
1666 (ns_index_color): Init unused slot to 0.
1667 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1668 Bug 3714, possibly 3082.
5dd9a6f7 1669
c902b920
JR
16702009-07-22 Jason Rumney <jasonr@gnu.org>
1671
1ac9108a
SM
1672 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1673 Position IME window at cursor (Bug#2570).
c902b920
JR
1674 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1675 (globals_of_w32fns): Dynamically load functions required above.
1676
1677 * w32term.c (w32_draw_window_cursor): Send message to reposition
1678 any IME window.
1679
090101cf
CY
16802009-07-21 Chong Yidong <cyd@stupidchicken.com>
1681
1682 * fileio.c: Revert 2009-07-16 changes.
1683 (Vauto_save_include_big_deletions): New variable.
1684 (Fdo_auto_save): Disable auto-save only if
1685 auto-save-include-big-deletions is nil.
1686
e6583e3d
CY
16872009-07-21 Chong Yidong <cyd@stupidchicken.com>
1688
1689 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1690 the overflowed pixels into account (Bug#3879).
1691
ece435a5
KR
16922009-07-21 Ken Raeburn <raeburn@raeburn.org>
1693
1694 * lread.c (load_depth): New variable.
1695 (Fload, load_unwind, init_lread): Set it to the load recursion
1696 depth; set load_in_progress as a simple boolean based on the
1697 current load_depth. (Bug#3892)
1698
40b2d973
AR
16992009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1700
1701 * nsfont.m (ns_has_attribute): Remove.
1702 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1703
10be7e0d
JL
17042009-07-18 Juri Linkov <juri@jurta.org>
1705
1706 * process.c (Fset_process_query_on_exit_flag): Mention killing
1707 a buffer in docstring.
1708
fa055055
KH
17092009-07-17 Kenichi Handa <handa@m17n.org>
1710
1711 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1712
042f7b69
YM
17132009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1714
1715 * nsfns.m (Fns_set_alpha): Remove function.
1716 (syms_of_nsfns): Don't defsubr it.
1717
1718 * nsterm.m (ns_get_color): Remove incompatible color formats.
1719 (ns_color_to_lisp): Generate #rrggbb color format string.
1720
4be941e3
RS
17212009-07-16 Richard Stallman <rms@gnu.org>
1722
1723 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1724 (Fset_buffer_auto_saved): Handle save_length = -2.
1725
4e6b227d
CY
17262009-07-16 Chong Yidong <cyd@stupidchicken.com>
1727
1728 * xterm.c (Qx_gtk_map_stock): New var.
1729
1730 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1731 of calling intern each time.
1732
a1856973
YM
17332009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1734
1735 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1736 does tiling.
1737
1738 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1739
497e54d8
KH
17402009-07-14 Kenichi Handa <handa@m17n.org>
1741
72d36834
KH
1742 * font.c (font_vconcat_entity_vectors): New function.
1743 (struct font_sort_data): New member font_driver_preference.
1744 (font_compare): Check font_driver_preference.
1745 (font_sort_entities): The format of the first argument changed.
1746 (font_delete_unmatched): Likewise.
1747 (font_list_entities): The return type changed.
1748 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1749 (font_find_for_lface): Adjuste for the above changes.
1750 Don't suppress the checking of C even if the repertory supports it.
1751 (Flist_fonts): Adjust for the above changes.
72d36834 1752
1ac9108a
SM
1753 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1754 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1755 Reject a font who has adstyle property that is different from a
1756 langname derived from registry property.
1ac9108a 1757 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1758
b6046155
EZ
17592009-07-13 Eli Zaretskii <eliz@gnu.org>
1760
1761 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1762 local copy of dirfilename.
1763
fb6b6049
KH
17642009-07-13 Kenichi Handa <handa@m17n.org>
1765
e2402a5e
KH
1766 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1767 against max_char.
1768
fb6b6049
KH
1769 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1770 calling XSYMBOL (sym).
1771
65156807
EZ
17722009-07-11 Eli Zaretskii <eliz@gnu.org>
1773
1ac9108a
SM
1774 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1775 New function.
1776 (directory_files_internal) [WINDOWSNT]:
1777 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1778 the filesystem of the directory is fast or slow.
1779
1780 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1781 file name.
1782 (is_slow_fs): New function.
1783 (stat): Use it to determine whether to issue more system calls to
1784 get accurate file attributes, when w32-get-true-file-attributes is
1785 `local'.
1786
e0ab5fcf
JD
17872009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1788
1789 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1790 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1791 parameter font-parameter as default to the font dialog.
1792
784ceded
KH
17932009-07-10 Kenichi Handa <handa@m17n.org>
1794
1795 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1796
fb8edc0b
EZ
17972009-07-09 Eli Zaretskii <eliz@gnu.org>
1798
1ac9108a 1799 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1800
fb8edc0b
EZ
1801 * w32.c (stat): Treat UNC file names as residing on remote
1802 drives. (Bug#3542)
1803
635c75b1
KH
18042009-07-09 Kenichi Handa <handa@m17n.org>
1805
1806 * fontset.c (fontset_find_font): Fix previous change.
1807
c1d5ce94
MA
18082009-07-08 Michael Albinus <michael.albinus@gmx.de>
1809
1810 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1811 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1812 error flag.
1813
edb61b39
KH
18142009-07-08 Kenichi Handa <handa@m17n.org>
1815
374bf7e4
KH
1816 * fontset.c (fontset_find_font): Fix the logic of handling
1817 charset_matched.
1818 (font_for_char): Delete unused var.
1819 (generate_ascii_font_name): Delete it.
1820
edb61b39
KH
1821 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1822
1823 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1824 (encode_coding_sjis): Fix the code range check.
1825
0f3f018c
CY
18262009-07-07 Chong Yidong <cyd@stupidchicken.com>
1827
1828 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1829 (Fexpand_file_name): Copy string data properly (Bug#3772).
1830
fcaf6f3a
JD
18312009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1832
1833 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1834 first MapNotify.
1835
6809ca75
KH
18362009-07-07 Kenichi Handa <handa@m17n.org>
1837
1838 * character.h (unibyte_has_multibyte_table): Delete extern.
1839 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1840
1841 * charset.c (Fset_charset_priority): Update charset_unibyte.
1842 (syms_of_charset): Initialize charset_unibyte.
1843
1844 * character.c (unibyte_has_multibyte_table): Delete it.
1845 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1846 charset_unibyte.
1847 (multibyte_char_to_unibyte_safe): Likewise.
1848 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1849
1ac9108a 1850 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1851 (x_produce_glyphs): Likewise.
1852
1853 * .gdbinit (xcharset): Fix the treating $arg0.
1854
ad9e2d54
EZ
18552009-07-04 Eli Zaretskii <eliz@gnu.org>
1856
1857 Emulation of `getloadavg' on MS-Windows.
1858 * w32.c: Include float.h
1859 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1860 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1861 (get_native_system_info, get_system_times): New functions.
1862 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1863 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1864 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1865 g_b_init_get_system_times, and num_of_processors.
1866
0a3472c7
JR
18672009-07-03 Jason Rumney <jasonr@gnu.org>
1868
1869 * w32term.c (w32_initialize): Use standard types.
1870
80904120
EZ
18712009-07-03 Eli Zaretskii <eliz@gnu.org>
1872
1873 * dired.c (Ffile_attributes): Decode user and group names by the
1874 locale's encoding. (Bug#3443)
1875
6978862d
DN
18762009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1877
f8d23104
DN
1878 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1879 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1880
1881 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1882
1883 * term.c (init_tty): Remove spurious #ifdef.
1884
6978862d
DN
1885 * m/mips.h: Mention this file is also used for netbsd.
1886 * m/pmax.h: Remove file.
1887
e044e4fc
JD
18882009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1889
1890 * xterm.h (struct x_display_info): Add invisible_cursor.
1891 (struct x_output): Add current_cursor.
1892
1893 * xterm.c (XTtoggle_invisible_pointer): New function.
1894 (x_define_frame_cursor): Don't define cursor if invisible or the
1895 same as before. Set current_cursor.
1896 (x_create_terminal): Set toggle_invisible_pointer_hook.
1897
1898 * xfns.c (make_invisible_cursor): New function.
1899 (x_set_mouse_color): Call make_invisible_cursor.
1900 Set current_cursor.
1901 (x_window): Set current_cursor.
1902
1903 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1904
1905 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1906 inserting a character.
1907 (read_avail_input): Call frame_make_pointer_visible.
1908
1909 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1910 (frame_make_pointer_invisible, frame_make_pointer_visible):
1911 New functions.
e044e4fc
JD
1912 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1913
1914 * frame.h: Declare frame_make_pointer_invisible and
1915 frame_make_pointer_visible.
1916 (struct frame): Add pointer_invisible.
1917
574c8efa
JD
19182009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1919
7b507248
JD
1920 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1921 frame isn't visible.
1922 (xg_frame_resized): If width/height is -1, get size of window
1923 from X server.
1924
1925 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1926 for MapNotify.
1927
835bdaa7 1928 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1929 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1930 (flush_and_sync): Reintroduce.
574c8efa 1931
3f1c6666 19322009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1933
31fd7c5c 1934 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1935
1936 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1937 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1938
1939 * frame.h: Declare Qsticky.
1940
cad9ef74
JD
1941 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1942
1943 * nsfns.m (ns_frame_parm_handlers): Ditto.
1944
1945 * frame.c: Declare Qsticky.
1946 (frame_parms): Add sticky.
1947
1948 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1949
1950 * xterm.h: Declare x_set_sticky.
1951
1952 * xterm.c (x_set_sticky): New function.
1953
69b16610
JD
1954 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1955 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1956 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1957
1958 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1959
1960 * frame.c: Qmaximized is new.
1961 (x_set_frame_parameters): Do not handle fullscreen specially.
1962 Only set width and height if explicitly set.
1963 (x_set_fullscreen): Handle Qmaximized.
1964 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1965 (syms_of_frame): Initialize Qmaximized.
1966
1ac9108a
SM
1967 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1968 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1969
1970 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1971 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1972 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1973 set gravity to NorthWestGravity when USE_GTK.
1974 (set_wm_state): New function.
31fd7c5c 1975 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1976 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1977 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1978 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1979 to x_real_positions and x_fullscreen_adjust.
1980
1981 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1982 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1983 flush_and_sync.
1984 (xg_height_changed): New function.
1985 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1986 and gtk_window_set_policy. Set frame gravity after parsing the
1987 geometry string.
3f1c6666
JD
1988 (xg_update_frame_menubar, free_frame_menubar)
1989 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1990 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1991 Remove calls to xg_frame_set_char_size.
1992
fd503d99
KH
19932009-07-01 Kenichi Handa <handa@m17n.org>
1994
1995 * keyboard.c (decode_keyboard_code): New function.
1996 (tty_read_avail_input): Decode the input bytes if necessary.
1997
1ac9108a
SM
1998 * coding.c (setup_coding_system):
1999 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2000 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2001 use Qno_conversion.
2002
24ed93fb
YM
20032009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2004
2005 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2006
99061dfc
CY
20072009-06-30 Chong Yidong <cyd@stupidchicken.com>
2008
1ac9108a 2009 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2010
ff90fbde
JR
20112009-06-30 Jason Rumney <jasonr@gnu.org>
2012
2013 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2014 is already loaded.
2015 Set user model ID if supported (bug#1849).
2016
5f445726
JM
20172009-06-29 Jim Meyering <meyering@redhat.com>
2018
2019 Remove useless if-before-xfree test.
2020 * nsfont.m (nsfont_close): Remove useless test.
2021 * term.c (delete_tty): Likewise.
2022 * w32.c (system_process_attributes): Likewise.
2023 * w32font.c (w32font_close): Likewise.
2024 * xfaces.c (x_free_gc): Likewise.
2025 * xselect.c (buffer): Likewise.
2026
b9607587
AS
20272009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2028
2029 * process.c (send_process): Keep decoded string in a local
2030 variable and protect it from GC. (Bug#3521)
2031
89ba96f4
EZ
20322009-06-28 Eli Zaretskii <eliz@gnu.org>
2033
2034 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2035 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2036
098a1589
CY
20372009-06-28 Chong Yidong <cyd@stupidchicken.com>
2038
485422be
CY
2039 * xdisp.c (start_display, handle_face_prop)
2040 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2041 (redisplay_window, try_window_id, produce_image_glyph):
2042 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2043
098a1589
CY
2044 * xterm.c (x_update_window_begin, x_new_focus_frame)
2045 (x_scroll_bar_handle_click, handle_one_xevent)
2046 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2047 (x_make_frame_visible, x_make_frame_invisible)
2048 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2049 code chunks that are now obsolete.
2050
78c38319
MA
20512009-06-28 Michael Albinus <michael.albinus@gmx.de>
2052
2053 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2054 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2055 for hours, when optimzation is enabled.
2056 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2057 (xd_read_message): Make them static.
2058
4189ed40
CY
20592009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2060
2061 * term.c (turn_on_face): Allow simultaneously bold and dim
2062 terminal faces (Bug#3530).
2063
cd9b5e16
CY
20642009-06-27 Chong Yidong <cyd@stupidchicken.com>
2065
4e23bedb
CY
2066 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2067
cd9b5e16
CY
2068 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2069 truncation glyphs (Bug#3686).
2070
07cc3c35
GM
20712009-06-27 Glenn Morris <rgm@gnu.org>
2072
2073 * m/pmax.h: Restore file, with only netbsd portions.
2074
31fd7c5c 20752009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2076
cd9b5e16 2077 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2078
42d4a64f
KH
20792009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2080
2081 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2082 the arg FORCE_SYMBOL.
2083
930fe55b 20842009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2085
2086 * fontset.c (fontset_find_font): When a usable rfont_def is found
2087 in a fallback font-group, make it the first element of the group.
2088
57ebc3fd
CY
20892009-06-24 Chong Yidong <cyd@stupidchicken.com>
2090
2091 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2092
f084f942
KH
20932009-06-24 Kenichi Handa <handa@m17n.org>
2094
2095 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2096 set for C.
2097 (fontset_font): Record the availability of a font for C both in
2098 the realized fontsets of the current one and the default one.
2099
2f686c87
DN
21002009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2101
2102 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2103 conditional, it is always defined on AIX.
2104
666e158e
MB
21052009-06-23 Miles Bader <miles@gnu.org>
2106
2107 * window.c (Vrecenter_redisplay): New variable.
2108 (syms_of_window): Initialize it.
2109 (Qtty): New extern declaration.
2110 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2111
c6da7cd2
JM
21122009-06-23 Jim Meyering <meyering@redhat.com>
2113
1ac9108a
SM
2114 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2115 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2116 pointer dereferences are guaranteed to be valid.
c6da7cd2 2117
678dca3d
KH
21182009-06-23 Kenichi Handa <handa@m17n.org>
2119
74d75424
KH
2120 * emacs.c (main): Call init_font ().
2121
2122 * font.h (Vfont_log): Extern it.
2123 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2124
2125 * font.c (font_sort_entities, font_list_entities)
2126 (font_matching_entity, font_open_entity)
2127 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2128 (Vfont_log): Delete static.
2129 (font_log_env_checked): Delete this variable.
2130 (font_add_log): Don't check font_log_env_checked.
2131 (font_deferred_log): Check Vfont_log.
2132 (init_font): New function.
2133
678dca3d
KH
2134 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2135
2136 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2137
2138 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2139
2140 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2141
2142 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2143 (face_for_char): Don't call font_deferred_log here.
2144 (font_for_char): Likewise.
2145
8a668709
CY
21462009-06-22 Chong Yidong <cyd@stupidchicken.com>
2147
9a01ee33
CY
2148 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2149 rather than its background_width for drawing the overline and
2150 underline (Bug#489).
2151
2152 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2153 rather than its background_width for drawing the overline and
2154 underline (Bug#489).
ec7c9926
CY
2155 (xg_default_icon_file): New variable.
2156 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2157 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2158
8a668709
CY
2159 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2160 (load_overlay_strings): Remove externs.
2161 (fast_find_position): Function deleted.
2162 (mouse_face_from_buffer_pos): New function, based on
2163 fast_find_position. Correctly handle before-strings,
2164 display-strings, and after-strings (Bug#1220).
2165 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2166
4d4c02d8
CY
21672009-06-21 Chong Yidong <cyd@stupidchicken.com>
2168
1ac9108a 2169 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2170 (move_it_in_display_line_to, move_it_in_display_line_to)
2171 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2172
70243478
CY
21732009-06-21 Chong Yidong <cyd@stupidchicken.com>
2174
2175 * Branch for 23.1.
2176
13087e59
JR
21772009-06-21 Jason Rumney <jasonr@gnu.org>
2178
2179 * w32term.c (keyboard_codepage): New static variable.
2180 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2181 (w32_read_socket) [WM_CHAR]: Use it to decode character
2182 input (bug#3237).
2183 (w32_initialize): Initialize it.
2184 (codepage_for_locale): New function.
2185
4735b74e
KR
21862009-06-20 Ken Raeburn <raeburn@raeburn.org>
2187
2188 * process.c (status_message): Pass Faset index argument as a lisp
2189 object, so as to work with USE_LISP_UNION_TYPE.
2190
0e727afa
YM
21912009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2192
2193 * coding.c (Ffind_coding_systems_region_internal):
2194 Cache checked characters.
2195
cf299835
KH
21962009-06-18 Kenichi Handa <handa@m17n.org>
2197
1ac9108a 2198 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2199
90f20d94
AS
22002009-06-18 Andreas Schwab <aschwab@redhat.com>
2201
2202 * xdisp.c (redisplay_internal): Check that the frame is still
2203 live after redisplay of its windows.
2204 (redisplay_windows): Check that the window is still live.
2205
7f1faf1c
KH
22062009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2207
2208 * coding.c (detect_coding_utf_16): Fix previous change.
2209
cc13543e
KH
22102009-06-16 Kenichi Handa <handa@m17n.org>
2211
2212 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2213 UTF-16 by checking the dispersion of Eth and Oth bytes.
2214
977b85f4
AS
22152009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2216
2217 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2218
66bd43d1
KH
22192009-06-15 Kenichi Handa <handa@m17n.org>
2220
2221 * process.c (status_message): Fix previous change. Be sure to
2222 decode a localized string.
2223
cb5ca9c5
YM
22242009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2225
2226 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2227 add comment explaining why.
2228
ec7709ba 22292009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2230
ec7709ba 2231 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2232
4b7f335c
AR
22332009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2234
2235 * nsfont.m (ns_attribute_value): Remove.
2236 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2237 (ns_has_attribute): Shrink the normal range.
2238 (ns_findfonts): Don't worry about requested spec in determining
2239 need for synthItal.
e41820ee 2240 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2241
73b26103
SZ
22422009-06-14 Seiji Zenitani <zenitani@mac.com>
2243
2244 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2245
5753e4da
KH
22462009-06-11 Kenichi Handa <handa@m17n.org>
2247
2248 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2249 overhang for the static composition case.
2250
3561b671
KH
22512009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2252
5753e4da
KH
2253 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2254 overhang for the automatic composition case.
2255
3561b671
KH
2256 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2257 composition case.
2258
852bbd41
CY
22592009-06-10 Chong Yidong <cyd@stupidchicken.com>
2260
2261 * xdisp.c (get_next_display_element): When handling wrap-prefix
2262 and line-prefix, treat \n as a control character (bug#3502).
2263
9903d1e6
KH
22642009-06-10 Kenichi Handa <handa@m17n.org>
2265
2266 * font.c (font_parse_family_registry): Fix for one-char foundry.
2267 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2268
0bcbaaaa
CY
22692009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2270
2271 * process.c (status_message): Fix handling of multibyte signal
2272 string (Bug#3499).
2273
40aa3f13
JM
22742009-06-09 Jim Meyering <meyering@redhat.com>
2275
1f80c7e2
CY
2276 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2277 color name is missing.
40aa3f13 2278
72d51285
KH
22792009-06-09 Kenichi Handa <handa@m17n.org>
2280
2281 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2282 FROM-CODE and TO-CODE are codepoints of CHARSET.
2283
c1d04d84
AR
22842009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2285
2286 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2287
22882009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2289
2290 Changes to support :script/:lang/:otf in NS font driver.
2291 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2292 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2293 indicate not part of font driver interface, and change callers.
2294 (ns_get_family): Remove pointless null check.
2295 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2296 ns_spec_to_descriptor, ns_descriptor_to_entity.
2297 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2298 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2299 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2300 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2301 (ns_get_req_script, ns_accumulate_script_ranges)
2302 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2303 New functions.
2304 (nsfont_list, nsfont_match): Use ns_findfonts.
2305 (nsfont_open): Use font descriptor instead of traits.
2306 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2307 (dump_glyphstring): Rename to ns_dump_glyphstring.
2308
c7eb9816
AR
2309 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2310
c1d04d84
AR
2311 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2312
2313 * fontset.c (fontset_from_font): Remove NS-specific code.
2314
ec7709ba 23152009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2316
2317 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2318 nonactive windows.
2319
31fd7c5c 23202009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2321
1ac9108a 2322 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2323
68852c13 23242009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2325
2326 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2327
6756cd1d
CY
23282009-06-07 Chong Yidong <cyd@stupidchicken.com>
2329
2330 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2331 account for the overflowing of newlines into the last glyph on the
2332 display line (Bug#3482).
2333
28bf482a
DR
23342009-06-05 David Reitter <david.reitter@gmail.com>
2335
ec7709ba
JB
2336 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2337 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2338 Fns_selection_exists_p, Fns_selection_owner_p.
2339
fdb55376
JR
23402009-06-03 Jason Rumney <jasonr@gnu.org>
2341
2342 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2343 available. (Bug#3379)
2344
05129fbe
KH
23452009-05-29 Kenichi Handa <handa@m17n.org>
2346
1ac9108a
SM
2347 * coding.c (get_translation_table):
2348 Check Venable_character_translation.
05129fbe 2349
ec7709ba 23502009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2351
ec7709ba
JB
2352 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2353 (x_make_frame_visible): Move frame to front rather than calling
15891144 2354 ns_raise_frame().
ec7709ba 2355 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2356 isn't key window.
ec7709ba 2357 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2358 drawRect may be called by NSView even if the frame is hidden.
2359
ec7709ba
JB
2360 * nsfns.m (Fx_create_frame): Follow other ports in
2361 determining visibility; default to t. Ensure async_visible is set.
15891144 2362
21f73755
EZ
23632009-05-23 Eli Zaretskii <eliz@gnu.org>
2364
2365 * dired.c (Ffile_attributes): Doc fix.
2366
34001e41
CY
23672009-05-22 Chong Yidong <cyd@stupidchicken.com>
2368
2369 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2370
46306a17
SM
23712009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2372
2373 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2374 and xfont_scratch_props.
2375 (syms_of_xfont): Do it here instead.
2376 (xfont_find_ccl_program): Delete, unused.
2377 (xfont_open): Delete unused var `i'.
2378
ef6e0694
KH
23792009-05-21 Kenichi Handa <handa@m17n.org>
2380
2381 * fontset.c (Qlatin): Don't make it static.
2382
46306a17
SM
2383 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2384 New functions.
ef6e0694
KH
2385 (xfont_scripts_cache, xfont_scratch_props): New variables.
2386 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2387 (xfont_list_pattern): Argument changed. Callers changed.
2388 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2389 (xfont_list): Don't reject a font spec with :script property.
2390 (xfont_has_char): Fix setting of encoding.
2391 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2392 xfont_scratch_props.
2393
23942009-05-19 Kenichi Handa <handa@m17n.org>
2395
46306a17 2396 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2397 Callers changed.
2398
23992009-05-18 Kenichi Handa <handa@m17n.org>
2400
2401 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2402
ac71ced7
SM
24032009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2404
2405 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2406 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2407
1c6d1051
YM
24082009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2409
2410 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2411 (x_delete_terminal): Dissociate resource database from display and
2412 then call XrmDestroyDatabase before closing display.
2413
9b9b779c
AR
24142009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2415
2416 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2417 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2418 whether selected frame is viable before raising it (based on patch
2419 by David Reitter), and improve commentary.
2420 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2421
cccd42d5
KH
24222009-05-15 Kenichi Handa <handa@m17n.org>
2423
2424 * font.c (Ffont_spec): Check arguments.
2425
337fbd17
CY
24262009-05-14 Chong Yidong <cyd@stupidchicken.com>
2427
2428 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2429 weight when testing attributes (Bug#3282).
2430
47a6002f
JD
24312009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2432
2433 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2434 what we expect to get in the next ConfigureNotify event.
2435
9cb363db
YM
2436 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2437 before Xft one (Bug#1696).
2438
b9126609
CY
24392009-05-07 David Reitter <david.reitter@gmail.com>
2440
2441 * nsfns.m (Fx_display_planes): Compute bitplanes using
2442 NSBitsPerPixelFromDepth (Bug#3207).
2443
27a69fd9
CY
24442009-05-10 Chong Yidong <cyd@stupidchicken.com>
2445
2446 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2447
00f37552
TTN
24482009-05-10 Ulrich Mueller <ulm@gentoo.org>
2449
2450 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2451
2d82a920
DR
24522009-05-07 David Reitter <david.reitter@gmail.com>
2453
ec7709ba
JB
2454 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2455 Respect mouse face background.
2d82a920 2456
46b0d52d
DR
24572009-05-07 David Reitter <david.reitter@gmail.com>
2458
ec7709ba
JB
2459 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2460 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2461 in ns_update_begin and ns_update_end.
2462
ce1b23bb
SM
24632009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2464
5996e1b7
SM
2465 * nsfns.m (ns_get_screen): Rewrite.
2466 Don't presume selected-frame is of type `ns'.
2467
ba98e3a0
SM
2468 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2469 all drivers.
2470
ce1b23bb
SM
2471 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2472
bcda200f
YM
24732009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2474
2475 * keyboard.h (add_user_signal): Fix typo in extern.
2476
2477 * lisp.h (add_user_signal): Remove extern.
2478
2479 * unexelf.c (unexec): Consider a section to precede the .bss section
2480 if its addresses overlap that of .bss.
2481 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2482 instead of dumping process.
2483
864660a2
SM
24842009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2485
2486 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2487
50da4e56
SM
24882009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2489
2490 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2491
51520a1a
DN
24922009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2493
2494 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2495 any statements.
2496
409ea3a1
AS
24972009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2498
59c4c60f
AS
2499 * process.c (read_process_output): Make sure the current buffer is
2500 always restored.
2501
409ea3a1
AS
2502 * coding.c (record_conversion_result): Don't modify
2503 Vlast_code_conversion_error for successful result.
2504 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2505
56f00ed2
KH
25062009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2507
2508 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2509 (load_charset_map): Remove unnecessary code.
56f00ed2 2510
4491c9d2
DR
25112009-04-30 David Reitter <david.reitter@gmail.com>
2512
35f5b128 2513 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2514 through f24.
2515
6970f632
CY
25162009-04-30 Chong Yidong <cyd@stupidchicken.com>
2517
2518 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2519
2520 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2521 face_at_buffer_position.
2522 (face_before_or_after_it_pos, get_next_display_element)
2523 (note_mouse_highlight): Update face_at_buffer_position call.
2524
2525 * term.c (term_mouse_highlight):
2526 * msdos.c (IT_note_mouse_highlight):
2527 * fontset.c (Finternal_char_font):
35f5b128 2528 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2529
2530 * dispextern.h (face_at_buffer_position): Update prototype.
2531
0c616f63
KH
25322009-04-30 Kenichi Handa <handa@m17n.org>
2533
35f5b128 2534 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2535
ad3aaf33
AS
25362009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2537
2538 * callproc.c (Fcall_process): Fix GC protection. Make sure
2539 current buffer is always restored.
2540
c3c963a0
YM
25412009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2542
2543 * atimer.c (init_atimer): Also clear stopped_atimers.
2544
2545 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2546
7e3386cb
YM
2547 * process.c (create_process): Clean up merger residues of
2548 2008-07-17 change.
2549
91f68422
CY
25502009-04-29 Ulrich Mueller <ulm@gentoo.org>
2551
2552 * lread.c (Vread_circle): New variable.
2553 (read1): Disable recursive read if Vread_circle is nil.
2554
24b34550
KH
25552009-04-29 Kenichi Handa <handa@m17n.org>
2556
2557 * fontset.h (set_default_ascii_font): Delete extern.
2558
2559 * fontset.c (set_default_ascii_font): Delete this unused function.
2560
2561 * frame.c (x_set_font): When ARG is a font-object, check if the
2562 font-object matches with the ASCII font-spec of the frame's
9c358bda 2563 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2564
77bf07e1
AS
25652009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2566
2567 * fns.c (Flocale_info): Protect vector from GC during decoding.
2568
2569 * process.c (Fstart_process): Protect argv strings from GC during
2570 encoding.
2571
2c55aacf
AS
25722009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2573
2574 * sysdep.c: Include <ctype.h>.
2575
b892d3c9
DR
25762009-04-27 David Reitter <david.reitter@gmail.com>
2577
35f5b128 2578 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2579 Remove commented-out code.
2580
9d0644c4
JB
25812009-04-26 Johan Bockgård <bojohan@gnu.org>
2582
2583 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2584
b7053016
JR
25852009-04-25 Jason Rumney <jasonr@gnu.org>
2586
2587 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2588
4e8231f3
YM
25892009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2590
2591 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2592 Swap bytes in short integer if fringe bitmap width > 8.
2593
493dcf2c
KH
25942009-04-23 Kenichi Handa <handa@m17n.org>
2595
2596 * xfaces.c (Fx_list_fonts): If a font size is specified in
2597 PATTERN, set it in returned scalable fonts.
2598
401e9e57
CY
25992009-04-22 Chong Yidong <cyd@stupidchicken.com>
2600
708e05dc
CY
2601 * keyboard.c (Fset_input_meta_mode): Doc fix.
2602
2603 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2604
1ac9108a 2605 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2606
2607 * coding.c (Fterminal_coding_system): Doc fix.
2608
2609 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2610 (Fx_display_pixel_height, Fx_display_planes)
2611 (Fx_display_color_cells, Fx_server_max_request_size)
2612 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2613 (Fx_display_mm_height, Fx_display_mm_width)
2614 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2615 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2616 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2617 (check_x_display_info): Handle terminal objects instead of
2618 terminal ids.
2619
401e9e57
CY
2620 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2621 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2622 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2623 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2624
df80c7f0
KH
26252009-04-21 Kenichi Handa <handa@m17n.org>
2626
5a8f12af 2627 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2628 (font_score): Check AVGWIDTH too.
908567ef 2629
df80c7f0
KH
2630 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2631 worst case.
1ac9108a
SM
2632 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2633 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2634
705af33f
JR
26352009-04-19 Jason Rumney <jasonr@gnu.org>
2636
2637 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2638 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2639
2640 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2641 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2642 get_phys_cursor_geometry.
2643
b71ac3dd 2644 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2645 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2646 using get_phys_cursor_geometry.
2647
2648 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2649 correctly calculated.
2650
dc2933eb
JD
26512009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2652
1ac9108a
SM
2653 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2654 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2655 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2656 is deprecated.
2657
973e7849
AS
26582009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2659
2660 * font.c (font_put_frame_data): Use xfree instead of free.
2661
314d66f4
JB
26622009-04-17 Juanma Barranquero <lekktu@gmail.com>
2663
2664 * w32font.c (Qja, Qko): Remove declarations.
2665 (syms_of_w32font): Don't DEFSYM them.
2666
cf702558
CY
26672009-04-17 Chong Yidong <cyd@stupidchicken.com>
2668
2669 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2670
2671 * font.h (Qja, Qko): Extern them.
2672
2673 * ftfont.c (Qja, Qko): Remove declarations.
2674
2675 * xfont.c (Qja, Qko): Remove declarations.
2676
b50504f5
KH
26772009-04-17 Kenichi Handa <handa@m17n.org>
2678
bde25748
KH
2679 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2680 string from a vector to handle Latin-1 characters correctly.
2681
b50504f5
KH
2682 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2683 entity even if the cache hits.
2684
f4646fff
AS
26852009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2686
2687 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2688 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2689
e7deaab0
AS
2690 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2691 * lisp.h: Adjust prototypes.
2692
0a0e7d49
CY
26932009-04-16 Chong Yidong <cyd@stupidchicken.com>
2694
2695 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2696 change (Bug#3003).
2697
3c908a57
KH
26982009-04-16 Kenichi Handa <handa@m17n.org>
2699
1ac9108a 2700 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2701
2702 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2703 adstyle.
2704
2705 * ftfont.c (Qja, Qko): Don't make them static.
2706 (enum ftfont_cache_for): New enum.
2707 (fc_charset_table): Undo the previous change.
2708 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2709 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2710 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2711 non-scarable font, try to get AVERAGE_WIDTH.
2712 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2713 Change ft_face_cache from a list of a hash-table. Don't check
2714 `ja' and `ko' adstyle here.
2715 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2716 FTFONT_CACHE_FOR_CHARET.
2717 (ftfont_get_charset): Undo the previous change.
1ac9108a 2718 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2719 (ftfont_close): Likewise.
2720 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2721
2722 * font.c (font_sort_entites): Change the meaning of the arg
2723 BEST-ONLY. Don't optimize for VEC of lenght 1.
2724 (font_select_entity): Just return the value of font_sort_entites.
2725
2726 * xfaces.c (merge_face_vectors): Reflect font properties in
2727 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2728 font_clear_prop if a face attribute doesn't change.
2729
3c908a57
KH
2730 * charset.h (charset_ksc5601): Extern it.
2731
2732 * charset.c (charset_ksc5601): New variable.
2733 (Fdefine_charset_internal): Set charset_ksc5601.
2734 (init_charset_once): Initialize charset_ksc5601 to -1.
2735
d65859c3
DN
27362009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2737
2738 * fileio.c (history_delete_duplicates): Remove unused declaration.
2739
2740 * callint.c (history_delete_duplicates): New declaration.
2741 (Fcall_interactively): Remove command history duplicates when
2742 history_delete_duplicates is true.
2743
3ba010e5
EZ
27442009-04-14 Eli Zaretskii <eliz@gnu.org>
2745
2746 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2747
06f19b91
KH
27482009-04-14 Kenichi Handa <handa@m17n.org>
2749
2750 * font.c (Ffont_info): Fix docstring. Fix the second element of
2751 the returned value (bug#2949).
2752
2cce8bfc
CY
27532009-04-14 Chong Yidong <cyd@stupidchicken.com>
2754
2755 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2756
d156542d
KH
27572009-04-14 Kenichi Handa <handa@m17n.org>
2758
2759 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2760 encoding charset is ascii_compatible.
2761
2762 * charset.c (Fdefine_charset_internal): Make charset
2763 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2764 code_offset is 0, and covers all ASCII characters.
2765
86fa089e
SM
27662009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2767
2768 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2769 (ns_string_to_pasteboard_internal):
2770 * nsmenu.m (process_dialog):
2771 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2772 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2773 * lisp.h (Fx_load_color_file): Declare.
2774
a8a3728b
KH
27752009-04-13 Kenichi Handa <handa@m17n.org>
2776
1ac9108a 2777 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2778 (font_select_entity): Suppress the code to optimize for the same
2779 kind of fonts.
2780 (font_load_for_lface): Get a font that supports at least ASCII
2781 characters.
2782
2783 * ftfont.c (Qja, Qko): New variables.
2784 (fc_charset_table): Delete uniquifier data for iso8859-1.
2785 (ftfont_get_latin1_charset): New function.
2786 (get_adstyle_property): New function.
2787 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2788 bitmap fonts.
2789 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2790 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2791 `ko' or `ja'.
2792 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2793 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2794 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2795 property.
2796 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2797 (syms_of_ftfont): DEFSYM Qja and Qko.
2798
483670b5
KH
27992009-04-09 Kenichi Handa <handa@m17n.org>
2800
12b55765
KH
2801 * charset.c (map_charset_chars): For a charset of `superset'
2802 method, fix calculation of code range.
2803
483670b5
KH
2804 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2805 from the list of extra properties.
2806 (font_clear_prop): Be sure to delete `:name' font property.
2807
57d3b93b
KH
28082009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2809
b4b2c2ca
YM
2810 * dispnew.c (redraw_overlapping_rows): Fix detection of
2811 overlapping for topmost and bottommost rows.
2812
1ac9108a 2813 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2814
472c3609
JR
28152009-04-06 Jason Rumney <jasonr@gnu.org>
2816
2817 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2818
ab193662
KH
28192009-04-06 Kenichi Handa <handa@m17n.org>
2820
2821 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2822
2823 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2824
0c26f026
KH
28252009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2826
2827 * ftfont.c (ftfont_open): Fix checking of the return value of
2828 FT_Load_Char. Fix setting font->underline_thickness.
2829
e173bbce
CY
28302009-04-04 Chong Yidong <cyd@stupidchicken.com>
2831
2832 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2833 (Fterminal_parameters, Fterminal_parameter)
2834 (Fset_terminal_parameter): In doc string, refer to terminal
2835 objects rather than terminal ids.
2836
693a2698
EZ
28372009-04-04 Eli Zaretskii <eliz@gnu.org>
2838
2839 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2840 ret_lim_data. (Bug#2867)
2841
d5221487
CY
28422009-04-03 Chong Yidong <cyd@stupidchicken.com>
2843
2844 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2845 so they don't get wider than the window, matching 2006-01-23
2846 change to the partner function in xdisp.c (Bug#2800).
2847
223509a3
KH
28482009-04-03 Kenichi Handa <handa@m17n.org>
2849
2850 * print.c (print_object): Make each lowest sub_char_table start a
2851 new line (Bug#2866).
2852
74fcd0b1
KH
28532009-04-02 Kenichi Handa <handa@m17n.org>
2854
2855 * fontset.c (fontset_font): Record no-font when a fontset
2856 explicitly tells not to try another font-specs.
2857
c542407d
SM
28582009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2859
2860 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2861
e3869731
KH
28622009-03-30 Kenichi Handa <handa@m17n.org>
2863
d8d2f142
KH
2864 * fontset.c (fontset_from_font): Specify only registry in a
2865 font-spec for all characters supported by that registry.
2866
e3869731
KH
2867 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2868 even if HAVE_M17N_FLT is not defined.
2869
5da5f805
CY
28702009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2871
2872 * ftfont.c: Conditionalize prototyping and use of
2873 ftfont_variation_glyphs.
2874
ab226c50
SM
28752009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2876
9628fed7
SM
2877 * frame.c (delete_frame): Work around compiler bug.
2878
2879 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2880 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2881 Some more EMACS_INT.
2882 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2883
2884 * xdisp.c (dump_glyph): Fix typo.
2885
ae19ba7c
SM
2886 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2887 (adjust_markers_gap_motion, adjust_markers_for_delete)
2888 (adjust_markers_for_insert, adjust_point)
2889 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2890 (make_gap, copy_text, count_size_as_multibyte, insert)
2891 (insert_and_inherit, insert_before_markers)
2892 (insert_before_markers_and_inherit, insert_1)
2893 (count_combining_before, count_combining_after, insert_1_both)
2894 (insert_from_string, insert_from_string_before_markers)
2895 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2896 (insert_from_buffer_1, adjust_after_replace)
2897 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2898 (replace_range_2, del_range, del_range_1, del_range_byte)
2899 (del_range_both, del_range_2, modify_region)
2900 (prepare_to_modify_buffer, signal_before_change)
2901 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2902 for buffer positions and sizes.
2903 * lisp.h: Adjust prototypes accordingly.
2904
2905 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2906 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2907 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2908
ab226c50
SM
2909 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2910
46dfb8fb
JD
29112009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2912
2913 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2914 lines and columns so we keep the same pixel height and width.
2915
2916 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2917 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2918 (x_handle_net_wm_state): New function to update frame parameter
2919 fullscreen.
2920 (x_term_init): Initialize atoms for _NET_WM_STATE.
2921
2922 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2923
d347e494
SM
29242009-03-27 Kevin Ryde <user42@zip.com.au>
2925
2926 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2927 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2928 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2929 (Fgpm_mouse_stop): Pass that new parameter.
2930 * termhooks.h (close_gpm): Adjust prototype.
2931
84db11d6
SM
29322009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2933
c95a5008
SM
2934 * lisp.h (Fx_focus_frame): Declare.
2935
84db11d6
SM
2936 * callint.c (Fcall_interactively): For '^' just delegate the work to
2937 handle-shift-selection.
2938 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2939
0a1958d6
CY
29402009-03-24 Chong Yidong <cyd@stupidchicken.com>
2941
0bfdff23
CY
2942 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2943
0a1958d6
CY
2944 * data.c (Qinteractive_form): New variable.
2945 (Finteractive_form): Use it.
2946
2947 * eval.c (Fcommandp): Use Qinteractive_form.
2948
58aec0d6
JR
29492009-03-24 Jason Rumney <jasonr@gnu.org>
2950
2951 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2952 Calculate total size precisely. Decode environment variables
2953 before substituting. (Bug#38)
2954
553dd618
KH
29552009-03-24 Kenichi Handa <handa@m17n.org>
2956
2957 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2958 encoding (Bug#2722).
553dd618 2959
c39ea606
JD
29602009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2961
2962 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2963 that gdpy is set.
2964
bc9b2b5e
AM
29652009-03-22 Alan Mackenzie <acm@muc.de>
2966
2967 * callint.c (Finteractive): Clarify the doc string - even
2968 promptless elements need \n separators.
2969
9f995a76
JR
29702009-03-22 Jason Rumney <jasonr@gnu.org>
2971
2972 * w32term.c (syms_of_w32term): Doc fix for
2973 x-use-underline-position-properties.
2974
22749e9a
EZ
29752009-03-21 Eli Zaretskii <eliz@gnu.org>
2976
2977 * w32.c (getpwuid): Change argument type to unsigned.
2978 (struct w32_id): Change type of `rid' member to unsigned.
2979 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2980 argument ID to unsigned. All callers changed.
2981 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2982
e00553bf
EZ
29832009-03-20 Eli Zaretskii <eliz@gnu.org>
2984
2985 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2986 negative, produce a float value.
2987
2988 * dired.c (make_uid, make_gid): New functions.
2989 (Ffile_attributes): Use them to avoid negative UID and GID.
2990
f761d6b6
JB
29912009-03-20 Juanma Barranquero <lekktu@gmail.com>
2992
2993 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2994 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2995 Fix typos in docstrings.
2996
d507f8d7
KH
29972009-03-19 Kenichi Handa <handa@m17n.org>
2998
2999 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3000 changed, use font_load_for_lface to get a new font object.
3001 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3002
3003 * frame.c (x_set_font): Handle the case that ARG is a cons.
3004
c68845e0
GM
30052009-03-19 Glenn Morris <rgm@gnu.org>
3006
3007 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3008
bfa49dd1
CY
30092009-03-19 Chong Yidong <cyd@stupidchicken.com>
3010
3011 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3012
8458d4c1
KH
30132009-03-19 Kenichi Handa <handa@m17n.org>
3014
3015 * charset.c (load_charset_map_from_file): When a mapfile can't be
3016 loaded, signal an error.
3017
78e7d1fe
EZ
30182009-03-18 Eli Zaretskii <eliz@gnu.org>
3019
3020 * dired.c (Ffile_attributes): Make sure UID and GID are always
3021 positive, even if the value is too large for a positive EMACS_INT.
3022 Doc fix.
3023
3024 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3025
5da9fdfa
YM
30262009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3027
3028 * xmenu.c (xdialog_show): Move Fredisplay call ...
3029 (Fx_popup_dialog): ... here.
3030
7519c40d
SM
30312009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3032
3033 * dired.c (file_name_completion): Disable the first optimization just
3034 installed, since it is not implemented correctly.
3035
2cd298e2
SM
30362009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3037
3038 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3039 only if the entry can affect bestmatch.
2cd298e2
SM
3040 Stop the search early, as Ftry_completion already does.
3041
48d37adf
CY
30422009-03-17 Chong Yidong <cyd@stupidchicken.com>
3043
e10c9c93 3044 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3045
9286b16a
CY
30462009-03-15 Chong Yidong <cyd@stupidchicken.com>
3047
3048 * keyboard.c (parse_menu_item): Don't display remappings as menu
3049 equivalent bindings (Bug#788).
3050
f7b146dc
JR
30512009-03-15 Jason Rumney <jasonr@gnu.org>
3052
3053 * w32term.h (WM_EMACS_PAINT): New message.
3054 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3055 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3056 before passing to lisp thread. (Bug#950)
3057
f761d6b6 30582009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3059
d93f9575
CY
3060 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3061 variable as it was never reset.
3062 (ns_term_init): Remove initialization of Lisp-settable defaults
3063 and ns_expand_space.
3064 (-setPanelFromDefaultValues): Remove ns_expand_space.
3065 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3066 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3067 i.e. no additional spacing, similar to Carbon port.
3068
d93f9575
CY
3069 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3070 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3071
305018ec
JD
30722009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3073
3074 * sound.c (alsa_configure): Remove call to deprecated
3075 snd_pcm_sw_params_set_xfer_align.
3076
f761d6b6 30772009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3078
3079 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3080 after clicking in a detached tool bar.
3081 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3082
46e722a9
SM
30832009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3084
348db3dd
SM
3085 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3086 int/Lisp_Object mixup).
46e722a9 3087
a3d16f39
KH
30882009-03-13 Kenichi Handa <handa@m17n.org>
3089
3090 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3091 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3092 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3093 (set_fontset_font): Change ARG to a vector. Handle range_list in
3094 ARG correctly.
3095 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3096 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3097 the above change.
3098 (fontset_from_font): Fix previous change.
fe24f56a 3099 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3100 entry. If FONTSET is the default fontset, don't set the extra
3101 slot of the returning char-table.
3102
b066e6b6
JB
31032009-03-12 Juanma Barranquero <lekktu@gmail.com>
3104
3105 * nsfns.m (Fx_close_connection): Doc fix.
3106 (Fns_do_applescript): Reflow docstring.
3107 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3108 (Fx_display_pixel_width, Fx_display_pixel_height)
3109 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3110 Fix typos in docstrings.
3111 (Fns_set_alpha): Fix typos in error messages.
3112
d472514e 31132009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3114
d472514e 3115 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3116 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3117 were used for such events.
3118
d472514e
JB
3119 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3120 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3121
d472514e 3122 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3123 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3124
fb930676
KH
31252009-03-11 Kenichi Handa <handa@m17n.org>
3126
ff85581a
KH
3127 * font.h (font_open_by_spec): Extern it.
3128
c50b7e98
KH
3129 * font.c (font_open_by_spec): New function.
3130 (font_open_by_name): Use font_open_by_spec.
3131
fb930676
KH
3132 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3133 fontset of the frame.
3134
3135 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3136 modify the default font of frames that use this fontset.
3137 (num_auto_fontsets): New variable.
3138 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3139 name. Be sure to set FONTSET_ASCII to the correct font name.
3140 (update_auto_fontset_alist): New function.
3141
df4e8455
JB
31422009-03-11 Juanma Barranquero <lekktu@gmail.com>
3143
3144 * makefile.w32-in: Update dependencies.
3145
0a375797
AR
31462009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3147
3148 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3149
61313fa3
SM
31502009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3151
3152 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3153
b55103fb
CY
31542009-03-10 Chong Yidong <cyd@stupidchicken.com>
3155
3156 * lread.c (Feval_buffer): Doc fix.
3157
dde2559c
KH
31582009-03-09 Kenichi Handa <handa@m17n.org>
3159
3160 * charset.c (Qfile_name_handler_alist): Extern it.
3161 (load_charset_map_from_file): Temporarily bind
3162 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3163
df4e8455 31642009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3165
47f588bb
GM
3166 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3167 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3168
4ddf94bd
AR
31692009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3170
4c9bdfc2
AR
3171 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3172 (x_set_window_size): Change back to calculated method of setting
3173 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3174 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3175 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3176
fe41ae9e
AR
3177 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3178
4c9bdfc2
AR
3179 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3180 accelerator in parens under GNUstep.
3181
825d0875
KH
31822009-03-06 Kenichi Handa <handa@m17n.org>
3183
3184 These changes are to detect incorrect composition sequence without
f3b3be74 3185 looking ahead the source. (Bug#2370)
825d0875
KH
3186
3187 * coding.h: Include "composite.h".
3188 (enum compisition_state): New enum.
3189 (struct compisition_status): New struct.
3190 (struct iso_2022_spec): New member cmp_status.
3191 (struct emacs_mule_spec): New struct.
3192 (struct coding_system): New members ctext_extended_segment_len and
3193 embedded_utf_8. Change the union member
3194 spec.emacs_mule_full_support to spec.emacs_mule.
3195
3196 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3197 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3198 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3199 (ADD_COMPOSITION_DATA): New arg nbytes.
3200 (emacs_mule_char): New arg cmp_status.
3201 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3202 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3203 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3204 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3205 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3206 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3207 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3208 (EMACS_MULE_COMPOSITION_END): New macro.
3209 (emacs_mule_finish_composition): New function.
3210 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3211 (decode_coding_emacs_mule): Avoid long looking ahead while
3212 handling composition.
3213 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3214 (ENCODE_COMPOSITION_RULE): New macro.
3215 (finish_composition): New function.
3216 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3217 (DECODE_COMPOSITION_START): New implementation.
3218 (DECODE_COMPOSITION_END): Likewise.
3219 (STORE_COMPOSITION_RULE): New macro.
3220 (decode_coding_iso_2022): Avoid long looking ahead while handling
3221 composition, CTEXT extended segment, and embedded UTF-8.
3222 (setup_coding_system): For a coding of type iso-2022, reset
3223 CODING_ISO_EXTSEGMENT_LEN (coding) and
3224 CODING_ISO_EMBEDDED_UTF_8 (coding).
3225 (get_translation): Delete arguments last_block, from_nchars,
3226 to_nchars. Callers changed.
3227 (produce_chars): Don't modify charbuf. Adjusted for the change of
3228 get_translation.
98a326f7 3229 (produce_composition): Adjust for the new annotation sequence.
825d0875 3230 (handle_composition_annotation): Likewise.
98a326f7 3231 (consume_chars): Adjust for the change of get_translation.
825d0875 3232
ccbc4452
AR
32332009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3234
4ddf94bd 3235 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3236
988a7ddb
KH
32372009-03-05 Kenichi Handa <handa@m17n.org>
3238
3239 * font.c (font_select_entity): New function.
3240 (font_find_for_lface): Use font_select_entity to select a font.
3241
3242 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3243 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3244 font with C restriction.
3245
98a326f7 32462009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3247
be1bce46 3248 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3249
10ea2b82
JR
32502009-03-04 Jason Rumney <jasonr@gnu.org>
3251
2c93b248 3252 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3253 characters that have already been read. (Bug#2569)
2c93b248 3254
10ea2b82
JR
3255 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3256 Log an error message if check_image_size failed.
3257 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3258 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3259
71a0c011
EZ
32602009-03-02 Eli Zaretskii <eliz@gnu.org>
3261
3262 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3263 when decoding process output.
3264
2f63bba8
RS
32652009-03-01 Richard M Stallman <rms@gnu.org>
3266
3267 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3268
3269 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3270
0a9564cb
EZ
32712009-02-28 Eli Zaretskii <eliz@gnu.org>
3272
3273 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3274 (decode_coding_emacs_mule, decode_coding_iso_2022)
3275 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3276 (decode_coding_raw_text, decode_coding_charset)
3277 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3278 Honor inhibit-eol-conversion. (Bug #2186)
3279
449148b3
JR
32802009-02-28 Jason Rumney <jasonr@gnu.org>
3281
3282 * coding.c (detect_coding_charset): If not checking latin extra,
3283 fail on characters between 0x80 and 0xA0. (Bug#2354)
3284
a4aee864
EZ
32852009-02-28 Eli Zaretskii <eliz@gnu.org>
3286
3287 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3288 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3289
d88bee5a
GM
32902009-02-27 Glenn Morris <rgm@gnu.org>
3291
3292 * callint.c (Finteractive): Doc fix.
3293
a808f22d
KH
32942009-02-27 Kenichi Handa <handa@m17n.org>
3295
3296 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3297
caf8d60c
CY
32982009-02-27 Chong Yidong <cyd@stupidchicken.com>
3299
3300 * font.c (font_style_to_value): Set value for unknown symbols to
3301 100 instead of 255.
b61137ea
CY
3302 (weight_table, slant_table, width_table): Treat "unspecified" as
3303 the default value.
caf8d60c 3304
1a0de25c
JB
33052009-02-26 Juanma Barranquero <lekktu@gmail.com>
3306
3307 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3308
8fc45744
JB
33092009-02-25 Juanma Barranquero <lekktu@gmail.com>
3310
107bd7d1
JB
3311 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3312 error as soon as a recursive load is detected.
8fc45744 3313
f097e223
AR
33142009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3315
3316 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3317 before caching.
3318
8810a12f
KH
33192009-02-24 Kenichi Handa <handa@m17n.org>
3320
3321 * fontset.c (fontset_find_font): Fix the condition for checking
3322 unavailable font.
3323
2c7d1565
GM
33242009-02-24 Glenn Morris <rgm@gnu.org>
3325
3326 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3327 whitespace that confuses documentation.
3328
a20878b6
MB
33292009-02-23 Miles Bader <miles@gnu.org>
3330
3331 * process.c (Flist_system_processes, Fprocess_attributes)
3332 (syms_of_process): Rename `system-process-attributes' to
3333 `process-attributes'.
3334
b3b58c01
AS
33352009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3336
1b3b981b
AS
3337 * coding.h (struct coding_system): Make safe_charsets a pointer to
3338 unsigned char.
3339 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3340 being 255.
3341 (SAFE_CHARSET_P): Likewise.
3342 (setup_iso_safe_charsets): Properly setup safe_charsets.
3343 (Fdefine_coding_system_internal): Likewise.
3344 (setup_coding_system): Likewise. Remove unneeded casts.
3345 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3346 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3347 unneeded casts.
3348
b3b58c01
AS
3349 * insdel.c (del_range_2): Don't modify gap contents when called
3350 from decode_coding_object. (Bug#1809)
3351
0b6f228c
CY
33522009-02-21 Chong Yidong <cyd@stupidchicken.com>
3353
3354 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3355 Qfont_object.
3356 (Ftype_of): Recognize font objects.
3357
3358 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3359
3360 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3361 moved to data.c.
3362
52f8870b
AR
33632009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3364
3365 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3366 async_iconified. Based on a patch by Christian Lynbech
3367 <christian.lynbech@tieto.com>.
3368 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3369
7087d5e9
GM
33702009-02-20 Glenn Morris <rgm@gnu.org>
3371
3372 * syntax.c (Fskip_chars_forward): Fix doc typo.
3373
41d2ceef
CY
33742009-02-20 Chong Yidong <cyd@stupidchicken.com>
3375
3376 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3377
1a3b7ca6
CY
33782009-02-19 Chong Yidong <cyd@stupidchicken.com>
3379
3380 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3381
73cce38d
KH
33822009-02-19 Kenichi Handa <handa@m17n.org>
3383
3384 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3385 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3386
a51092ee
DN
33872009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3388
3389 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3390
c423ecca
KH
33912009-02-18 Kenichi Handa <handa@m17n.org>
3392
3393 * font.c (font_check_otf_features): Fix handling of `nil' element.
3394 (Ffont_spec): Describe :lang and :otf in the docstring.
3395
4c1958f4
AS
33962009-02-16 Andreas Schwab <schwab@suse.de>
3397
3398 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3399 string.
3400
5704f39a
KH
34012009-02-16 Kenichi Handa <handa@m17n.org>
3402
3403 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3404 (Bug#1723)
5704f39a 3405
8f0085aa
CY
34062009-02-14 Chong Yidong <cyd@stupidchicken.com>
3407
a057d86a 3408 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3409
3410 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3411 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3412
aff01dd9
EZ
34132009-02-14 Eli Zaretskii <eliz@gnu.org>
3414
3415 * msdos.c (MAX_SCREEN_BUF): New macro.
3416 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3417 Encode the entire run of glyphs sharing the same face, instead of
3418 doing that one glyph at a time (fixes a bug with displaying
3419 double-size characters).
3420
ba301db3
AR
34212009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3422
3423 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3424
3425 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3426 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3427 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3428
3429 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3430 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3431
51d861de
SM
34322009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3433
3434 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3435 invisible areas.
3436
7fed8996
JR
34372009-02-12 Jason Rumney <jasonr@gnu.org>
3438
631ea4fb
JR
3439 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3440 (add_font_entity_to_list): Call check_face_name even when family
3441 is unspecified.
3442
cb4a3e42
JR
3443 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3444 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3445 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3446
7fed8996 3447 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3448 raster fonts. (Bug#2219)
7fed8996 3449
895416e3
KH
34502009-02-12 Kenichi Handa <handa@m17n.org>
3451
3452 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3453 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3454 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3455 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3456 (find_automatic_composition): While looking forward and backward,
3457 check static composition. Fix where to stop looking forward.
3458 (composition_adjust_point): Fix checking of static composition.
3459 (Fcomposition_get_gstring): Pay attention to
1dacf998 3460 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3461
3462 * lisp.h (fast_looking_at): Extern it.
3463
3464 * search.c (fast_looking_at): New function.
3465
51d861de 3466 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3467 <struct glyph>.u.cmp.to.
3468 (append_composite_glyph): Likewise.
3469
51d861de 3470 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3471 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3472 composition.
51d861de 3473 (append_composite_glyph): Adjust for the change of
895416e3
KH
3474 <strcut glyph>.u.cmp.to.
3475
8510724d
JB
34762009-02-11 Juanma Barranquero <lekktu@gmail.com>
3477
3478 * casetab.c (init_casetab_once):
3479 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3480 * font.c (font_update_lface):
3481 * fontset.c (Fnew_fontset):
3482 * ftfont.c (ftfont_drive_otf):
3483 * xfont.c (xfont_open):
3484 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3485
294fa707
SM
34862009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3487
3488 * fileio.c (Fwrite_region): !NILP -> CONSP.
3489
b5bfebec
AS
34902009-02-10 Andreas Schwab <schwab@suse.de>
3491
3492 * process.c (send_process): Properly relocate pointer into data
adab88bd 3493 when using encoded data. (Bug#2272)
b5bfebec 3494
cb84a2be
KH
34952009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3496
3497 * coding.c (detect_coding_charset): Fix previous change.
3498
89e09428
JR
34992009-02-08 Jason Rumney <jasonr@gnu.org>
3500
3501 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3502 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3503
4470a277
AS
35042009-02-07 Andreas Schwab <schwab@suse.de>
3505
3506 * unexelf.c (unexec): Fix error message.
3507
3175b12a
AR
35082009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3509
3510 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3511 when modal window is active. (Bug #2152)
3175b12a
AR
3512 (applicationShouldTerminate:): Remove now-unneeded while loop
3513 around NSRunAlertPanel.
3514
3515 * nsmenu.m (popupSession): New file-global variable.
3516 (pop_down_menu): End the popupSession before closing dialog.
3517 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3518 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3519 don't query NSApp for events (just sleep instead).
3520
8434d0b8
EZ
35212009-02-07 Eli Zaretskii <eliz@gnu.org>
3522
51d861de
SM
3523 * coding.c (syms_of_coding) <translation-table-for-input>:
3524 Modify doc string to discourage use for character code unification.
8434d0b8 3525
aa82edfd
CY
35262009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3527
3528 * atimer.c (run_timers): Update pending_atimers.
3529
2d283c7c
CY
35302009-02-06 Chong Yidong <cyd@stupidchicken.com>
3531
eb306cab
CY
3532 * image.c (svg_load_image): Fix last change.
3533
2d283c7c
CY
3534 * xfns.c (Fx_create_frame): Signal an error if no font is
3535 found (Bug#2147).
3536
4d8e170e
JB
35372009-02-05 Juanma Barranquero <lekktu@gmail.com>
3538
3539 * character.c (syms_of_character) <script-representative-chars>:
3540 Fix typo in docstring.
3541
c96169a0
AR
35422009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3543
3544 * nsmenu.m (pop_down_menu): New function.
3545 (ns_popup_dialog): Call it on unwind.
3546 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3547 call timer_check() (Bug#2154).
3548 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3549 handling_signal is set.
3550 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3551
31fd7c5c 3552 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3553
3554 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3555
3556 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3557
51d861de
SM
3558 * keyboard.c (poll_for_input_1, handle_async_input):
3559 Set handling_signal under HAVE_NS.
c96169a0 3560
aacd8ba1
GM
35612009-02-04 Glenn Morris <rgm@gnu.org>
3562
3563 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3564
4cb75c4b
KH
35652009-02-04 Kenichi Handa <handa@m17n.org>
3566
3567 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3568
3569 * charset.c (Fchar_charset): New optional arg restriction.
3570
3571 * coding.h (coding_system_charset_list): Extern it.
3572
3573 * coding.c (coding_system_charset_list): New function.
3574
3575 * composite.c: Include coding.h and termhooks.h.
3576 (composition_gstring_p): Fix for the terminal case.
3577 (composition_gstring_width): Likewise.
3578 (fill_gstring_body): Likewise.
3579 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3580 the frame.
3581 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3582 is within a composition.
867d4bb3 3583 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3584
3585 * term.c (encode_terminal_code): Fix handling of composition.
3586 (produce_composite_glyph): For static composition, get pixel_width
3587 from struct composition.
3588
826ba17e
AS
35892009-02-02 Andreas Schwab <schwab@suse.de>
3590
3591 * unexelf.c (unexec): Handle unaligned bss offset.
3592
8ad093db
AR
35932009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3594
3595 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3596 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3597
8ad093db
AR
3598 * keyboard.c (handle_interrupt): Don't call
3599 quit_throw_to_read_char() under NS.
d0a76a6e 3600
8ad093db
AR
3601 * blockinput.h: Remove NS-specific code.
3602
4d18a7a2
DN
36032009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3604
db878925
DN
3605 * dispnew.c (window_change_signal): Don't try to get the size of a
3606 suspended tty frame.
3607 * term.c (Fresume_tty): Resize if the size has changed while the
3608 tty was suspended.
3609
4d18a7a2
DN
3610 * alloc.c (mark_stack): Properly conditionalize previous change.
3611
8984df7c
JB
36122009-01-30 Juanma Barranquero <lekktu@gmail.com>
3613
3614 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3615 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3616 Remove; this code is not used on Windows.
3617
75f4f1ac
EZ
36182009-01-30 Eli Zaretskii <eliz@gnu.org>
3619
3620 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3621 EOLs that also has stray ^M characters.
3622
07a1e794
JB
36232009-01-30 Juanma Barranquero <lekktu@gmail.com>
3624
3625 * atimer.c (run_timers, alarm_signal_handler):
3626 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3627 * w32inevt.c (w32_console_read_socket):
3628 * w32term.c (w32_read_socket):
3629 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3630
a8b11cc9
CY
36312009-01-30 Chong Yidong <cyd@stupidchicken.com>
3632
3633 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3634 Initialize it as a relative filename pattern.
3635 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3636 (Fcall_process_region): Simplify temp file creation using
3637 temporary-file-directory.
3638
c279587b
EZ
36392009-01-29 Eli Zaretskii <eliz@gnu.org>
3640
3641 * msdos.c: Rename pending_signals to msdos_pending_signals.
3642 (sig_suspender, sigprocmask): Adjust.
3643
a8fe3242
CY
36442009-01-29 Chong Yidong <cyd@stupidchicken.com>
3645
3646 * keyboard.c (pending_signals): New var.
3647 (poll_for_input, input_available_signal, init_keyboard): Set it.
3648 (process_pending_signals): New function.
3649
3650 * lisp.h (QUIT): Check pending_signals instead of
3651 interrupt_input_pending. Use process_pending_signals.
3652
51d861de 3653 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3654
51d861de 3655 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3656
3657 * sysdep.c (emacs_write): Use process_pending_signals.
3658
3659 * xterm.c (XTread_socket): Update pending_signals.
3660
3661 * w32term.c (w32_read_socket): Update pending_signals.
3662
3663 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3664
6570a1c4
KH
36652009-01-29 Kenichi Handa <handa@m17n.org>
3666
3667 * xftfont.c (xftfont_has_char): New function.
3668 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3669
d72a4afa
AR
36702009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3671
3672 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3673 under GNUstep.
3674 (ns_query_color): New declaration.
3675
3676 * nsterm.m (ns_confirm_quit): New variable.
3677 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3678 (EmacsApp-applicationShouldTerminate:): Use it.
3679 (EmacsPrefsController): Let user set it.
3680 (ns_query_color): New function.
3681 (ns_defined_color): Use it.
3682 (ns_initialize): Drop.
3683 (ns_term_init): Add two lines from ns_initialize(), and set
3684 input_interrupt_mode to nil.
3685
3686 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3687 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3688
9fe78804
KH
36892009-01-28 Kenichi Handa <handa@m17n.org>
3690
3691 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3692 (fontset_get_font_group): Remember that no font-group is specified
3693 for C.
9fe78804 3694
fa57de36
CY
36952009-01-27 Chong Yidong <cyd@stupidchicken.com>
3696
930600e9
CY
3697 * fns.c (concat): Check for string overflow (bug#1787).
3698
fa57de36
CY
3699 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3700 Quadruple undo limits (bug#1501).
3701
7179ce7b
KH
37022009-01-27 Kenichi Handa <handa@m17n.org>
3703
3704 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3705 directly use GT_Get_Char_index.
3706
3707 * xftfont.c (struct xftfont_info): New member `index'.
3708
3709 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3710 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3711
5be8fcc0
CY
37122009-01-26 Kenichi Handa <handa@m17n.org>
3713
3714 * fontset.c (fontset_find_font): Fix handling of non-cons return
3715 value of fontset_get_font_group.
3716 (fontset_font): Revert last change.
3717
19ae3e61
JR
37182009-01-26 Jason Rumney <jasonr@gnu.org>
3719
3720 * w32font.c (w32font_list_internal): Return quickly if registry is
3721 unknown. Simplify final return.
3722 (add_font_entity_to_list): Break complex logic down into more
3723 manageable chunks. Move unknown registry check to
3724 w32font_list_internal.
3725
8612b71a
AR
37262009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3727
3728 Changes to remove Feval calls from GUI under NS.
3729
d8038940
JB
3730 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3731 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3732 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3733
3734 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3735 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3736 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3737 instead of NON_ASCII_KEYSTROKE_EVENT.
3738 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3739 (EmacsApp-applicationShouldTerminate:): Query user.
3740 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3741 instead of Feval.
3742
3743 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3744
3745 * keyboard.c (kbd_buffer_get_event): Check for it.
3746 (keys_of_keyboard): Define lispy keys for
3747 ns-put/unput-working-text.
3748
3749 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3750 versions.
3751 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3752
6288ae55
CY
37532009-01-25 Chong Yidong <cyd@stupidchicken.com>
3754
3755 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3756 setting current_buffer directly. (Bug#2044)
6288ae55 3757
289e7f8f
CY
37582009-01-24 Chong Yidong <cyd@stupidchicken.com>
3759
5ce87308 3760 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3761 any work. (Bug#1952, bug#1990).
5ce87308 3762
64cc3cf6 3763 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3764
b3243e6f
AR
37652009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3766
3767 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3768 (ns_no_defaults): New declaration.
3769 (main): Use it.
e0d2e69a 3770
d900b2af 3771 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3772
d900b2af 3773 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3774
d900b2af
AR
3775 * nsterm.m (ns_no_defaults): New variable.
3776 (ns_initialize): Don't read defaults when ns_no_defaults.
3777 (EmacsView-readSelectionFromPasteboard:)
3778 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3779 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3780 (ns_dumpglyphs_stretch): New function.
3781 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3782 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3783
e0d2e69a
AR
3784 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3785
3ac71f5d
CY
37862009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3787
3788 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3789 call for Sparc64.
3790
3fe53a83
AR
37912009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3792
3793 * nsfns.m:
3794 * nsgui.h:
3795 * nsmenu.m:
3796 * nsselect.m:
3797 * nsterm.h:
3798 * nsterm.m: Remove '23' comments that indicated code added during
3799 update from emacs-20 -> emacs-23.
3800
10f87c6f 38012009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3802
3803 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3804 ns_alternate_modifier. (Bug#1217)
a3b53a85 3805
c7cef62d
AR
3806 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3807 Display all shortcuts, including those w/o super modifier.
3808
575fb8bd
AR
3809 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3810
918b848b
CY
38112009-01-22 Chong Yidong <cyd@stupidchicken.com>
3812
3813 * fileio.c (Vwrite_region_post_annotation_function)
3814 (Vwrite_region_annotation_buffers): New vars.
3815 (build_annotations_unwind): Just reset
3816 Vwrite_region_annotation_buffers.
3817 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3818 Call write-region-post-annotation-function.
3819 (build_annotations): Add to Vwrite_region_annotation_buffers if
3820 buffer changes.
3821
a39e2539
AR
38222009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3823
3824 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3825 Tiger.
51d861de
SM
3826 * nsfns.m (ns_do_applescript):
3827 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3828
35ed44db
AR
38292009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3830
3831 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3832
cbe0b5bf
AR
38332009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3834
3835 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3836
6049d3a0
AR
3837 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3838
3839 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3840 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3841 handle Ctrl-tab. (Bug#1841)
3842 (ns_get_color): Use unsigned long long for scanned hex string value.
3843 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3844 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3845 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3846 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3847 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3848 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3849 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3850
d3810c21 3851 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3852 DPI. (Bug#1316)
d3810c21
AR
3853 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3854 values in onTiger section.
4c7077c3 3855
e301e634
CY
38562009-01-19 Chong Yidong <cyd@stupidchicken.com>
3857
7f82490b
CY
3858 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3859 Check return value of font_spec_from_name.
64cc3cf6 3860 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3861
3862 * font.c (font_spec_from_name): Return Qnil if font name could not
3863 be parsed.
3864 (font_parse_name): Treat a `?' character as part of an XLFD.
3865
e301e634
CY
3866 * fns.c (Fsubstring): Doc fix.
3867
1c0db158
KH
38682009-01-19 Kenichi Handa <handa@m17n.org>
3869
51d861de 3870 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3871 (ftfont_list): Likewise.
3872
acf20901
JB
38732009-01-18 Juanma Barranquero <lekktu@gmail.com>
3874
fff4e459
JB
3875 * dbusbind.c (Fdbus_register_signal):
3876 * process.c (conv_sockaddr_to_lisp):
3877 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3878
acf20901
JB
3879 * callproc.c (Fgetenv_internal): Doc fix.
3880
e7abcdfb
CY
38812009-01-16 Chong Yidong <cyd@stupidchicken.com>
3882
3883 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3884 it is not even used.
3885
b60861e6
GM
38862009-01-16 Glenn Morris <rgm@gnu.org>
3887
3888 * font.c (Ffont_variation_glyphs): Silence compiler.
3889
8db52afe
JB
38902009-01-15 Juanma Barranquero <lekktu@gmail.com>
3891
3892 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3893 Reported by David Robinow <drobinow@gmail.com>.
3894
4cddb209
KH
38952009-01-15 Kenichi Handa <handa@m17n.org>
3896
51d861de 3897 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3898
f247f67b
JR
38992009-01-14 Jason Rumney <jasonr@gnu.org>
3900
3901 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3902 never a fontset. (Bug#1562)
f247f67b 3903
f56a4450
KH
39042009-01-14 Kenichi Handa <handa@m17n.org>
3905
3906 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3907 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3908
4e99855e
CY
39092009-01-13 Chong Yidong <cyd@stupidchicken.com>
3910
3911 * font.c (font_clear_prop): If clearing the family, clear the font
3912 width index too.
3913
fff4e459 3914 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3915
24f01470
JB
39162009-01-12 Juanma Barranquero <lekktu@gmail.com>
3917
3918 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3919 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3920 functions, use sizeof.
3921
a41240a3
MR
39222009-01-12 Martin Rudalics <rudalics@gmx.at>
3923
3924 * keyboard.c (read_char): Fix case where last_nonmenu_event
3925 returned a bad value with submenus. (Bug#447)
3926
944636b8
CY
39272009-01-12 Chong Yidong <cyd@stupidchicken.com>
3928
3929 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3930 family, clear the font width index too.
3931
0dad7c6f
JR
39322009-01-11 Jason Rumney <jasonr@gnu.org>
3933
3934 * keyboard.c (cmd_error_internal): Exit when errors occur before
3935 frame creation and not in daemon mode. (Bug#1836)
3936
7c2363af
CY
39372009-01-10 Chong Yidong <cyd@stupidchicken.com>
3938
3939 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3940 of a display vector, backtrack.
3941 (try_window_reusing_current_matrix): Check glyph type before
3942 referencing charpos member.
3943
97b1b294
EZ
39442009-01-10 Eli Zaretskii <eliz@gnu.org>
3945
3946 Fix Bug #876:
3947
3948 * coding.c (inhibit_null_byte_detection): New variable.
3949 (detect_coding, detect_coding_system): Don't pay attention to null
3950 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3951 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3952 <inhibit-iso-escape-detection>: Doc fix.
3953
4624b6e3
JR
39542009-01-09 Jason Rumney <jasonr@gnu.org>
3955
3956 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3957 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3958 Only report Unicode Plane 2 fonts as unicode-sip.
3959
323b840c
CY
39602009-01-09 Chong Yidong <cyd@stupidchicken.com>
3961
51d861de
SM
3962 * xfaces.c (Fx_font_family_list): Delete function.
3963 Move compatibility version to faces.el.
323b840c 3964
51d861de 3965 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3966
eba7400d
MR
39672009-01-09 Martin Rudalics <rudalics@gmx.at>
3968
3969 * frame.c (x_set_frame_parameters): Remember requested value for
3970 fullscreen before it's reset by the parameter handler.
3971
4b09796d
GM
39722009-01-09 Glenn Morris <rgm@gnu.org>
3973
3974 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3975 (last_command_event): ... and update all users.
4b09796d
GM
3976 (last_input_char): For clarity, rename to...
3977 (last_input_event): ... and update all users.
3978 (last-command-char, last-input-char): Move to subr.el as aliases.
3979 * cmds.c, commands.h: Update for last_command_char rename.
3980
14ccea62
CY
39812009-01-08 Chong Yidong <cyd@stupidchicken.com>
3982
51d861de 3983 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3984
5f004711
JR
39852009-01-08 Jason Rumney <jasonr@gnu.org>
3986
3987 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3988 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3989 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3990 Don't declare.
fff4e459 3991 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3992 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3993
b71f6f73
KH
39942009-01-07 Kenichi Handa <handa@m17n.org>
3995
50b06221 3996 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3997 remember the coding system used for decoding in
50b06221
KH
3998 coding_system (Bug#1039).
3999
b71f6f73 4000 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4001 breaking the loop. (Bug#870)
b71f6f73
KH
4002 (decode_coding_utf_16, decode_coding_emacs_mule)
4003 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4004 (decode_coding_charset): Likewise.
4005
56f668f7
MR
40062009-01-05 Martin Rudalics <rudalics@gmx.at>
4007
4008 * frame.c (x_set_frame_parameters): Make sure height (width) get
4009 applied when fullwidth (fullheight) is set. (Bug#1522)
4010
5da9424d
JB
40112009-01-04 Juanma Barranquero <lekktu@gmail.com>
4012
4013 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4014 (utc_base): Declare as ULONGLONG, not long double.
4015 (convert_time_raw): Delete.
4016 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4017 (initialize_utc_base): New function.
4018 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4019 (convert_from_time_t): Use initialize_utc_base; compute result with
4020 64-bit arithmetic.
4021 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4022
c4605e09
EZ
40232009-01-03 Eli Zaretskii <eliz@gnu.org>
4024
9acef61c 4025 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4026 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4027 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4028 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4029 [!subprocesses]: Define.
4030 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4031 (Flist_system_processes, Fsystem_process_attributes)
4032 [!subprocesses]: Call list_system_processes and
4033 system_process_attributes instead of returning Qnil.
4034
9acef61c
JB
4035 * dosfns.c (system_process_attributes, list_system_processes):
4036 New functions.
c4605e09
EZ
4037
4038 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4039
4040 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4041 Don't use the default (no-op) implementation.
4042
8b7d0a16
JR
40432009-01-03 Jason Rumney <jasonr@gnu.org>
4044
a6d46bc1
JR
4045 * keyboard.c (parse_modifiers_uncached): Wheel events are
4046 clicks (bug#687).
4047
8b7d0a16
JR
4048 * w32term.c (x_query_colors, x_query_color): New functions.
4049
4050 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4051 (svg_load_image): Cast returned pointers from dynamically loaded
4052 functions. Eliminate W32 specific code.
4053
bfe11752
DN
40542009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4055
89e2438a
DN
4056 * nsfns.m (x_set_foreground_color, x_set_background_color)
4057 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4058 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4059 x_ prefix instead of ns_. Update references.
4060 (syms_of_nsfns): Add a FIXME comment.
4061
4062 * nsterm.m (x_set_cursor_type): New prototype.
4063 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4064
bfe11752
DN
4065 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4066 for Solaris instead of incorrectly providing Qutime and Qcutime.
4067
031da700
EZ
40682009-01-02 Eli Zaretskii <eliz@gnu.org>
4069
4070 * w32.c (process_times): Compute sum of utime and stime.
4071 (system_process_attributes): Add Qtime to the alist.
4072
4073 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4074 and add them to the alist.
4075
4076 * process.c (top level) <Qtime, Qctime>: New variables.
4077 (syms_of_process): staticpro them.
4078 (Fsystem_process_attributes): Add their documentation to the doc
4079 string.
4080
4081 * process.h: Declare Qtime and Qctime.
4082
df23bf08
JR
40832009-01-02 Jason Rumney <jasonr@gnu.org>
4084
9acef61c 4085 * image.c (Qgobject): New symbol.
df23bf08
JR
4086 (syms_of_image): Initialize it.
4087 (init_svg_functions): Load some functions from gobject library.
4088
5bbdf7aa
DN
40892009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4090
4091 * frame.c (make_terminal_frame): Remove redundant code and useless
4092 block.
4093
63136da6
AS
40942009-01-01 Andreas Schwab <schwab@suse.de>
4095
4096 * process.c (conv_sockaddr_to_lisp): Add workaround for
4097 getsockname bug on BSD.
4098
9ef69046
CY
40992009-01-01 Chong Yidong <cyd@stupidchicken.com>
4100
d6fafbe0
CY
4101 * xfns.c (x_create_tip_frame): Set border width of the X window.
4102
51d861de 4103 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4104
f9c34147
JR
41052009-01-01 Jason Rumney <jasonr@gnu.org>
4106
9acef61c 4107 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4108 Don't block input, as per earlier xterm.c changes.
4109
f5497e45
AR
41102008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4111
4112 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4113 (ns_appkit_version_int): New function.
4114 (x-server-version): Use ns_appkit_version_int and follow 21+
4115 convention of returning 3 integers.
4116
c19cab20
KH
41172008-12-30 Kenichi Handa <handa@m17n.org>
4118
4119 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4120 (CHAR_SURROGATE_PAIR_P): New macro.
4121
4122 * font.h (struct font_driver): New member get_variation_glyphs.
4123
9acef61c 4124 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4125 (Ffont_variation_glyphs): New function.
4126 (syms_of_font): Defsubr it.
4127
4128 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4129 ftfont_variation_glyphs.
4130 (setup_otf_gstring): New function.
4131 (ftfont_drive_otf): Use it.
4132 (ftfont_shape_by_flt): Handle variation selector.
4133 (ftfont_variation_glyphs): New function.
4134
28cd591f
MR
41352008-12-30 Martin Rudalics <rudalics@gmx.at>
4136
4137 * frame.c (Vemacs_iconified): Remove.
4138
7f714baf
JR
41392008-12-30 Jason Rumney <jasonr@gnu.org>
4140
4141 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4142 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4143
9d2d22ab
CY
41442008-12-30 Chong Yidong <cyd@stupidchicken.com>
4145
4146 * indent.c (Fvertical_motion): Don't advance iterator if we have
4147 reseated to the desired position.
4148
4149 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4150 checking for pos match.
4151
545312c2
KH
41522008-12-30 Kenichi Handa <handa@m17n.org>
4153
1ede3eb6
KH
4154 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4155 just get the low 8-bit of the code.
4156
545312c2
KH
4157 * font.c (font_intern_prop): Validate str as multibyte.
4158
bd7bbf29
DN
41592008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4160
31e0750e
DN
4161 * dispextern.h (struct face): Move lface and hash from the middle
4162 of bitfields.
4163
bd7bbf29
DN
4164 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4165
b5672e7c
DN
41662008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4167
4168 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4169 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4170 instead of intervals.h.
4171
d704470f
AS
41722008-12-26 Andreas Schwab <schwab@suse.de>
4173
4174 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4175 cons.
4176
54b33868
MR
41772008-12-26 Martin Rudalics <rudalics@gmx.at>
4178
4179 * textprop.c (Qminibuffer_prompt): New variable.
4180 (syms_of_textprop): Initialize it.
4181 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4182 in minibuffer-prompt face. (Bug#1662)
4183
40b615d6
JR
41842008-12-25 Jason Rumney <jasonr@gnu.org>
4185
4186 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4187
baae5c2d
JR
41882008-12-24 Jason Rumney <jasonr@gnu.org>
4189
4190 * ralloc.c (r_alloc_reset_variable): New function.
4191
4192 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4193 record of what points where. (Bug#716)
baae5c2d 4194
a9051c88
DN
41952008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4196
4197 * minibuf.c (read_minibuf): Follow the non-interactive case when
4198 running as a daemon, before detaching.
4199
8b146312
AS
42002008-12-22 Andreas Schwab <schwab@suse.de>
4201
4202 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4203 * gtkutil.c (free_widget_value): Use xfree instead of free.
4204
56f2de10
MR
42052008-12-22 Martin Rudalics <rudalics@gmx.at>
4206
4207 * frame.c (delete_frame): New function derived from
4208 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4209 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4210 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4211 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4212 * frame.h: Extern delete_frame.
4213 * window.c (window_loop):
4214 * terminal.c (delete_terminal):
4215 * xterm.c (x_connection_closed):
4216 * xfns.c (Fx_hide_tip):
9acef61c 4217 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4218
1fc200d6
JR
42192008-12-21 Jason Rumney <jasonr@gnu.org>
4220
4221 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4222 when character maps to .notdef character.
4223
5e252df2
SM
42242008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4225
4226 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4227
99b72cc4
JR
42282008-12-20 Jason Rumney <jasonr@gnu.org>
4229
4230 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4231 a graphical frame on Windows. (Bug#1325)
99b72cc4 4232
acc49a52
JD
42332008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4234
4235 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4236
6ea15123
CY
42372008-12-20 Chong Yidong <cyd@stupidchicken.com>
4238
4239 * minibuf.c (Fread_buffer): Doc fix.
4240
b2dab6c8
JR
42412008-12-20 Jason Rumney <jasonr@gnu.org>
4242
54ea0c87 4243 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4244 server name in UNC paths. (Bug#719)
54ea0c87 4245
b2dab6c8 4246 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4247 charbuf. (Bug#1035)
b2dab6c8 4248
6d1921be
DN
42492008-12-19 Daniel Engeler <engeler@gmail.com>
4250
4251 * sysdep.c (serial_configure): Fix typo.
4252
53934c98
DN
42532008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4254
4255 * sysdep.c: Include alloca.h.
f4f634e8
DN
4256 (system_process_attributes): Add implementation for Solaris.
4257
4258 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4259
06e111a6
DN
42602008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4261
4262 Reorganize implementation of Flist_system_processes and
4263 Fsystem_process_attributes. No functional changes.
4264 * process.c: Don't #include pwd.h, grp.h and limits.h.
4265 (Flist_system_processes): Just call list_system_processes.
4266 (Fsystem_process_attributes): Just call system_process_attributes.
4267 (procfs_list_system_processes, time_from_jiffies)
4268 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4269 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4270
4271 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4272 (list_system_processes): Rename from
4273 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4274 Provide a do nothing implementation.
4275 (system_process_attributes): Rename from
4276 procfs_list_system_processes.
4277 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4278 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4279
4280 * w32.c (list_system_processes): Rename from
4281 w32_list_system_processes.
4282 (system_process_attributes): Rename from
4283 w32_system_process_attributes.
4284
4285 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4286
4287 * process.h (w32_list_system_processes)
4288 (w32_system_process_attributes): Remove.
362654a6
JB
4289 (list_system_processes, system_process_attributes):
4290 New prototypes.
06e111a6 4291
6a705b23
KH
42922008-12-19 Kenichi Handa <handa@m17n.org>
4293
4294 * xfont.c (xfont_decode_coding_xlfd): New function.
4295 (xfont_encode_coding_xlfd): New function.
4296 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4297 (xfont_list): Decode and encode XLFD by iso-8859-1.
4298 (xfont_match): Likewise.
4299 (xfont_list_family): Likewise.
4300 (xfont_open): Likewise.
4301
d66c0241 4302 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4303 names are utf-8.
4304
d66c0241 4305 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4306 names are utf-8.
4307
5a130941
JD
43082008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4309
4310 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4311 changed.
bfd20325
JD
4312 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4313 clicked on a detached tool bar button.
5a130941 4314
fd95644b
DN
43152008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4316
4317 * emacs.c (main): Print and error and exit when no data is read
4318 from the pipe.
4319
e6eee6ae
JR
43202008-12-17 Jason Rumney <jasonr@gnu.org>
4321
4322 * w32font.c (w32font_has_char): Always return -1.
4323
a35dd56b
KH
43242008-12-16 Kenichi Handa <handa@m17n.org>
4325
4326 * font.c (font_open_entity): Fix previous change.
4327
0e3635c2
DN
43282008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4329
4330 * process.c: Include <limits.h>.
4331
d4835507 43322008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4333
4334 * font.c (font_update_drivers): Fix mistake in reconstructing the
4335 driver list.
4336
43372008-12-16 Chong Yidong <cyd@stupidchicken.com>
4338
4339 * font.c (font_clear_cache): Fix format of font cache data.
4340
e2cbc401
CY
43412008-12-15 Chong Yidong <cyd@stupidchicken.com>
4342
4343 * xftfont.c (xftfont_open): Free Xft font pattern if
4344 XftFontOpenPattern fails.
4345
4346 * xterm.c (x_free_frame_resources): Remove extraneous call to
4347 free_frame_faces.
4348
b131d535
CY
43492008-12-13 Chong Yidong <cyd@stupidchicken.com>
4350
4351 * xterm.c (x_delete_display): Move xim_close_dpy call to
4352 x_delete_terminal.
4353 (x_delete_terminal): Call xim_close_dpy.
4354
e6df5336
JR
43552008-12-13 Jason Rumney <jasonr@gnu.org>
4356
4357 * w32font.c (intern_font_name): New function.
4358 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4359 (w32font_open_internal, Fx_select_font): Decode font name.
4360 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4361
4362 * w32font.h (intern_font_name): Declare new function.
4363
4364 * w32uniscribe.c (add_opentype_font_name_to_list):
4365 Use intern_font_name.
4366
20d68145
CY
43672008-12-13 Chong Yidong <cyd@stupidchicken.com>
4368
9f2554de
CY
4369 * frame.c (Fdelete_frame): Call free_font_driver_list.
4370
3d9bec9a
CY
4371 * font.c (free_font_driver_list): Implement missing function.
4372
20d68145
CY
4373 * w32term.c (w32_term_init): Don't initialize the image cache
4374 here; it will be done in init_frame_faces.
4375
4376 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4377 (struct x_display_info): Remove unused member null_pixel. New
4378 member xim_callback_data.
4379
4380 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4381 (xim_initialize): Save pointer to callback function data.
4382 (xim_close_dpy): Free callback function data. Call XCloseIM,
4383 reverting 2008-11-04 change by David Smith.
4384 (x_term_init): Don't initialize the image cache here; it will be
4385 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4386 (x_delete_display): Free x_dnd_atoms member.
4387
96f9306b
KH
43882008-12-13 Kenichi Handa <handa@m17n.org>
4389
6dec9044
JB
4390 * font.c (font_rescale_ratio): Moved from xfaces.c.
4391 Argument type changed. Handle a font-spec too.
96f9306b 4392 (font_score): Check Vface_font_rescale_alist.
6dec9044 4393 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4394
4395 * xfaces.c (font_rescale_ratio): Moved to font.c.
4396
8d5b4964
CY
43972008-12-13 Chong Yidong <cyd@stupidchicken.com>
4398
4399 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4400
e6df5336
JR
44012008-12-12 Jason Rumney <jasonr@gnu.org>
4402
4403 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4404 Vwindow_system_version to the real w32 major version.
4405
97c6058a
DN
44062008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4407
4408 * term.c (init_tty): Move setting the terminal name before the
4409 potential user: maybe_fatal.
4410
ec4e88d7
CY
44112008-12-11 Chong Yidong <cyd@stupidchicken.com>
4412
d4835507
JB
4413 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4414 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4415
b4233ec9
JR
44162008-12-11 Jason Rumney <jasonr@gnu.org>
4417
8ec71e23 4418 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4419 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4420
b4233ec9 4421 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4422 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4423
011a0143
JB
44242008-12-11 Juanma Barranquero <lekktu@gmail.com>
4425
4426 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4427
3c309f34
JB
44282008-12-11 Juanma Barranquero <lekktu@gmail.com>
4429
4430 * process.c (Fsystem_process_attributes, syms_of_process):
4431 Fix typo in name of Ssystem_process_attributes.
4432 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4433
fedc6ab5
JB
44342008-12-11 Juanma Barranquero <lekktu@gmail.com>
4435
4436 * syntax.c (Fmodify_syntax_entry): Doc fix.
4437
ba3de0e8
JB
44382008-12-10 Juanma Barranquero <lekktu@gmail.com>
4439
4440 * font.c (Ffont_spec): Move usage to end of docstring.
4441
174f1c74
JR
44422008-12-10 Jason Rumney <jasonr@gnu.org>
4443
4444 * w32font.c (Qcham): New symbol.
4445 (font_supported_scripts): Add cham, and comments for other new
4446 scripts in bitfield from OpenType spec.
9d32f818
JR
4447 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4448 contain characters beyond the bmp.
174f1c74 4449
7b649478
KH
44502008-12-10 Kenichi Handa <handa@m17n.org>
4451
4452 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4453 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4454 Qunicode_sip.
4455
2133e2d1
JB
44562008-12-10 Juanma Barranquero <lekktu@gmail.com>
4457
4458 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4459 (Fcoding_system_put): Use QCdefault_char.
4460 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4461
9af886ee
CY
44622008-12-09 Chong Yidong <cyd@stupidchicken.com>
4463
74d819eb
CY
4464 * xftfont.c (syms_of_xftfont): Fix typo.
4465
4ccfa1c0 4466 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4467
7c19d3ae
DN
44682008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4469
4470 * emacs.c (main): Close daemon_pipe on exec.
4471
567826bb
CY
44722008-12-08 Chong Yidong <cyd@stupidchicken.com>
4473
4474 * termchar.h (struct tty): New members termcap_term_buffer and
4475 termcap_strings_buffer.
4476
4477 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4478 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4479 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4480 All callers changed.
4481 (init_tty): Store termcap data and string buffers in new struct
4482 tty members termcap_term_buffer and termcap_strings_buffer.
4483 (delete_tty): Free them.
4ccfa1c0 4484 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4485
aa96c42b
SZ
44862008-12-07 Seiji Zenitani <zenitani@mac.com>
4487
4488 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4489 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4490
b7e1d896
CY
44912008-12-06 Chong Yidong <cyd@stupidchicken.com>
4492
4493 * coding.c (make_conversion_work_buffer): Disable buffer
4494 modification hooks in the work buffer.
4495
b5ec91a5
EZ
44962008-12-05 Eli Zaretskii <eliz@gnu.org>
4497
4498 * process.c (procfs_system_process_attributes): If `nread' has a
4499 negative value, assign zero to it.
4500
a5d2a52b
CY
45012008-12-05 Chong Yidong <cyd@stupidchicken.com>
4502
68c5540b 4503 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4504
7bf1bb21
KH
45052008-12-05 Kenichi Handa <handa@m17n.org>
4506
4507 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4508 second character is a combining character.
4509
2fdc7d00
EZ
45102008-12-05 Eli Zaretskii <eliz@gnu.org>
4511
4512 * process.c (procfs_system_process_attributes): Don't use cmd,
4513 cmdsize, and q without initializing them first.
4514
bf6bfba8
JR
45152008-12-04 Jason Rumney <jasonr@gnu.org>
4516
4517 * w32font.c (w32font_draw): Initialize orig_clip before getting
4518 it, and delete it when finished.
4519
a3b1a468
DN
45202008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4521
4522 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4523 case when running as a daemon before detaching.
4524
8b8be8eb
JB
45252008-12-03 Juanma Barranquero <lekktu@gmail.com>
4526
805f2638 4527 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4528
b1bde622
KH
45292008-12-03 Kenichi Handa <handa@m17n.org>
4530
e500c47d
KH
4531 * font.c (font_at): Set `multibyte' at first.
4532
ca516334
KH
4533 * coding.c (decode_coding_charset): Check type of an element of
4534 vector VALIDS.
7bf1bb21 4535 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4536
4ccfa1c0 4537 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4538 (font_for_char): Likewise.
4539
1e5ecd37
CY
45402008-12-03 Chong Yidong <cyd@stupidchicken.com>
4541
d5b01609 4542 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4543 (font_update_lface): Handle fonts with corrupted size specs,
4544 i.e. non-int and non-float.
d5b01609 4545
11e3a6e4 4546 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4547 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4548 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4549
ab06788b
CY
4550 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4551
1e5ecd37 4552 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4553 underline_minimum_offset for underline position.
1e5ecd37 4554
63c125ab
DN
45552008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4556
4557 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4558
4559 * character.c (c_string_width): Specify the type for LEN.
4560
3a8406e1
KH
45612008-12-03 Kenichi Handa <handa@m17n.org>
4562
4ccfa1c0 4563 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4564 (decode_coding_utf_8): Likewise.
4ccfa1c0 4565 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4566 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4567
651df7d9
CY
45682008-12-02 Chong Yidong <cyd@stupidchicken.com>
4569
4570 * keyboard.c (make_lispy_position): Only use PT if the selected
4571 window is current.
4572
1f625c6c
AS
45732008-12-02 Andreas Schwab <schwab@suse.de>
4574
f7741ce9
AS
4575 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4576
1f625c6c
AS
4577 * doprnt.c (doprnt1): Fix size of charbuf.
4578
92bc2678
CY
45792008-12-02 Chong Yidong <cyd@stupidchicken.com>
4580
4581 * keyboard.c (timer_check): Revert last change.
4582
93b9e8cc
JB
45832008-12-02 Juanma Barranquero <lekktu@gmail.com>
4584
4585 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4586
fd7a37d5
JB
45872008-12-01 Juanma Barranquero <lekktu@gmail.com>
4588
4589 * makefile.w32-in: Update dependencies.
4590 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4591
c115043b
AS
45922008-12-01 Andreas Schwab <schwab@suse.de>
4593
4594 * font.c (register_font_driver): Use xmalloc.
4595 (font_put_frame_data): Likewise.
4596
f5668d2a
CY
45972008-12-01 Chong Yidong <cyd@stupidchicken.com>
4598
860d96be
CY
4599 * xfaces.c (realize_x_face): Make abort condition clearer.
4600
f5668d2a
CY
4601 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4602
379c17e7
CY
46032008-11-30 Chong Yidong <cyd@stupidchicken.com>
4604
4605 * keyboard.c (timer_check): After a timer runs, ensure that the
4606 selected window's buffer is current.
4607
35f36d65
JB
46082008-11-30 Juanma Barranquero <lekktu@gmail.com>
4609
f952c61c
JB
4610 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4611 It was accidentally restored by the Unicode merge.
4612
35f36d65
JB
4613 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4614
b23077df
JB
46152008-11-29 Juanma Barranquero <lekktu@gmail.com>
4616
4617 * w32proc.c: Include "coding.h".
4618 (Fw32_short_file_name): Encode filename passed to Windows API.
4619 (Fw32_long_file_name): Encode filename passed to Windows API and
4620 decode back the result. (Bug#1433)
4621
b8ebe9dd
KH
46222008-11-29 Kenichi Handa <handa@m17n.org>
4623
8cc53f96
KH
4624 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4625 not before accessing it.
4626
b8ebe9dd
KH
4627 * charset.c (Fdefine_charset_internal): After calculating
4628 min_char, max_char, and fastmap, copy the charset structure again.
4629 (encode_char): Fix the previous change.
4630
59bc82c0
SZ
46312008-11-28 Seiji Zenitani <zenitani@mac.com>
4632
4633 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4634
4635 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4636
4637 * nsterm.m (x_set_frame_alpha): New function.
4638
32247e3d
EZ
46392008-11-27 Eli Zaretskii <eliz@gnu.org>
4640
4641 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4642
b003e5ff
JB
46432008-11-27 Juanma Barranquero <lekktu@gmail.com>
4644
4645 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4646 pointer to check_face_name.
4647
708550f5
KH
46482008-11-27 Kenichi Handa <handa@m17n.org>
4649
4650 * category.h (SET_CATEGORY_SET): Call set_category_set.
4651 (set_category_set): Extern it.
4652
4653 * category.c (hash_get_category_set): New function.
4654 (Fmodify_category_entry): Adjusted for the change of
4655 char_table_ref_and_range. Call hash_get_category_set to get a
4656 category set to store in the table.
4657
4658 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4659 Funify_charset.
4660
2ae37cf0 4661 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4662 (DECODE_CHAR): Check if the decoder vector is ready.
4663 (ENCODE_CHAR): Check if the encoder char-table is ready.
4664 (maybe_unify_char): Extern it.
4665
4666 * charset.c (Vchar_unified_charset_table): Delete it.
4667 (inhibit_load_charset_map): New variable.
4668 (temp_charset_work): New variable.
4669 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4670 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4671 New macros.
4672 (load_charset_map): Meaning of control_flag changed. If
4673 inhibit_load_charset_map is nonzero, setup a table in
4674 temp_charset_work.
4675 (load_charset): New argument control_flag.
4676 (map_charset_for_dump): New function.
4677 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4678 map_charset_for_dump.
4679 (Fdefine_charset_internal): If the charset method is MAP, load
4680 mapping tables by calling load_charset.
4681 (Funify_charset): Don't load a mapping table but directly set
4682 Vchar_unify_table.
4683 (maybe_unify_char): New function.
4684 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4685 Handle the case of inhibit_load_charset_map being nonzero.
4686 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4687 Handle the case of inhibit_load_charset_map being nonzero.
4688 (Fclear_charset_maps): Just free temp_charset_work.
4689 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4690 variable.
4691
4692 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4693 change of char_table_ref_and_range.
4694 (char_table_ref_and_range): Change the meaning of argument FROM
4695 and TO. Now the caller must provide initial values for *FROM
4696 and *TO.
4697
4698 * fontset.c (fontset_add): Adjusted for the change of
4699 char_table_ref_and_range.
4700 (fontset_get_font_group): Likewise.
4701 (Ffontset_info): Likewise.
4702
4703 * keymap.c (describe_vector): Adjusted for the change of
4704 char_table_ref_and_range. For char-table, put boundary between
4705 non-ASCII and 8-bit characters.
4706
4707 * print.c (print_object): For bool-vector, delete unnecessary
4708 check of ASCII_BYTE_P.
4709
9196133b
JR
47102008-11-26 Jason Rumney <jasonr@gnu.org>
4711
4712 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4713 leading in font height. (Bug#879)
9196133b 4714
9f688acf
GM
47152008-11-26 Glenn Morris <rgm@gnu.org>
4716
4717 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4718 redefinition with ifdef. (Bug#1383)
4719
90d19aff
AR
47202008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4721
4722 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4723
4ccfa1c0 47242008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4725
4726 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4727 New EmacsView methods.
4728 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4729 Fixes bug #1048,1357,1414.
4730
47312008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4732
4733 Fix bug #1362.
4734 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4735 is not an indexed color.
4736 * nsterm.m (free_indexed_color): Add argument checking.
4737 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4738
e7d5ecb3
CY
47392008-11-24 Chong Yidong <cyd@stupidchicken.com>
4740
4741 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4742 Document confirm-after-completion value for
4743 minibuffer-completion-confirm.
4744
c285743c
JR
47452008-11-24 Jason Rumney <jasonr@gnu.org>
4746
4747 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4748 warning.
4749
b0857706
JR
47502008-11-23 Jason Rumney <jasonr@gnu.org>
4751
4752 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4753 restored before returning.
4754
4755 * w32font.c (check_face_name): New function.
4756 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4757 fonts. (Bug#642)
b0857706 4758
ee50ff07
MR
47592008-11-22 Martin Rudalics <rudalics@gmx.at>
4760
4761 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4762 confirm-nonexistent-file-or-buffer in doc-string.
4763
b8ff72fa
SM
47642008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4765
4766 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4767 Fix copy/paste typo. Add checks.
4768
cee53ed4
KH
47692008-11-21 Kenichi Handa <handa@m17n.org>
4770
4771 * coding.c (detect_coding_iso_2022): Reject invalid composition
4772 sequence.
4773 (DECODE_COMPOSITION_START): If the current source is the last
4774 block, and the current composition doesn't end, regard this
4775 sequence as invalid.
4776 (decode_coding_iso_2022): Handle invalid composition sequence.
4777
f6ef1e65
MR
47782008-11-20 Martin Rudalics <rudalics@gmx.at>
4779
4780 * window.c (coordinates_in_window): Don't return
4781 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4782 line when the window is not the rightmost one. (Bug#1372)
4783
e08b1705
MR
47842008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4785
4786 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4787
ad98e89f
EZ
47882008-11-15 Eli Zaretskii <eliz@gnu.org>
4789
4790 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4791 and bright_bg if noninteractive is non-zero.
4792
fb098a4b
CY
47932008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4794
4795 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4796 x_draw_glyph_string_background.
4797
4798 * w32term.c (x_draw_glyph_string): Likewise.
4799
ce952b6e
CY
48002008-11-15 Chong Yidong <cyd@stupidchicken.com>
4801
4802 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4803 the next glyph string once past the overhang width.
4804
4805 * nsterm.m (ns_draw_glyph_string): Likewise.
4806
4807 * w32term.c (x_draw_glyph_string): Likewise.
4808
26ea7079
CY
48092008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4810
4811 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4812 double file close.
4813
1c33c906
MR
48142008-11-14 Martin Rudalics <rudalics@gmx.at>
4815
4816 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4817 dedicated status of window before attempting to display another
4818 buffer in it.
4819
8fc29035
JB
48202008-11-14 Juanma Barranquero <lekktu@gmail.com>
4821
4822 * msdos.c (Fmsdos_long_file_names):
4823 (syms_of_msdos) <dos-unsupported-char-glyph>:
4824 * dosfns.c (Fint86): Fix typos in docstrings.
4825
55fb4286
EZ
48262008-11-14 Eli Zaretskii <eliz@gnu.org>
4827
4828 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4829
3fda0315
KY
48302008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4831
4832 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4833
7e849c17
CY
48342008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4835
4836 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4837
4838 * frame.h: Negative alpha means "don't touch".
4839
4840 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4841
4842 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4843
b9fd67bd
DN
48442008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4845
4846 * hftctl.c:
4847 * chpdef.h:
4848 * acldef.h: Remove files used only for systems no longer supported.
4849
4850 * Makefile.in: Fix .o alphabetical ordering.
4851 (hftctl.o): Remove dependency, file removed.
4852 (keymap.o, print.o): Depend on charset.h.
4853
d5998e03
KH
48542008-11-10 Kenichi Handa <handa@m17n.org>
4855
2ae37cf0 4856 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4857
be70e183
CY
48582008-11-08 Chong Yidong <cyd@stupidchicken.com>
4859
4860 * dired.c (file_name_completion): If completion_ignore_case is
4861 enabled, ignore case when checking completion-regexp-list.
4862
7cf94eac
EZ
48632008-11-08 Eli Zaretskii <eliz@gnu.org>
4864
4865 * vm-limit.c (get_lim_data): Fix last change.
4866
ee107a89
KH
48672008-11-08 Kenichi Handa <handa@m17n.org>
4868
4869 * character.c (Fget_byte): New function.
4870 (syms_of_character): Defsubr Fget_byte.
4871
5fd15622
CY
48722008-11-07 Chong Yidong <cyd@stupidchicken.com>
4873
4874 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4875 cursor position is valid after scrolling.
4876
13d62fad
JB
48772008-11-06 Juanma Barranquero <lekktu@gmail.com>
4878
4879 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4880
a1dd2936
GM
48812008-11-06 Glenn Morris <rgm@gnu.org>
4882
4883 * xterm.c (handle_one_xevent): Don't let popup menus cause
4884 mouse-autoselect-window related window switching. (Bug#1261)
4885
860cd236
CY
48862008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4887
4888 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4889
653a3150
AS
48902008-11-04 Andreas Schwab <schwab@suse.de>
4891
4892 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4893
870f5cac
CY
48942008-11-03 Chong Yidong <cyd@stupidchicken.com>
4895
4896 * xfns.c (Fx_wm_set_size_hint): New function.
4897
1e02f3cb
MR
48982008-11-03 Martin Rudalics <rudalics@gmx.at>
4899
4900 * textprop.c (Fprevious_single_char_property_change): Return 0
4901 when there's no change in a string. (Bug#1301)
4902
e630dfc6
MR
49032008-11-02 Martin Rudalics <rudalics@gmx.at>
4904
4905 * frame.c (do_switch_frame): New argument NORECORD passed to
4906 Fselect_window.
4907 (Fselect_frame): New argument NORECORD passed to
4908 do_switch_frame.
4909 (Fset_frame_selected_window): New argument NORECORD passed to
4910 Fselect_frame.
4911 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4912 in call of do_switch_frame.
4913 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4914 Handle NORECORD argument in call of Fselect_frame.
4915 * lisp.h (do_switch_frame, Fselect_frame)
4916 (Fset_frame_selected_window): Adjust declarations.
4917 * window.c (select_frame_norecord): New function.
4918 (run_window_configuration_change_hook): Use it and call
4919 Fselect_frame with NORECORD set.
4920 (Fselect_window): Pass NORECORD to Fselect_frame.
4921 (Fset_window_configuration): Handle NORECORD argument in call of
4922 do_switch_frame.
4923 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4924 Fset_frame_selected_window.
4925 * keyboard.c (command_loop_1): Handle NORECORD in call of
4926 Fselect_frame (currently ifdefd).
4927
9020b223
GM
49282008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4929
4930 * emacs.c (USAGE2): Untabify.
4931
793ffee8
SM
49322008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4933
4934 * composite.c (fill_gstring_header): Fix copy/paste typo.
4935
ab6d1131
MR
49362008-10-31 Martin Rudalics <rudalics@gmx.at>
4937
4938 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4939 (Fother_window): Rename argument and rewrite doc-string.
4940 (select_window_norecord): Fix return value. (Bug#1276)
4941
601a9cf1
JB
49422008-10-30 Juanma Barranquero <lekktu@gmail.com>
4943
4944 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4945 new frames overriding foreground for tooltips. Based on similar patch
4946 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4947
813b0652
CY
49482008-10-29 Chong Yidong <cyd@stupidchicken.com>
4949
4950 * emacs.c (Fdaemon_initialized): Initialize nfd.
4951
4414f58f
MR
49522008-10-29 Martin Rudalics <rudalics@gmx.at>
4953
4954 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4955 (Fwindow_text_height): Clarify doc-strings.
4956 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4957 doc-string of window-scroll-functions.
4958
ecdcaa09
RS
49592008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4960
4961 * category.c (syms_of_category): Fix typo in docstring.
4962
23fe745a
JB
49632008-10-28 Juanma Barranquero <lekktu@gmail.com>
4964
4965 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4966 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4967 Fix typos in docstrings.
4968
ff808935
DN
49692008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4970
4971 * emacs.c (daemon_pipe): Make non-static.
4972 (IS_DAEMON): Move definition ...
4973 * lisp.h (IS_DAEMON): ... here.
4974 (daemon_pipe): Declare.
4975 (is_daemon): Remove.
4976 * dispnew.c (init_display): Use IS_DAEMON.
4977
fc012771
SM
49782008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4979
4980 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4981 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4982
4983 * emacs.c (is_daemon): Remove.
4984 (main): Don't set is_daemon.
4985 (IS_DAEMON): New macro.
4986 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4987 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4988 parent exits.
4989 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4990
d8bdbe6f
CY
49912008-10-27 Chong Yidong <cyd@stupidchicken.com>
4992
d1a072bf
CY
4993 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4994 over-sized glyph, draw it with the default glyph width.
4995
e2e325aa
CY
4996 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4997 glyph, draw it with the default glyph width.
4998
4999 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5000 glyph, draw it with the default glyph width.
5001
d8bdbe6f
CY
5002 * xdisp.c (try_scrolling): When computing the distance from the
5003 scroll margin to PT, try moving some distance past the window
5004 bottom before giving up.
5005
7bfac547
MR
50062008-10-27 Martin Rudalics <rudalics@gmx.at>
5007
5008 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5009 (Fset_window_buffer): Explain in doc-string that a window can be
5010 "strongly" dedicated to its buffer.
5011
4ff029f6
DN
50122008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5013
5014 * emacs.c (daemon_name): New variable.
5015 (main): Deal with --daemon=SERVER_NAME.
5016 (Fdaemonp): Return a name if one was passed to --daemon.
5017
5790ef40
DN
50182008-10-26 Romain Francoise <romain@orebokech.com>
5019
f9bd0df9 5020 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5021 (main): Create a pipe before forking, make the parent exit only after
5022 the child has closed its end of the pipe. Move closing the
5023 descriptors ...
5024 (Fdaemon_initialized): ... here. New function.
5025
f5385255
SM
50262008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5027
4d632321
SM
5028 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5029 the previous unoptimized table.
5030
f5385255
SM
5031 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5032 the distinction between non-nil and non-t value of `dedicated'.
5033
6c56a0f3
CY
50342008-10-25 Chong Yidong <cyd@stupidchicken.com>
5035
5036 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5037 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5038
fec89261
MR
50392008-10-25 Martin Rudalics <rudalics@gmx.at>
5040
5041 * window.c (Fget_buffer_window, Fdelete_windows_on)
5042 (Freplace_buffer_in_windows): Make buffer argument optional and
5043 rename to buffer_or_name.
5044
34fcddd0
CY
50452008-10-24 Chong Yidong <cyd@stupidchicken.com>
5046
f5385255
SM
5047 * xdisp.c (handle_single_display_spec, handle_display_prop):
5048 Undo 2005-05-16 change.
34fcddd0
CY
5049 (handle_stop): Pop iterator if it's loaded with an empty string.
5050 (get_overlay_strings_1): Don't save iterator if it's loaded with
5051 an empty string (bug#1201).
5052
064766f2
KH
50532008-10-24 Kenichi Handa <handa@m17n.org>
5054
5055 * ftfont.c (ftfont_otf_features): Fix previous change.
5056 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5057 calling ftfont_otf_features.
5058
f9bd0df9 50592008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5060
5061 * font.c (font_match_p): Fix for the case that a vector of
5062 characters is in script-representative-chars.
5063
1dae9197
MA
50642008-10-24 Michael Albinus <michael.albinus@gmx.de>
5065
5066 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5067 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5068 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5069 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5070 macro. (Bug#1186).
5071
f9bd0df9 50722008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5073
5074 * s/sol2-10.h: New file.
5075
878a4584
JB
50762008-10-23 Juanma Barranquero <lekktu@gmail.com>
5077
5078 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5079 poor beast has survived 9+ years and the jump from xterm.c!).
5080
cd265ca6
MR
50812008-10-23 Martin Rudalics <rudalics@gmx.at>
5082
5083 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5084 Reword doc-string.
f5385255 5085 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5086
472a4dc9
JB
50872008-10-23 Juanma Barranquero <lekktu@gmail.com>
5088
5089 * character.c (syms_of_character) <script-representative-chars>:
5090 <unicode-category-table>: Doc fixes.
5091
159bd5a2
NF
50922008-10-23 Noah Friedman <friedman@splode.com>
5093
5094 * coding.c (make_conversion_work_buffer): Check that
5095 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5096 Fget_buffer_create.
5097
49f9c344
KH
50982008-10-23 Kenichi Handa <handa@m17n.org>
5099
5100 * font.c (font_add_log): Check the values of extra properties.
5101
12bb3111
MR
51022008-10-22 Martin Rudalics <rudalics@gmx.at>
5103
5104 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5105 Reword doc-string.
5106 (Fset_window_parameter): Use NILP.
5107 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5108 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5109
bbeb4e99
JB
51102008-10-22 Juanma Barranquero <lekktu@gmail.com>
5111
5112 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5113
51142008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5115
5116 * nsfns.m (ns_appkit_version): New function.
5117 (x-server-version): Use it.
5118 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5119 (x-server-vendor): Don't check_ns().
5120
5121 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5122
a9b555d3
JB
51232008-10-22 Juanma Barranquero <lekktu@gmail.com>
5124
5125 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5126 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5127
4626499f
KH
51282008-10-22 Kenichi Handa <handa@m17n.org>
5129
e3681952
KH
5130 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5131 scripts.
5132
4626499f
KH
5133 * category.c (word_boundary_p): Check scripts instead of charset.
5134 Handle nil value in word-separating-categories and
5135 word-combining-categories.
5136 (syms_of_category): Fix docstrings of word-separating-categories
5137 and word-combining-categories.
5138
1560f91a
EZ
51392008-10-21 Eli Zaretskii <eliz@gnu.org>
5140
5141 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5142 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5143
f4668441
MR
51442008-10-21 Martin Rudalics <rudalics@gmx.at>
5145
5146 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5147 Rename arg "buffer" to "buffer_or_name".
5148 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5149 it optional.
5150 (no_switch_window): Remove since the return value is not used.
a9b555d3 5151 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5152 Consider window as dedicated when Fwindow_dedicated_p returns a
5153 non-nil value.
5154 * lisp.h: Remove prototype for no_switch_window.
5155
fd75ddb2
JD
51562008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5157
5158 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5159 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5160
07295713
KH
51612008-10-21 Kenichi Handa <handa@m17n.org>
5162
5163 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5164 check Vlatin_extra_code_table.
5165
712adc82
EZ
51662008-10-20 Eli Zaretskii <eliz@gnu.org>
5167
5168 * fileio.c (Fset_file_modes): Doc fix.
5169
f549eb0b
MA
51702008-10-19 Michael Albinus <michael.albinus@gmx.de>
5171
5172 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5173 in arrays.
5174
aac0c6e3
MR
51752008-10-19 Martin Rudalics <rudalics@gmx.at>
5176
5177 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5178 Mention kill-buffer in doc-string.
5179 (Fset_window_buffer): Reinsert tem check removed in last commit.
5180 (Fenlarge_window, Fshrink_window): Have argument names and
5181 doc-string follow Elisp manual more closely.
5182
51832008-10-18 Eli Zaretskii <eliz@gnu.org>
5184
5185 * fileio.c (Fset_file_modes): Doc fix.
5186
51872008-10-18 Martin Rudalics <rudalics@gmx.at>
5188
5189 * window.c (Fwindow_width, Fset_window_start)
5190 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5191 (Fdelete_windows_on, Freplace_buffer_in_windows):
5192 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5193 (Fwindow_dedicated_p): Make window argument optional.
5194 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5195 (Fset_window_buffer): Respect any non-nil dedicated value for
5196 window. Rename "buffer" argument to "buffer_or_name".
5197
51982008-10-18 Ulrich Mueller <ulm@gentoo.org>
5199
5200 * m/sh3.h: New file, machine description for SuperH.
5201
52022008-10-17 Martin Rudalics <rudalics@gmx.at>
5203
5204 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5205
52062008-10-17 Kenichi Handa <handa@m17n.org>
5207
5208 * ftfont.c (ftfont_otf_features): Fix indexing
5209 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5210
52112008-10-16 Magnus Henoch <mange@freemail.hu>
5212
5213 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5214 (Fdbus_call_method_asynchronously): Ditto.
5215 This change makes C-h f display the argument list.
5216
52172008-10-16 Chong Yidong <cyd@stupidchicken.com>
5218
5219 * fileio.c (Fexpand_file_name): Doc fix.
5220
5221 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5222 of :foreground and :background equivalent to unspecified (20.x
5223 compatibility).
5224
52252008-10-15 Eli Zaretskii <eliz@gnu.org>
5226
5227 * buffer.c (syms_of_buffer): Doc fix.
5228
52292008-10-14 Kenichi Handa <handa@m17n.org>
5230
5231 * font.c (font_clear_prop): When clearing font width, clear the
5232 average width field too.
5233
52342008-10-12 Andreas Schwab <schwab@suse.de>
5235
5236 * ftfont.c (ftfont_shape_by_flt): Make static.
5237 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5238
5239 * font.c: Don't include <m17n-flt.h>.
5240
52412008-10-10 Eli Zaretskii <eliz@gnu.org>
5242
5243 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5244
52452008-10-09 Eli Zaretskii <eliz@gnu.org>
5246
5247 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5248 away code.
5249
52502008-10-09 Chong Yidong <cyd@stupidchicken.com>
5251
5252 * dispnew.c (update_text_area): Avoid looping due to large glyph
5253 overhangs (bug#1070).
5254
52552008-10-09 Kenichi Handa <handa@m17n.org>
5256
5257 * fontset.c (face_for_char): If face->fontset is negative, just
5258 return ascii_face.
5259
f5385255
SM
5260 * font.c (font_delete_unmatched): Fix previous change.
5261 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5262
52632008-10-09 Martin Rudalics <rudalics@gmx.at>
5264
5265 * frame.c (Fraise_frame): On text-only terminals select frame in
5266 order to make it visible. (Bug#1061)
5267
52682008-10-08 Chong Yidong <cyd@stupidchicken.com>
5269
5270 * fontset.c (fontset_find_font): Check frame validity.
5271
52722008-10-07 Chong Yidong <cyd@stupidchicken.com>
5273
a9b555d3 5274 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5275 (xg_display_close): Allow Emacs to close all displays (bug#985).
5276
52772008-10-06 Andreas Schwab <schwab@suse.de>
5278
f5385255 5279 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5280
52812008-10-06 Chong Yidong <cyd@stupidchicken.com>
5282
f5385255 5283 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5284
a9b555d3 5285 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5286
5287 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5288 during initialization.
5289
52902008-10-04 Eli Zaretskii <eliz@gnu.org>
5291
5292 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5293 whole thing on MSDOS frames as well as on a TTY.
5294
5295 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5296 well as for TTY.
5297 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5298 well as on a TTY.
5299
5300 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5301 as well as for TTY.
5302
5303 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5304
5305 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5306 MSDOS frames as well.
5307
53082008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5309
5310 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5311 correct arguments.
b71ac3dd 5312 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5313
53142008-10-03 Glenn Morris <rgm@gnu.org>
5315
5316 * emacs.c (USAGE1): Add --daemon.
5317
53182008-10-02 Eli Zaretskii <eliz@gnu.org>
5319
5320 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5321 100, so it's in percents as advertised.
5322
53232008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5324
5325 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5326 (ns_output.current_cursor, ns_output.desired_cursor)
5327 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5328 (FRAME_NEW_CURSOR_COLOR): Remove.
5329
5330 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5331 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5332 enumeration (HOLLOW_BOX_CURSOR, etc.).
5333
5334 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5335 (draw_window_cursor): Simplify code.
f5385255
SM
5336 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5337 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5338 updates manually.
a9b555d3
JB
5339 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5340 Use core Emacs cursor types.
aac0c6e3 5341
b8ff72fa 5342 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5343
53442008-10-02 Martin Rudalics <rudalics@gmx.at>
5345
5346 * process.c (Faccept_process_output): Fix doc-string.
5347
53482008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5349
5350 * gmalloc.c (__sbrk): Also define for uClibc.
5351
5352 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5353 for uClibc.
5354
53552008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5356
5357 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5358 styles.
5359 (nsfont_open): Reenable the cache.
5360
53612008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5362
5363 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5364 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5365
53662008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5367
5368 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5369 a suspended terminal.
5370
53712008-09-30 Michael Albinus <michael.albinus@gmx.de>
5372
5373 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5374
53752008-09-30 Eli Zaretskii <eliz@gnu.org>
5376
5377 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5378
53792008-09-30 Chong Yidong <cyd@stupidchicken.com>
5380
5381 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5382 in a continued line coincides with a line beginning.
5383
53842008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5385
5386 * nsfont.m (nsfont_trait_distance): Fix bug.
5387 (nsfont_list): Return a list rather than a vector (syncs with Handa
5388 changes of 2008-05-14).
5389 (nsfont_open): Improve logging.
5390
53912008-09-29 Andreas Schwab <schwab@suse.de>
5392
5393 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5394
53952008-09-28 Martin Rudalics <rudalics@gmx.at>
5396
5397 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5398 name as char-resolve-modifiers.
5399 Reported by: Markus Triska <markus.triska@gmx.at>
5400
54012008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5402
5403 * dispnew.c (init_display): Return earlier when running as a daemon.
5404
54052008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5406
5407 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5408
54092008-09-27 Eli Zaretskii <eliz@gnu.org>
5410
5411 * composite.c (Fcomposition_get_gstring)
5412 (Fcompose_region_internal, Fcompose_string_internal)
5413 (Ffind_composition_internal): Doc fix.
5414 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5415 (syms_of_composite) <auto-composition-function>: Doc fix.
5416 (syms_of_composite) <composition-function-table>: Doc fix.
5417
54182008-09-25 Chong Yidong <cyd@stupidchicken.com>
5419
5420 * search.c (wordify): New argument for lax word-ends.
5421 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5422
54232008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5424
5425 * lisp.h (is_daemon): Declare.
5426 * dispnew.c (init_display): Do not try to initialize the terminal
5427 when running as a daemon.
5428
54292008-09-22 Chong Yidong <cyd@stupidchicken.com>
5430
5431 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5432 x_display_pixel_height.
5433
54342008-09-22 Martin Rudalics <rudalics@gmx.at>
5435
5436 * undo.c (record_point): Don't call Fundo_boundary for first
5437 change. (Bug#731)
5438
54392008-09-22 Juanma Barranquero <lekktu@gmail.com>
5440
5441 * emacs.c (Fdaemonp): Doc fix.
5442
54432008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5444
5445 * emacs.c (main): Place #ifdef in the proper place.
5446
54472008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5448
5449 * emacs.c (standard_args): Add --daemon.
5450 (main): Disconnect from the terminal when --daemon is passed.
5451 (is_daemon): New variable.
5452 (Fdaemonp): New function.
5453 (syms_of_emacs): Defsubr it.
5454
54552008-09-20 Chong Yidong <cyd@stupidchicken.com>
5456
5457 * xdisp.c (get_next_display_element): Handle string display
5458 correctly when checking for the end of a box run.
5459
54602008-09-20 Glenn Morris <rgm@gnu.org>
5461
5462 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5463 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5464 (Frename_file): Avoid copying to trash if a rename involves
5465 a delete. (Bug#964).
5466
54672008-09-20 Eli Zaretskii <eliz@gnu.org>
5468
5469 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5470 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5471 frames as well as termcap frames.
5472 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5473 get_named_tty.
5474
54752008-09-19 Eli Zaretskii <eliz@gnu.org>
5476
5477 * process.c (procfs_system_process_attributes): Fix cmdline in
5478 case /proc/PID/cmdline is empty.
5479
5480 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5481 x_display_pixel_height.
5482
54832008-09-19 Juanma Barranquero <lekktu@gmail.com>
5484
5485 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5486
5487 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5488 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5489
54902008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5491
5492 * dispextern.h (struct it): Move line_wrap away from the middle of
5493 bitfields. Move voffset in struct iterator_stack_entry after the
5494 bitfields. Move tab_width near after another short.
5495
54962008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5497
5498 * frame.h (struct frame): Move alpha from the middle of bitfields.
5499
5500 * window.h (struct window): Move frozen_window_start_p after the
5501 rest of the bitfields to reduce padding.
5502
55032008-09-18 Chong Yidong <cyd@stupidchicken.com>
5504
5505 * xterm.h (x_display_info): Remove `height' and `width' members.
5506
5507 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5508
5509 * w32term.h (w32_display_info): Remove `height', `width',
5510 `height_in', and `width_in' members.
5511
b8ff72fa
SM
5512 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5513 New functions.
aac0c6e3
MR
5514 (x_calc_absolute_position): Use them.
5515 (x_term_init): Omit removed `height' and `width' members.
5516
b8ff72fa
SM
5517 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5518 New functions.
aac0c6e3
MR
5519 (w32_read_socket, x_calc_absolute_position): Use them.
5520 (w32_initialize_display_info, w32_term_init): Omit removed members
5521 of w32_display_info.
5522
b8ff72fa
SM
5523 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5524 New functions.
5525 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5526
b8ff72fa
SM
5527 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5528 New functions.
aac0c6e3
MR
5529 (x_calc_absolute_position): Use them.
5530 (x_term_init): Omit removed `height' and `width' members.
5531
5532 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5533 (compute_tip_xy):
5534 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5535 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5536 x_display_pixel_width.
5537
55382008-09-18 Kenichi Handa <handa@m17n.org>
5539
5540 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5541 (composition_compute_stop_pos): Fix handling of static composition.
5542 (Fcomposition_get_gstring): Check FROM and TO at first.
5543
55442008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5545
46e722a9 5546 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5547 mixup (YAILOM).
5548
55492008-09-17 Chong Yidong <cyd@stupidchicken.com>
5550
5551 * indent.c (Fvertical_motion): Use position reported by iterator
5552 instead of PT for determining screen motion (bug#943).
5553
55542008-09-17 Romain Francoise <romain@orebokech.com>
5555
5556 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5557
55582008-09-17 Kenichi Handa <handa@m17n.org>
5559
5560 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5561
5562 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5563 if necessary.
5564
55652008-09-16 Kenichi Handa <handa@m17n.org>
5566
5567 * coding.c (make_conversion_work_buffer): Avoid calling
5568 Fget_buffer_create if it is not necessary.
5569
55702008-09-15 Martin Rudalics <rudalics@gmx.at>
5571
5572 * window.c (Fselect_window): Don't update window_select_count and
5573 use_time when norecord is not nil.
5574
55752008-09-14 Kenichi Handa <handa@m17n.org>
5576
5577 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5578 specpdl_ptr.
5579
55802008-09-12 Kenichi Handa <handa@m17n.org>
5581
5582 * indent.c (scan_for_column): Don't handle automatic composition
5583 if the current buffer is not associated with a window.
5584
5585 * composite.c (composition_reseat_it): If the current buffer is
5586 not associated with a window, ignore the automatic composition.
5587 (find_automatic_composition): Likewise.
5588
55892008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5590
5591 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5592 (Fgpm_mouse_stop): Use it.
5593 * termhooks.h (close_gpm): Declare.
5594 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5595 connection if Gpm_GetEvent fails.
5596
5597 * window.c (set_window_buffer): Always preserve current-buffer.
5598
55992008-09-12 Glenn Morris <rgm@gnu.org>
5600
5601 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5602
56032008-09-11 Glenn Morris <rgm@gnu.org>
5604
5605 * charset.c (charset-map-path): Doc fix.
5606
56072008-09-10 Kenichi Handa <handa@m17n.org>
5608
5609 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5610
5611 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5612 compose a grapheme cluster with the preceding base glyph.
5613
5614 * composite.c (composition_compute_stop_pos): Fix previous change.
5615 Reset cmp_it->id to -1 at first.
5616
56172008-09-10 Glenn Morris <rgm@gnu.org>
5618
5619 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5620
56212008-09-09 Chong Yidong <cyd@stupidchicken.com>
5622
5623 * keyboard.c (read_key_sequence): Reapply translation maps when
5624 switching keyboards.
5625
56262008-09-09 Kenichi Handa <handa@m17n.org>
5627
5628 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5629 characters.
5630
5631 * composite.c (FORWARD_CHAR): Fix calculation
5632 of (POSITION).pos_byte.
5633 (composition_compute_stop_pos): Limit the search of composition to
5634 at most 500 characters ahead. If we reach the limit or find a
5635 newline, set cmp_it->ch to -2 and return 0.
5636 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5637
56382008-09-08 Kenichi Handa <handa@m17n.org>
5639
5640 * indent.c (Fvertical_motion): Be sure to set
5641 it_overshoot_expected if it.cmp_it.id is non-negative.
5642
56432008-09-07 Andreas Schwab <schwab@suse.de>
5644
5645 * callproc.c (Fcall_process): Don't hold references to string data
5646 across garbage collection. Move initialisation of new_argv down
5647 to avoid compiler bug.
5648
56492008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5650
5651 * process.c (Fsystem_process_attributes): Doc fix.
5652
56532008-09-07 Chong Yidong <cyd@stupidchicken.com>
5654
5655 * callproc.c (Fcall_process): Canonicalize current directory name.
5656
5657 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5658 iterator advances to the next line if the current line ends in a
5659 continued tab.
5660
56612008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5662
5663 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5664 member to point to cmp_from.
5665
5666 * xdisp.c: Doc fix for references to gidx data member.
5667
56682008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5669
5670 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5671
56722008-09-07 Kenichi Handa <handa@m17n.org>
5673
5674 * composite.c (FORWARD_CHAR): Check STOP after
5675 incrementing (POSITION).pos.
5676
56772008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5678
5679 * process.c (Fsystem_process_attributes): Doc fix.
5680
56812008-09-06 Chong Yidong <cyd@stupidchicken.com>
5682
5683 * keyboard.c (Ftop_level): Doc fix.
5684
56852008-09-06 Eli Zaretskii <eliz@gnu.org>
5686
5687 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5688 minibuffer, don't let lower part of menu invade the echo area.
5689
5690 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5691 "char *q" to access menu text and advance through it. Revert the
5692 change that displayed ">" instead of ASCII character 0x10.
5693
56942008-09-05 Eli Zaretskii <eliz@gnu.org>
5695
5696 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5697 toggle boxes and radio buttons on MS-DOS as well.
5698
56992008-09-05 Kenichi Handa <handa@m17n.org>
5700
5701 * composite.c (autocmp_chars): Check lookback count.
5702 (composition_compute_stop_pos): Set cmp_it->lookback.
5703 (composition_reseat_it): Check lookback count.
5704 (struct position_record): New struct.
5705 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5706 (find_automatic_composition): New function.
5707 (composition_adjust_point): Use find_automatic_composition.
5708
5709 * dispextern.h (struct composition_it): New member lookback.
5710
57112008-09-02 Chong Yidong <cyd@stupidchicken.com>
5712
5713 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5714 if moving by a single line.
5715
57162008-09-02 Andreas Schwab <schwab@suse.de>
5717
5718 * xterm.c (x_delete_display): Fix merge error.
5719
5720 * fileio.c (Fexpand_file_name): Remove unused variables.
5721
57222008-09-02 Eli Zaretskii <eliz@gnu.org>
5723
5724 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5725 storage on all platforms, not just on DOS_NT.
5726
57272008-09-02 Jason Rumney <jasonr@gnu.org>
5728
b8ff72fa
SM
5729 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5730 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5731
57322008-09-01 Chong Yidong <cyd@stupidchicken.com>
5733
5734 * xfaces.c (Finternal_set_alternative_font_family_alist)
5735 (Finternal_set_alternative_font_registry_alist): Properly copy
5736 entire alist structure.
5737
57382008-09-01 Kenichi Handa <handa@m17n.org>
5739
d66c0241 5740 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5741 representative chars of the script is a vector.
d66c0241
JB
5742 (ftfont_list): Handle the case where the representative chars of
5743 the script is a vector.
aac0c6e3
MR
5744
5745 * character.c (syms_of_character): Docstring of
5746 script-representative-chars fixed.
5747
57482008-08-31 Eli Zaretskii <eliz@gnu.org>
5749
5750 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5751 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5752 the menu. Allocate larger buffer for `text', to account for
5753 possible ^C characters.
5754
57552008-08-31 Martin Rudalics <rudalics@gmx.at>
5756
5757 * xdisp.c (prepare_menu_bars): Don't call
5758 Vwindow_size_change_functions with arg Qt.
5759
57602008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5761
5762 * font.h (font_range):
5763 * fileio.c (report_file_error):
46e722a9
SM
5764 * composite.c (composition_update_it): Yet another int/Lisp_Object
5765 mixup (YAILOM).
aac0c6e3
MR
5766
57672008-08-30 Glenn Morris <rgm@gnu.org>
5768
5769 * data.c (Fmake_variable_frame_local): Doc fix.
5770
5771 * frame.c (Fmodify_frame_parameters): Doc fix.
5772
57732008-08-30 Eli Zaretskii <eliz@gnu.org>
5774
5775 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5776 needed by GetTokenInformation.
5777 (w32_system_process_attributes): Check return values of all system
5778 APIs.
5779
5780 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5781 only when the state changes.
5782 (IT_update_begin, IT_update_end): Add termscript trace.
5783
5784 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5785 clipboard is unavailable. Set dst to NULL if it doesn't point to
5786 malloc'ed data.
5787 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5788 passing random values to xfree.
5789
5790 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5791 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5792
57932008-08-29 Jason Rumney <jasonr@gnu.org>
5794
5795 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5796
57972008-08-29 Eli Zaretskii <eliz@gnu.org>
5798
5799 * composite.c (fill_gstring_body): Avoid compiler warnings.
5800
5801 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5802 LGLYPH_SET_CODE to avoid compiler warnings.
5803
2ae37cf0 5804 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5805
5806 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5807
5808 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5809 LGLYPH_SET_CODE.
5810
58112008-08-29 Kenichi Handa <handa@m17n.org>
5812
5813 * fileio.c (report_file_error): Don't downcase the first character
5814 of errstring if it is still unibyte.
5815
58162008-08-29 Kenichi Handa <handa@m17n.org>
5817
5818 These changes are to re-implement the automatic composition so
5819 that it doesn't use text properties.
5820
5821 * Makefile.in (ftfont.o): Depend on composite.h.
5822 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5823
5824 * character.h (Vunicode_category_table): Extern it.
5825
5826 * character.c (Vunicode_category_table): New variable.
5827 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5828
5829 * chartab.c (optimize_sub_char_table): Perform more greedy
5830 optimization.
5831
b8ff72fa
SM
5832 * composite.h (enum composition_method):
5833 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5834 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5835 (Vcomposition_function_table): Extern it.
5836 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5837 (composition_gstring_put_cache, composition_gstring_from_id)
5838 (composition_gstring_p, composition_gstring_width)
5839 (composition_compute_stop_pos, composition_reseat_it)
5840 (composition_update_it, composition_adjust_point): Extern them.
5841 (Fcomposition_get_gstring): EXFUN it.
5842
d66c0241 5843 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5844 (Vcomposition_function_table)
5845 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5846 (gstring_hash_table, gstring_work, gstring_work_headers):
5847 New variables.
aac0c6e3
MR
5848 (gstring_lookup_cache, composition_gstring_put_cache)
5849 (composition_gstring_from_id, composition_gstring_p)
5850 (composition_gstring_width, fill_gstring_header)
5851 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5852 (composition_reseat_it, composition_update_it)
b8ff72fa 5853 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5854 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5855 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5856 Defsubr compostion_get_gstring.
5857
5858 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5859 cmp_id.
5860 (struct glyph_string): Delete the member gidx. New members
5861 cmp_id, cmp_from, and cmp_to.
5862 (enum it_method): Delete GET_FROM_COMPOSITION.
5863 (struct composition_it): New struct.
5864 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5865 Delete c, len, cmp_id, cmp_len in u.comp.
5866
5867 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5868 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5869 (enum lglyph_indices): Likewise.
b8ff72fa 5870 (font_range): Adjust extern.
aac0c6e3
MR
5871 (font_fill_lglyph_metrics): Extern it.
5872
5873 * font.c (QCf): New variable.
5874 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5875 (font_prepare_composition): Delete this function.
5876 (font_range): Type and arguments changed.
5877 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5878 (font_fill_lglyph_metrics): New function.
b8ff72fa 5879 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5880 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5881 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5882 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5883
5884 * fontset.h (font_for_char): Extern it.
5885
5886 * fontset.c (font_for_char): New function.
5887
5888 * ftfont.c: Include composite.h.
5889 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5890 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5891
5892 * indent.c: Include composite.h and dispextern.h.
5893 (check_composition): Delete this function.
5894 (scan_for_column): Handle composition by
5895 composition_compute_stop_pos, composition_reseat_it, and
5896 composition_update_it.
5897 (compute_motion): Likewise.
5898 (Fvertical_motion): Fix checking of composition.
5899
5900 * keyboard.c (adjust_point_for_property): Check composition by
5901 composition_adjust_point.
5902
b8ff72fa 5903 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5904 struct glyph_string.
5905
b8ff72fa
SM
5906 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5907 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5908 struct glyph.
5909 (produce_composite_glyph): Likewise.
5910
b8ff72fa
SM
5911 * w32term.c (x_draw_composite_glyph_string_foreground):
5912 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5913 (x_draw_glyph_string): Likewise.
5914
5915 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5916 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5917
5918 * xdisp.c: Include font.h.
5919 (it_props): Delete the entry for Qauto_composed.
5920 (init_iterator): Initialize it->cmp_it.id to -1.
5921 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5922 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5923 (handle_auto_composed_prop): Delete it.
5924 (handle_composition_prop): Handle only static composition.
5925 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5926 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5927 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5928 (pop_it): Likewise.
5929 (get_next_element): Delete next_element_from_composition.
5930 (CHAR_COMPOSED_P): New macro.
5931 (get_next_display_element): For automatic composition, get a face
5932 from the font in the glyph-string.
5933 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5934 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5935 (next_element_from_string): Check if the character at the current
5936 position is composed by CHAR_COMPOSED_P.
5937 (next_element_from_buffer): Likewise.
d66c0241
JB
5938 (next_element_from_composition): Adjust for the change of struct it.
5939 Update it->cmp_it.
b8ff72fa
SM
5940 (dump_glyph): Adjust for the change of struct glyph.
5941 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5942 it and struct glyph. Don't handle automatic composition here.
5943 (fill_gstring_glyph_string): New function.
5944 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5945 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5946 (BUILD_GSTRING_GLYPH_STRING): New macro.
5947 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5948 automatic composition.
b8ff72fa 5949 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5950 struct glyph.
b8ff72fa 5951 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5952
b8ff72fa 5953 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5954 the change of struct glyph_string.
5955 (x_draw_glyph_string): Likewise.
5956
59572008-08-29 Glenn Morris <rgm@gnu.org>
5958
5959 * buffer.c (word-wrap): Doc fix.
5960 * xdisp.c (truncate-partial-width-windows): Doc fix.
5961 Increase default to 50.
5962
59632008-08-29 Chong Yidong <cyd@stupidchicken.com>
5964
5965 * xdisp.c (update_tool_bar_unwind): New function.
5966 (update_tool_bar): Temporarily set selected frame before building
5967 tool-bar items.
5968
59692008-08-28 Michael Albinus <michael.albinus@gmx.de>
5970
5971 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5972 snprintf, respectively.
5973 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5974
59752008-08-28 Chong Yidong <cyd@stupidchicken.com>
5976
5977 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5978 LDFLAGS to GNUstep CC invocation.
5979
59802008-08-27 Chong Yidong <cyd@stupidchicken.com>
5981
5982 * indent.c (Fvertical_motion): Revert last change. Handle the
5983 general case where we are moving forward, and PT spans multiple
5984 screen lines.
5985
5986 * eval.c (find_handler_clause): Temporarily increase
5987 max-lisp-eval-depth while printing the backtrace buffer, to
5988 guarantee that help-mode code can run.
5989
59902008-08-27 Eli Zaretskii <eliz@gnu.org>
5991
5992 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5993 colors under -rv.
5994 (IT_set_frame_parameters): Don't swap foreground and background
5995 colors if `(reverse . t)' is present in the frame properties.
5996 (internal_terminal_init): Call init_frame_faces only for the
5997 initial frame.
5998
59992008-08-27 Andreas Schwab <schwab@suse.de>
6000
6001 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6002
60032008-08-27 Andreas Schwab <schwab@suse.de>
6004
6005 * search.c (search_buffer): Set char_base to zero only at the end.
6006
60072008-08-27 Kenichi Handa <handa@m17n.org>
6008
b8ff72fa 6009 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6010
60112008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6012
6013 * xterm.c (x_term_init): Temporarily hide the partially
6014 initialized terminal while calling vendor-specific-keysyms.
6015
60162008-08-26 Eli Zaretskii <eliz@gnu.org>
6017
6018 * msdos.c (internal_terminal_init): Most initializations done only
6019 once, especially initial_screen_colors[] and termscript open.
6020
60212008-08-26 Chong Yidong <cyd@stupidchicken.com>
6022
6023 * eval.c (Fcondition_case): Doc fix.
6024
6025 * widgetprv.h (EmacsFramePart): Change font member to the new font
6026 struct.
6027
6028 * widget.c: Include character.h and font.h for XSETFONT.
6029 (setup_frame_gcs): Compute X font id from font struct, just once.
6030
60312008-08-26 Eli Zaretskii <eliz@gnu.org>
6032
6033 * term.c (get_named_tty): Fix last change.
6034
60352008-08-26 Chong Yidong <cyd@stupidchicken.com>
6036
6037 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6038 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6039
60402008-08-25 Eli Zaretskii <eliz@gnu.org>
6041
6042 * frame.c (do_switch_frame): Mark previously displayed frame as
6043 obscured for FRAME_MSDOS_P frames as well.
6044
60452008-08-24 Eli Zaretskii <eliz@gnu.org>
6046
6047 * frame.c (make_terminal_frame): Initialize f->terminal,
6048 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6049 Set the top frame to newly created frame.
6050 (Fmake_terminal_frame): Reuse the_only_display_info.
6051
6052 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6053 estimating available memory.
6054
b97439ce 60552008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6056
6057 * nsterm.m (ns_draw_window_cursor): Don't call
6058 NSDisableScreenUpdates and NSEnableScreenUpdates on
6059 non-NS_IMPL_COCOA systems.
6060
60612008-08-23 Andreas Schwab <schwab@suse.de>
6062
6063 * process.c (procfs_system_process_attributes): Fix use of
6064 uninitialized variables.
6065
60662008-08-23 Eli Zaretskii <eliz@gnu.org>
6067
6068 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6069
6070 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6071 calling tty-set-up-initial-frame-faces.
6072
b8ff72fa
SM
6073 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6074 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6075
6076 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6077 addition to output_termcap.
6078
6079 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6080
6081 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6082 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6083 highlight.
6084
6085 * process.c [!subprocesses]: Define QCname.
6086 (syms_of_process): Intern and staticpro it.
6087
6088 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6089 Adjust for changes in encoding/decoding routines.
6090 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6091 encode_coding and decode_coding.
6092
b8ff72fa 6093 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6094
6095 * dosfns.c: Include frame.h before termhooks.h.
6096 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6097 variable termscript.
6098
6099 * s/msdos.h (USER_FULL_NAME): Define.
6100 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6101
6102 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6103 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6104 pw->pw_gecos.
6105
6106 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6107 SELECTED_FRAME as additional (1st) argument.
6108 (tty_read_avail_input): Handle output_msdos_raw in
6109 addition to output_termcap.
6110
6111 * msdos.c: Include frame.h before termhooks.h.
6112 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6113 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6114 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6115 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6116 (IT_set_terminal_modes, IT_reset_terminal_modes)
6117 (IT_set_frame_parameters): Use tty->termscript instead of a global
6118 variable termscript.
6119 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6120 global variable terminal_coding. Don't refer to
6121 Vnonascii_translation_table.
6122 (internal_terminal_init): Set Vwindow_system in current_kboard.
6123 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6124 Announce date and time of session start, if termscript is open.
6125 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6126 term.c:init_tty). Open termscript only of not already open.
6127 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6128 here instead of dos_ttraw. Don't initialize display if this is an
6129 initial tty. Don't set FRAME_FONT.
6130 (Vwindow_system_version): Bump to 23.
6131 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6132 is available, set up mouse_position_hook.
6133 (dos_ttraw, IT_set_terminal_modes): If called with initial
6134 terminal, do nothing.
6135 (IT_set_frame_parameters): Handle the Qtty_type frame
6136 parameter by calling internal_terminal_init.
6137 (dos_set_window_size, show_mouse_face)
6138 (clear_mouse_face, IT_note_mode_line_highlight)
6139 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6140 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6141 (initialize_msdos_display): New function.
6142 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6143 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6144 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6145 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6146 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6147 (request_sigio, unrequest_sigio): Don't define, now defined on
6148 sysdep.c.
6149 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6150
6151 * term.c [MSDOS]: Include msdos.h.
6152 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6153 conditional to DOS_NT. Allow only one call to this function in a
6154 session. Don't allocate a new struct tty_display_info; instead,
6155 reuse the_only_display_info. Call get_tty_size to get screen
6156 dimensions. Call init_baud_rate to set bad_rate.
6157 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6158 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6159 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6160 (get_tty_terminal, get_named_tty, Ftty_type)
6161 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6162 output_termcap.
b8ff72fa
SM
6163 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6164 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6165 only when subprocesses are supported.
aac0c6e3
MR
6166
6167 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6168 f->output_data.x.
6169 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6170 terminal devices.
6171
5582fbc7 6172 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6173 x_output.
6174 (FRAME_FONT): Use output_data.tty.
6175 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6176 (struct x_display_info): Rename from display_info. Update all users in
6177 msdos.c.
aac0c6e3 6178 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6179 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6180 (dos_ttraw): Update prototype.
6181
6182 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6183 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6184
61852008-08-23 Jason Rumney <jasonr@gnu.org>
6186
6187 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6188 (fn_TIFFSetDirectory): New library function used.
6189 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6190 (tiff_load): Use :index to select among multiple images. Set count
6191 property when multiple images exist.
6192 (gif_format): Use :index, not :image.
6193
61942008-08-23 Chong Yidong <cyd@stupidchicken.com>
6195
6196 * xdisp.c (try_scrolling): Check INT_MAX instead of
6197 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6198 to obtain INT_MAX.
6199
62002008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6201
6202 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6203
62042008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6205
6206 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6207 GNUstep library location.
6208
62092008-08-21 Chong Yidong <cyd@stupidchicken.com>
6210
6211 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6212 before using it.
6213
6214 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6215
62162008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6217
6218 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6219 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6220 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6221 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6222 (EmacsApp-cursor_blink_handler): Remove declaration.
6223 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6224 match 01 Feb 2008 changes in xterm.c.
6225 (ns_read_socket): Add cast to avoid warning.
6226 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6227 GNUstep.
6228
62292008-08-20 Chong Yidong <cyd@stupidchicken.com>
6230
6231 * xselect.c (x_get_foreign_selection): Return nil if desired
6232 selection could not be obtained, instead of signalling an error.
6233
62342008-08-20 David Reitter <david.reitter@gmail.com>
6235
6236 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6237 * nsterm.m: Remove ns-specific code for cursor blinking.
6238 (ns_draw_window_cursor): Clear cursor properly rather than
6239 redrawing the area. Respect width of bar cursors.
6240 These changes enable the use of generic blink-cursor-mode and
6241 generic cursor types in NS and support smooth cursor movements (do
6242 not blink off after command).
6243 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6244 Nextstep, too.
6245
62462008-08-19 Kenichi Handa <handa@m17n.org>
6247
6248 * font.c (Vfont_log_deferred): New variable.
6249 (font_add_log): Check Vfont_log_deferred.
6250 (font_deferred_log): New function.
6251
6252 * font.h (font_deferred_log): Extern it.
6253
6254 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6255 for sorting.
6256 (face_for_char): Use deferred log.
6257
62582008-08-18 Kenichi Handa <handa@m17n.org>
6259
6260 * fontset.c (face_for_char): Add font log.
6261
6262 * font.c (font_add_log): Add the font properties :script, :lang,
6263 and :otf in the log.
6264
62652008-08-17 Chong Yidong <cyd@stupidchicken.com>
6266
6267 * xdisp.c: Remove dead code.
6268 (handle_invisible_prop, next_overlay_string): Defer call to
6269 setup_for_ellipsis.
6270 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6271
62722008-08-15 Chong Yidong <cyd@stupidchicken.com>
6273
6274 * xfaces.c (lookup_derived_face): Properly handle possible zero
6275 return value of get_lface_attributes.
6276 (merge_faces): Don't tell lookup_derived_face to signal an error
6277 if face is not found.
6278
6279 * dired.c (Fdirectory_files): Doc fix.
6280
6281 * process.c (make_process): Initialize kill_without_query struct
6282 member.
6283
62842008-08-15 Eli Zaretskii <eliz@gnu.org>
6285
6286 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6287 Alternative calculation of totphys for Visual Studio 6.
6288
6289 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6290
6291 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6292 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6293 All users changed.
6294 (stat): Only root directory passed to GetDriveType. Allow RAM
6295 disk as well as local fixed disk when w32-get-true-file-attributes
6296 is set to `local'.
6297 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6298 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6299 (w32_cached_id, w32_add_to_cache): New functions.
6300 (get_name_and_id): Look account names in the cache before calling
6301 lookup_account_sid.
6302 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6303 New initialization flags.
6304 (globals_of_w32): Initialize them to zero.
6305 (w32_system_process_attributes): Use w32_cached_id and
6306 w32_add_to_cache.
6307
63082008-08-14 Lawrence Mitchell <wence@gmx.li>
6309
6310 * lread.c (Fread_char, Fread_char_exclusive): If no character
6311 event is read before timeout is reached, return nil, rather than
6312 converting to a number.
6313
63142008-08-14 Chong Yidong <cyd@stupidchicken.com>
6315
6316 * fns.c (use_dialog_box): Doc fix.
6317
6318 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6319 on OS X.
6320
63212008-08-13 Chong Yidong <cyd@stupidchicken.com>
6322
6323 * frame.c (Qns_parse_geometry): New var.
6324 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6325
63262008-08-11 Chong Yidong <cyd@stupidchicken.com>
6327
6328 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6329 space character in calculating tabs.
6330
63312008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6332
6333 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6334
63352008-08-10 Glenn Morris <rgm@gnu.org>
6336
6337 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6338 silence gcc "limited range of data type" warnings in some
6339 make_fixnum_or_float calls.
6340
63412008-08-09 Eli Zaretskii <eliz@gnu.org>
6342
6343 * w32.c (w32_system_process_attributes): If the process does not
6344 exist, return nil.
6345
6346 * w32.c: Include thelp32.h, psapi.h and coding.h.
6347 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6348 declarations.
6349 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6350 (Process32Next_Proc): New typedefs.
6351 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6352 (g_b_init_process32_next, g_b_init_open_thread_token)
6353 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6354 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6355 (g_b_init_get_process_working_set_size)
6356 (g_b_init_global_memory_status_ex): New static variables.
6357 (globals_of_w32): Initialize them.
6358 (create_toolhelp32_snapshot, process32_first, process32_next)
6359 (open_thread_token, impersonate_self, revert_to_self)
6360 (get_process_memory_info, get_process_working_set_size)
6361 (global_memory_status, global_memory_status_ex): New wrapper
6362 functions.
6363 (w32_list_system_processes, w32_system_process_attributes)
6364 (enable_privilege, restore_privilege, ltime, process_times):
6365 New functions.
6366 (convert_time_raw): New function.
6367 (convert_time): Remove conversion of FILETIME into time in 100
6368 nsec units, call convert_time_raw instead.
6369
6370 * process.h (w32_list_system_processes, w32_system_process_attributes):
6371 Add prototypes.
6372 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6373 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6374 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6375 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6376
6377 * process.c (Fsystem_process_attributes): Doc fix.
6378
63792008-08-08 Chong Yidong <cyd@stupidchicken.com>
6380
6381 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6382 a continued multi-char glyph; if so, advance to the actual glyph.
6383
63842008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6385
6386 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6387
6388 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6389 (.m.o): Use it.
6390 * config.in: Regenerate.
6391
63922008-08-07 Chong Yidong <cyd@stupidchicken.com>
6393
6394 * xdisp.c (redisplay_window): Revert last change.
6395 (try_window): Check bottom scroll margin too.
6396
63972008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6398
6399 * config.in: Regenerate.
6400
6401 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6402 -list-load-path-shadows'.
6403 (nsgui.h): Reduce number of things depending on it.
6404
64052008-08-06 Chong Yidong <cyd@stupidchicken.com>
6406
6407 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6408 instead of window-end which does the wrong thing at eob.
6409 (try_cursor_movement): Minor optimization.
6410 (redisplay_window): If scroll margin is defined, don't assume
6411 window doesn't need scrolling.
6412
64132008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6414
6415 * config.in: Regenerate.
6416
6417 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6418 (mostlyclean): Don't delete *.d under NS.
6419
6420 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6421
64222008-08-06 Kenichi Handa <handa@m17n.org>
6423
6424 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6425
64262008-08-06 Andreas Schwab <schwab@suse.de>
6427
6428 * config.in: Regenerate.
6429
64302008-08-05 Chong Yidong <cyd@stupidchicken.com>
6431
6432 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6433 forcing a window start.
6434
6435 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6436 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6437
64382008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6439
6440 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6441 argument.
6442
64432008-08-05 Juanma Barranquero <lekktu@gmail.com>
6444
6445 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6446 <scroll-down-aggressively, before-change-functions>:
6447 <after-change-functions>: Reflow docstrings.
6448
64492008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6450 Ken Raeburn <raeburn@gnu.org>
6451
6452 Dock menu customization, based on a patch by Ken Raeburn, plus some
6453 other fixes.
6454 * nsmenu.m (dockMenu): New variable.
6455 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6456
6457 * nsterm.h (dockMenu): Declare.
6458
6459 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6460 (ns_term_init): Initialize dockMenu.
6461 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6462 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6463 left.
6464
6465 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6466
64672008-08-04 Chong Yidong <cyd@stupidchicken.com>
6468
6469 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6470
6471 * config.in: Regenerate.
6472
64732008-08-04 Seiji Zenitani <zenitani@mac.com>
6474
6475 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6476
64772008-08-04 Chong Yidong <cyd@stupidchicken.com>
6478
6479 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6480
64812008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6482
6483 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6484
6485 * keyboard.h: Comment an #endif.
6486
6487 * lisp.h (have_menus_p): Adjust comment.
6488
6489 * menu.c (find_and_return_menu_selection): Fix comparison with
6490 client_data.
6491
6492 * nsmenu.m (popup_activated_flag): New variable.
6493 (popup_activated): New function.
6494 (menu-or-popup-active-p): New exported lisp definition.
6495 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6496 when popup done.
6497 (ns_popup_dialog): Set popup_activated_flag.
6498
6499 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6500 version for GNUstep (handled by conditional typedef in nsterm.m).
6501 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6502 in rgb.txt).
6503
6504 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6505
6506 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6507
6508 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6509
6510 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6511 shortcircuit if popup_activated like GTK and X toolkit.
6512
6513 * m/inter386.h: Change DARWIN to DARWIN_OS.
6514
6515 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6516 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6517 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6518 comment on NO_SOCK_SIGIO.
6519
65202008-08-03 Chong Yidong <cyd@stupidchicken.com>
6521
6522 * nsterm.m (windowDidResize): Remove stopModal call.
6523
65242008-08-03 Andreas Schwab <schwab@suse.de>
6525
6526 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6527 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6528
65292008-08-02 Chong Yidong <cyd@stupidchicken.com>
6530
6531 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6532 Don't use uninitialized pointer variable when using getrlimit.
6533
65342008-08-02 Jason Rumney <jasonr@gnu.org>
6535
6536 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6537
65382008-08-02 Eli Zaretskii <eliz@gnu.org>
6539
6540 * alloc.c (NSTATICS): Bump to 0x640.
6541
6542 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6543
6544 * lisp.h: Add prototype for directory_files_internal.
6545
6546 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6547 New functions.
6548 (syms_of_process): Defsubr them. Add initializations for various
6549 Q* symbols used in procfs_system_process_attributes.
6550 (procfs_list_system_processes, procfs_system_process_attributes)
6551 [HAVE_PROCFS]: New functions.
6552 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6553 (procfs_get_total_memory): New functions.
6554
65552008-08-01 Juanma Barranquero <lekktu@gmail.com>
6556
6557 * xfaces.c (Fx_load_color_file): Fix previous change;
6558 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6559
65602008-08-01 Michael Albinus <michael.albinus@gmx.de>
6561
6562 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6563
65642008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6565
6566 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6567
65682008-08-01 Chong Yidong <cyd@stupidchicken.com>
6569
6570 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6571
6572 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6573 define NSApplicationDelegateReplySuccess.
6574 (EmacsView -converstationIdentifier): Use long instead of
6575 NSInteger for GNUstep, since it doesn't have NSInteger.
6576
6577 * xmenu.c: Revert last change.
6578
6579 * keyboard.h: Fix last change.
6580
65812008-08-01 Juanma Barranquero <lekktu@gmail.com>
6582
6583 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6584 on Windows.
6585
65862008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6587
6588 Warning clearing and clean-up in NS port.
6589 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6590 Add prototypes.
6591 * nsgui.h (FACE_DEFAULT): Remove, unused.
6592 (XGCValues): Change colors to unsigned long.
6593 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6594 nsterm.m.
6595 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6596 (ns_list_fonts): Remove, unused.
6597 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6598 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6599 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6600 (nsfont_draw): Compare face colors to 0, not nil.
6601 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6602 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6603 (-addSubmenuWithTitle:): Use NSMenuItem class.
6604 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6605 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6606 (ns_clip_to_row): Make gc arg a BOOL.
6607 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6608 ns_clip_to_row() call.
6609 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6610 used). Cast FRAME_FONT assignments.
6611 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6612 (ns_string_to_lispmod): Change arg to const char.
6613 (ns_term_init): Use NSMenuItem class.
6614 (EmacsApp -openFile:): Move to different section of file.
6615 (EmacsApp -application:openFiles:): Don't return a value, call
6616 -replyToOpenOrPrint:.
6617 (EmacsView -keyDown:): Fix up cast.
6618 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6619 (EmacsView -menuDown:): Cast tag in call to
6620 find_and_call_menu_selection().
6621 (ns_list_fonts): Remove, unused.
6622 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6623 (ns_fontname_to_xlfd): Make static.
6624 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6625 Remove prototypes (now in keyboard.h).
6626 (next_menubar_widget_id): Remove, unused.
6627 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6628 Remove prototypes (now in keyboard.h).
6629 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6630
66312008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6632
6633 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6634 (floatfns.o): Depend on syssignal.h.
6635 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6636
6637 * systty.h: Fix previous change that removed BSD_TERMIOS.
6638 Add comments to #ifdefs.
6639
66402008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6641
6642 * w32fns.c (w32-load-color-file): Remove.
6643 (x-open-connection): Use renamed Fx_load_color_file.
6644 * xfaces.c (x-load-color-file): Add.
6645 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6646 Emacs.clr.
6647 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6648
66492008-07-31 Michael Albinus <michael.albinus@gmx.de>
6650
6651 * dbusbind.c (Fdbus_call_method_asynchronously)
6652 (Fdbus_method_error_internal): New defuns.
6653 (xd_read_message): Handle also reply messages.
6654 (Vdbus_registered_functions_table): Extend docstring.
6655
66562008-07-31 Juanma Barranquero <lekktu@gmail.com>
6657
6658 * keyboard.c (gobble_input): Fix previous change.
6659
66602008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6661
6662 * bitmaps/README:
6663 * xfns.c:
6664 * termcap.c:
6665 * term.c:
6666 * syswait.h:
6667 * systty.h:
6668 * systime.h:
6669 * syssignal.h:
6670 * sysdep.c:
6671 * process.h:
6672 * process.c:
6673 * print.c:
6674 * ndir.h:
6675 * lread.c:
6676 * keyboard.c:
6677 * getpagesize.h:
6678 * floatfns.c:
6679 * fileio.c:
6680 * emacs.c:
6681 * doc.c:
6682 * dispnew.c:
6683 * dired.c:
6684 * data.c:
6685 * callproc.c:
6686 * buffer.c:
6687 * README:
6688 * Makefile.in:
6689 * s/template.h:
6690 * s/msdos.h:
6691 * m/vax.h: Remove VMS support.
6692 * s/vms.h:
6693 * vlimit.h:
6694 * uaf.h:
6695 * temacs.opt:
6696 * param.h:
6697 * ioctl.h: Remove file.
6698
66992008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6700
6701 * s/ms-w32.h (MULTI_KBOARD): Remove.
6702 * xterm.c:
6703 * xselect.c:
6704 * xfns.c:
6705 * window.c:
6706 * w32term.c:
6707 * w32fns.c:
6708 * terminal.c:
6709 * termhooks.h:
6710 * term.c:
6711 * sysdep.c:
6712 * keyboard.h:
6713 * keyboard.c:
6714 * frame.h:
6715 * frame.c:
6716 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6717 * config.in: Regenerate.
6718
67192008-07-30 Jason Rumney <jasonr@gnu.org>
6720
6721 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6722
6723 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6724 (w32font_open_internal): Get unicode version of textmetrics.
6725 Don't enable or disable glyph indices here.
6726 (w32font_open): Disable use of glyph indices.
6727
6728 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6729
67302008-07-30 Chong Yidong <cyd@stupidchicken.com>
6731
6732 * minibuf.c (Vread_buffer_function): Doc fix.
6733
67342008-07-30 John Paul Wallington <jpw@pobox.com>
6735
6736 * minibuf.c (read_buffer_completion_ignore_case): New var.
6737 (Fread_buffer): Use it.
6738
67392008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6740
6741 * systty.h (sensemode): Remove empty #if. Remove reference to
6742 BSD_TERMIOS, unused.
6743
6744 * sysdep.c: Remove reference to DGUX.
6745 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6746
6747 * config.in: Regenerate.
6748
67492008-07-30 Jason Rumney <jasonr@gnu.org>
6750
6751 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6752
67532008-07-29 Jason Rumney <jasonr@gnu.org>
6754
6755 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6756 is populated.
6757 (uniscribe_encode_char): Always use uniscribe.
6758 Avoid using context if cache is populated.
6759
67602008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6761
6762 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6763 open menu.
6764
6765 * gtkutil.c (menu_nav_ended): Remove.
6766 (create_menus): Remove signal connect for menu_nav_ended.
6767
67682008-07-28 Chong Yidong <cyd@stupidchicken.com>
6769
6770 * xdisp.c (redisplay_window): Check return value of
6771 compute_window_start_on_continuation_line before forcing a window
6772 start.
6773
67742008-07-28 Jason Rumney <jasonr@gnu.org>
6775
6776 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6777
6778 * w32term.c (w32_enable_unicode_output, cleartype_active):
6779 Remove obsolete display options.
6780 (x_draw_glyph_string_background): Don't use old cleartype_active
6781 workaround.
6782 (w32_initialize): Remove cleartype_active initialization.
6783 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6784
67852008-07-28 Andreas Schwab <schwab@suse.de>
6786
6787 * lisp.h (init_weak_hash_tables, syms_of_font)
6788 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6789 (remove_hash_entry): Don't declare.
6790 * eval.c (maybe_call_debugger): Make static and move before use.
6791 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6792 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6793 * xterm.h (x_set_frame_alpha): Declare.
6794
67952008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6796
6797 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6798 (create_menus): Connect selection-done to menu_nav_ended.
6799
68002008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6801
6802 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6803 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6804 parameter with read of 'alpha' one.
6805 (Qns_frame_parameter): Remove.
5582fbc7 6806 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6807 (next-selection-coding-system, Vselection_coding_system)
6808 (Vnext_selection_coding_system): Drop.
6809
68102008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6811
6812 * nsfns.m (do-applescript, do_applescript): Rename to
6813 ns-do-applescript, ns_do_applescript, and move within file.
6814
68152008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6816
6817 Remove support for Mac Carbon.
6818 * mactoolbox.c:
6819 * macterm.h:
6820 * macterm.c:
6821 * macselect.c:
6822 * macmenu.c:
6823 * macgui.h:
6824 * macfns.c:
6825 * mac.c: Remove file.
6826 * s/darwin.h:
6827 * m/intel386.h:
6828 * xfaces.c:
6829 * xdisp.c:
6830 * window.c:
6831 * tparam.c:
6832 * termhooks.h:
6833 * termcap.c:
6834 * term.c:
6835 * syssignal.h:
6836 * sysselect.h:
6837 * sysdep.c:
6838 * process.c:
6839 * lread.c:
6840 * lisp.h:
6841 * keyboard.c:
6842 * image.c:
6843 * fringe.c:
6844 * frame.h:
6845 * frame.c:
6846 * fontset.c:
6847 * font.h:
6848 * font.c:
6849 * fns.c:
6850 * fileio.c:
6851 * emacs.c:
6852 * dispnew.c:
6853 * dispextern.h:
6854 * config.in:
6855 * atimer.c:
2ae37cf0 6856 * Makefile.in: Remove code for Carbon.
aac0c6e3 6857
f0131492 68582008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6859
6860 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6861
68622008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6863
6864 * macterm.h (kCGBitmapByteOrder32Host): New define for
6865 non-universal SDKs.
6866
6867 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6868 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6869
6870 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6871 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6872
68732008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6874
6875 * w32inevt.c: Include dispextern.h.
6876
68772008-07-26 Andreas Schwab <schwab@suse.de>
6878
6879 * print.c (print_object): Fix off-by-one in last change.
6880
68812008-07-25 Juanma Barranquero <lekktu@gmail.com>
6882
6883 * term.c (syms_of_term): Don't initialize default_orig_pair,
6884 default_set_foreground and default_set_background on Windows.
6885
68862008-07-25 Jason Rumney <jasonr@gnu.org>
6887
6888 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6889 ScriptItemize. Clean up return value checking. Remove unused
6890 variables.
6891 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6892 shaping engine.
6893
6894 * w32font.c (w32font_has_char): Handle the case where we can't
6895 determine the script for a character.
6896
68972008-07-25 Chong Yidong <cyd@stupidchicken.com>
6898
6899 * term.c (syms_of_term): Initialize default_orig_pair,
6900 default_set_foreground, and default_set_background.
6901
6902 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6903 clash (bug#86).
6904 (getloadavg): Callers changed.
6905
6906 * image.c (svg_load_image): Fix last change.
6907 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6908 image size is valid. Use g_object_unref instead of deprecated
6909 rsvg_handle_free to free rsvg handle.
6910 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6911
69122008-07-25 Jason Rumney <jasonr@gnu.org>
6913
6914 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6915 surrogates before looking up glyph index.
6916 (w32font_text_extents): Encode as surrogates if falling back to
6917 functions that need UTF-16 wide chars.
6918
6919 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6920 BMP as surrogates before looking up glyph index.
6921
69222008-07-25 Chong Yidong <cyd@stupidchicken.com>
6923
6924 * image.c (svg_load_image): Check for failure in return value of
6925 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6926
69272008-07-25 Jason Rumney <jasonr@gnu.org>
6928
6929 * w32font.c (Fx_select_font): Reverse sense of second arg.
6930
69312008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6932
6933 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6934 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6935
6936 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6937 (PURESIZE): Use it.
6938
69392008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6940
6941 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6942 * m/alpha.h (TEXT_END):
6943 * m/ibmrs6000.h (TEXT_END):
6944 * m/macppc.h (TEXT_END):
6945 * s/darwin.h (TEXT_END):
6946 * s/msdos.h (TEXT_END): Remove, unused.
6947 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6948 * s/cygwin.h: Remove comment.
6949
6950 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6951 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6952 * m/intel386.h (DOT_GLOBAL_START):
6953 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6954 (USG): Remove, file not used on USG platforms.
6955
6956 * Makefile.in (HAVE_X11): Remove empty #else.
6957
69582008-07-24 Andreas Schwab <schwab@suse.de>
6959
6960 * fileio.c (Finsert_file_contents): Properly adjust undo list
6961 after format conversion.
6962
69632008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6964
6965 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6966 (menu_nav_ended): Remove.
6967 (create_menus): Remove signal connect for menu_nav_ended.
6968 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6969 create_menus.
6970 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6971
69722008-07-23 Jason Rumney <jasonr@gnu.org>
6973
6974 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6975 with opened font.
6976 (w32font_open): Set font type to gdi.
6977
6978 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6979
69802008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6981
6982 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6983 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6984 defines it.
6985 * unexec.c (ADDR_CORRECT): Define unconditionally.
6986
6987 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6988
6989 * unexec.c: Remove code depending on !COFF and USG, the file is
6990 not used for such systems.
6991
6992 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6993 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6994 (LD_SWITCH_SYSTEM_1): Remove, update users.
6995
6996 * s/darwin.h (DATA_END):
6997 * m/intel386.h (DATA_END):
6998 * m/ibmrs6000.h (DATA_END):
6999 * m/alpha.h (DATA_END): Remove, unused.
7000
7001 * config.in: Regenerate.
7002 * s/ms-w32.h (subprocesses): Define unconditionally.
7003 * s/template.h (subprocesses): Update comment.
7004 * s/vms.h (subprocesses):
7005 * s/usg5-4.h (subprocesses):
7006 * s/hpux10-20.h (subprocesses):
7007 * s/gnu-linux.h (subprocesses):
7008 * s/cygwin.h (subprocesses):
7009 * s/bsd-common.h (subprocesses):
7010 * s/aix4-2.h (subprocesses):
7011 * s/darwin.h (subprocesses): Do not define, defined by default now.
7012
7013 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7014 Remove all references.
7015 (temacs): Add GNUstep specific ld flags.
7016
7017 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7018 similarly to what X does.
7019
70202008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7021
7022 * nsfns.m (x-list-fonts): Remove.
7023 (syms_of_nsfns): Drop the x-list-fonts declaration.
7024 * nsterm.m: Get rid of remaining "//" comments.
7025
70262008-07-22 Chong Yidong <cyd@stupidchicken.com>
7027
7028 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7029
7030 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7031 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7032 (Fns_own_selection_internal, Fx_disown_selection_internal)
7033 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7034
7035 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7036 ... */' style of docstrings. Doc fixes.
7037
70382008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7039
7040 * terminfo.c (UP, BC, PC): Undo previous change.
7041
7042 * nsfns.m: Rename ns prefixed functions/variables to the
7043 corresponding x versions. Update references.
7044
70452008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7046
7047 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7048
70492008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7050
7051 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7052 Remove forwarding functions.
7053 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7054 non-static.
7055 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7056 non-static.
7057 (ns_frame_parm_handlers): Use the new names.
7058 (syms_of_nsfns): Move to the end of file.
7059
7060 * nsterm.m (syms_of_nsterm): Move to the end of file.
7061
7062 * dispnew.c (init_display): Remove code for X10.
7063
70642008-07-22 Jason Rumney <jasonr@gnu.org>
7065
7066 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7067 bare drive.
7068
70692008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7070
7071 * nsterm.m (syms_of_nsterm): Remove debugging println.
7072
70732008-07-22 David Reitter <david.reitter@gmail.com>
7074
7075 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7076 Carbon implementation of the same functionality: execute arbitrary
7077 AppleScript code.
7078
70792008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7080
7081 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7082 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7083 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7084 (Fx_display_mm_height, Fx_display_mm_width)
7085 (Fx_display_backing_store, Fx_display_visual_class)
7086 (Fx_display_save_under, Fx_open_connection)
7087 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7088 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7089 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7090 (Fx_display_pixel_width, Fx_display_pixel_height)
7091 (Fx_display_usable_bounds, Fx_display_planes)
7092 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7093 ... */' style of docstrings.
7094
70952008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7096
7097 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7098 on this platform.
7099 (mips):
7100 * m/iris4d.h (mips): Do not define.
7101 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7102
7103 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7104
7105 * image.c:
7106 * nsfns.m:
7107 * nsselect.m:
7108 * nsterm.h:
7109 * nsterm.m: Rename ns prefixed functions/variables to the
7110 corresponding x versions. Update references.
7111
7112 * m/ibms390x.h (NO_REMAP): Do not undefine.
7113
7114 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7115
71162008-07-21 Chong Yidong <cyd@stupidchicken.com>
7117
7118 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7119 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7120 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7121 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7122 (Fns_display_mm_height, Fns_display_mm_width)
7123 (Fns_display_backing_store, Fns_display_visual_class)
7124 (Fns_display_save_under, Fns_open_connection)
7125 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7126 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7127 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7128 (Fns_display_pixel_width, Fns_display_pixel_height)
7129 (Fns_display_usable_bounds, Fx_display_planes)
7130 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7131
71322008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7133
7134 * print.c (print_object): Check print_depth before searching for
7135 circularities.
7136
71372008-07-21 Michael Albinus <michael.albinus@gmx.de>
7138
7139 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7140 only sprintf.
7141
71422008-07-21 Kenichi Handa <handa@m17n.org>
7143
7144 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7145
71462008-07-20 Andreas Schwab <schwab@suse.de>
7147
7148 * syntax.c (find_start_pos, find_start_value)
7149 (find_start_value_byte, find_start_begv, find_defun_start)
7150 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7151
71522008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7153
7154 * s/sol2-3.h: Insert contents of s/sol2.h.
7155 (LD_SWITCH_SYSTEM): Remove redundant definition.
7156 * s/sol2.h: Remove, unused.
7157
71582008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7159
7160 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7161
71622008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7163
7164 * Makefile.in (ns_appdir): Fix typo in find command.
7165
71662008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7167
7168 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7169
7170 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7171 added not supported anymore.
7172
7173 * s/usg5-4-2.h (LIBS_SYSTEM):
7174 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7175
7176 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7177 * s/lynxos.h (GETPGRP_NO_ARG):
7178 * s/hpux10-20.h (NO_SIOCTL_H):
7179 * s/gnu.h (GETPGRP_NO_ARG):
7180 * s/gnu-linux.h (NO_SIOCTL_H):
7181 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7182 * s/cygwin.h (GETPGRP_NO_ARG):
7183 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7184 (C_DEBUG_SWITCH): Remove duplicate definition.
7185
7186 * m/ibms390.h: Remove boilerplate comments.
7187
7188 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7189
7190 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7191 (wait_reading_process_output): Remove code for SunOS, platform not
7192 supported anymore. Use SOLARIS2 instead of sun.
7193
71942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7195
7196 * font.c (font_open_by_name): Under NS, default lface height to zero.
7197 (font_open_for_lface): Under NS, set size based on frame fontsize.
7198 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7199 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7200
72012008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7202
7203 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7204 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7205 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7206 YES/NO.
7207 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7208 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7209 * Makefile.in (clean): Clear out build destination dir.
7210
72112008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7212
7213 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7214 xterm, xselect.
7215 * lisp.h: Remove declaration of hash_remove.
7216 * nsgui.h: Remove redefinitions of hash_remove.
7217 * fns.c (hash_remove): Rename to hash_remove_from_table.
7218
72192008-07-19 Seiji Zenitani <zenitani@mac.com>
7220
7221 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7222 strdup() the family UTF8String before modifying it.
7223
72242008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7225
7226 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7227 NS_FACE_BACKGROUND with 0 instead of nil.
7228 * nsfont.m (nsfont_draw): Same.
7229
72302008-07-19 Chong Yidong <cyd@stupidchicken.com>
7231
7232 * nsfns.m (ns_set_background_color): Fix crash.
7233
72342008-07-18 Chong Yidong <cyd@stupidchicken.com>
7235
7236 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7237
72382008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7239
7240 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7241
72422008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7243
7244 * gtkutil.c: Include <config.h> instead of "config.h".
7245
7246 * lisp.h (Foverlay_buffer): Add EXFUN.
7247
7248 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7249 child process to complete child_setup. Undo 2005-09-21 change.
7250
7251 * s/darwin.h: Mention setsid after vfork.
7252
72532008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7254
7255 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7256 Depend on macgui.h.
7257
7258 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7259 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7260
7261 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7262 and f19.
7263 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7264
7265 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7266 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7267 Remove enumerators.
7268
7269 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7270 Check if FACE_FROM_ID returns NULL.
7271
72722008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7273
7274 * w32inevt.c (change_frame_size): Remove extern declaration.
7275 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7276 change_frame_size.
7277
72782008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7279
7280 * getloadavg.c: Revert last change (2008-07-15).
7281
72822008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7283
7284 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7285 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7286 from configure.
7287
72882008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7289
7290 * s/sol2.h:
7291 * s/sol2-4.h: Reorganize conditionals.
7292
7293 * ecrt0.c: Remove code depending on m68000, not used anymore.
7294
7295 * fns.c (hash_remove): Make static.
7296 * lisp.h (hash_remove): Don't prototype.
7297
7298 * m/ibmrs6000.h:
7299 * m/ibms390x.h:
7300 * m/macppc.h: Remove boilerplate comments.
7301
7302 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7303 Solaris, which does not need them.
7304
7305 * m/vax.h: Remove comments about unsupported systems.
7306
7307 * s/darwin.h: Reorganize ifdefs.
7308
73092008-07-17 Andreas Schwab <schwab@suse.de>
7310
7311 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7312
73132008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7314
7315 Use SDATA. Follow coding convention of placing operators at
7316 beginning of next line rather than end of previous line, and placing
7317 spaces around infix operators.
7318
7319 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7320 in case it was defined already.
7321 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7322 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7323 ns_default.
7324 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7325 Lisp_Objects.
7326 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7327 (ns_defined_color, ns_color_to_lisp): Declare.
7328 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7329 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7330 it's accepted even with USE_LISP_UNION_TYPE.
7331 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7332 (update_frame_tool_bar): Remove apparently obsolete tests for
7333 non-integerness of f->tool_bar_lines.
7334 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7335 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7336 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7337 (nsfont_open): Don't confuse NULL for Qnil.
7338 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7339 * menu.h (find_and_call_menu_selection):
7340 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7341 (find_and_return_menu_selection): Always return something.
7342 * frame.h: Include dispextern.h for Display_Info.
7343 (display_x_get_resource): Declare.
7344
73452008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7346
7347 * syntax.c: Remove stdio.h include accidentally introduced in
7348 Emacs.app commit.
7349 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7350 NS_IMPL_COCOA.
7351 * keyboard.c (handle_async_input, input_available_signal): Remove
7352 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7353
73542008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7355
7356 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7357 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7358 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7359 Use SDATA.
7360
7361 * keymap.c: Remove all NS-specific code.
7362 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7363 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7364 where_is_preferred_modifier, return a different value depending on how
7365 preferred is the binding.
7366 (where_is_internal): Adjust accordingly.
7367 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7368 Adjust to new preferred_sequence_p.
7369 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7370 * keyboard.c (parse_solitary_modifier): Not static any more.
7371 * keyboard.h (parse_solitary_modifier): Declare.
7372
73732008-07-16 Andreas Schwab <schwab@suse.de>
7374
7375 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7376 of easymenu.
7377
73782008-07-16 Chong Yidong <cyd@stupidchicken.com>
7379
7380 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7381 that we don't move off the line.
7382
73832008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7384
7385 * keyboard.c (Qsuper): Remove.
7386 (parse_menu_item): Don't call where_is_internal specially for NS.
7387
73882008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7389
7390 * s/gnu-linux.h: Remove boilerplate comments.
7391
7392 * m/alpha.h (__ELF__): Consolidate conditions.
7393
7394 * m/m68k.h (linux): Use GNU_LINUX instead.
7395 Remove boilerplate comments.
7396
7397 * m/intel386.h: Undo refactoring from previous change.
7398 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7399 too, remove dead code.
7400 (linux): Use GNU_LINUX instead.
7401
74022008-07-16 Jason Rumney <jasonr@gnu.org>
7403
7404 * w32gui.h: Repeat 26 June changes lost by last change.
7405
74062008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7407
7408 * systty.h: Remove code for Aix on 386, unsupported platform.
7409
7410 * s/ms-w32.h: Remove boilerplate comments.
7411 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7412
7413 * s/gnu-linux.h (TERM): Remove support.
7414 (HAVE_SYSVIPC): Remove, unused.
7415 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7416 for this system.
7417
7418 * process.c: Remove support for IRIS, unused.
7419 Remove support for TERM, not relevant anymore.
7420
7421 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7422 used with the definition.
7423
7424 * s/aix4-2.h (static): Do not undef.
7425
7426 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7427 only used on Aix.
7428 (HAVE_SYSVIPC): Remove, unused.
7429
7430 * m/hp800.h (CANNOT_DUMP): Do not undef.
7431
7432 * m/alpha.h: Fix comment.
7433
7434 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7435 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7436 used by this configuration.
7437 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7438 * unexec.c: Remove code depending on HPUX and
7439 USG_SHARED_LIBRARIES, not used with this file. Remove code
7440 depending on IRIS, unused. Remove if 0-ed code.
7441
7442 * s/template.h: Remove comments about static.
7443
7444 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7445 Remove if 0-ed code.
7446 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7447 were the same as the default.
7448 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7449 Remove boilerplate comments.
7450 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7451 (HAVE_SYSVIPC): Remove, unused.
7452 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7453
7454 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7455 Remove boilerplate comments.
7456 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7457 Remove boilerplate comments.
7458 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7459 Remove boilerplate comments.
7460 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7461
7462 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7463 USG systems which do not use DATA_SEG_BITS.
7464 Refactor code. Remove boilerplate comments.
7465
7466 * m/ibms390.h:
7467 * m/m68k.h:
7468 * s/bsd-common.h:
7469 * s/cygwin.h:
7470 * s/darwin.h:
7471 * s/freebsd.h:
7472 * s/gnu.h:
7473 * s/msdos.h: Remove boilerplate comments.
7474
7475 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7476 do not use this file.
aac0c6e3
MR
7477 (IRIS_4D): Remove, unused.
7478
7479 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7480 do not use this file.
aac0c6e3
MR
7481 (SIGN_EXTEND_CHAR):
7482 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7483 * unexmips.c: Remove file, unused.
7484
7485 * editfns.c (Fuser_full_name): Replace the only use of
7486 USER_FULL_NAME with its value.
7487 * config.in: Regenerate.
7488
74892008-07-16 David Reitter <david.reitter@gmail.com>
7490
7491 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7492 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7493
74942008-07-16 Glenn Morris <rgm@gnu.org>
7495
7496 * emacs.c (system-type): Doc fix.
7497
74982008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7499
7500 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7501 If the cache doesn't work, let's fix it, rather than work around it.
7502
75032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7504
7505 * Makefile.in: Correct additions for nsfont.o in last commit.
7506 * nsfont.m: New file (forgot last commit).
7507
75082008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7509
7510 * callproc.c (set_initial_environment): Initialize
7511 Vprocess_environment under CANNOT_DUMP (fixes crash when
7512 batch-compiling for bootstrap).
7513
75142008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7515 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7516
7517 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7518 fix crash due to different init order.
7519
75202008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7521
7522 Changes and additions for NeXTstep windowing system (Cocoa and
7523 GNUstep) support.
7524
7525 * Makefile.in:
7526 * config.in: Support defines and build commands for NS port.
7527 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7528 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7529 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7530 windowing.
7531 (struct face): Add synth_ital field.
7532 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7533 (init_display): Initialize Vinitial_window_system to "ns" when so
7534 compiled.
7535 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7536 (display_arg): Use under NS.
7537 (main): Under NS, allocate autorelease pool and handle command line
7538 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7539 (standard_args): Add NS-specific args.
7540 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7541 * font.c (DEFAULT_ENCODING): New variable.
7542 (font_find_for_lface): Use it.
7543 (syms_of_font): Load syms_of_nsfont under NS.
7544 * font.h: Declare nsfont_driver when compiled under NS.
7545 * fontset.c: When compiling under NS, include nsterm.h.
7546 (fontset_from_font): Autoconstruct fontset under NS.
7547 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7548 symbol, document and use it.
7549 (do_switch_frame): When for_deletion under Cocoa, add
7550 Fraise_frame(Qnil).
7551 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7552 (x_get_arg): Allow "yes" and "no" as boolean values.
7553 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7554 Qright under Cocoa.
7555 (focus-follows-mouse): Default to 0 under NS.
7556 * frame.h (enum output_method): Add output_ns.
7557 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7558 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7559 (FRAME_WINDOW_P): NS-specific definition.
7560 * fringe.c (max_used_fringe_bitmap): Make public.
7561 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7562 (getloadavg): Use NeXT code under descendant OS's.
7563 * image.c (includes and header section, x_create_bitmap_from_data)
7564 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7565 (image_background_transparent, x_clear_image_1)
7566 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7567 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7568 (x_to_xcolors, x_from_xcolors, x_disable_image)
7569 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7570 other GUIs, including XPM support using code originally written for
7571 Carbon GUI.
7572 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7573 using NS API.
7574 (image_ascent): Use font metrics macros instead of direct struct field
7575 access.
7576 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7577 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7578 Also, handle NS as GTK for menu bar purposes.
7579 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7580 toolkit where they differ.
7581 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7582 use cachelist, still needed under NS.
7583 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7584 (struct widget_value): Define it here for menu.c.
7585 * keymap.c (includes): Include modifier internals.
7586 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7587 NS.
7588 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7589 support for preferring sequences using certain modifiers, specified by
7590 the FIRSTONLY argument.
7591 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7592 under NS GNUstep implementation.
7593 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7594 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7595 * menu.c: Include nsterm.h under NS.
7596 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7597 (free_menubar_widget_tree_value, update_submenu_strings)
7598 (find_and_call_menu_selection): Treat NS as X and NT.
7599 (find_and_return_menu_selection): New function, used for popup menus.
7600 * nsgui.h:
7601 * nsterm.h:
7602 * nsfns.m:
7603 * nsimage.m:
7604 * nsmenu.m:
7605 * nsselect.m:
7606 * nsterm.m: New files.
7607 * process.c (wait_reading_process_output): Under NS, call ns_select()
7608 instead of plain select().
7609 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7610 beginning of buffer.
7611 * sysselect.h (init_process): Rename when compiling under Cocoa to
7612 avoid name conflict.
7613 * termhooks.h (display_info): Add ns_display_info to union.
7614 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7615 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7616 COCOA environment.
7617 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7618 unexec() signature. (Note, this will dump, but the resulting file
7619 crashes; unexosx is used instead; keeping around for reference and
7620 possible aid in getting dump working under GNUstep.)
7621 * w32gui.h (button_type, widget_value): Remove definitions (now in
7622 keyboard.h).
7623 * window.c: Include nsterm.h when compiling under NS.
7624 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7625 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7626 other GUI windowing systems.
7627 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7628 GTK.
7629 (x_consider_frame_title): Under NS, set icon type and frame
7630 modified-state indicator; use ns_set_name_as_filename() when using
7631 formatted title.
7632 (update_window_cursor): Make public when compiling under NS.
7633 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7634 (hourglass_atimer, Vhourglass_delay
7635 * xfaces.c (header section, init_frame_faces, clear_font_table)
7636 (defined_color, unload_color, x_face_list_fonts)
7637 (prepare_face_for_display): Add NS support parallel to other GUIs.
7638 Emulate GCs like other non-X GUIs.
7639 (split_font_name): Don't lowercase font name under NS.
7640 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7641 under NS.
7642 * s/darwin.h: Add support for compilation under NS.
7643
76442008-07-15 Jason Rumney <jasonr@gnu.org>
7645
7646 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7647 (w32_show_hourglass): Rename from show_hourglass.
7648 (w32_hide_hourglass): Rename from hide_hourglass.
7649 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7650 (Vhourglass_delay): Declare extern.
7651 (hourglass_started): Remove.
7652
7653 * xdisp.c (Vhourglass_delay): Remove static.
7654 (hourglass_started, start_hourglass, cancel_hourglass):
7655 Don't include these versions on WINDOWSNT.
7656
76572008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7658
7659 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7660 variables (formerly in xfns.c).
7661 (show_hourglass, hide_hourglass): New prototypes (same).
7662 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7663 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7664 in xfns.c).
7665 (syms_of_xdisp): Declare/initialize display-hourglass,
7666 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7667 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7668 formerly in xfns.c.
7669 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7670 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7671 (start_hourglass, cancel_hourglass): Remove.
7672 (show_hourglass, hide_hourglass): Remove prototypes and static
7673 modifiers.
7674 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7675 hourglass_atimer, hourglass_shown_p declaration/initialization.
7676 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7677 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7678 (start_hourglass, cancel_hourglass): Remove.
7679 (show_hourglass, hide_hourglass): Remove prototypes and static
7680 modifiers.
7681 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7682 hourglass_atimer, hourglass_shown_p declaration/initialization.
7683 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7684 (DEFAULT_HOURGLASS_DELAY): Remove.
7685 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7686 hourglass_shown_p declaration/initialization.
7687
76882008-07-14 Jason Rumney <jasonr@gnu.org>
7689
7690 * w32fns.c (w32_get_arg): Remove wrapper function.
7691 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7692 directly.
7693 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7694
76952008-07-14 Kenichi Handa <handa@m17n.org>
7696
7697 * xfont.c (xfont_open): Add workaround for X's bug.
7698
76992008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7700
7701 * fontset.c: Include <stdio.h> unconditionally.
7702
77032008-07-13 Michael Albinus <michael.albinus@gmx.de>
7704
7705 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7706 for filtering.
7707
77082008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7709
7710 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7711
7712 * m/macppc.h:
7713 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7714
7715 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7716 (SPECIAL_EMACS_INT):
7717 * m/ia64.h (SPECIAL_EMACS_INT):
7718 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7719 * s/gnu.h (NLIST_STRUCT):
7720 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7721 * s/gnu-linux.h (LINUX):
7722 * s/msdos.h (HAVE_FACES):
7723 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7724
7725 * systty.h:
7726 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7727 anymore.
7728
77292008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7730
7731 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7732 always defined as int.
7733
7734 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7735 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7736 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7737 * s/freebsd.h (HAVE_WAIT_HEADER):
7738 * s/bsd-common.h (HAVE_UNION_WAIT):
7739 * s/aix4-2.h (HAVE_WAIT_HEADER):
7740 * m/mips.h (HAVE_UNION_WAIT):
7741 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7742 (COFF, static): Do not define, they are undefined later in the file.
7743
7744 * process.c (update_status): Don't use a union.
7745 (status_convert):
7746 (sigchld_handler): Use int instead of WAITTYPE.
7747
77482008-07-12 Chong Yidong <cyd@stupidchicken.com>
7749
7750 * indent.c (Fvertical_motion): Restore hscroll before moving to
7751 goal column.
7752
77532008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7754
7755 * lisp.h: Remove left over code.
7756
77572008-07-11 Andreas Schwab <schwab@suse.de>
7758
7759 * lisp.h: Fix logic in last change.
7760
7761 * menu.h: New file.
7762 * menu.c: Include it.
7763 * xmenu.c: Likewise.
7764 * Makefile.in: Update dependencies.
7765
77662008-07-11 Kenichi Handa <handa@m17n.org>
7767
7768 * fontset.c (fontset_from_font): Cancel the previous change.
7769
77702008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7771
7772 * lisp.h:
7773 * w32heap.c:
7774 * emacs.c:
7775 * alloc.c: Replace all references of NO_UNION_TYPE with
7776 USE_LISP_UNION_TYPE.
7777
7778 * m/xtensa.h (NO_UNION_TYPE):
7779 * m/vax.h (NO_UNION_TYPE):
7780 * m/template.h (NO_UNION_TYPE):
7781 * m/sparc.h (NO_UNION_TYPE):
7782 * m/mips.h (NO_UNION_TYPE):
7783 * m/macppc.h (NO_UNION_TYPE):
7784 * m/m68k.h (NO_UNION_TYPE):
7785 * m/iris4d.h (NO_UNION_TYPE):
7786 * m/intel386.h (NO_UNION_TYPE):
7787 * m/ibms390x.h (NO_UNION_TYPE):
7788 * m/ibms390.h (NO_UNION_TYPE):
7789 * m/ibmrs6000.h (NO_UNION_TYPE):
7790 * m/ia64.h (NO_UNION_TYPE):
7791 * m/hp800.h (NO_UNION_TYPE):
7792 * m/arm.h (NO_UNION_TYPE):
7793 * m/amdx86-64.h (NO_UNION_TYPE):
7794 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7795 defining it the same.
7796
77972008-07-10 Chong Yidong <cyd@stupidchicken.com>
7798
7799 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7800
78012008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7802
7803 * fileio.c:
7804 * sysdep.c
7805 * systty.h:
7806 * m/ibmrs6000.h:
7807 * m/iris4d.h:
7808 * s/aix4-2.h:
7809 * s/freebsd.h:
7810 * s/gnu-linux.h:
7811 * s/hpux10-20.h:
7812 * s/hpux11.h:
7813 * s/netbsd.h:
7814 * s/sol2-3.h:
7815 * s/sol2-4.h:
7816 * s/sol2.h:
7817 * s/usg5-4.h:
7818 * s/vms.h: Remove references to unused variables.
7819
78202008-07-10 Andreas Schwab <schwab@suse.de>
7821
7822 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7823 pattern before matching the generic family.
7824
78252008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7826
7827 * unexec.c:
7828 * s/vms.h:
7829 * s/usg5-4-2.h:
7830 * s/sol2-5.h:
7831 * s/freebsd.h:
7832 * s/darwin.h: Remove dead code.
7833
7834 * m/template.h:
7835 * m/sparc.h:
7836 * m/mips.h:
7837 * m/m68k.h:
7838 * m/iris4d.h:
7839 * m/intel386.h:
7840 * m/ibms390x.h:
7841 * m/ibms390.h:
7842 * m/ia64.h:
7843 * m/hp800.h:
7844 * m/arm.h:
7845 * m/amdx86-64.h: Remove dead code and references to unused
7846 and compiler defined symbols.
7847
7848 * unexmips.c:
7849 * unexelf.c: Remove references to desupported systems.
7850
7851 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7852
7853 * m/powermac.h: Remove boilerplate comments.
7854 (NO_REMAP): Remove unused definition.
7855
7856 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7857 define them.
7858
78592008-07-10 Kenichi Handa <handa@m17n.org>
7860
7861 * xfont.c (xfont_open): Log the reason of failure.
7862
78632008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7864
7865 * fontset.c (fontset_get_font_group):
7866 * font.c (font_check_otf): Specify argument types.
7867
78682008-07-09 Kenichi Handa <handa@m17n.org>
7869
7870 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7871 non-ASCII char is found.
7872
7873 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7874 (reorder_font_vector): Change the arg preferred_family to font.
7875 Prefer the spec matching with font.
7876 (fontset_get_font_group): New function.
7877 (fontset_find_font): Change the format of an element of a realized
7878 fontset. Use fontset_get_font_group.
7879 (fontset_font): Try the current fontset, the default fontset, the
7880 fallbacks of the current fontset, and the fallbacks of the default
7881 fontset in this order.
7882 (face_for_char): Delete the shortcut to use the current font.
7883 (fontset_from_font): Don't set fonts for Latin in the fontset.
7884
7885 * font.h (font_make_object, font_match_p): Adjust prototypes.
7886
7887 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7888
7889 * font.c (font_make_object): New arg entity and pixelsize.
7890 (font_check_otf_features, font_check_otf): New functions.
7891 (font_match_p): Check :lang, :script, and :otf properties.
7892
7893 * xfont.c (xfont_open): Adjust it for the change of
7894 font_make_object.
7895 (xfont_text_extents): Fix initial setting of metrics.
7896
7897 * ftfont.c (struct ftfont_info): New member index, delete member
7898 fc_charset_idx. Make the member order compatible with struct
7899 xftfont_info.
7900 (fc_charset_table): Change charset names to registry names.
7901 (ftfont_pattern_entity): Delete the args registry and
7902 fc_charset_idx. Change the value of :font-entity property
7903 to (FONTNAME . INDEX). Always set :registry property to
7904 `iso10646-1'.
7905 (struct ftfont_cache_data): New struct.
7906 (ftfont_lookup_cache): New arg for_face.
7907 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7908 (ftfont_driver): Set the member otf_capability.
7909 (ftfont_get_charset): Adjust it for the change of
7910 fc_charset_table.
7911 (OTF_TAG_SYM): New macro.
7912 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7913 for the change of fc_charset_table.
7914 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7915 ftfont_pattern_entity. Add FC_INDEX to objset.
7916 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7917 and ftfont_pattern_entity.
7918 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7919 font_make_object, struct ftfont_info.
7920 (ftfont_has_char): Use ftfont_get_fc_charset.
7921 (ftfont_otf_features, ftfont_otf_capability): New functions.
7922 (ftfont_shape): Use ftfont_get_otf.
7923 (ftfont_text_extents): Fix initial setting of metrics.
7924
7925 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7926 member order compatible with struct ftfont_info.
7927 (xftfont_open): Add FC_CHARSET to the pattern. Set
7928 xftfont_info->ft_size. Don't unlock the face. Check BDF
7929 properties if appropriate.
7930 (xftfont_close): Unlock the face.
7931 (xftfont_anchor_point, xftfont_shape): Deleted.
7932 (syms_of_xftfont): Don't set members anchor_point and shape of
7933 xftfont_driver.
7934
7935 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7936 font_make_object.
7937
7938 * w32font.c (w32font_open): Adjust it for the change of
7939 font_make_object.
7940 (w32font_open_internal): Don't set properties of font_object here.
7941
79422008-07-08 Chong Yidong <cyd@stupidchicken.com>
7943
7944 * macfns.c (x_create_tip_frame):
7945 * w32fns.c (x_create_tip_frame):
7946 * xfns.c (x_create_tip_frame): Pass parameter argument to
7947 face-set-after-frame-default.
7948
7949 * xfaces.c (Finternal_merge_in_global_face): Save merged
7950 attributes for the default face back into the face vector.
7951
79522008-07-08 Andreas Schwab <schwab@suse.de>
7953
7954 * fontset.h: Declare fontset_from_font. Don't declare
7955 new_fontset_from_font and fontset_from_font_name.
7956 * xterm.c: Include "fontset.h".
7957 * Makefile.in (xterm.o): Update dependencies.
7958
79592008-07-08 Glenn Morris <rgm@gnu.org>
7960
7961 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7962 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7963
79642008-07-07 Chong Yidong <cyd@stupidchicken.com>
7965
7966 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7967 (x_set_frame_parameters): Don't bind it.
7968
79692008-07-07 Juanma Barranquero <lekktu@gmail.com>
7970
7971 * w32fns.c (map_w32_filename): Declare extern.
7972
79732008-07-07 Jason Rumney <jasonr@gnu.org>
7974
7975 * w32term.c (WS_EX_LAYERED): Define if not already.
7976
79772008-07-06 Chong Yidong <cyd@stupidchicken.com>
7978
7979 * xfaces.c (set_font_frame_param): Don't try to set the font
7980 parameter if it is still unspecified in the lface.
7981
79822008-07-05 Chong Yidong <cyd@stupidchicken.com>
7983
7984 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7985 face if it didn't already exist.
7986
7987 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7988
79892008-07-05 Andreas Schwab <schwab@suse.de>
7990
7991 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7992
79932008-07-05 Chong Yidong <cyd@stupidchicken.com>
7994
7995 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7996 word-wrapping.
7997 (IT_DISPLAYING_WHITESPACE): New macro.
7998 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7999 when word-wrapping. Simplify word-wrapping logic. Use correct
8000 pixel positions when saving copies of the iterator.
8001 (display_line): Use proper wrap point if the last character on a
8002 line was preceded by whitespace.
8003
80042008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8005
8006 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8007
80082008-07-04 Kenichi Handa <handa@m17n.org>
8009
8010 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8011
8012 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8013
80142008-07-02 Jason Rumney <jasonr@gnu.org>
8015
8016 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8017 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8018
8019 * xdisp.c (next_element_from_display_vector): Move assignment out
8020 of if statement.
8021
80222008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8023
8024 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8025
8026 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8027 (syms_of_fileio): Initialize and export them.
8028 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8029
8030 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8031 (Fsystem_move_file_to_trash): New function.
8032 (syms_of_w32fns): Export it to lisp.
8033
80342008-07-01 Jason Rumney <jasonr@gnu.org>
8035
8036 * w32font.c (w32font_text_extents): Don't count overhang as part
8037 of width.
8038
80392008-06-30 Miles Bader <miles@gnu.org>
8040
8041 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8042 Add `avoid_cursor_p' field.
8043
8044 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8045 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8046 (append_glyph, append_composite_glyph, produce_image_glyph)
8047 (append_stretch_glyph): Initialize avoid_cursor_p.
8048 (get_it_property): Rename from `get_line_height_property'.
8049 (x_produce_glyphs): Use get_it_property.
8050 (handle_line_prefix, push_display_prop): New functions.
8051 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8052 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8053 New variables.
8054 (syms_of_xdisp): Initialize them.
8055
80562008-06-30 Kenichi Handa <handa@m17n.org>
8057
8058 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8059 XftDefaultSubstitute (they are called in XftFontMatch).
8060 (xftfont_open): Fix args to ftfont_font_format.
8061
8062 * ftfont.c (fc_charset_table): New member lang.
8063 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8064 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8065 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8066 (ftfont_open): Fix args to ftfont_font_format.
8067 (ftfont_font_format): New arg filename.
8068
80692008-06-30 Chong Yidong <cyd@stupidchicken.com>
8070
8071 * xfaces.c (Finternal_merge_in_global_face): If default face was
8072 modified, realize it again. Update the font face attribute.
8073
80742008-06-29 Jason Rumney <jasonr@gnu.org>
8075
8076 * w32term.c (x_set_frame_alpha): Fix logic.
8077
80782008-06-29 Kenichi Handa <handa@m17n.org>
8079
8080 * fontset.c (Finternal_char_font): Return font-object instead of
8081 font-name.
8082
8083 * composite.c (get_composition_id): Fix the width calculation for TAB.
8084
80852008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8086
8087 * indent.c (Fvertical_motion): Properly handle float column arg.
8088
80892008-06-28 Jason Rumney <jasonr@gnu.org>
8090
8091 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8092 (pfnSetLayeredWindowAttributes): New function pointer.
8093 (w32_initialize): Initialize it when supported.
8094 (x_set_frame_alpha): New function.
8095
8096 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8097 (w32_frame_parm_handlers): Set alpha handler.
8098
8099 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8100
81012008-06-27 Jason Rumney <jasonr@gnu.org>
8102
8103 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8104 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8105 (w32_to_x_charset, x_to_w32_charset)
8106 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8107 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8108 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8109 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8110 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8111 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8112 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8113 (Qw32_charset_unicode): Remove.
8114 (syms_of_w32fns): Update for above changes.
8115
8116 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8117 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8118 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8119 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8120 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8121 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8122 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8123 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8124 (syms_of_w32font): Update for above changes.
8125
81262008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8127
8128 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8129 removed #if.
8130 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8131
81322008-06-26 Juanma Barranquero <lekktu@gmail.com>
8133 Eli Zaretskii <eliz@gnu.org>
8134
8135 * makefile.w32-in (LOCAL_FLAGS):
8136 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8137
8138 * sysdep.c (_spawnlp, _getpid):
8139 Declare with explicit _cdecl instead of _CRTAPI1.
8140
8141 * editfns.c (Fget_internal_run_time):
8142 Check for WINDOWSNT with #ifdef, not #if.
8143
81442008-06-26 Jason Rumney <jasonr@gnu.org>
8145
8146 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8147
8148 * w32term.c (x_draw_glyph_string_foreground)
8149 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8150 Use FONT_HANDLE macro.
8151 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8152
8153 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8154 (uniscribe_encode_char): Use FONT_HANDLE macro.
8155
8156 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8157 (w32font_text_extents): Use precast w32_font.
8158 (w32font_close): Free cached metrics.
8159 (w32font_open_internal): Allocate space for name on stack.
8160
81612008-06-26 Chong Yidong <cyd@stupidchicken.com>
8162
8163 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8164
81652008-06-26 Jason Rumney <jasonr@gnu.org>
8166
8167 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8168 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8169
81702008-06-26 Juanma Barranquero <lekktu@gmail.com>
8171
8172 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8173
81742008-06-26 Jason Rumney <jasonr@gnu.org>
8175
8176 * w32bdf.c, w32bdf.h: Remove obsolete files.
8177
8178 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8179
8180 * w32gui.h: Don't include w32bdf.h.
8181 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8182 Remove obsolete font support.
8183
8184 * w32font.h (struct w32font_info): Remove compat_w32_font.
8185 Add hfont member.
8186 (FONT_COMPAT): Remove obsolete macro.
8187
8188 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8189 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8190 (w32font_open_internal): Remove compat code. Set new hfont member.
8191 (Fx_select_font): Use new hfont member.
8192
8193 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8194 (uniscribe_encode_char): Use new hfont member.
8195
8196 * w32term.c (x_draw_glyph_string_foreground)
8197 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8198 (x_draw_glyph_string): Use metrics in w32font_info.
8199
82002008-06-26 Kenichi Handa <handa@m17n.org>
8201
8202 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8203
82042008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8205
8206 * unexnext.c:
8207 * m/ews4800.h:
8208 * m/hp9000s300.h:
8209 * m/ibm370aix.h:
8210 * m/mips-siemens.h:
8211 * m/ncr386.h:
8212 * m/next.h:
8213 * m/pmax.h:
8214 * m/powerpcle.h:
8215 * m/tandem-s2.h:
8216 * s/386bsd.h:
8217 * s/bsd386.h:
8218 * s/bsd4-1.h:
8219 * s/bsd4-2.h:
8220 * s/bsdos2-1.h:
8221 * s/bsdos2.h:
8222 * s/bsdos3.h:
8223 * s/bsdos4.h:
8224 * s/nextstep.h:
8225 * s/ultrix4-3.h:
8226 * s/usg5-0.h:
8227 * s/usg5-2-2.h:
8228 * s/usg5-2.h:
8229 * s/usg5-4-3.h:
8230 * s/ux4800.h:
8231 * s/uxpds.h:
8232 * s/uxpv.h: Remove support for obsolete systems.
8233 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8234 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8235 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8236 Remove, insert contents in s/aix4-2.h.
8237 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8238 * s/bsd4-3.h: Rename to ...
8239 * s/bsd-common.h: ... this.
8240 * data.c:
8241 * doc.c:
8242 * ecrt0.c:
8243 * emacs.c:
8244 * fileio.c:
8245 * floatfns.c:
8246 * keyboard.c:
8247 * mem-limits.h:
8248 * print.c:
8249 * process.c:
8250 * sysdep.c:
8251 * syssignal.h:
8252 * systty.h:
8253 * syswait.h:
8254 * term.c:
8255 * unexec.c:
8256 * unexelf.c:
8257 * unexhp9k800.c:
8258 * m/hp800.h:
8259 * m/ibmrs6000.h:
8260 * m/mips.h:
8261 * m/vax.h:
8262 * s/darwin.h:
8263 * s/freebsd.h:
8264 * s/gnu.h:
8265 * s/ms-w32.h:
8266 * s/msdos.h:
8267 * s/netbsd.h:
8268 * s/template.h: Remove references to obsolete variables.
8269
8270 * Makefile.in: Add dependencies for all unexec files.
8271 (admindir): Remove unused variable.
8272 (UNEXEC_SRC): Remove references.
8273
82742008-06-25 Chong Yidong <cyd@stupidchicken.com>
8275
8276 * xfns.c (x_default_font_parameter): If Xft is available, first
8277 try Monospace-12 for the default font.
8278
82792008-06-25 Jason Rumney <jasonr@gnu.org>
8280
8281 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8282
82832008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8284
8285 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8286
8287 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8288
82892008-06-25 Juanma Barranquero <lekktu@gmail.com>
8290
8291 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8292 <scroll-conservatively>: Fix typo in docstring.
8293
8294 * xselect.c (Fx_send_client_event): Doc fix.
8295
82962008-06-25 Kenichi Handa <handa@m17n.org>
8297
8298 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8299
8300 * font.c (font_parse_fcname): Remove unused variables.
8301 (font_sort_entites): Delete the arg SPEC. Caller changed.
8302 Fix for the case of ! best_only.
8303 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8304
8305 * lisp.h (Fstring_to_unibyte): EXFUN it.
8306
8307 * character.h (str_to_unibyte): Extern it.
8308
8309 * character.c (str_to_unibyte): New function.
8310
8311 * fns.c (Fstring_to_unibyte): New function.
8312 (syms_of_fns): Defsubr it.
8313
83142008-06-24 Kenichi Handa <handa@m17n.org>
8315
8316 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8317 DPI too.
8318 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8319
83202008-06-24 Andreas Schwab <schwab@suse.de>
8321
8322 * Makefile.in (${lispsource}loaddefs.el): Rename from
8323 ../lisp/loaddefs.el.
8324 (bootstrap-clean): Do what distclean does but don't remove
8325 Makefile.
8326 (distclean): Depend on bootstrap-clean and remove Makefile.
8327
83282008-06-24 Chong Yidong <cyd@stupidchicken.com>
8329
8330 * buffer.h (struct buffer): New member word_wrap.
8331
8332 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8333 word-wrap.
8334 (init_buffer_once): Initialize them.
8335
8336 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8337 line_wrap enum possessing three possible values.
8338
8339 * termopts.h: Replace truncate_partial_width_windows with
8340 Vtruncate_partial_width_windows.
8341
8342 * dispnew.c (direct_output_for_insert): Avoid direct output when
8343 inserting a space with word wrap on.
8344
8345 * indent.c (compute_motion): Obey integer values of
8346 truncate-partial-width-windows.
8347
8348 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8349 replacing truncate_partial_width_windows.
8350 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8351 truncate only if the window width is below that integer.
8352 (start_display, resize_mini_window, produce_stretch_glyph)
8353 (display_string, move_it_in_display_line_to): Use line_wrap.
8354 (back_to_previous_visible_line_start, reseat_1): Reset
8355 string_from_display_prop_p.
8356 (display_line): Extend default face to end of line when wrapping.
8357
83582008-06-24 Kim F. Storm <storm@cua.dk>
8359
8360 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8361 to wrap continued lines at word boundaries.
8362
83632008-06-24 Jason Rumney <jasonr@gnu.org>
8364
8365 * font.c (Ffont_face_attributes): Multiply pixel size before point
8366 conversion to avoid multiplying rounding error.
8367
83682008-06-23 Jason Rumney <jasonr@gnu.org>
8369
8370 * w32term.c (x_draw_glyph_string_background)
8371 (x_draw_glyph_string): Remove old bdf font code.
8372
8373 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8374
83752008-06-22 Kenichi Handa <handa@m17n.org>
8376
8377 * font.c (font_find_for_lface): Try the adstyle specified in
8378 the property of LFACE_FONT of LFACE (if any).
8379
83802008-06-21 Seiji Zenitani <zenitani@mac.com>
8381 Ryo Yoshitake <ryo@shiftmode.net>
8382
8383 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8384
83852008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8386
8387 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8388 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8389 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8390 (witness-emacs): Remove.
8391 (lisp, shortlisp): Move loaddefs.el earlier.
8392 (mostlyclean): Forget about witness-emacs.
8393
83942008-06-22 Glenn Morris <rgm@gnu.org>
8395
8396 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8397 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8398
83992008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8400
8401 * Makefile.in (PRECOMP): Remove.
8402 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8403 (witness-emacs): Run `compile-first'.
8404 (.el.elc): Use the new compile-onefile target.
8405
84062008-06-21 Kenichi Handa <handa@m17n.org>
8407
8408 * xftfont.c (xftfont_open): Handle QCembolden only when
8409 FC_EMBOLDEN is defined.
8410
84112008-06-21 Andreas Schwab <schwab@suse.de>
8412
8413 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8414 (.el.elc): Likewise.
8415
84162008-06-21 Miles Bader <miles@gnu.org>
8417
8418 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8419 build dir, not the lisp source dir.
8420
84212008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8422
8423 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8424 (bootstrapclean): Remove.
8425 (.el.elc): New rule.
8426 (PRECOMP): New var.
8427 (../lisp/subdirs.el): Remove.
8428 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8429 (witness-emacs): New target.
8430 (mostlyclean): Remove witness-emacs as well.
8431 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8432 Add witness-emacs dependency.
8433
84342008-06-20 Chong Yidong <cyd@stupidchicken.com>
8435
8436 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8437 defined by the font.
8438
84392008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8440
8441 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8442 (bootstrap-clean): New target that keeps TAGS around.
8443 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8444 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8445
84462008-06-20 Jason Rumney <jasonr@gnu.org>
8447
8448 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8449 Remove obsolete font code.
8450
8451 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8452 to determine language support.
8453
84542008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8455
8456 * sysdep.c (cfsetspeed): New fun extracted from the code.
8457 (cfmakeraw): Move before first use.
8458
84592008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8460
8461 * sysdep.c (cfmakeraw): Provide fallback implementation.
8462 (serial_configure): Provide fallback implementation of cfsetspeed.
8463
84642008-06-20 Kenichi Handa <handa@m17n.org>
8465
8466 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8467 the pattern.
8468
8469 * fontset.c (fontset_from_font): Copy font_spec before changing
8470 the elements.
8471
8472 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8473
84742008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8475
8476 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8477 for explicit `font' parameters.
8478
8479 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8480
84812008-06-19 Kenichi Handa <handa@m17n.org>
8482
8483 * frame.c: Include <ctype.h>.
8484 (x_set_font_backend): Allow spacing characters in the X resource
8485 for FontBackend.
8486
84872008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8488
8489 * w32fns.c, xfns.c (Qfont_param): New var.
8490 (syms_of_w32fns): Initialize it.
8491 (x_default_font_parameter): Record explicit `font' into
8492 `font-parameter'.
8493
84942008-06-18 Kenichi Handa <handa@m17n.org>
8495
8496 * font.c (font_parse_xlfd): Fix previous change.
8497 (font_parse_fcname): Don't use :fc-unknown-spec.
8498 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8499 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8500 (font_add_log): Prepend the driver name to the resulting fonts.
8501
8502 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8503 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8504 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8505
8506 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8507 (QCembolden): New variables.
8508 (syms_of_xftfont): DEFSYM them.
8509 (xftfont_open): Call XftFontMatch. Don't trust the result of
8510 XftTextExtents8 if the pixel_size is less than 5.
8511
85122008-06-18 Andreas Schwab <schwab@suse.de>
8513
8514 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8515 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8516
85172008-06-18 Jason Rumney <jasonr@gnu.org>
8518
8519 * w32font.c (w32font_list, w32font_match): Add logging.
8520
8521 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8522
85232008-06-17 Chong Yidong <cyd@stupidchicken.com>
8524
8525 * font.c (font_parse_fcname): Store divider characters for
8526 unknown-spec list. For known key symbols, intern using correct
8527 symbol name.
8528
85292008-06-17 Kenichi Handa <handa@m17n.org>
8530
8531 * xfaces.c (realize_default_face): If the frame is not on window
8532 system, set the fontset of face to nil.
8533
85342008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8535
8536 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8537
85382008-06-16 Juanma Barranquero <lekktu@gmail.com>
8539
8540 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8541 (build_font_name_from_vector): Delete externs.
8542
8543 * xfaces.c (struct font_name): Don't declare.
8544
85452008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8546
8547 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8548
85492008-06-16 Chong Yidong <cyd@stupidchicken.com>
8550
8551 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8552
85532008-06-16 Juanma Barranquero <lekktu@gmail.com>
8554
8555 * font.c (Ffont_spec): Fix usage in docstring.
8556 (Ffont_face_attributes): Doc fix.
8557
85582008-06-16 Andreas Schwab <schwab@suse.de>
8559
8560 * font.c (Ffont_face_attributes): Fix definition.
8561
85622008-06-16 Jason Rumney <jasonr@gnu.org>
8563
8564 * font.h (font_style_symbolic_from_value): Remove.
8565
8566 * font.c (font_style_symbolic_from_value): Remove.
8567 (font_style_symbolic): Revert to pre 2008-06-13 version.
8568
8569 * w32font.c (w32_to_fc_weight): New function.
8570 (w32font_full_name, logfont_to_fcname): Use it.
8571
85722008-06-16 Kenichi Handa <handa@m17n.org>
8573
8574 * font.c (font_check_object): Delete it.
8575 (font_clear_cache): Check if a font-object is alive.
8576 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8577 font-object to nil.
8578 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8579 (font_at): Don't call font_check_object.
8580 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8581
85822008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8583
8584 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8585
85862008-06-16 Chong Yidong <cyd@stupidchicken.com>
8587
8588 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8589
85902008-06-15 Chong Yidong <cyd@stupidchicken.com>
8591
8592 * font.c (font_parse_fcname): Only one decimal point.
8593 (font_unparse_fcname): Handle data in family and foundry indices
8594 as symbols, not strings.
8595 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8596
8597 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8598
8599 * font.h (font_unparse_gtkname): Add prototype.
8600
86012008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8602
8603 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8604
86052008-06-15 Andreas Schwab <schwab@suse.de>
8606
8607 * font.c (font_update_drivers): Fix crash when no drivers match.
8608
86092008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8610
8611 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8612 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8613
86142008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8615
8616 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8617
86182008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8619
8620 * process.c (Fserial_process_configure, Fprocess_send_eof):
8621 Use EQ to compare Lisp_Objects.
8622
86232008-06-13 Jason Rumney <jasonr@gnu.org>
8624
8625 * w32fns.c (Fw32_select_font): Remove old font API function.
8626
8627 * w32font.c (logfont_to_fcname): New function.
8628 (Fx_select_font): New font dialog function compatible with
8629 GTK/fontconfig version.
8630
8631 * font.c (font_style_symbolic_from_value): New function.
8632 (font_style_symbolic): Use it.
8633
8634 * font.h (font_style_symbolic_from_value): Declare new function.
8635
86362008-06-13 Juanma Barranquero <lekktu@gmail.com>
8637
8638 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8639 <font-width-table>: Fix typos in docstrings.
8640
86412008-06-13 Daniel Engeler <engeler@gmail.com>
8642
8643 These changes add serial port access.
8644 * process.c: Add HAVE_SERIAL.
8645 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8646 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8647 (list_processes_1, select_wrapper, Fstop_process)
8648 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8649 (status_notify): Modify to handle serial processes.
8650 [HAVE_SERIAL] (Fserial_process_configure)
8651 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8652 New functions.
8653 * process.h (struct Lisp_Process): Add `type'.
8654 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8655 New functions.
8656 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8657 serial ports.
b71ac3dd 8658 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8659 * w32.h: Add FILE_SERIAL.
8660 (struct _child_process): Add ovl_read, ovl_write.
8661
86622008-06-13 Kenichi Handa <handa@m17n.org>
8663
8664 * dispextern.h (enum lface_attribute_index): New member
8665 LFACE_FOUNDRY_INDEX.
8666
8667 * font.c (font_score): Delete arg alternate_families. Check only
8668 weight, slant, width, and size. Ignore the difference of alias
8669 style symbols.
8670 (font_sort_entites): Adjust for the above change. Reflect the
8671 order of font-driver to scores.
8672 (font_list_entities): Don't check alternate_familes here.
8673 (font_clear_prop): Handle foundry.
8674 (font_update_lface): Don't parse "foundry-family" form here.
8675 Handle FONT_FOUNDRY_INDEX.
8676 (font_find_for_lface): Likewise. Handle alternate families here.
8677 If registry is nil, try iso8859-1 and ascii-0.
8678 (font_open_for_lface): Pay attention to size in ENTITY.
8679 (font_open_by_name): Simplify by calling font_load_for_lface.
8680 (free_font_driver_list): Delete it.
8681 (font_update_drivers): Preserve the order of backends.
8682 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8683 of font_score and font_sort_entites.
8684 (font_update_sort_order): Likewise.
8685
8686 * xfaces.c (LFACE_FOUNDRY): New macro.
8687 (check_lface_attrs): Check foundry.
8688 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8689 (merge_face_vectors): Check foundry.
8690 (merge_face_ref): Likewise.
8691 (Finternal_set_lisp_face_attribute): Likewise.
8692 (x_update_menu_appearance): Likewise.
8693 (Finternal_get_lisp_face_attribute): Likewise.
8694 (lface_hash): Likewise.
8695 (lface_same_font_attributes_p): Likewise.
8696 (x_supports_face_attributes_p): Likewise.
8697 (tty_supports_face_attributes_p): Likewise.
8698 (Finternal_set_alternative_font_family_alist): Intern strings.
8699 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8700 (realize_default_face): Set LFACE_FOUNDRY (lface).
8701
8702 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8703 font-driver at first.
8704
8705 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8706
87072008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8708
8709 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8710
87112008-06-12 Jim Meyering <meyering@redhat.com>
8712
8713 Make unexec_free handle NULL the same way free does.
8714 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8715
87162008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8717
8718 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8719 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8720 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8721 (WEAK_ALIAS): Simplify.
8722 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8723 when searching a unibyte buffer.
8724
87252008-06-12 Chong Yidong <cyd@stupidchicken.com>
8726
8727 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8728
87292008-06-12 Juanma Barranquero <lekktu@gmail.com>
8730
8731 * w32font.c: Include ctype.h.
8732
87332008-06-11 Jason Rumney <jasonr@gnu.org>
8734
8735 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8736 misreported as space.
8737 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8738 as aliases for registry iso10646-1.
8739
87402008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8741
8742 * buffer.c (clone_per_buffer_values): Skip `name'.
8743
87442008-06-11 Chong Yidong <cyd@stupidchicken.com>
8745
8746 * font.c (font_parse_fcname): Fix last change; accept decimal
8747 points in font size.
8748
87492008-06-10 Jason Rumney <jasonr@gnu.org>
8750
8751 * w32uniscribe.c (add_opentype_font_name_to_list):
8752 Skip non unicode fonts.
8753
87542008-06-10 Chong Yidong <cyd@stupidchicken.com>
8755
8756 * xfns.c (Fx_font_dialog): New function.
8757
8758 * gtkutil.c (xg_dialog_response_cb): Rename from
8759 xg_file_response_callback.
8760 (pop_down_dialog): Rename from pop_down_file_dialog.
8761 (xg_get_file_name): Callers changed.
8762 (xg_get_font_name): New function.
8763
8764 * gtkutil.h (xg_get_font_name): Insert prototype.
8765
87662008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8767
8768 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8769 x_underline_minimum_display_offset.
8770 (syms_of_xdisp): Declare it here rather than in xterm.c.
8771 * dispextern.h (underline_minimum_offset): Declare it.
8772 * w32term.c (x_draw_glyph_string): Use it.
8773 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8774 (syms_of_xterm): Don't declare it any more.
8775 (x_draw_glyph_string): Adjust to the new name.
8776
87772008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8778
8779 * xterm.c (x_underline_minimum_display_offset): New var.
8780 (x_draw_glyph_string): Use it.
8781 (syms_of_xterm): Declare it.
8782
87832008-06-10 Chong Yidong <cyd@stupidchicken.com>
8784
8785 * font.c (font_parse_fcname): Accept GTK-style font names too.
8786
87872008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8788
8789 * dired.c (file_name_completion): Don't return t if the match is exact
8790 but with different capitalization.
8791 * minibuf.c (Ftry_completion): Simplify.
8792
8793 * window.c (Vwindow_point_insertion_type): New var.
8794 (set_window_buffer): Use it.
8795 (syms_of_window): Init and export it to Lisp.
8796
87972008-06-10 Kenichi Handa <handa@m17n.org>
8798
8799 * font.h (font_intern_prop): Prototype adjusted.
8800
8801 * font.c (font_intern_prop): New arg force_symbol.
8802 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8803 Adjust for the change of font_intern_prop.
8804
8805 * ftfont.c (ftfont_pattern_entity):
8806 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8807 (w32_registry):
8808 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8809 the change of font_intern_prop.
8810
88112008-06-09 Juanma Barranquero <lekktu@gmail.com>
8812
8813 * w32menu.c (digest_single_submenu): Declare extern.
8814
88152008-06-09 Jason Rumney <jasonr@gnu.org>
8816
8817 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8818
8819 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8820 (parse_single_submenu): Remove.
8821 (digest_single_submenu): Remove.
8822 (syms_of_w32menu): Don't initialise variables that have moved
8823 to menu.c.
8824 (set_frame_menubar): Sync with version in xmenu.c.
8825 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8826
8827 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8828 Make static again.
8829
88302008-06-09 Jason Rumney <jasonr@gnu.org>
8831
8832 Changes to w32 files related to the move of common menu code
8833 to menu.c on 2008-06-08 by Chong Yidong.
8834
8835 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8836 defs to w32gui.h.
8837 (single_keymap_panes, push_menu_item, push_menu_pane):
8838 Make globally visible.
8839
8840 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8841 (local_free, malloc_widget_value, free_widget_value)
8842 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8843 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8844 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8845 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8846 (menu_items, menu_items_allocated, menu_items_used)
8847 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8848 (init_menu_items, finish_menu_items, discard_menu_items)
8849 (grow_menu_items, push_submenu_start, push_submenu_end)
8850 (push_left_right_boundary, push_menu_pane, push_menu_item)
8851 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8852 (free_menubar_widget_tree_value, parse_single_submenu)
8853 (update_submenu_strings): Remove functions.
8854 (xmalloc_widget_value): Remove and declare extern.
8855
8856 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8857 (OBJ1): Build it.
8858
8859 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8860 (local_heap, local_alloc, local_free, malloc_widget_value)
8861 (free_widget_value): Define here.
8862
88632008-06-09 Kenichi Handa <handa@m17n.org>
8864
8865 * font.h (Qascii_0): Extern it.
8866
8867 * font.c (Qascii_0): New variable.
8868 (syms_of_font): DEFSYM it.
8869 (font_open_by_name): If the registry "iso8859-1" fails, try also
8870 "ascii-0".
8871
8872 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8873
88742008-06-08 Kenichi Handa <handa@m17n.org>
8875
8876 * .gdbinit (xfont): New command.
8877
88782008-06-08 Andreas Schwab <schwab@suse.de>
8879
8880 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8881 * Makefile.in (menu.o): Update dependencies.
8882
8883 * Makefile.in (obj): Always add menu.o.
8884 * emacs.c (main): Always call syms_of_menu.
8885 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8886
88872008-06-08 Chong Yidong <cyd@stupidchicken.com>
8888
8889 * Makefile.in: Compile menu.c.
8890
8891 * lisp.h: Declare syms_of_menu.
8892
8893 * emacs.c (main): Call syms_of_menu.
8894
8895 * keyboard.h: Relocate platform-independent menu definitions from
8896 xmenu.c.
8897
8898 * menu.c: New file. Relocate platform-independent menu
8899 definitions from xmenu.c. Suggested by Adrian Robert.
8900
8901 * xmenu.c: Remove platform-independent menu definitions.
8902 (menu_items menu_items_inuse, menu_items_allocated)
8903 (menu_items_used, menu_items_n_panes)
8904 (menu_items_submenu_depth): Move to keyboard.h.
8905 (init_menu_items, finish_menu_items, unuse_menu_items)
8906 (discard_menu_items, restore_menu_items, save_menu_items)
8907 (grow_menu_items, push_submenu_start, push_submenu_end)
8908 (push_left_right_boundary, push_menu_pane, push_menu_item)
8909 (keymap_panes, single_keymap_panes, single_menu_item)
8910 (list_of_panes, list_of_items, find_and_call_menu_selection)
8911 (xmalloc_widget_value, free_menubar_widget_value_tree)
8912 (parse_single_submenu, digest_single_submenu)
8913 (update_submenu_strings): Move to menu.c.
8914
89152008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8916
8917 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8918
89192008-06-06 Miles Bader <miles@gnu.org>
8920
8921 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8922 face, not frame default.
8923
89242008-06-05 Martin Rudalics <rudalics@gmx.at>
8925
8926 * window.c (pop_up_windows, pop_up_frames)
8927 (display_buffer_reuse_frames, Vpop_up_frame_function)
8928 (Vdisplay_buffer_function, Veven_window_heights)
8929 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8930 (Vspecial_display_function, Vsame_window_buffer_names)
8931 (Vsame_window_regexps, split_height_threshold)
8932 (Vsplit_window_preferred_function): Move those vars to window.el.
8933 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8934 (Fdisplay_buffer): Move those functions to window.el.
8935 (syms_of_window): Remove corresponding declarations.
8936 (display_buffer): New function.
8937 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8938 * dispnew.c (Flast_nonminibuf_frame): New function.
8939 * buffer.c (Fpop_to_buffer): Move to window.el.
8940
89412008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8942
8943 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8944
89452008-06-05 Kenichi Handa <handa@m17n.org>
8946
8947 * coding.c (detect_coding): Fix previous change.
8948 (detect_coding_system): Likewise.
8949
89502008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8951
8952 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8953
8954 * keymap.c (Vminibuffer_local_filename_must_match_map):
8955 Rename from Vminibuffer_local_must_match_filename_map.
8956 (syms_of_keymap):
8957 * minibuf.c (Fcompleting_read): Adjust accordingly.
8958 * commands.h: Rename declaration as well.
8959
89602008-06-05 Kenichi Handa <handa@m17n.org>
8961
8962 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8963 family name.
8964 (Ffont_put): Likewise.
8965
8966 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8967 current font-spec.
8968
8969 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8970 is unspecified.
8971
8972 * xfaces.c (realize_x_face): If the font-related face attributes
8973 are the same as those of default face, realize a new fontset from
8974 default->fontset.
8975 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8976
89772008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8978
8979 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8980 (move_it_in_display_line): New wrapper.
8981
8982 * window.c (window_scroll_pixel_based_preserve_x)
8983 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8984 (window_scroll_pixel_based, window_scroll_line_based):
8985 Use them to preserve column positions.
8986 (syms_of_window): Initialize them.
8987
8988 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8989 (HPOS . VPOS) pair.
8990
8991 * dispextern.h (move_it_in_display_line): Declare.
8992
89932008-06-05 Juanma Barranquero <lekktu@gmail.com>
8994
8995 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8996 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8997 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8998
89992008-06-04 Juanma Barranquero <lekktu@gmail.com>
9000
9001 * window.c (Fset_window_parameter): Doc fix.
9002 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9003
90042008-06-04 Joakim Verona <joakim@verona.se>
9005
9006 * window.h (struct window): Add new member window_parameters.
9007
9008 * window.c (Fwindow_parameters, Fwindow_parameter)
9009 (Fset_window_parameter): New defuns.
9010 (syms_of_window): Defsubr the new defuns.
9011 (make_window): Initialize window_parameters to nil.
9012
90132008-06-04 John Paul Wallington <jpw@pobox.com>
9014
9015 * eval.c (Fdefmacro): Doc fix.
9016
90172008-06-04 Kenichi Handa <handa@m17n.org>
9018
9019 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9020 Be sure to call setup_coding_system when we find a proper coding system.
9021 (detect_coding_system): Fix handling of coding->head_ascii.
9022
90232008-06-03 Andreas Schwab <schwab@suse.de>
9024
9025 * font.c (font_prop_validate_spacing): Fix last change.
9026
90272008-06-03 Kenichi Handa <handa@m17n.org>
9028
9029 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9030 (font_parse_fcname): Fix handling of unknown key.
9031
9032 * xfont.c (xfont_list): Try an alias.
9033
9034 * charset.c (char_charset): Return NULL if the arg charset_list is
9035 specified and C doesn't belong to any of them.
9036
90372008-06-02 Chip Coldwell <coldwell@redhat.com>
9038
9039 * font.c (font_pixel_size): Don't take cdr of an integer.
9040
90412008-06-02 Jim Meyering <meyering@redhat.com>
9042
9043 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9044 * alloc.c (xfree): Return right away for a NULL arg.
9045 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9046 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9047 * mac.c (create_apple_event_from_event_ref): Likewise.
9048 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9049 Likewise.
9050 * doprnt.c (doprnt1): Likewise.
9051 * frame.c (frame): Likewise.
9052 * keyboard.c (wipe_kboard): Likewise.
9053 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9054 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9055 * term.c (tty_default_color_capabilities, maybe_fatal)
9056 (delete_tty): Likewise.
9057 * w16select.c (string): Likewise.
9058 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9059 * w32bdf.c (w32_free_bdf_font): Likewise.
9060 * w32fns.c (w32_unload_font): Likewise.
9061 * w32font.c (w32font_close): Likewise.
9062 * window.c (size_window): Likewise.
9063 * xselect.c (receive_incremental_selection): Likewise.
9064 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9065 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9066 * w32.c (stat): Likewise.
9067
9068 Remove useless if-before-free tests.
9069 * editfns.c (Fset_time_zone_rule): Likewise.
9070 * lread.c (nosuffix): Likewise.
9071 * ralloc.c (get_bloc): Likewise.
9072 * regex.c (reg_free): Likewise.
9073 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9074 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9075 * xsmfns.c (smc_save_yourself_CB): Likewise.
9076
90772008-06-02 Kenichi Handa <handa@m17n.org>
9078
9079 * font.c (font_find_for_lface): Handle float font size.
9080 (font_open_for_lface): Likewise.
9081
9082 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9083 comparing the properties.
9084
90852008-06-01 Jason Rumney <jasonr@gnu.org>
9086
9087 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9088 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9089 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9090 Don't add empty script list.
9091 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9092
90932008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9094
9095 * Makefile.in (dot, dotdot): Remove, update users.
9096 ".." has been used elsewhere in the file for a long time.
9097 (LIBXT_STATIC): Remove conditional based on unused variable.
9098
90992008-06-01 Miles Bader <miles@gnu.org>
9100
9101 * xfaces.c (Vface_remapping_alist): New variable.
9102 (syms_of_xfaces): Initialize it.
9103 (enum named_merge_point_kind): New type.
9104 (struct named_merge_point): Add `named_merge_point_kind' field.
9105 (push_named_merge_point): Make cycle detection respect different
9106 named-merge-point kinds.
9107 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9108 Remove face-name alias resolution.
9109 (lface_from_face_name): New definition using
9110 `lface_from_face_name_no_resolve'.
9111 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9112 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9113 (get_lface_attributes): New definition that layers face-remapping on
9114 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9115 (lookup_basic_face): New function.
9116 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9117 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9118 `get_lface_attributes'.
9119 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9120 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9121 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9122
9123 * xdisp.c (init_iterator): Pass base_face_id through
9124 `lookup_basic_face' when we actually use it as a face-id.
9125 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9126 DEFAULT_FACE_ID.
9127
9128 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9129 lookup the initial face-id.
9130
9131 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9132
91332008-06-01 Juanma Barranquero <lekktu@gmail.com>
9134
9135 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9136 (Fremove_text_properties): Fix typos in docstrings.
9137
91382008-05-31 Kenichi Handa <handa@m17n.org>
9139
9140 * font.c (font_list_entities): Fix the car part of data to be
9141 stored in the cache.
9142
9143 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9144
91452008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9146
9147 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9148 Add a `test' argument so another predicate than `equal' can be used.
9149 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9150 (map_char_table): Remove unused vars `c' and `i'.
9151 * lisp.h (Foptimize_char_table): Adjust declaration.
9152 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9153
91542008-05-30 Kenichi Handa <handa@m17n.org>
9155
9156 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9157 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9158 defined.
9159
91602008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9161
9162 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9163 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9164 frame-local settings for the same variable.
9165
91662008-05-30 Kenichi Handa <handa@m17n.org>
9167
9168 * fontset.c (Ffont_info): Move to font.c.
9169 (syms_of_fontset): Delete defsubr of Sfont_info.
9170
9171 * font.c (font_style_to_value, font_score): Delete casting of the
9172 args to xstcasecmp.
9173 (register_font_driver): Increment num_font_drivers only when
9174 registering the driver globally.
9175 (Ffont_info): Move from fontset.c. Handle a font object too.
9176 (syms_of_font): Defsubr Sfont_info.
9177
91782008-05-29 Kenichi Handa <handa@m17n.org>
9179
9180 * coding.h (enum define_coding_utf8_arg_index): New enum.
9181 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9182 coding_attr_utf_bom.
9183 (enum utf_bom_type): Rename from utf_16_bom_type.
9184 (struct utf_16_spec): Adjust for the above change.
9185 (struct coding_system): Add utf_8_bom in `spec' union.
9186
9187 * coding.c (CODING_UTF_8_BOM): New macro.
9188 (enum coding_category): Delete coding_category_utf_8, add
9189 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9190 coding_category_utf_8_sig.
9191 (CATEGORY_MASK_UTF_8): Delete it.
9192 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9193 (CATEGORY_MASK_UTF_8_SIG): New macros.
9194 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9195 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9196 CATEGORY_MASK_UTF_8_SIG.
9197 (CATEGORY_MASK_UTF_8): New macro.
9198 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9199 (detect_coding_utf_8): Check BOM.
9200 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9201 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9202 (encode_coding_utf_16): Likewise.
9203 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9204 (detect_coding, detect_coding_system): Handle utf-8-auto.
9205 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9206 (syms_of_coding): Fix setting up of Vcoding_category_table.
9207
92082008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9209
9210 * process.c (Faccept_process_output): If `millisec' is non-nil,
9211 `seconds' default to 0.
9212 (wait_reading_process_output): Also return non-nil if we read output
9213 from a non-running process.
9214
92152008-05-29 Jason Rumney <jasonr@gnu.org>
9216
9217 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9218 `raster' specified.
9219 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9220 in the uniscribe backend, but disallow any font that has no
9221 unicode subrange support.
9222
92232008-05-29 Juanma Barranquero <lekktu@gmail.com>
9224
9225 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9226 Fix typos in docstrings.
9227
92282008-05-29 Kenichi Handa <handa@m17n.org>
9229
9230 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9231 (Fx_family_fonts): Set frame correctly.
9232
92332008-05-28 Jason Rumney <jasonr@gnu.org>
9234
9235 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9236
92372008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9238
9239 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9240 calling build_annotations.
9241
92422008-05-28 Juanma Barranquero <lekktu@gmail.com>
9243
9244 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9245 (Fencode_coding_string):
9246 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9247 <latin-extra-code-table>: Fix typos in docstrings.
9248 (syms_of_coding) <coding-system-alist>: Doc fix.
9249 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9250
92512008-05-28 Kenichi Handa <handa@m17n.org>
9252
9253 * fontset.c (Ffont_info): Don't call font_close_object.
9254
9255 * font.c (font_parse_family_registry): Use Ffont_put to validate
9256 foundry and family.
9257 (font_delete_unmatched): Don't check spacing.
9258 (font_list_entities): Add spacing to the spec to list fonts.
9259
9260 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9261 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9262
9263 * coding.c (encode_coding_raw_text): Fix previous change.
9264 (encode_coding_object): When the dst_object is a buffer and is
9265 different from src_object, move gap to PT.
9266
92672008-05-27 Chong Yidong <cyd@stupidchicken.com>
9268
9269 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9270
92712008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9272
9273 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9274 all branches. Compute it differently.
9275
9276 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9277
92782008-05-27 Juanma Barranquero <lekktu@gmail.com>
9279
9280 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9281 into "else if () ... else ...".
9282
92832008-05-27 Jason Rumney <jasonr@gnu.org>
9284
9285 * w32font.c (w32font_open_internal): Determine if glyph indices
9286 are likely to work here.
9287
92882008-05-27 Chong Yidong <cyd@stupidchicken.com>
9289
9290 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9291 draw overlap glyphs with appropriate highlighting.
9292
92932008-05-27 Kenichi Handa <handa@m17n.org>
9294
9295 * xfont.c (xfont_open): Fix calculation of font->average_width.
9296
92972008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9298
9299 * casefiddle.c (casify_object): Try to guess better whether the
9300 argument is a byte or a char.
9301
93022008-05-26 Andreas Schwab <schwab@suse.de>
9303
9304 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9305 Always send multiples of format size.
9306
9307 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9308
93092008-05-26 Jason Rumney <jasonr@gnu.org>
9310
9311 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9312 (compute_metrics): Don't set failure if we just cleared the cache.
9313 (w32_weight_table): Remove unused variable.
9314 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9315 backwards compatibility.
9316
93172008-05-25 Kenichi Handa <handa@m17n.org>
9318
9319 * w32term.c (x_draw_glyph_string):
9320 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9321
9322 * xfaces.c: Delete unused function prototypes.
9323 (xstrlwr, font_frame): Delete them.
9324 (clear_face_cache): Delete unused variable.
9325
9326 * xftfont.c (xftfont_open): Delete unused variable.
9327 If underline_thickness is not 1, adjust underline_position.
9328
9329 * ftxfont.c (ftxfont_open): Delete unused variable.
9330
9331 * fontset.c (face_for_char): Optimize for the case of no charset
9332 property.
9333
9334 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9335 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9336 (otf_open, font_otf_capability, generate_otf_features)
9337 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9338 Comment out by surrounding "#if 0" and "#endif" for the moment.
9339 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9340 (syms_of_font): Codes for accessing above commented out.
9341
93422008-05-24 Eli Zaretskii <eliz@gnu.org>
9343
9344 * w32proc.c: Include dispextern.h.
9345
9346 * w32.c: Include dispextern.h.
9347
93482008-05-23 Juanma Barranquero <lekktu@gmail.com>
9349
9350 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9351 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9352 Fix typos in docstrings.
9353
93542008-05-23 Jason Rumney <jasonr@gnu.org>
9355
9356 * xsmfns.c: Remove includes that are already included by config.h.
9357
93582008-05-23 Kenichi Handa <handa@m17n.org>
9359
9360 * charset.c (Qemacs, charset_emacs): New variables.
9361 (char_charset): Fix for non-Unicode characters.
9362 (syms_of_charset): Define charset_emacs.
9363
9364 * w32term.c (x_draw_glyph_string): Be sure to update
9365 s->underline_thickness and s->underline_position. Be sure to draw
9366 underline within the current line area.
9367
9368 * xterm.c (x_draw_glyph_string): Be sure to update
9369 s->underline_thickness and s->underline_position. Be sure to draw
9370 underline within the current line area.
9371
9372 * fontset.c: Delete unused variables and add casting for char *
9373 throughout the file.
9374 (fontset_font): Try the fallback fonts of the current fontset
9375 before consulting the default fontset.
9376
9377 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9378
9379 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9380
93812008-05-22 Jason Rumney <jasonr@gnu.org>
9382
9383 * font.c: Don't include strings.h.
9384
9385 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9386
9387 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9388 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9389 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9390 to call xstrcasecmp.
9391
9392 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9393
9394 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9395
9396 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9397
9398 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9399
94002008-05-22 Kenichi Handa <handa@m17n.org>
9401
9402 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9403
9404 * font.c (font_prop_validate_style): Adjust for the format
9405 change of font_style_table.
9406
9407 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9408 two args.
9409
9410 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9411 two args.
9412
94132008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9414
9415 * minibuf.c (keys_of_minibuf): Delete.
9416 * lisp.h (keys_of_minibuf): Delete.
9417 * emacs.c (main): Don't call keys_of_minibuf.
9418
94192008-05-22 Kenichi Handa <handa@m17n.org>
9420
9421 * ftfont.c (ftfont_resolve_generic_family): Rename from
9422 ftfont_list_generic_family. Return a single family for each
9423 generic family.
9424 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9425 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9426 Call font_add_log.
9427 (ftfont_match): Call font_add_log.
9428
9429 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9430 (FONT_DEBUG): Define it.
9431 (font_add_log): Extern it.
9432 (font_assert): Rename from xassert.
9433
9434 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9435 (xfont_list_family): Call font_add_log.
9436 (xfont_match): Likewise.
9437 (memq_no_quit): Delete.
9438
9439 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9440 call of Ffont_xlfd_name.
9441
9442 * xfaces.c (struct table_entry, slant_table, weight_table)
9443 (swidth_table): Move to font.c.
9444
9445 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9446 xassert are changed to font_assert. Delete many unused variables.
9447 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9448 New variables.
9449 (struct table_entry): Move from xfaces.c and modified.
9450 (weight_table, slant_table, width_table): Move from xfaces.c and
9451 contents adjusted for the change of struct table_entry.
9452 (font_style_to_value, font_style_symbolic): Adjust for the
9453 format change of font_style_table.
9454 (font_parse_family_registry): Don't overwrite existing foundry and
9455 family of font_spec.
9456 (font_score): Fix calculation of diff for sizes.
9457 (font_sort_entites): Call font_add_log.
9458 (font_delete_unmatched): Return a newly created list.
9459 (font_list_entities): Fix previous change. Call font_add_log.
9460 (font_matching_entity, font_open_entity, font_close_entity):
9461 Call font_add_log.
9462 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9463 (Finternal_set_font_style_table): Delete.
9464 (BUILD_STYLE_TABLE): New macro.
9465 (build_style_table): New function.
9466 (Vfont_log, font_log_env_checked): New variables.
9467 (font_add_log): New function.
9468 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9469 Declare Lisp variables "font-weight-table", "font-slant-table",
9470 "font-width-table", and "font-log". Initialize font_style_table.
9471
94722008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9473
9474 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9475
94762008-05-21 Seiji Zenitani <zenitani@mac.com>
9477 Ryo Yoshitake <ryo@shiftmode.net>
9478
9479 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9480 (Vframe_alpha_lower_limit): New variable.
9481 (x_set_alpha): New function.
9482
9483 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9484
9485 * xfns.c (x-create-frame, Qalpha):
9486 Initialize the frame parameter `alpha'.
9487 * xterm.c (OPAQUE, OPACITY): New.
9488 (x_set_frame_alpha): New function.
9489 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9490
9491 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9492 * w32fns.c (w32_frame_parm_handlers): Likewise.
9493
94942008-05-20 Jason Rumney <jasonr@gnu.org>
9495
9496 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9497 truetype fonts to opentype list.
9498
94992008-05-20 Juanma Barranquero <lekktu@gmail.com>
9500
9501 * fontset.c (Ffontset_info): Doc fix.
9502 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9503 <ignore-relative-composition>: Fix typos in docstrings.
9504
9505 * font.c (syms-of-font) <font-encoding-alist>:
9506 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9507 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9508 (Ffont_otf_alternates): Doc fixes.
9509
95102008-05-20 Kenichi Handa <handa@m17n.org>
9511
9512 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9513 font.h through out the file.
9514 (FONT_DRIVERS): Rename from FONTOBJ.
9515 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9516 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9517
9518 * emacs.c (main): Call syms_of_font unconditionally.
9519
9520 * font.h (find_font_encoding): Extern it.
9521
9522 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9523 fontset.c.
9524 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9525 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9526 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9527 only when HAVE_WINDOW_SYSTEM is defined.
9528 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9529 when HAVE_WINDOW_SYSTEM is defined.
9530
9531 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9532 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9533
9534 * xfaces.c: Include font.h unconditionally.
9535 (merge_face_ref, merge_face_vectors)
9536 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9537
95382008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9539
9540 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9541 indirect_variable.
9542 * eval.c (lisp_indirect_variable): New fun.
9543 (Fuser_variable_p): Use it.
9544
95452008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9546
9547 * lisp.h (indirect_variable):
9548 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9549 Use Lisp_Symbol pointers rather than Lisp_Object.
9550 Adjust callers.
9551 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9552 To this end, change calling-convention.
9553
9554 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9555 if some non-hidden buffers are selected by string&pred.
9556
95572008-05-19 Chong Yidong <cyd@stupidchicken.com>
9558
9559 * process.c (wait_reading_process_output): Always check status
9560 when in batch mode.
9561
95622008-05-19 Kenichi Handa <handa@m17n.org>
9563
9564 * font.c (font_list_entities): Fix handling of cache.
9565 (font_matching_entity): Likewise.
9566
9567 * ftfont.c (cs_iso8859_1): Delete.
9568 (ft_face_cache): New variable.
9569 (struct ftfont_info): New member fc_charset_idx.
9570 (ftfont_build_basic_charsets): Delete.
9571 (fc_charset_table): New variable.
9572 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9573 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9574 Callers changed.
9575 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9576 (ftfont_spec_pattern): New argument fc_charset_idx.
9577 Check registry more rigidly. Change callers.
9578 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9579 change of :font-entity property of the font.
9580
9581 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9582 property of the font.
9583
95842008-05-18 Juanma Barranquero <lekktu@gmail.com>
9585
9586 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9587 (Funencodable_char_position, Fcheck_coding_systems_region)
9588 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9589 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9590 (Ffind_operation_coding_system, Fset_coding_system_priority)
9591 (Fcoding_system_eol_type): Doc fixes.
9592
95932008-05-17 Glenn Morris <rgm@gnu.org>
9594
9595 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9596
95972008-05-16 Eli Zaretskii <eliz@gnu.org>
9598
9599 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9600 and st_gid.
9601
9602 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9603 HAVE_WINDOW_SYSTEM is not defined.
9604
9605 * xfaces.c (merge_face_ref, merge_face_vectors)
9606 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9607 HAVE_WINDOW_SYSTEM is defined.
9608 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9609
96102008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9611
9612 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9613
96142008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9615
9616 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9617
96182008-05-15 Kenichi Handa <handa@m17n.org>
9619
9620 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9621 preference.
9622
96232008-05-15 Glenn Morris <rgm@gnu.org>
9624
9625 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9626
96272008-05-15 Chong Yidong <cyd@stupidchicken.com>
9628
9629 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9630 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9631
9632 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9633
96342008-05-15 Kenichi Handa <handa@m17n.org>
9635
9636 * ftfont.c (ftfont_list): Downcase family name to check generic
9637 families.
9638
9639 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9640 font-spec for QCfont value.
9641
9642 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9643 buffer. Check the return value of it.
9644
96452008-05-14 Jason Rumney <jasonr@gnu.org>
9646
9647 * w32term.c (w32_get_glyph_overhangs): Remove.
9648 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9649
96502008-05-14 Kenichi Handa <handa@m17n.org>
9651
9652 * font.c (font_prop_validate): Make nil a valid value.
9653 (font_clear_cache): Check if the cached vector of entities is nil
9654 or not.
9655
96562008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9657
9658 * emacs.c (main_thread): Conditionalize on
9659 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9660 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9661
9662 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9663 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9664 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9665
96662008-05-14 Kenichi Handa <handa@m17n.org>
9667
9668 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9669 has no corresponding coding system.
9670
96712008-05-14 Jason Rumney <jasonr@gnu.org>
9672
9673 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9674
9675 * w32font.h (w32font_open_internal): Update declaration.
9676
9677 * w32font.c (w32font_open_internal): Change last argument from
9678 w32font_info struct to font object. Fill in font object from
9679 font_entity. Get Outline metrics if possible. Use them to
9680 calculate underline position and thickness. Use xlfd name as name
9681 property. Don't set codepage.
9682 (w32font_open): Pass font_object to w32font_open_internal. Don't
9683 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9684 (w32font_draw): Use s->font.
9685 (clear_cached_metrics): Don't clear non-existent blocks.
9686
9687 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9688 font was not found.
9689 (x_draw_glyph_string): Use underline position and thickness from font.
9690
9691 * w32uniscribe.c (uniscribe_open): Pass font_object to
9692 w32font_open_internal.
9693
96942008-05-14 Kenichi Handa <handa@m17n.org>
9695
9696 These changes are to delete all legacy font-handling codes, and
9697 make Emacs use only font-backends.
9698
9699 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9700 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9701
9702 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9703
9704 * charset.h (Vcharset_non_preferred_head)
9705 (Vcurrent_iso639_language): Extern them.
9706
9707 * charset.c (Vcharset_non_preferred_head): New variable.
9708 (Vcurrent_iso639_language): New variable.
9709 (syms_of_charset): Declare it as a Lisp variable.
9710 (char_charset): Don't check non preferred charsets. As a last
9711 resort, return charset_unicode.
9712 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9713
9714 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9715 conditionals. Don't check enable_font_backend. Delete all codes
9716 used only when USE_FONT_BACKEND is not defined.
9717
9718 * dispextern.h (struct glyph_string): Change type of `font' to
9719 `struct font *'.
9720 (struct glyph_string): New member underline_position and
9721 underline_thickness.
9722 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9723 (struct face): Change type of `font' to `struct font *'. Remove
9724 members `font_name', `font_info_id'.
9725 (per_char_metric, encode_char): Delete externs.
9726 (calc_pixel_width_or_height): Adjust the prototype.
9727
9728 * emacs.c (enable_font_backend): Delete extern.
9729 (main): Don't set enable_font_backend. Don't check the command
9730 line argument "-disable-font-backend".
9731
9732 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9733 (enum font_property_index): New members FONT_DPI_INDEX,
9734 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9735 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9736 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9737 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9738 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9739 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9740 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9741 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9742 (struct font_spec, struct font_entity): New structs.
9743 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9744 (struct font): Many members from old "struct font_info" moved to
9745 here. Members font and entity deleted.
9746 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9747 the new font-related objects.
9748 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9749 (CHECK_FONT_GET_OBJECT): Likewise.
9750 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9751 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9752 (struct font_driver): New members case_sensitive anc check. Type
9753 of the member list and open changed.
9754 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9755 (font_symbolic_width, font_find_object, font_get_spec)
9756 (font_set_lface_from_name): Delete extern.
9757 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9758
9759 * font.c: Include <strings.h>.
9760 (enable_font_backend): Delete it.
9761 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9762 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9763 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9764 (null_string): Delete it.
9765 (null_vector): Make it static.
9766 (font_family_alist): Delete it.
9767 (Qnormal): Extern it.
9768 (QCextra, QClanguage): Delete it.
9769 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9770 (font_make_spec, font_make_entity, font_make_object)
9771 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9772 the string. Callers changed.
9773 (font_pixel_size): Adjusted for the format change of font-related
9774 objects.
9775 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9776 (font_style_to_value, font_style_symbolic): New function.
9777 (build_font_family_alist): Delete it.
9778 (font_registry_charsets): Use Fassoc_string instead of
9779 assq_no_quit.
9780 (font_prop_validate_symbol): Don't return null_string.
9781 (font_prop_validate_style): Adjusted for the change of
9782 style-related values in a font vector.
9783 (font_property_table): Delete entries for QClanguage and
9784 QCantialias, add entries for QCavgwidth.
9785 (get_font_prop_index): Delete the 2nd argument FROM.
9786 (font_prop_validate): Arguments changed.
9787 (font_put_extra): Adjusted for the change of font-related objects.
9788 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9789 (font_parse_fcname, font_unparse_fcname)
9790 (font_prepare_composition): Likewise.
9791 (font_parse_family_registry): Renamed from font_merge_old_spec.
9792 (otf_open): Delete the 1st arg entity.
9793 (font_otf_capability): Adjusted for the above change.
9794 (font_score): New arg alternate_families. Adjusted for the change
9795 of font-related objects.
9796 (font_sort_entites): New arg best_only.
9797 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9798 Delete them.
9799 (font_match_p): Check alternate families.
9800 (font_find_object): Delete it.
9801 (font_check_object): New function.
9802 (font_clear_cache): Adjusted for the change of font-related objects.
9803 (font_delete_unmatched): New arg.
9804 (font_list_entities): Call font_driver->list with a spec that
9805 doesn't specify style-related properties.
9806 (font_matching_entity): Arguments changed. Caller changed.
9807 (font_open_entity): Adjusted for the change of font-related objects.
9808 (font_close_object, font_has_char, font_encode_char)
9809 (font_get_name, font_get_spec): Likewise.
9810 (font_spec_from_name, font_clear_prop, font_update_lface):
9811 New functions.
9812 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9813 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9814 (font_at): Adjusted for the change of font-related objects.
9815 (font_range): New function.
9816 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9817 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9818 (Fcopy_font_spec, Fmerge_font_spec): New function.
9819 (Ffont_family_list): Renamed from list-families.
9820 (Finternal_set_font_style_table): Arguments changed.
9821 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9822 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9823 change of font-related objects.
9824 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9825
9826 * fontset.h (struct font_info): Delete it. Most members go to
9827 struct font.
9828 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9829 (enum FONT_SPEC_INDEX): Delete it.
9830 (font_info, list_fonts_func, load_font_func, query_font_func)
9831 (set_frame_fontset_func, find_ccl_program_func)
9832 (get_font_repertory_func, new_fontset_from_font_name): Delete
9833 externs.
9834 (fontset_from_font_name): Extern it.
9835 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9836 (FONT_INFO_FROM_FACE): Deleted.
9837 (face_for_font): Adjust prototype.
9838
9839 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9840 conditionals. Don't check enable_font_backend. Delete all codes
9841 used only when USE_FONT_BACKEND is not defined.
9842 (get_font_info_func, list_font_func, load_font_func)
9843 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9844 (get_font_repertory_func): Delete them.
9845 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9846 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9847 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9848 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9849 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9850 (fontset_compare_rfontdef): New function.
9851 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9852 rfont-defs by qsort. Adjusted for the change of font-group vector.
9853 (load_font_get_repertory): Deleted.
9854 (fontset_find_font): Use new macros to ref/set elements of
9855 font-def and rfont-def.
9856 (fontset_font): Fix the timing of remembering that no font for C.
9857 (free_face_fontset): Do nothing if the face has no fontset.
9858 (face_suitable_for_char_p): Use new macros to ref/set elements of
9859 rfont-def.
9860 (face_for_char): Likewise. Call face_for_char with font_object.
9861 (fs_load_font): Delete. Delete #pragma surrounding it.
9862 (fs_query_fontset): Use strcasecmp instead of strcmp.
9863 (generate_ascii_font_name): Adjusted for the format change of
9864 font-spec.
9865 (Fset_fontset_font): Likewise. Use new macros to set elements of
9866 font-def.
9867 (Fnew_fontset): Use font_unparse_xlfd to generate
9868 FONTSET_ASCII (fontset).
9869 (new_fontset_from_font_name): Deleted.
9870 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9871 a fontset is already created for the font. FIx updating of
9872 Vfontset_alias_alist.
9873 (fontset_ascii_font): Deleted.
9874 (Ffont_info): Adjusted for the format change of font-spec.
9875 (Finternal_char_font): Likewise.
9876 (Ffontset_info): Likewise.
9877 (syms_of_fontset): Don't check load_font_func.
9878
9879 * fns.c (internal_equal): Handle PREV_FONT.
9880
9881 * frame.h: Delete USE_FONT_BACKEND conditional.
9882
9883 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9884 conditionals. Don't check enable_font_backend. Delete all codes
9885 used only when USE_FONT_BACKEND is not defined.
9886 (x_set_font): Call x_new_font, not x_new_fontset2.
9887 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9888 already set for the frame.
9889
9890 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9891 a font-entity by font_make_entity. Use font_intern_prop instead
9892 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9893 font property. If a font is scalable, set avgwidth property to 0.
9894 Set font-entity property by font_put_extra.
9895 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9896 (ffont_driver): Adjusted for the change of struct font_driver.
9897 (ftfont_spec_pattern): New function.
9898 (ftfont_list): Return a list, not vector.
9899 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9900 (ftfont_list_family): Don't downcase names.
9901 (ftfont_free_entity): Deleted.
9902 (ftfont_open): Return a font-object. Adjusted for the change of
9903 struct font. Get underline_thickness and underline_position from
9904 font property. Don't update dpyinfo->smallest_font_height and
9905 dpyinfo->smallest_char_width.
9906 (ftfont_close): Don't free `struct font'.
9907 (ftfont_has_char): Adjusted for the format change of font-entity.
9908 (ftfont_encode_char, ftfont_text_extents): Likewise.
9909
9910 * ftxfont.c (ftxfont_list): Return a list, not vector.
9911 (ftxfont_open): Return a font-object. Adjusted for the change of
9912 struct font. Get underline_thickness and underline_position from
9913 font property. Don't update dpyinfo->smallest_font_height and
9914 dpyinfo->smallest_char_width.
9915 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9916 (ftxfont_draw): Adjusted for the change of struct font.
9917
9918 * image.c (image_ascent): Don't include "charset.h". Include
9919 "character.h" and "font.h".
9920
9921 * lisp.h (enum pvec_type): New member PREV_FONT.
9922 (Fassoc_string): EXFUN it.
9923
9924 * print.c: Include font.h.
9925 (print_object): Handle font-related objects.
9926
9927 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9928 conditionals. Don't check enable_font_backend. Delete all codes
9929 used only when USE_FONT_BACKEND is not defined.
9930 (handle_auto_composed_prop): Do nothing if it->f is not on a
9931 window system. Check how many following characters can be
9932 displayed by the same font.
9933 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9934 'struct font *'.
9935 (get_char_face_and_encoding): Assign the whole encoding task to
9936 the `encode-char' method of a font driver.
9937 (fill_composite_glyph_string): Adjusted for the change of `struct
9938 face' and `struct glyph_string'.
9939 (fill_glyph_string): Likewise.
9940 (get_per_char_metric): Arguments changed.
9941 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9942 and `struct glyph_string'.
9943 (produce_stretch_glyph, calc_line_height_property)
9944 (x_produce_glyphs): Likewise.
9945
9946 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9947 conditionals. Don't check enable_font_backend. Delete all codes
9948 used only when USE_FONT_BACKEND is not defined. Use
9949 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9950 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9951 (Qp): Extern them.
9952 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9953 Deleted.
9954 (struct font_name): Deleted.
9955 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9956 (compare_fonts_by_sort_order): New function.
9957 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9958 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9959 Deleted.
9960 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9961 compare_fonts_by_sort_order.
9962 (Fx_font_family_list): Call Ffont_family_list.
9963 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9964 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9965 (face_symbolic_slant, face_symbolic_swidth)
9966 (split_font_name_into_vector, build_font_name_from_vector)
9967 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9968 (font_rescale_ratio, split_font_name, build_font_name)
9969 (free_font_names, sort_fonts, x_face_list_fonts)
9970 (face_font_available_p, sorted_font_list, cmp_font_names)
9971 (font_list_1, concat_font_list, font_list, remove_duplicates):
9972 Deleted.
9973 (Fx_list_fonts): Use Ffont_list.
9974 (LFACE_AVGWIDTH): Deleted.
9975 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9976 by FONTP.
9977 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9978 (set_lface_from_font_name): Delete it.
9979 (set_lface_from_font): Renamed from
9980 set_lface_from_font_and_fontset. Caller changed. Don't set
9981 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9982 for face.
9983 (merge_face_vectors): Copy font-spec if necessary.
9984 Clear properties of the font-spec if necessary.
9985 (merge_face_ref): Clear properties of the font-spec if necessary.
9986 (Finternal_set_lisp_face_attribute): Likewise.
9987 (set_font_frame_param): Use font_load_for_lface to load a
9988 font-object, and call Fmodify_frame_parameters with it.
9989 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9990 font name by Ffont_xlfd_name.
9991 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9992 QCslant, and QCwidth.
9993 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9994 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9995 Compare fonts by EQ.
9996 (lookup_non_ascii_face): Deleted.
9997 (face_for_font): The 2nd argument changed.
9998 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9999 Check atomic font properties by case insensitive.
10000 (realize_non_ascii_face): Set face->overstrike correctly.
10001 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10002 (dump_realized_face): Get font name from
10003 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10004
10005 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10006 conditionals. Don't check enable_font_backend. Delete all codes
10007 used only when USE_FONT_BACKEND is not defined.
10008 (xic_create_xfontset): Original code deleted and renamed from
10009 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10010 (x_make_gc): Don't set GCFont in GCs.
10011 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10012 opened by "fixed".
10013 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10014 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10015 get_font_repertory_func.
10016
10017 * xfont.c: Include <stdlib.h> and "ccl.h".
10018 (struct xfont_info): New structure.
10019 (xfont_query_font): Deleted.
10020 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10021 moved from xterm.c.
10022 (xfont_driver): Adjusted for the change of struct font_driver.
10023 (compare_font_names): New function.
10024 (xfont_list_pattern): Sort font names case insensitively. Make
10025 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10026 (xfont_list): Return a list, not vector.
10027 (xfont_match): If the font doesn't have QCname property, generate
10028 a name from the other font properties.
10029 (xfont_open): Return a font-object. Adjusted for the change of
10030 struct font. Get underline_thickness and underline_position from
10031 font property. Don't update dpyinfo->smallest_font_height and
10032 dpyinfo->smallest_char_width.
10033 (xfont_close): Don't free struct font.
10034 (xfont_prepare_face): Adjusted for the change of struct font.
10035 (xfont_done_face): Deleted.
10036 (xfont_has_char): Adjusted for the change of struct font.
10037 (xfont_encode_char, xfont_draw): Likewise.
10038 (xfont_check): New function.
10039
10040 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10041 callback function.
10042 (xftfont_match): Adjusted for the format change of font-entity.
10043 (xftfont_open): Adjusted for the format change of font-entity and
10044 font-object. Adjusted for the change of struct font. Return a
10045 font-object. Don't update dpyinfo->smallest_font_height and
10046 dpyinfo->smallest_char_width.
10047 (xftfont_close): Block input while calling XftFontClose.
10048 (xftfont_prepare_face): Don't block input while calling
10049 xftfont_get_colors. Adjusted for the change of struct font.
10050 (xftfont_shape): Return value of error case fixed.
10051
10052 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10053
10054 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10055 conditionals.
10056 (FONT_WIDTH): Return (f)->max_width.
10057 (struct x_display_info): Delete member `font'.
10058 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10059 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10060 (struct x_output): Change type of `font' to `struct font *'.
10061
10062 * xterm.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. Don't include ccl.h.
10065 (x_per_char_metric, x_encode_char): Deleted.
10066 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10067 (x_compute_glyph_string_overhangs): Adjusted for the change of
10068 `struct face'.
10069 (x_draw_glyph_string_foreground)
10070 (x_draw_composite_glyph_string_foreground): Likewise.
10071 (x_draw_glyph_string): Likewise. Use font->underline_position and
10072 font->underline_thickness.
10073 (x_new_font): Renamed from x_new_fontset2.
10074 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10075 (x_check_font): Call `check' method of a font driver.
10076 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10077 (x_query_font, x_get_font_repertory): Deleted.
10078 (x_find_ccl_program): Renamed and moved to xfont.c.
10079 (x_redisplay_interface): Adjusted for the change of `struct
10080 redisplay_interface'.
10081
10082 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10083 conditionals. Don't check enable_font_backend. Delete all codes
10084 used only when USE_FONT_BACKEND is not defined. Surround non-used
10085 code by "#ifdef OLD_FONT" and "endif".
10086 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10087
10088 * w32font.h (struct w32font_info): New member.
10089 (FONT_COMPAT): New macro.
10090 (w32font_open_internal): Prototype adjusted.
10091
10092 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10093 OLD_FONT" and "endif".
10094
10095 * w32font.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.
10098 (w32font_open): Return a font-object. Make a font-object by
10099 font_make_object. Adjusted for the change of struct w32font_info.
10100 (w32font_close): Don't free struct font. Adjusted for the change
10101 of struct w32font_info.
10102 (w32font_encode_char, w32font_text_extents, w32font_draw):
10103 Adjusted for the change of struct w32font_info.
10104 (w32font_draw): Likewise.
10105 (w32font_list_internal): Return a list, not vector.
10106 (w32font_open_internal): Change the 4th arg to font-object.
10107 Adjusted for the change of struct w32font_info and font-object format.
10108 (add_font_name_to_list): Don't downcase names.
10109 (w32_enumfont_pattern_entity): Make a font-entity by
10110 font_make_entity. Adjusted for the format change of font-entity.
10111 Use FONT_SET_STYLE to set a style-related font property. If a
10112 font is scalable, set avgwidth property to 0. Set font-entity
10113 property by font_put_extra.
10114 (font_matches_spec): Adjusted for the format change of font-entity.
10115 (w32_weight_table, w32_decode_weight): New variables.
10116 (w32_encode_weight): New function.
10117 (fill_in_logfont): Adjusted for the format change of font-spec.
10118 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10119 weight value.
10120 (w32font_driver): Adjusted for the change of struct font_driver.
10121
10122 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10123 conditionals. Don't check enable_font_backend. Surround non-used
10124 code by "#ifdef OLD_FONT" and "endif".
10125 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10126 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10127
10128 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10129 conditionals. Don't check enable_font_backend. Delete all codes
10130 used only when USE_FONT_BACKEND is not defined. Surround non-used
10131 code by "#ifdef OLD_FONT" and "endif".
10132
10133 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10134 (uniscribe_open): Return value changed to font-object.
10135 Adjusted for the format change of font-object.
10136 (uniscribe_otf_capability): Adjusted for the change of struct font.
10137 (add_opentype_font_name_to_list): Don't downcase names.
10138 (uniscribe_font_driver): Adjusted for the change of struct
10139 font_driver.
10140
101412008-05-13 Chong Yidong <cyd@stupidchicken.com>
10142
10143 * dispnew.c (update_frame_1): Check if tty output is still valid
10144 before flushing it.
10145
101462008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10147
10148 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10149 to Gtk+ menus.
10150
101512008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10152
10153 * dired.c (file_name_completion): Tweak the code so as to always do it
10154 in a single pass. Tighten the scope of some variables.
10155
10156 * dired.c (Qdefault_directory): New var.
10157 (file_name_completion): Use it instead of Fexpand_file_name.
10158 (syms_of_dired): Initialize it.
10159
101602008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10161
10162 * fileio.c (double_dollars): Remove dead code.
10163
101642008-05-10 Eli Zaretskii <eliz@gnu.org>
10165
10166 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10167 Mention w32-get-true-file-attributes in doc string.
10168
10169 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10170
101712008-05-09 Glenn Morris <rgm@gnu.org>
10172
10173 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10174 2008-04-23.
10175
101762008-05-09 Eli Zaretskii <eliz@gnu.org>
10177
10178 Support for reporting owner and group of each file on MS-Windows:
10179 * dired.c (stat_uname, stat_gname): New functions, with special
10180 implementation for w32.
10181 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10182
10183 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10184 (dflt_group_name): New static variable.
10185 (dflt_group): Rename from the_group.
10186 (init_user_info): Init dflt_group fields. Get user's group name
10187 from LookupAccountSid.
10188 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10189 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10190 New initialization states.
10191 (globals_of_w32): Initialize them to zero. Initialize the default
10192 group name to "None".
10193 (GetFileSecurity_Name): New global var, the name of the function
10194 to call for GetFileSecurity.
10195 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10196 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10197 (get_file_security, get_security_descriptor_owner)
10198 (get_security_descriptor_group, is_valid_sid)
10199 (get_file_security_desc, get_rid, get_name_and_id)
10200 (get_file_owner_and_group): New functions.
10201 (stat): Use get_file_security_desc and get_file_owner_and_group to
10202 report the owner and primary group of each file. Don't ignore the
10203 high 32 bits of file's size, now that st_size is 64-bit wide.
10204 Fix test when to get true file attributes.
10205 (init_user_info): Use get_rid instead of equivalent inline code.
10206 (fstat): Don't ignore the high 32 bits of file's size.
10207
102082008-05-09 Chong Yidong <cyd@stupidchicken.com>
10209
10210 * image.c (png_load): Use correct bit-depth for setting background
10211 color.
10212
102132008-05-08 Eli Zaretskii <eliz@gnu.org>
10214
10215 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10216 epa-hook.elc.
10217
102182008-05-08 Juanma Barranquero <lekktu@gmail.com>
10219
10220 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10221
102222008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10223
10224 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10225 because the original parameters are in pure storage now.
10226 (mac_window): Remove unused params. Update callers.
10227
102282008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10229
10230 * lread.c (substitute_object_recurse): Use lower-level primitives.
10231 Don't signal errors when traversing sub-char-tables.
10232 Don't loop over all the possible characters when traversing char-tables.
10233
10234 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10235 just like we do in print.c.
10236
102372008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10238
10239 * minibuf.c (Ftry_completion): Remove code left over from when we used
10240 scmp instead of Fcompare_strings.
10241
102422008-05-04 Juanma Barranquero <lekktu@gmail.com>
10243
10244 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10245
102462008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10247
10248 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10249 Create bitmap context in native byte order.
10250
10251 * macterm.c (XDrawLine)
10252 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10253 context in native byte order.
10254
102552008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10256
10257 * config.in: Regenerate.
10258
10259 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10260 New definitions for Image I/O support.
10261 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10262 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10263 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10264 (mac_data_provider_release_data, image_load_image_io)
10265 [USE_MAC_IMAGE_IO]: New functions.
10266 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10267 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10268 (init_image_func_pointer) [MAC_OSX]: Remove function.
10269 (image_load_quartz2d) [MAC_OSX]: Check availability of
10270 CGImageCreateWithPNGDataProvider at compile time.
10271 Use lowercase `false' for boolean constant.
10272 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10273 Use image_load_image_io.
10274 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10275 Don't check MyCGImageCreateWithPNGDataProvider.
10276 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10277 Don't call init_image_func_pointer.
10278
10279 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10280
10281 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10282 Make variable non-static.
10283 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10284 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10285
10286 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10287 (RED_FROM_ULONG): Mask off higher bits.
10288 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10289
10290 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10291 Include AvailabilityMacros.h.
10292 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10293 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10294
102952008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10296
10297 * chartab.c (Fset_char_table_range): If range is t, really set all
10298 chars to that value.
10299
103002008-05-03 Eli Zaretskii <eliz@gnu.org>
10301
10302 * dired.c (Ffile_attributes): Don't allow the device number become
10303 negative.
10304
103052008-05-02 Daiki Ueno <ueno@unixuser.org>
10306
10307 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10308
103092008-05-02 Juri Linkov <juri@jurta.org>
10310
10311 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10312 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10313 DEFAULT argument as a list of default values in docstrings.
10314
103152008-05-01 Chong Yidong <cyd@stupidchicken.com>
10316
10317 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10318
103192008-05-01 Martin Rudalics <rudalics@gmx.at>
10320
10321 * dispnew.c (change_frame_size_1): Preserve small windows when
10322 shrinking frames by calling set_window_height|width with third
10323 arg 2.
10324
10325 * window.h (struct window): Replace field too_small_ok by field
10326 resize_proportionally.
10327
10328 * window.c (make_window): Initialize resize_proportionally.
10329 (enlarge_window): Temporarily set resize_proportionally to make
10330 sure that shrink_windows does scale the window proportionally.
10331 (shrink_windows): When window has resize_proportionally set try
10332 to shrink it proportionally by stealing from other windows.
10333 (struct saved_window, Fset_window_configuration)
10334 (compare_window_configurations): Handle resize_proportionally.
10335 (WINDOW_TOTAL_SIZE): New macro.
10336 (window_min_size, shrink_windows, size_window): Use it.
10337 (check_min_window_sizes): Remove. Invalid values of
10338 window-min-height|width are handled by window_min_size_2 now.
10339 (size_window, Fsplit_window, enlarge_window)
10340 (adjust_window_trailing_edge, grow_mini_window): Don't call
10341 check_min_window_sizes.
10342 (window_min_size_2, window_min_size_1, window_min_size):
10343 New argument safe_p for retrieving "safe" minimum sizes.
10344 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10345 (adjust_window_trailing_edge, grow_mini_window):
10346 Adjust arguments of window_min_size... functions.
10347 (shrink_windows): Argument min_size removed. New argument
10348 safe_p allows shrinking windows to their safe minimum sizes.
10349 Calculate minimum size and decide whether a window shall be
10350 deleted for each window individually.
10351 (size_window): When nodelete_p equals 2, tell shrink_windows to
10352 delete windows only if their new minimum size is no more safe.
10353 (shrink_window_lowest_first): Call window_min_size_1 to make
10354 sure to preserve modeline of bottom-most window when resizing
10355 the minibuffer.
10356 (Fset_window_configuration, Fcurrent_window_configuration)
10357 (compare_window_configurations): Do not handle
10358 window-min-height|width any more.
10359 (syms_of_window): Clarify window-min-height|width doc-strings.
10360
103612008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10362
10363 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10364 some more. Copy some of the code from Ftry_completions.
10365 Remove special case code that dates back to initial revision when the
10366 slash was only added when necessary and that can't trigger nowadays.
10367
103682008-04-27 Kenichi Handa <handa@m17n.org>
10369
10370 * font.c (font_prop_validate): Signal `error' instead of `font'.
10371
103722008-04-29 Jason Rumney <jasonr@gnu.org>
10373
10374 * w32fns.c (Fw32_battery_status): New defun.
10375 (syms_of_w32fns): Defsubr it.
10376
103772008-04-28 Andreas Schwab <schwab@suse.de>
10378
10379 * dired.c (file_name_completion): Fix another mixing of encoded
10380 and decoded names.
10381
103822008-04-28 Juanma Barranquero <lekktu@gmail.com>
10383
10384 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10385
103862008-04-27 Juanma Barranquero <lekktu@gmail.com>
10387
10388 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10389
103902008-04-27 Andreas Schwab <schwab@suse.de>
10391
10392 * dired.c (file_name_completion): Fix inappropriate mixing of
10393 encoded and decoded names.
10394
10395 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10396
10397 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10398
103992008-04-26 Eli Zaretskii <eliz@gnu.org>
10400
10401 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10402 2008-03-31, it's not needed anymore with `struct stat' definition
10403 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10404 for the same reasons.
10405
104062008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10407
10408 * m/sparc.h: Additional redefinitions for GNU/Linux.
10409
104102008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10411
10412 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10413 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10414 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10415 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10416 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10417 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10418 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10419 Likewise.
10420
10421 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10422 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10423 (mac_ax_number_of_characters): Add externs.
10424 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10425 [USE_MAC_TSM]: Likewise.
10426 (mac_handle_text_input_event) [MAC_OSX]:
10427 Handle kEventTextInputOffsetToPos for no active input area case.
10428 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10429 (mac_handle_document_access_event)
10430 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10431 (install_application_handler) [MAC_OSX]: Register handlers for
10432 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10433 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10434 Register mac_handle_document_access_event.
10435
10436 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10437 Make functions non-static.
10438
104392008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10440
10441 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10442 (read_file_name_completion_ignore_case, insert_default_directory)
10443 (Qdefault_directory): Move to minibuffer.el.
10444 (Fread_file_name): Call the new `read-file-name' instead.
10445
104462008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10447
10448 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10449 Make function non-static.
10450 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10451 Remove function.
10452 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10453 Move to mactoolbox.c.
10454 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10455
10456 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10457 (mac_rect_make): New macro.
10458
10459 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10460 instead of float.
10461 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10462 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10463 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10464 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10465 CGRectMake.
10466 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10467 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10468 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10469 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10470 instead of WindowRef in argument type.
10471 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10472 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10473 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10474 instead of DISPLAY. All uses changed.
10475 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10476 (x_calc_absolute_position): Simplify so as not to use
10477 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10478
10479 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10480 instead of WindowRef in argument type.
10481 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10482 [TARGET_API_MAC_CARBON]: Remove externs.
10483 (create_apple_event, mac_event_parameters_to_lisp)
10484 [TARGET_API_MAC_CARBON]: Add externs.
10485
10486 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10487 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10488 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10489 is clicked.
10490 (x_activate_menubar): Remove extern for saved_menu_event_location.
10491 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10492 Move from mac.c.
10493
104942008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10495
10496 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10497 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10498
104992008-04-23 Jason Rumney <jasonr@gnu.org>
10500
10501 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10502 attributes only for local files.
10503
10504 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10505 default to Qlocal.
10506
105072008-04-22 Juri Linkov <juri@jurta.org>
10508
10509 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10510 read-buffer-to-switch instead of using the letter "B".
10511
105122008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10513
10514 * fileio.c (Qdefault_directory): New variable.
10515 (Fread_file_name): Use it to pass `dir' to the completion functions.
10516
105172008-04-20 Chong Yidong <cyd@stupidchicken.com>
10518
10519 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10520
105212008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10522
10523 * keyboard.c (Vpre_help_message): Remove.
10524 (show_help_echo): Remove default C code.
10525
10526 * dired.c (directory_files_internal, file_name_completion):
10527 Only call ENCODE_FILE if the string is indeed decoded.
10528
105292008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10530
10531 * Makefile.in (TOOLKIT_DEFINES): Remove.
10532 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10533
105342008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10535
10536 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10537 (mactoolbox.o): New target.
10538
10539 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10540 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10541
10542 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10543 Use mac_set_frame_window_background instead of XSetWindowBackground.
10544 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10545 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10546 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10547 instead of SetWindowTitleWithCFString.
10548 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10549 Move function to mactoolbox.c.
10550 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10551 Use mac_set_window_modified instead of SetWindowModified.
10552 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10553 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10554 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10555 FrontNonFloatingWindow. Use mac_activate_window instead of
10556 ActivateWindow. Use mac_active_non_floating_window instead of
10557 ActiveNonFloatingWindow.
10558 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10559 Use mac_show_hourglass and mac_hide_hourglass.
10560 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10561 instead of GetGlobalMouse.
10562 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10563 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10564 Use mac_bring_window_to_front instead of BringToFront.
10565 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10566 mactoolbox.c.
10567 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10568 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10569 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10570 mactoolbox.c.
10571
10572 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10573 (XtPointer): Move typedef from macmenu.c.
10574 (enum button_type): Move enum from macmenu.c.
10575 (widget_value): Move typedef from macmenu.c.
10576 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10577 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10578 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10579 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10580 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10581 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10582 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10583 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10584 (Selection): Move typedef from macselect.c.
10585 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10586 macterm.c.
10587 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10588 (mac_is_window_collapsed, mac_bring_window_to_front)
10589 (mac_send_window_behind, mac_hide_window, mac_show_window)
10590 (mac_collapse_window, mac_front_non_floating_window)
10591 (mac_active_non_floating_window, mac_activate_window)
10592 (mac_move_window_structure, mac_move_window, mac_size_window)
10593 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10594
10595 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10596 (enum mac_menu_kind): Move enum to mactoolbox.c.
10597 (min_menu_id): Move variable to mactoolbox.c.
10598 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10599 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10600 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10601 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10602 [TARGET_API_MAC_CARBON]: Likewise.
10603 (XtPointer): Move typedef to macgui.h.
10604 (enum button_type): Move enum to macgui.h.
10605 (widget_value): Move typedef to macgui.h.
10606 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10607 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10608 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10609 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10610 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10611 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10612 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10613 (popup_activated_flag): Make variable non-static.
10614 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10615 (add_menu_item, fill_menu, dispose_menus):
10616 Move functions to mactoolbox.c.
10617 (restore_show_help_function, menu_target_item_handler)
10618 (install_menu_target_item_handler, mac_handle_dialog_event)
10619 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10620 [TARGET_API_MAC_CARBON]: Likewise.
10621 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10622 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10623 (find_and_call_menu_selection, name_is_separator): Make function
10624 non-static.
10625 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10626 to mactoolbox.c.
10627 (set_frame_menubar): Don't call install_menu_quit_handler.
10628 (menu_item_selection): New variable.
10629 (mac_menu_show): Use create_and_show_popup_menu.
10630 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10631 selection but set variable menu_item_selection. All uses changed.
10632 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10633 Call install_menu_quit_handler. Move to mactoolbox.c.
10634
10635 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10636 (Selection): Move typedef to macgui.h.
10637 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10638 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10639 Make variables non-static.
10640 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10641 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10642 Make functions non-static.
10643 (Vmac_service_selection) [MAC_OSX]: Likewise.
10644 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10645 (mac_valid_selection_target_p, mac_clear_selection)
10646 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10647 (mac_put_selection_value, mac_selection_has_target_p)
10648 (mac_get_selection_value, mac_get_selection_target_list)
10649 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10650 Move functions to mactoolbox.c.
10651 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10652 Likewise.
10653 (copy_scrap_flavor_data, mac_handle_service_event)
10654 (install_service_handler) [MAC_OSX]: Likewise.
10655 (syms_of_macselect) <Vmac_dnd_known_types>:
10656 Use mac_dnd_default_known_types.
10657
10658 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10659 Move to mactoolbox.c.
10660 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10661 (Fx_selection_owner_p): Add EXFUN.
10662 (install_window_handler, remove_window_handler, XSetWindowBackground):
10663 Remove externs.
10664 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10665 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10666 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10667 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10668 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10669 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10670 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10671 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10672 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10673 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10674 (mac_valid_selection_target_p, mac_clear_selection)
10675 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10676 (mac_put_selection_value, mac_selection_has_target_p)
10677 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10678 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10679 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10680 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10681 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10682 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10683 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10684 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10685 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10686
10687 * mactoolbox.c: New file.
10688
106892008-04-18 Jason Rumney <jasonr@gnu.org>
10690
10691 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10692
106932008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10694
10695 * character.c (Fmultibyte_char_to_unibyte):
10696 Return latin1 chars unchanged.
10697
10698 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10699 relocated if it points to `name'.
10700
107012008-04-17 Kenichi Handa <handa@m17n.org>
10702
10703 * data.c (Faset): Allow setting a multibyte character in an
10704 ASCII-only unibyte string.
10705
10706 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10707
107082008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10709
10710 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10711 done in config.h.
10712
107132008-04-16 Juanma Barranquero <lekktu@gmail.com>
10714
10715 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10716 (Fchar_direction): Add usage in the docstring.
10717
107182008-04-15 Chong Yidong <cyd@stupidchicken.com>
10719
10720 * keyboard.c (read_key_sequence): Remove always-true checks.
10721
107222008-04-14 Jason Rumney <jasonr@gnu.org>
10723
10724 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10725 compatibility struct, for better underline positioning.
10726
107272008-04-13 David Hansen <david.hansen@gmx.net>
10728
10729 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10730 string.
10731
107322008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10733
10734 * m/hp800.h (XUINT, XSET): Remove.
10735
107362008-04-12 Juanma Barranquero <lekktu@gmail.com>
10737
10738 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10739 previous change.
10740
107412008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10742
10743 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10744 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10745
107462008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10747
10748 * keymap.h (map_keymap_canonical): Declare.
10749 * xmenu.c (single_keymap_panes): Use it.
10750
107512008-04-11 Glenn Morris <rgm@gnu.org>
10752
10753 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10754 set the target's value to that of the alias.
10755
107562008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10757
10758 * term.c (set_tty_color_mode): Left over typo.
10759
107602008-04-10 Michael Albinus <michael.albinus@gmx.de>
10761
10762 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10763 only after check for file name handler functions. Signal, when
10764 native functionality is not supported.
10765 (syms_of_fileio): Declare it unconditionally.
10766
107672008-04-10 Jason Rumney <jasonr@gnu.org>
10768
10769 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10770 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10771
10772 * w32.c (logon_network_drive): Also logon to remote drives that
10773 are mapped to drive letters.
10774
107752008-04-10 Glenn Morris <rgm@gnu.org>
10776
10777 * xdisp.c (truncate-partial-width-windows): Doc fix.
10778
107792008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10780
10781 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10782 Move functions to minibuffer.el.
10783 (syms_of_fileio): Don't declare them.
10784
107852008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10786
10787 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10788 (syms_of_minibuf): Remove its initialization.
10789
10790 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10791
107922008-04-09 Juanma Barranquero <lekktu@gmail.com>
10793
10794 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10795
107962008-04-09 Jason Rumney <jasonr@gnu.org>
10797
10798 * makefile.w32-in (distclean): Delete makefile too.
10799 (maintainer-clean): New target.
10800
10801 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10802
10803 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10804 for new font backend and composite cases.
10805
108062008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10807
10808 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10809 Most of the code moved to run_timers.
10810 (do_pending_atimers): Call run_timers.
10811 (run_timers): New function.
10812
10813 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10814 run atimers.
10815
10816 * process.c (wait_reading_process_output): The same as above.
10817
108182008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10819
10820 * minibuf.c (last_exact_completion): Remove variable.
10821 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10822 (complete_and_exit_1, complete_and_exit_2)
10823 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10824 (Fdisplay_completion_list, display_completion_list_1)
10825 (Fminibuffer_completion_help, Fself_insert_and_exit)
10826 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10827 minibuffer.el.
10828 (syms_of_minibuf): Remove corresponding initializations.
10829
10830 * keyboard.c (Qdeactivate_mark): New var.
10831 (command_loop_1): Use it to call `deactivate-mark'.
10832 (syms_of_keyboard): Initialize it.
10833
10834 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10835 to another frame.
10836 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10837 Don't call set_tty_color_mode.
10838 (store_frame_param): Reset previous_frame rather than call
10839 set_tty_color_mode.
10840 * term.c (set_tty_color_mode): Rewrite.
10841 * dispextern.h (set_tty_color_mode): New type.
10842 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10843
108442008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10845
10846 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10847 for generic chars, which do not exist any more in emacs-unicode.
10848
108492008-04-08 Michael Albinus <michael.albinus@gmx.de>
10850
10851 * coding.c (detect_coding_emacs_mule)
10852 (Ffind_operation_coding_system): Fix typo.
10853
108542008-04-08 Jason Rumney <jasonr@gnu.org>
10855
10856 * w32uniscribe.c (SNAME): Extract only symbol name.
10857
10858 * w32font.h (struct w32_metric_cache): New struct.
10859 (w32font_info): Use it.
10860 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10861 (CACHE_BLOCKSIZE): New constants.
10862
10863 * w32font.c (Qja, Qko, Qzh): New symbols.
10864 (syms_of_w32font): Initialise them.
10865 (font_matches_spec): Use them to filter by language.
10866 (recompute_cached_metrics): Remove function.
10867 (compute_metrics, clear_cached_metrics): New functions.
10868 (w32font_encode_char): Use them to manage metric cache.
10869 (w32font_text_extents): Cache metrics for all glyphs on demand.
10870 Delay converting glyph indices to WORD until needed.
10871 (w32font_open_internal): Initialize metric cache to empty.
10872 (registry_to_w32_charset): Charset should always be a symbol.
10873 (fill_in_logfont, list_all_matching_fonts): Family should
10874 always be a symbol.
10875
108762008-04-06 Jason Rumney <jasonr@gnu.org>
10877
10878 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10879 Give up if glyph indices not supported. Use uniscribe obtained
10880 ABC widths for individual metrics. Map glyph clusters back to
10881 characters using fClusterStart flag. Return number of glyphs
10882 produced, not chars processed.
10883 (uniscribe_shape): Map char at FROM to current glyph.
10884
108852008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10886
10887 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10888 Use SetMenuItemHierarchicalMenu.
10889
108902008-04-05 Jason Rumney <jasonr@gnu.org>
10891
10892 * image.c (pbm_load): Allow color values up to 65535.
10893 Throw an error if max_color_idx is outside the supported range.
10894 Report an error when image size is invalid.
10895 Read two bytes at a time when raw images have max_color_idx above 255.
10896
108972008-04-05 Eli Zaretskii <eliz@gnu.org>
10898
10899 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10900 cFileName a file name that includes `?' characters, use the 8+3
10901 alias in cAlternateFileName instead.
10902
109032008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10904
10905 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10906 append "CCL: Quitted" when the CCL program is quitted.
10907 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10908
10909 * ccl.h (struct ccl_program): New member quit_silently.
10910
109112008-04-05 Chong Yidong <cyd@stupidchicken.com>
10912
10913 * search.c (compile_pattern_1): Treat non-nil and non-string of
10914 search-spaces-regexp as nil.
10915
10916 * minibuf.c (Fassoc_string): Tweak docstring.
10917
109182008-04-05 Eli Zaretskii <eliz@gnu.org>
10919
10920 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10921 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10922 2008-03-14 to force inode be positive.
10923
10924 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10925 _S_* ones, since we now use our own sys/stat.h.
10926 (stat, fstat): Don't mangle the inode number.
10927 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10928
109292008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10930
10931 * frame.h (struct frame): Give one more bit to `visible' since we use
10932 values larger than 1 to indicate obscured frames on ttys.
10933
10934 * keymap.c (Qkeymap_canonicalize): New var.
10935 (Fmap_keymap_internal): New fun.
10936 (describe_map): Use keymap-canonicalize.
10937
10938 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10939 (Fundo_boundary): Set them.
10940 (syms_of_undo): Initialize them.
10941 (record_point): Use them instead of last_point_position*.
10942 (last_undo_buffer): Change type.
10943
109442008-04-04 Jason Rumney <jasonr@gnu.org>
10945
10946 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10947 (recompute_cached_metrics): Don't set ascent and descent per char.
10948
10949 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10950 (uniscribe_check_otf): Add GC protection before consing.
10951 Rearrange loop for counting features.
10952
109532008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10954
10955 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10956 buffer with byte-size of source buffer.
10957
109582008-04-03 Chong Yidong <cyd@stupidchicken.com>
10959
10960 * callint.c (Fcall_interactively): Handle temporary region even
10961 when shift-select-mode is off.
10962
109632008-04-03 Jason Rumney <jasonr@gnu.org>
10964
10965 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10966
109672008-04-03 Kenichi Handa <handa@m17n.org>
10968
10969 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10970 (CATEGORY_MASK_UTF_16): Likewise.
10971 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10972 binary file.
10973 (detect_coding): Add null-byte detection for a binary file.
10974 (detect_coding_system): Likewise.
10975
109762008-04-03 Jason Rumney <jasonr@gnu.org>
10977
10978 * w32uniscribe.c: New file.
10979
10980 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10981
10982 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10983
10984 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10985 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10986 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10987 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10988 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10989 (Qphonetic): New symbols.
10990 (syms_of_w32font): Initialize them.
10991 (font_supported_scripts): Use them.
10992 (w32font_list_family): List all charsets.
10993 (w32font_text_extents, recompute_cached_metrics): Fix metric
10994 calculations.
10995 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10996 Give opentype fonts their own format.
10997 (font_matches_spec): New arguments backend and logfont.
10998 Handle :otf spec for uniscribe backend.
10999 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11000 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11001
11002 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11003 font backend.
11004 (globals_of_w32fns): Initialize uniscribe font backend.
11005
11006 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11007 dependencies.
11008 (w32uniscribe.$(O)): New file to build.
11009 (FONT_OBJ): Include w32uniscribe.$(O).
11010 (LIBS): Add uniscribe libraries.
11011
11012 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11013
110142008-04-02 Chong Yidong <cyd@stupidchicken.com>
11015
11016 * callint.c (Vshift_select_mode): New var.
11017 (Finteractive): Document new ^ spec.
11018 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11019 is present.
11020
11021 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11022 (command_loop_1): Avoid running the direct display versions of
11023 forward-char and backward-char if shift-selection may occur.
11024 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11025 shift-translation takes place.
11026
11027 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11028 avoid clobbering by define-minor-mode.
11029
11030 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11031 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11032
11033 * syntax.c (Fforward_word): Add ^ interactive spec.
11034
11035 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11036 (Fscroll_right): Add ^ interactive spec.
11037
110382008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11039
11040 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11041
11042 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11043
11044 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11045
110462008-03-31 Juri Linkov <juri@jurta.org>
11047
11048 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11049
110502008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11051
11052 * gtkutil.c (xg_set_geometry): Fix indentation.
11053 (xg_resize_outer_widget): Remove.
11054 (x_wm_size_hint_off): Fix indentation.
11055 (xg_frame_set_char_size): Call flush_and_sync after
11056 gtk_window_resize.
11057 (x_wm_set_size_hint): Pass NULL as geometry window to
11058 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11059 Add menu bar and tool bar height to base height.
11060 (xg_update_frame_menubar, free_frame_menubar)
11061 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11062 (update_frame_tool_bar, free_frame_tool_bar):
11063 Change xg_resize_outer_widget to xg_frame_set_char_size.
11064
110652008-03-30 Michael Albinus <michael.albinus@gmx.de>
11066
11067 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11068 (Fdbus_call_method): New parameter TIMEOUT.
11069 (dbus-send-signal): Optimize UNGCPRO call.
11070
110712008-03-29 Juri Linkov <juri@jurta.org>
11072
11073 * window.c (Fdisplay_buffer): Move call to
11074 Vsplit_window_preferred_function out of conditions that check
11075 if window is eligible for vertical splitting.
11076 When Vsplit_window_preferred_function is non-nil, call it and use
11077 its non-nil return value as window. Otherwise, continue doing
11078 vertical splitting using Fsplit_window with arg horflag=nil.
11079 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11080 default value from `split-window' to nil.
11081
110822008-03-29 Juri Linkov <juri@jurta.org>
11083
11084 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11085 for interactive code letters 'b' and 'B'.
11086
110872008-03-29 Eli Zaretskii <eliz@gnu.org>
11088
11089 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11090 multibyte string.
11091
110922008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11093
11094 * keyboard.c (pending_funcalls): New var.
11095 (timer_check): Run it.
11096 (syms_of_keyboard): Initialize it.
11097 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11098 (Vdelete_terminal_functions): New vars.
11099 (syms_of_terminal): Initialize them.
11100 (Fdelete_terminal): Run delete-terminal-functions.
11101 * xdisp.c (safe_eval): Rewrite.
11102 (safe_call2): New fun.
11103 * frame.c (Qdelete_frame_functions): New var.
11104 (syms_of_frame): Initialize it.
11105 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11106 * lisp.h (safe_call2, pending_funcalls): Declare.
11107
111082008-03-28 Andreas Schwab <schwab@suse.de>
11109
11110 * indent.c (Fmove_to_column): Move declaration before statements.
11111
111122008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11113
11114 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11115 (struct frame): Use bit fields for boolean vars.
11116
11117 * process.c (server_accept_connection): Simplify naming.
11118 (emacs_get_tty_pgrp): Use SDATA.
11119
11120 * coding.c (decode_coding_object): Fix last change.
11121
111222008-03-27 Jason Rumney <jasonr@gnu.org>
11123
11124 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11125
111262008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11127
11128 * charset.c (Fdefine_charset_internal): Change the way of
11129 registering charsets in Vcharset_order_list.
11130 (syms_of_charset): Make the charset `eight-bit' supplementary.
11131
111322008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11133
11134 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11135 operations, to avoid having the difference between pointers
11136 overflow.
11137
111382008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11139
11140 * indent.c (check_display_width): New fun.
11141 (scan_for_column): Use it.
11142
11143 * data.c (syms_of_data): Mark most-positive-fixnum and
11144 most-negative-fixnum as constants.
11145
11146 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11147
11148 * indent.c (scan_for_column): Extract from current_column_1.
11149 Merge with the same code from Fmove_to_column.
11150 (current_column_1, Fmove_to_column): Use it.
11151
111522008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11153
11154 * keymap.c (map_keymap_internal): New fun.
11155 (map_keymap): Use it.
11156 (Fmap_keymap_internal): New fun.
11157 (Fmap_keymap): Remove left-out test from before make_save_value.
11158
11159 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11160
11161 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11162 Use XCAR/XCDR.
11163
11164 * process.h (struct Lisp_Process): Remove filter_multibyte.
11165 * process.c (QCfilter_multibyte): Remove.
11166 (setup_process_coding_systems): Don't use filter_multibyte.
11167 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11168 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11169 (Fset_process_filter_multibyte): Change the coding-system to
11170 approximate the previous behavior.
11171 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11172 coding-system.
11173
11174 * coding.c (decode_coding_object): When not decoding into a buffer,
11175 obey the coding system's preference of (uni|multi)byte.
11176
111772008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11178
11179 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11180 every char is changed and has a different byte-length.
11181 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11182 Fix int -> EMACS_INT.
11183
111842008-03-23 David Hansen <david.hansen@gmx.net>
11185
11186 * dbusbind.c (xd_read_message): Remove extra copying of message
11187 strings. Check for NULL `interface' or `member'.
11188
111892008-03-22 Eli Zaretskii <eliz@gnu.org>
11190
11191 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11192 cFileName a file name that includes `?' characters, use the 8+3
11193 alias in cAlternateFileName instead.
11194
111952008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11196
11197 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11198
111992008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11200
11201 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11202 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11203 work on current_buffer only instead (that was already the case
11204 for some of the code anyway).
11205 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11206 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11207 (SET_PT, SET_PT_BOTH): Adjust.
11208 * intervals.h (set_point, temp_set_point, set_point_both)
11209 (temp_set_point_both): Remove redundant declarations.
11210
112112008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11212
11213 * fileio.c (Finsert_file_contents):
11214 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11215 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11216 when buffer != current_buffer anyway.
11217
112182008-03-20 Andreas Schwab <schwab@suse.de>
11219
11220 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11221 as default.
11222
112232008-03-19 Jason Rumney <jasonr@gnu.org>
11224
11225 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11226 (syms_of_w32fns): Initialize them.
11227 (HOURGLASS_ID): New constant.
11228 (x_window_to_frame): Don't check hourglass_window.
11229 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11230 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11231 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11232 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11233 Only change the cursor if hourglass is not active.
11234 (Fx_create_frame): Initialize frame's current_cursor.
11235 (hourglass_atimer): Remove.
11236 (hourglass_started): New function.
11237 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11238 (show_hourglass): Adapt to w32, changing argument to frame.
11239
11240 * w32term.h (struct w32_output): Remove hourglass_window.
11241 Add current_cursor.
11242
11243 * eval.c (call_debugger, Fsignal):
11244 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11245 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11246 (Fexecute_extended_command, cancel_hourglass_unwind):
11247 * minibuf.c (read_minibuf):
11248 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11249
112502008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11251
11252 * window.c (run_funs): New fun.
11253 (run_window_configuration_change_hook): Use it to run the buffer-local
11254 and the global part of the hook.
11255
11256 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11257 (unwind_format_mode_line): Restore selected window.
11258 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11259
112602008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11261
11262 * editfns.c (Fchar_equal): Check they are valid characters.
11263
11264 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11265
112662008-03-17 Andreas Schwab <schwab@suse.de>
11267
11268 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11269 against a charset.
11270
11271 * lisp.h (Fbuffer_list): Declare.
11272
112732008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11274
aac0c6e3
MR
11275 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11276 handlebox_widget is != 0.
11277
112782008-03-16 Juri Linkov <juri@jurta.org>
11279
11280 * callint.c (Fcall_interactively): For interactive code letters
11281 'b' and 'B' put the buffer list into the list of default "future"
11282 values of the minibuffer.
11283
112842008-03-16 Andreas Schwab <schwab@suse.de>
11285
11286 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11287 modifiers.
11288
11289 * regex.c (re_match_2_internal): Correct matching of a charset
11290 against latin-1 characters.
11291
112922008-03-16 Kenichi Handa <handa@m17n.org>
11293
11294 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11295 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11296 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11297 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11298 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11299 CHAR_STRING_ADVANCE.
11300 (produce_chars): Fix for the case that the source and the
11301 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11302 instead of CHAR_STRING_ADVANCE.
11303 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11304 STRING_CHAR_ADVANCE.
11305
113062008-03-15 Andreas Schwab <schwab@suse.de>
11307
11308 * regex.c (re_match_2_internal): Correct matching of eight bit
11309 characters in unibyte strings.
11310
113112008-03-15 Martin Rudalics <rudalics@gmx.at>
11312
11313 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11314 at end of range when it coincides with the end of the buffer.
11315
113162008-03-14 Eli Zaretskii <eliz@gnu.org>
11317
11318 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11319
11320 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11321
113222008-03-14 Jason Rumney <jasonr@gnu.org>
11323
11324 * editfns.c (initial_tz): New variable.
11325 (syms_of_editfns): Initialize it.
11326 (Fset_time_zone_rule): Set it when first called.
11327 Use it when TZSTRING is nil.
11328
11329 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11330 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11331 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11332 (globals_of_w32fns): Initialize them.
11333 (compute_tip_xy): Use them to position tooltips.
11334
113352008-03-14 Glenn Morris <rgm@gnu.org>
11336
11337 * emacs.c (main): Revert previous change.
11338 (standard_args): Revert -internal-script back to -scriptload,
11339 and remove the long-option form.
11340
113412008-03-13 Glenn Morris <rgm@gnu.org>
11342
11343 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11344 Remove option -enable-font-backend.
11345
113462008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11347
11348 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11349
113502008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11351
11352 * xterm.c (x_connection_closed): For GTK: If this is the last
11353 terminal just exit without closing the display.
11354
113552008-03-11 Jason Rumney <jasonr@gnu.org>
11356
11357 * w32font.c (w32font_full_name): Use floor to round.
11358
f0131492 113592008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11360
11361 * sound.c (alsa_configure): Declare vol at beginning of block.
11362
11363 * fontset.c (Ffontset_info): Remove extra semicolon.
11364
113652008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11366
11367 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11368 size of resulting string.
11369
113702008-03-10 Jason Rumney <jasonr@gnu.org>
11371
11372 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11373
113742008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11375
11376 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11377 Don't pretend as if characters with display property haven't been
11378 consumed for string-replacing-string case.
11379
113802008-03-08 Kim F. Storm <storm@cua.dk>
11381
11382 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11383 (get_next_display_element, next_element_from_string)
11384 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11385
113862008-03-08 Andreas Schwab <schwab@suse.de>
11387
11388 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11389
113902008-03-06 Jason Rumney <jasonr@gnu.org>
11391
11392 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11393 when charset not specified. Only translate ANSI to unicode when
11394 font_type is truetype.
11395 (w32font_coverage_ok): New function.
11396 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11397
113982008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11399
11400 * lread.c (Fread_char): Resolve modifiers.
11401 (Fread_char_exclusive): Likewise.
11402
11403 * character.c (char_resolve_modifier_mask): New function.
11404 (char_string): Use char_resolve_modifier_mask.
11405 (Fchar_resolve_modifiers): New function.
11406 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11407 function.
11408
114092008-03-04 Jason Rumney <jasonr@gnu.org>
11410
11411 * makefile.w32-in: Always include w32font.c in the build.
11412 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11413
114142008-03-04 Andreas Schwab <schwab@suse.de>
11415
11416 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11417 (versionclean): Likewise.
11418
114192008-03-04 Juanma Barranquero <lekktu@gmail.com>
11420
11421 * .cvsignore: Add oo.
11422
114232008-03-03 Andreas Schwab <schwab@suse.de>
11424
11425 * coding.c (decode_coding_object): Inhibit gap shrinking while
11426 decoding in place.
11427
114282008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11429
11430 * w32term.c: Remove unused include "gnu.h".
11431 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11432
11433 * gnu.h: Rename to ...
11434 * emacs-icon.h: ... this.
11435 * xterm.c: Use emacs-icon.h instead of gnu.h.
11436 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11437
114382008-03-03 Juanma Barranquero <lekktu@gmail.com>
11439
11440 * w32font.c: Include math.h.
11441
114422008-03-03 Jason Rumney <jasonr@gnu.org>
11443
11444 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11445 Compute options separately.
11446 (w32font_open_internal): Set glyph_idx before caching metrics.
11447
11448 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11449 Define if system headers don't.
11450 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11451 (w32font_encode_char): Don't declare here.
11452
11453 * w32font.c (Quniscribe, QCformat): New symbols.
11454 (syms_of_w32font): Define them.
11455 (w32font_has_char): Indicate uncertainty.
11456 (w32font_encode_char): Encode as glyph point. Make static.
11457 (recompute_cached_metrics): New function.
11458 (w32font_open_internal): Use it. Set font to use glyph points
11459 initially. Set format based on type of font.
11460 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11461 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11462 on it. Set format based on information available here.
11463 (add_font_entity_to_list): Identify backend based on opentype_only.
11464
114652008-03-02 Andreas Schwab <schwab@suse.de>
11466
11467 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11468
11469 * coding.c (decode_coding_big5, produce_chars):
11470 Fix typos in last change.
11471
114722008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11473
11474 * gnu.h: New icon.
11475
114762008-03-02 Kenichi Handa <handa@m17n.org>
11477
11478 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11479 `dos', don't decode '\r' if that is the last in the source.
11480 (decode_coding_utf_16, decode_coding_emacs_mule)
11481 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11482 (decode_coding_raw_text, decode_coding_charset): Likewise.
11483 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11484
114852008-03-01 Jason Rumney <jasonr@gnu.org>
11486
11487 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11488
114892008-03-01 Kim F. Storm <storm@cua.dk>
11490
11491 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11492
114932008-03-01 Jason Rumney <jasonr@gnu.org>
11494
11495 * w32font.c (w32font_full_name): New function.
11496 (w32font_open_internal): Use it.
11497
114982008-03-01 Kim F. Storm <storm@cua.dk>
11499
11500 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11501
115022008-03-01 Jason Rumney <jasonr@gnu.org>
11503
11504 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11505
115062008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11507
11508 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11509 xg_frame_resized when the event is for the edit widget.
11510
11511 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11512
11513 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11514 set_char_size.
11515 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11516 operations on widgets here. Just set frame size if needed.
11517 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11518 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11519 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11520 the whole frame.
11521 (xg_create_tool_bar): Move attachment of the tool bar to
11522 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11523 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11524
115252008-03-01 Jason Rumney <jasonr@gnu.org>
11526
11527 * w32fns.c (w32_msg_pump): Disable debug code.
11528
115292008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11530
11531 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11532
115332008-02-29 Chong Yidong <cyd@stupidchicken.com>
11534
11535 * xdisp.c (next_overlay_string): Don't set
11536 overlay_strings_at_end_processed_p if we're currently reading from
11537 a display string.
11538
115392008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11540
11541 * xdisp.c (get_overlay_strings_1): Fix typo.
11542
115432008-02-29 Chong Yidong <cyd@stupidchicken.com>
11544
11545 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11546
115472008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11548
11549 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11550
11551 * xdisp.c (display_mode_element): Cancel the previous change.
11552 (decode_mode_spec): Likewise.
11553 (handle_auto_composed_prop): Don't make composition if it->string
11554 is a string.
11555
115562008-02-27 Kim F. Storm <storm@cua.dk>
11557
11558 * lisp.h (GLYPH): Change type from int to struct with separate char
11559 and face_id members.
11560 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11561 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11562 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11563 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11564 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11565 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11566 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11567 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11568 handle new Lisp glyph code encoding, either an integer or a cons.
11569
11570 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11571 (GLYPH_ALIAS): Delete.
11572 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11573 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11574 (GLYPH_FROM_CHAR): Replace macro by ...
11575 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11576
11577 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11578 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11579 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11580 (GLYPH_INVALID_P): New macro.
11581 (spec_glyph_lookup_face): Update prototype.
11582
11583 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11584 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11585 new glyph code encoding.
11586 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11587 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11588
11589 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11590 Adapt to new glyph type and new glyph code encoding.
11591
11592 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11593
11594 * indent.c (current_column, current_column_1, Fmove_to_column)
11595 (compute_motion): Adapt to new glyph code encoding.
11596
11597 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11598
115992008-02-27 Chong Yidong <cyd@stupidchicken.com>
11600
11601 * process.c (wait_reading_process_output): Check for window
11602 changes caused by timers.
11603 Suggested by Johan Bockgård.
11604
116052008-02-27 Glenn Morris <rgm@gnu.org>
11606
11607 * emacs.c (USAGE1): Add `--disable-font-backend'.
11608
116092008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11610
11611 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11612 is made to the buffer.
11613
116142008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11615
11616 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11617 (face_at_string_position):
11618 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11619 (face_at_string_position):
11620 * xdisp.c (display_string, next_overlay_change):
11621 * buffer.h (overlays_at):
11622 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11623 Update callers.
11624
116252008-02-26 Chong Yidong <cyd@stupidchicken.com>
11626
11627 * editfns.c (Fformat): Doc fix.
11628
116292008-02-26 Juanma Barranquero <lekktu@gmail.com>
11630
11631 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11632 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11633 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11634
116352008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11636
11637 * buffer.c (Fbuffer_swap_text): New function.
11638 (syms_of_buffer): Defsubr it.
11639
116402008-02-25 Chong Yidong <cyd@stupidchicken.com>
11641
11642 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11643
116442008-02-25 Jason Rumney <jasonr@gnu.org>
11645
11646 * w32font.c (w32font_draw): Draw one character at a time when padding.
11647
116482008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11649
11650 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11651 Handle a nil arg. Use run_window_configuration_change_hook.
11652 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11653 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11654 Use run_window_configuration_change_hook.
11655
116562008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11657
11658 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11659 1-pixel width.
11660
116612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11662
11663 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11664 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11665 if the glyph in the font is zero pixel with.
11666
11667 * dispextern.h (struct glyph_string): New member padding_p.
11668
11669 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11670
11671 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11672
11673 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11674
11675 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11676
11677 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11678
116792008-02-25 Jason Rumney <jasonr@gnu.org>
11680
11681 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11682
116832008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11684
11685 Allow fine-grained image-cache flushing.
11686 * dispextern.h (struct image): Add `dependencies' field.
11687 (clear_image_caches): Change arg to Lisp_Object.
11688 * image.c (make_image): Initialize `dependencies' field.
11689 (clear_image_cache): Change arg to allow fine-grained flushing.
11690 Perform the flush even if image-cache-eviction-delay is nil.
11691 (clear_image_caches): Change arg to Lisp_Object.
11692 (Fclear_image_cache): Expand meaning of the argument.
11693 (mark_image): Mark `dependencies' field.
11694 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11695 (lface_hash): Use XHASH rather than XFASTINT.
11696 (face_at_buffer_position): Fix int -> EMACS_INT position.
11697 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11698 (select_frame_for_redisplay): Remove code duplication.
11699 (redisplay_internal): Adapt arg to call to clear_image_caches.
11700
117012008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11702
11703 * s/vms4-0.h:
11704 * s/vms4-2.h:
11705 * s/vms4-4.h:
11706 * s/vms5-5.h: Remove, unused.
11707
11708 * s/irix5-2.h:
11709 * s/irix6-0.h:
11710 * s/riscos5.h:
11711 * s/mach-bsd4-3.h:
11712 * m/mips4.h: Remove files for obsolete systems.
11713
11714 * Makefile.in:
11715 * filelock.c:
11716 * unexmips.c:
11717 * m/hp9000s300.h:
11718 * m/iris4d.h:
11719 * s/aix3-1.h:
11720 * s/hpux.h:
11721 * s/msdos.h:
11722 * s/usg5-0.h:
11723 * s/usg5-2-2.h:
11724 * s/usg5-2.h:
11725 * s/usg5-3.h: Remove references to obsolete variables.
11726
11727 * s/irix5-0.h: Remove, move all the contents ...
11728 * s/irix6-5.h: ... here. Simplify.
11729 * config.in: Regenerate.
11730
117312008-02-24 Jason Rumney <jasonr@gnu.org>
11732
11733 * w32term.c (x_draw_glyph_string_background): Clear the background
11734 manually when cleartype is in use.
11735 (x_draw_glyph_string_foreground): Draw text transparently when
11736 cleartype is in use.
11737
11738 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11739 a font into it unless we have to.
11740
117412008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11742
11743 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11744 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11745
aac0c6e3
MR
117462008-02-18 Jason Rumney <jasonr@gnu.org>
11747
11748 * w32fns.c (Fw32_shell_execute): Encode parameters.
11749
117502008-02-09 Eli Zaretskii <eliz@gnu.org>
11751
11752 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11753
117542008-02-05 Juanma Barranquero <lekktu@gmail.com>
11755
11756 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11757
117582008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11759
11760 * xterm.c (x_set_offset): Don't change the gravity if
11761 CHANGE_GRAVITY is -1.
11762
117632008-02-23 Chong Yidong <cyd@stupidchicken.com>
11764
11765 * fileio.c (auto_save_error_occurred): New var.
11766 (auto_save_error): Set it.
11767 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11768 error occurred.
11769
117702008-02-23 Eli Zaretskii <eliz@gnu.org>
11771
11772 * w32.c (globals_of_w32): Add initializations for
11773 g_b_init_get_sid_sub_authority and
11774 g_b_init_get_sid_sub_authority_count.
11775
117762008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11777
11778 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11779 (font_parse_xlfd): Use them for sanity check.
11780 (Finternal_set_font_style_table): Make sure the table is bijective.
11781
11782 Consolidate the image_cache to the terminal struct.
11783 * termhooks.h (P_): Remove redundant def.
11784 (struct terminal): New field `image_cache'.
11785 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11786 of FRAME_X_IMAGE_CACHE.
11787 * xterm.h (struct x_display_info): Remove image_cache field.
11788 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11789 * w32term.h (struct w32_display_info): Remove image_cache field.
11790 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11791 * macterm.h (struct mac_display_info): Remove image_cache field.
11792 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11793 * xterm.c (x_term_init):
11794 * w32term.c (w32_term_init):
11795 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11796 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11797 Remove declarations.
11798 (clear_image_caches, mark_image_cache): New declarations.
11799 * xfaces.c (clear_face_cache):
11800 * xdisp.c (redisplay_internal): Use clear_image_caches.
11801 * image.c (clear_image_cache): Don't check that a frame is on
11802 a window-system before checking if it shares the same cache.
11803 (clear_image_caches): New function.
11804 (Fclear_image_cache): Use it.
11805 (mark_image): Move from allo.c.
11806 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11807 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11808 (mark_object): Don't call mark_image_cache for frames.
11809 (mark_terminals): Call mark_image_cache.
11810
11811 * lisp.h (Fdelete_terminal): Declare.
11812
11813 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11814 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11815 wrong_type_argument.
11816
118172008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11818
11819 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11820 malayalam.el, and tamil.el. Add sinhala.el.
11821
118222008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11823
11824 * xterm.c (x_connection_closed): Consolidate identical tests.
11825 (x_delete_terminal): Don't crash if called via x_connection_closed.
11826
118272008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11828
11829 * xdisp.c (decode_mode_spec): New arg string.
11830 (display_mode_element): Adjust for the above change.
11831
118322008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11833
11834 * callint.c (Fcall_interactively): Use AREF.
11835
118362008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11837
11838 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11839
118402008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11841
11842 * xfns.c (Fx_show_tip): Set string to " " if empty.
11843
118442008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11845
11846 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11847 with Qt.
11848
118492008-02-17 Kenichi Handa <handa@m17n.org>
11850
11851 * ftfont.c (ftfont_shape): Return Lispy number.
11852
11853 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11854 for GCs.
11855 (Finternal_set_font_selection_order): Call font_update_sort_order
11856 only when enable_font_backend is set.
11857 (realize_x_face): Set face->font_info to that of default face only
11858 when enable_font_backend is set.
11859
11860 * xdisp.c (handle_composition_prop): Set it->c to the fist
11861 character of the composed region.
11862 (fill_composite_glyph_string): Set base_face->font_info to
11863 s->font_info. Get a face for ascii from base_face->ascii_face.
11864 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11865 with a face already decided.
11866 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11867 non-negative.
11868 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11869 call font_prepare_composition unconditionally.
11870
11871 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11872
11873 * xterm.h (struct x_display_info): New member font.
11874
11875 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11876 (x_set_mouse_face_gc, x_new_font): Likewise.
11877 (x_term_init): Setup display_info->font.
11878 (x_delete_terminal): Free display_info->font.
11879
11880 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11881
11882 * ftxfont.c (ftxfont_default_fid): Delete it.
11883 (ftxfont_open): Set xfont->fid to 0.
11884 (ftxfont_end_for_frame): Clear data specific to the frame and the
11885 font-driver.
11886
11887 * xftfont.c (xftfont_default_fid): Delete it.
11888 (xftfont_open): Set xfont->fid to 0.
11889
11890 * fontset.c (FONTSET_OBJLIST): New macro.
11891 (fontset_find_font): Update font-object list of the fontset.
11892 (free_realized_fontset): New function.
11893 (free_face_fontset): Call free_realized_fontset.
11894 (Ffont_info): Call font_close_object only when enable_font_backend
11895 is set.
11896
11897 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11898 [HAVE_NTGUI]: Include w32term.h.
11899 [MAC_OS]: Include macterm.ch.
11900 (font_otf_ValueRecord): Use make_number.
11901 (font_finish_cache): Fix handling of reference count.
11902 (font_clear_cache): Update num_fonts.
11903 (font_open_entity): Update smallest_char_width and
11904 smallest_font_height of the frame.
11905 (font_close_object): Update num_fonts.
11906 (Fclear_font_cache): Fix finding the target cache data.
11907
119082008-02-16 Glenn Morris <rgm@gnu.org>
11909
11910 * fontset.c (Finternal_char_font): Fix compilation warning.
11911
119122008-02-16 Eli Zaretskii <eliz@gnu.org>
11913
11914 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11915 instead of char arrays. Enlarge the size of array passed to
11916 get_token_information.
11917
11918 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11919 warnings.
11920
119212008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11922
11923 * .gdbinit: Don't set `args', it breaks gdb --args.
11924
119252008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11926
11927 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11928 within a narrowed buffer.
11929
119302008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11931
11932 * coding.c (decode_coding_object, encode_coding_object):
11933 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11934
119352008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11936
11937 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11938 hardcoding 1.
11939 (detect_coding_system):
11940 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11941 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11942 * insdel.c (insert_from_gap):
11943 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11944 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11945 (string_to_multibyte):
11946 * character.c (chars_in_text, multibyte_chars_in_text):
11947 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11948
11949 * character.h (FETCH_STRING_CHAR_ADVANCE)
11950 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11951 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11952 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11953
11954 * casefiddle.c (casify_region): Only call after-change and composition
11955 functions on the part of the region that was changed.
11956
11957 * keyboard.c (read_avail_input):
11958 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11959
119602008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11961
11962 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11963 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11964
119652008-02-11 Juanma Barranquero <lekktu@gmail.com>
11966
11967 * w32menu.c (push_submenu_start, push_submenu_end)
11968 (push_left_right_boundary, push_menu_pane, push_menu_item):
11969 * keyboard.c (read_key_sequence): Don't pass args with side effects
11970 to AREF, it fails when compiling with -DENABLE_CHECKING.
11971
119722008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11973
11974 * Makefile.in (${lispsource}international/charprop.el):
11975 Delete this target.
11976
11977 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11978 emacs-unicode-2.
11979
119802008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11981
11982 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11983
119842008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11985
11986 * frame.c (Qnoelisp): New symbol.
11987 (syms_of_frame): Initialize it.
11988 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11989 harmless Elisp code, from a strong `force' from x_connection_closed.
11990 * frame.h (Qnoelisp): Declare.
11991 * xterm.c (x_connection_closed): Pass `noelisp'.
11992
11993 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11994 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11995 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11996 rather than `int' for the type of `type'.
11997
119982008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11999
12000 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12001
12002 * Makefile.in (GNUC): Remove support for gcc-1.x.
12003
120042008-02-10 Richard Stallman <rms@gnu.org>
12005
12006 * lisp.h (ASET): Use AREF, not ASLOT.
12007
120082008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12009
12010 * lisp.h (ASET): Check bounds.
12011
120122008-02-10 Glenn Morris <rgm@gnu.org>
12013
12014 * buffer.c (mode-name): Doc fix.
12015
120162008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12017
12018 * Makefile.in:
12019 * emacs.c:
12020 * gmalloc.c:
12021 * keyboard.c:
12022 * lisp.h:
12023 * m/ibm370aix.h:
12024 * process.c:
12025 * regex.c:
12026 * s/hpux.h:
12027 * sysdep.c:
12028 * sysselect.h:
12029 * systty.h:
12030 * unexec.c:
12031 * w32term.c:
12032 * xsmfns.c:
12033 * xterm.c: Remove code that deals with obsolete variables.
12034
12035 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12036
12037 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12038 nothing else needs it anymore.
12039
120402008-02-09 Eli Zaretskii <eliz@gnu.org>
12041
12042 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12043 instead of unibyte_char_to_multibyte.
12044
120452008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12046
12047 * s/gnu-linux.h: Remove commented out code.
12048
12049 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12050
12051 * Makefile.in: Update what RMS says about using autoconf.
12052 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12053 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12054 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12055 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12056
120572008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12058
12059 * keymap.c (Fkey_description): Move side effect outside of macro call.
12060
12061 * xfaces.c (Finternal_make_lisp_face):
12062 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12063
12064 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12065 (syms_of_fontset): Use ASET.
12066
12067 * fns.c (concat): Move side effect outside of macro call.
12068 (hash_clear): Use ASET.
12069
120702008-02-08 Richard Stallman <rms@gnu.org>
12071
12072 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12073 If FORCE, and frame has a surrogate minibuffer for another frame,
12074 delete the other frame first.
12075
120762008-02-07 Timo Savola <timo.savola@iki.fi>
12077
12078 * xterm.c (x_detect_focus_change): Handle embed client message.
12079 (handle_one_xevent): Ditto.
12080 (handle_one_xevent): If embedded and we get a button press/release,
12081 request focus.
12082 (xembed_set_info, xembed_send_message): New functions.
12083 (x_make_frame_visible): Call xembed_set_info if embedded.
12084 (x_make_frame_invisible): Call xembed_set_info if embedded.
12085 (x_term_init): Initialize Xatom_XEMBED.
12086 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12087 (x_iconify_frame): Ditto.
12088
12089 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12090 (enum xembed_info, enum xembed_message, enum xembed_focus)
12091 (enum xembed_modifier, enum xembed_accelerator): New.
12092 (xembed_set_info, xembed_send_message): Declare.
12093 (FRAME_X_EMBEDDED_P): New.
12094
12095 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12096 gtk_plug_new.
12097
12098 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12099 window ID of a frame.
12100 (x_window): Reparent frame if embedded.
12101 (Fx_create_frame): Don't set border width if embedded.
12102
12103 * emacs.c (USAGE3): Add --parent-id.
12104 (standard_args): Ditto.
12105
121062008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12107
12108 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12109
121102008-02-07 Jim Meyering <meyering@redhat.com>
12111
12112 Use "do...while (0)", not "if (1)...else" in macro definitions.
12113 The latter provokes a warning from gcc about the empty else, when
12114 followed by ";". Also, without that trailing semicolon, it would
12115 silently swallow up any following statement.
12116 * syntax.h (SETUP_SYNTAX_TABLE)
12117 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12118 * buffer.h (DECODE_POSITION): Likewise.
12119 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12120 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12121 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12122 (FETCH_CHAR_ADVANCE): Likewise.
12123 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12124
121252008-02-07 Jim Meyering <meyering@redhat.com>
12126
12127 * lread.c [lint]: Don't include <sys/inode.h>.
12128
121292008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12130
12131 * xselect.c (x_handle_dnd_message):
12132 * xmenu.c (digest_single_submenu, xmenu_show):
12133 * xdisp.c (with_echo_area_buffer_unwind_data)
12134 (format_mode_line_unwind_data, unwind_format_mode_line)
12135 (display_menu_bar):
12136 * eval.c (Ffetch_bytecode):
12137 * doc.c (store_function_docstring):
12138 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12139 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12140 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12141
121422008-02-07 Kenichi Handa <handa@m17n.org>
12143
12144 * ftxfont.c (ftxfont_open): Don't set
12145 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12146
12147 * ftfont.c (ftfont_open): Fix previous change.
12148
121492008-02-06 Jason Rumney <jasonr@gnu.org>
12150
12151 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12152 Use cached metrics for ASCII characters.
12153 (w32font_open_internal): Don't set font's owning_frame.
12154 Cache metrics for ASCII characters.
12155
12156 * w32font.h (struct w32font_info): Add ascii_metrics.
12157 Remove owning_frame.
12158
121592008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12160
12161 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12162 to negative value.
12163
12164 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12165
12166 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12167
12168 * charset.c (syms_of_charset): Set QCtest and Qeq.
12169
121702008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12171
12172 * process.c (Fstart_process):
12173 * callproc.c (Fcall_process): Handle the case where
12174 Funhandled_file_name_directory returns nil.
12175
12176 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12177 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12178 * font.c (check_gstring): Use them and AREF to access the vector before
12179 we know it's really a gstring.
12180 (Ffont_shape_text): Fix typo.
46e722a9 12181 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12182
12183 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12184 Declare.
12185
12186 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12187
121882008-02-05 Jason Rumney <jasonr@gnu.org>
12189
12190 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12191 Set smallest_font_height and smallest_char_width in display info.
12192
121932008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12194
12195 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12196
121972008-02-05 Miles Bader <miles@gnu.org>
12198
12199 * xfaces.c (get_lface_attributes, merge_named_face)
12200 (lookup_named_face, lookup_derived_face, realize_named_face):
12201 Revert 2008-02-01 change by cyd@stupidchicken.com.
12202
122032008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12204
12205 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12206 fallback fonts.
12207 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12208
122092008-02-04 Jason Rumney <jasonr@gnu.org>
12210
12211 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12212 set full_name.
12213 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12214
122152008-02-03 Jason Rumney <jasonr@gnu.org>
12216
12217 * makefile.w32-in (OBJ1): Include font.o here.
12218 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12219
122202008-02-02 Jason Rumney <jasonr@gnu.org>
12221
12222 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12223
122242008-02-01 Jason Rumney <jasonr@gnu.org>
12225
12226 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12227
12228 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12229
122302008-02-01 Andreas Schwab <schwab@suse.de>
12231
12232 * Makefile.in (shortlisp, lisp): Update for rename of
12233 ../lisp/language/myanmar.el.
12234
122352008-02-01 Chong Yidong <cyd@stupidchicken.com>
12236
12237 * xfaces.c (get_lface_attributes): Delete function.
12238 (merge_named_face, lookup_named_face, lookup_derived_face)
12239 (realize_named_face): Call lface_from_face_name directly, and use
12240 the fact that merge_face_vectors does not alter its FROM argument.
12241
122422008-02-01 Jason Rumney <jasonr@gnu.org>
12243
12244 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12245 input in the default locale. Handle non-Unicode multibyte input.
12246
122472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12248
12249 * fontset.c (reorder_font_vector): Exclude nil elements from the
12250 font group. Don't try multiple fonts.
12251 (fontset_font): Adjust for the above change.
12252 (Finternal_char_font): Return nil if the found font doesn't
12253 contain the character ch.
12254
12255 * Makefile.in (lisp, shortlisp): Add cham.el.
12256
122572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12258
12259 * font.h (FONTP): Make it return 1 also for a font-object.
12260
12261 * .gdbinit (xfontset): New function.
12262
12263 * font.c (font_find_for_lface): Check if the character C is
12264 supported or not only for the first font.
12265
12266 * fontset.c (reorder_font_vector): Fix typo.
12267 (fontset_find_font): Don't add a font-spec specifying a script.
12268 Use 0 (not Qt) for the indication of empty font-group. Change the
12269 format of RFONT-DEF. Return Qt if no font in the font-group
12270 support the character.
12271 (fontset_font): Adjust for the above change. If no font was
12272 found the character, remember that.
12273 (face_for_char): Adjust for the change of RFONT-DEF.
12274 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12275 no font for the target.
12276 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12277
122782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12279
12280 * font.c (font_load_for_face): Handle the case that the font in
12281 face->lface is a string.
12282
122832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12284
12285 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12286
122872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12288
12289 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12290 Fix previous change. If the frame is not on a window system,
12291 signal an error.
12292
122932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12294
12295 * coding.c (decode_coding_object, encode_coding_object): Adjust
12296 marker positions after conversion.
12297
12298 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12299
123002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12301
12302 * font.c (font_find_for_lface): Fix the handling of the return
12303 value of font_has_char.
12304 (Ffont_shape_text): Fix previous change.
12305
12306 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12307 (fontset_ref_and_range): Delete it.
12308 (fontset_find_font): Call char_table_ref_and_range instead of
12309 FONTSET_REF_AND_RANGE.
12310 (make_fontset): Don't setup font groups of Latin here.
12311 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12312 (new_fontset_from_font): Make the specified font the default for
12313 all Latin characters.
12314
123152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12316
12317 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12318 is on a window system before accessing the fontset of the frame.
12319
123202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12321
12322 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12323
12324 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12325 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12326
12327 * font.c (Ffont_shape_text): If the font driver doesn't have a
12328 shaper function, make zero-width glyphs to have at least one-pixel
12329 width. Fix setting of `to' field of glyphs.
12330
123312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12332
12333 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12334 glyphs.
12335
12336 * font.h (struct font_driver): Improve docstring of member `shape'.
12337
123382008-02-01 Kenichi Handa <handa@m17n.org>
12339
12340 * composite.c (syms_of_composite): Fix docstring of
12341 auto-composition-function.
12342
12343 * font.h (LGLYPH_SIZE): New macro.
12344
12345 * font.c (Ffont_fill_gstring): Stop filling when a character not
12346 supported by the font is found.
12347 (Ffont_shape_text): When a shape callback function returns nil,
12348 try at most two more times with larger gstring.
12349 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12350
12351 * xdisp.c (handle_auto_composed_prop): Change the argument to
12352 auto-composition-function.
12353
12354 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12355 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12356 Lispy glyph and store it in the lgstring.
12357
12358 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12359
12360 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12361
123622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12363
12364 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12365
12366 * fontset.c (Vfont_encoding_charset_alist): New variable.
12367 (syms_of_fontset): DEFVAR it.
12368 (reorder_font_vector, fontset_find_font): Optimize for the case of
12369 no need of reordering.
12370 (face_for_char): Map the charset property by
12371 Vfont_encoding_charset_alist.
12372
123732008-02-01 Jason Rumney <jasonr@gnu.org>
12374
12375 * w32font.c (logfonts_match): Don't check adstyle here.
12376 (font_matches_spec): Check here against physical font instead.
12377 (add_font_entity_to_list): Avoid some substitutions.
12378
12379 * font.c (font_parse_fcname): Default weight and slant to normal.
12380 (font_score): Prefer normal fonts if weight or slant unspecified.
12381 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12382 match freetype scores.
12383
123842008-02-01 Jason Rumney <jasonr@gnu.org>
12385
12386 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12387 font, as it may have been deleted.
12388 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12389 most common hyphenless variation.
12390 (logfonts_match): Check generic family.
12391 (font_matches_spec): Don't check generic family here.
12392 (fill_in_logfont): Set generic family based on adstyle.
12393
12394 * w32font.h (w32font_get_cache): Update declaration.
12395
123962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12397
12398 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12399
12400 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12401 If none of the new drivers are available, call font_update_drivers
12402 with the old drivers.
12403
12404 * w32font.c (w32font_get_cache): Adjust the argument type.
12405
12406 * xfont.c (xfont_get_cache): Adjust the argument type.
12407
12408 * font.h (struct font_driver): Change argument type of get_cache.
12409
12410 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12411
12412 * font.c (Ffont_get): Fix arguments to Fassoc.
12413 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12414 (font_clear_cache): New function.
12415 (font_list_entities, font_matching_entity): Use font_get_cache.
12416 (font_update_drivers): Call font_clear_cache when finishing a driver.
12417
12418 * fontset.c (fontset_find_font): Fix previous change.
12419
124202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12421
12422 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12423 dpyinfo->font_table.
12424 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12425 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12426
12427 * font.c (font_at): Handle the case that the arg C is negative.
12428 Handle the unibyte case.
12429 (Ffont_at): Call font_at with the arg C -1.
12430
12431 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12432 the position here, and call font_at with the arg C -1.
12433 Don't check the range of the existing composition at the point.
12434
124352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12436
12437 * fontset.c (fontset_add): New args charset_id and family.
12438 Change caller.
12439 (load_font_get_repertory, fontset_find_font): Assume that
12440 font_spec is always a font-spec object.
12441 (Fset_fontset_font): Always store a font-spec object in a fontset.
12442
12443 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12444 instead of get_property_and_range.
12445
124462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12447
12448 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12449 (xftfont_open): Don't keep locking face.
12450 (xftfont_close): Don't unlock face.
12451 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12452
12453 * fontset.c (fontset_find_font): Don't prefer a font of
12454 supplementary charset.
12455
124562008-02-01 Kenichi Handa <handa@m17n.org>
12457
12458 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12459 script, langsys_tag to langsys, new member script.
12460 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12461 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12462 listing to the script specified in that property. Fix arg to
12463 OTF_check_features.
12464
124652008-02-01 Jason Rumney <jasonr@gnu.org>
12466
12467 * w32font.h: New file.
12468
12469 * w32font.c: Include it.
12470 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12471 (w32font_open): Set owning_frame.
12472 (w32font_text_extents): Use owning_frame.
12473 (struct font_callback_data): Add opentype_only field.
12474 (add_font_entity_to_list): Use it to filter fonts.
12475 Don't check against full name.
12476 (w32font_list_internal): New function.
12477 (w32font_list): Use it.
12478 (w32font_match_internal): New function.
12479 (w32font_match): Use it.
12480 (w32font_open_internal): New function.
12481 (w32font_open): Use it.
12482 (w32font_get_cache, w32font_close, w32font_has_char)
12483 (w32font_encode_char, w32font_text_extents, w32font_draw):
12484 Make non-static.
12485
12486 * makefile.w32-in (w32font.o): Depend on w32font.h.
12487
124882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12489
12490 * charset.c (Fdefine_charset_internal): Record a supplementary
12491 charset at the tail of Vcharset_order_list.
12492
12493 * font.c (Ffont_shape_text): Fix the return value.
12494
12495 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12496
12497 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12498
124992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12500
12501 * ftfont.c (struct OpenTypeSpec): New struct.
12502 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12503 (ftfont_get_open_type_spec): New function.
12504 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12505
12506 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12507
125082008-02-01 Jason Rumney <jasonr@gnu.org>
12509
12510 * w32font.c (add_font_entity_to_list): Compare only the beginning
12511 of full name.
12512
125132008-02-01 Kenichi Handa <handa@m17n.org>
12514
12515 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12516 Never return HANDLED_RECOMPUTE_PROPS.
12517
125182008-02-01 Kenichi Handa <handa@m17n.org>
12519
12520 * font.c (font_gstring_produce): Delete it.
12521
12522 * composite.h (COMPOSITION_METHOD):
12523 Handle COMPOSITION_WITH_GLYPH_STRING.
12524
125252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12526
12527 * xfont.c (Qx): Delete.
12528 (syms_of_xfont): Don't initialize Qx.
12529
12530 * composite.h (enum composition_method):
12531 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12532
125332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12534
12535 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12536 (choose_face_font): Accept new form of font-spec.
12537
12538 * frame.h (font_driver_list): Declare it unconditionally.
12539 (struct frame): Define members font_driver_list and font_data_list
12540 unconditionally.
12541
12542 * fontset.c: Include "font.h" unconditionally.
12543 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12544 (Fset_fontset_font): Accept a font-spec object.
12545
12546 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12547 PIXEL_SIZE part a wild card.
12548
12549 * dispextern.h (struct glyph_string): Define members clip and
12550 num_clips unconditionally.
12551 (struct face): Define members font_info and extra unconditionally.
12552
12553 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12554 ftfont_info only when HAVE_LIBOTF is defined.
12555
125562008-02-01 Andreas Schwab <schwab@suse.de>
12557
12558 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12559 and end.
12560
125612008-02-01 Jason Rumney <jasonr@gnu.org>
12562
12563 * w32font.c (w32font_driver): Add new fields.
12564
125652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12566
12567 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12568 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12569 (LIBES): Add @M17N_FLT_CFLAGS@.
12570
12571 * composite.c (compose_text): Don't treat the new style
12572 composition specially.
12573
12574 * emacs.c (main): Call syms_of_font unconditionally.
12575
12576 * font.h (FONT_ENTITY_NOT_LOADABLE)
12577 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12578 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12579 (struct font_driver): New member shape.
12580 (font_registry_charsets): Extern it.
12581 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12582 (font_otf_capability, font_drive_otf): Delete their externs.
12583
12584 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12585 (font_charset_alist, font_registry_charsets): Move from xfont.c
12586 and rename.
12587 (font_prop_validate_otf): New function.
12588 (font_property_table): Register it for QCotf.
12589 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12590 (font_drive_otf): Delete.
12591 (font_prepare_composition): New arg F. Adjust for the change of
12592 lispy gstring.
12593 (font_find_for_lface): New arg C.
12594 (font_load_for_face): Adjust for the change of font_find_for_lface.
12595 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12596 lispy gstring.
12597 (Ffont_shape_text): New function.
12598 (Fopen_font): If the font size is not given, use 12-pixel.
12599 (Ffont_at): New arg STRING.
12600 (syms_of_font): Initalize font_charset_alist.
12601 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12602 conditionally.
12603
12604 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12605 fonts of the same font-spec. Change the format of RFONT-DEF.
12606 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12607 Adjust for the change of RFONT-DEF.
12608 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12609
12610 * ftfont.h: New file.
12611
12612 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12613 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12614 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12615 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12616 font_otf_capability and font_drive_otf, set ftfont_shape.
12617 (ftfont_list): Adjust for the change of :otf property value.
12618 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12619 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12620 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12621 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12622 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12623 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12624
12625 * w32term.c (x_draw_composite_glyph_string_foreground):
12626 Adjust for the change of lispy gstring.
12627
12628 * xdisp.c (handle_composition_prop): Adjust for the change of
12629 lispy gstring. Call a function for auto-composition with the
12630 third arg it->window.
12631 (fill_composite_glyph_string): Adjust for the change of lispy string.
12632 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12633
12634 * xfaces.c (set_font_frame_param): Adjust for the change of
12635 font_find_for_lface.
12636
12637 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12638 (xfont_registry_charsets): Likewise. Change caller.
12639 (syms_of_xfont): Don't handle x_font_charset_alist.
12640
12641 * xftfont.c: Include "ftfont.h".
12642 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12643 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12644 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12645 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12646 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12647 Set xftfont_driver.shape to xftfont_shape.
12648
12649 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12650 the change of lispy gstring.
12651
126522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12653
12654 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12655
126562008-02-01 Jason Rumney <jasonr@gnu.org>
12657
12658 * w32font.c (w32font_draw): Fill background manually.
12659
126602008-02-01 Jason Rumney <jasonr@gnu.org>
12661
12662 * font.c (Qfontp): Remove unused symbol.
12663 (QCantialias): New symbol.
12664 (syms_of_font): Define it.
12665 (font_property_table): Set a validator for QCantialias.
12666
12667 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12668 Define if not already.
12669 (QCfamily): Share with xfaces.c.
12670 (Qstandard, Qsubpixel, Qnatural): New symbols.
12671 (syms_of_w32font): Define them. Don't define QCfamily here.
12672 (w32_antialias_type, lispy_antialias_type): New functions.
12673 (w32_enumfont_pattern_entity): New arg requested_font.
12674 Set antialias parameter if non-default was requested.
12675 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12676
126772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12678
12679 * lread.c (read1): Undo the previous change.
12680
126812008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12682
12683 * frame.c (Fdelete_frame): Call font_update_drivers only when
12684 USE_FONT_BACKEND is defined.
12685
126862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12687
12688 * font.h (struct font_bitmap): New member bits_per_pixel.
12689 (struct font_driver): New members start_for_frame and end_for_frame.
12690 (struct font_data_list): New struct.
12691 (font_put_frame_data, font_get_frame_data): Extern them.
12692
12693 * frame.h (struct frame): New member font_data_list.
12694
12695 * font.c (font_update_drivers): Call driver->start_for_frame and
12696 driver->end_for_frame at proper timings.
12697 (font_put_frame_data, font_get_frame_data): New functions.
12698 (Ffont_spec): Add usage in the docstring.
12699
12700 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12701 (Fdelete_frame): Call font_update_drivers.
12702
12703 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12704 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12705 (xftfont_get_xft_draw): New function.
12706 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12707 (xftfont_end_for_frame): New function.
12708 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12709
12710 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12711 Change argument. Cache GCs in the per-frame data.
12712 (struct ftxfont_frame_data): New struct.
12713 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12714 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12715 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12716 (ftxfont_end_for_frame): New function.
12717 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12718
12719 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12720
127212008-02-01 Kenichi Handa <handa@m17n.org>
12722
12723 * xselect.c (Vselection_coding_system)
12724 (Vnext_selection_coding_system): Delete them.
12725 (syms_of_xselect): Don't declare selection-coding-system and
12726 next-selection-coding-system. They are declared in select.el.
12727
127282008-02-01 Jason Rumney <jasonr@gnu.org>
12729
12730 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12731
12732 * w32fns.c: Include imm.h.
12733 (get_composition_string_fn, get_ime_context_fn): New optional
12734 system functions.
12735 (globals_of_w32fns): Load them from imm32.dll.
12736 (ignore_ime_char): New flag.
12737 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12738 WM_IME_ENDCOMPOSITION messages.
12739
12740 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12741 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12742
127432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12744
12745 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12746 (READCHAR_REPORT_MULTIBYTE): New macro.
12747 (readchar): New 2nd arg MULTIBYTE.
12748 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12749 Make symbol's name multibyte according to the multibyteness of the
12750 source.
12751
127522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12753
12754 * xfaces.c (face_for_overlay_string): Call lookup_face with
12755 correct arguments (fix of synching with the trunk).
12756
127572008-02-01 Kenichi Handa <handa@m17n.org>
12758
12759 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12760 (font_prop_validate_non_neg, font_prop_validate_spacing):
12761 Delete argument prop_index.
12762 (font_property_table): Change arguments to validater. Change Callers.
12763 (font_lispy_object): Delete.
12764 (font_at): Use font_find_object instead fo font_lispy_object.
12765
127662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12767
12768 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12769 and file names.
12770
127712008-02-01 Jason Rumney <jasonr@gnu.org>
12772
12773 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12774 (font_matches_spec): Remove debug output.
12775 (add_font_entity_to_list): Avoid using substituted fonts.
12776
127772008-02-01 Jason Rumney <jasonr@gnu.org>
12778
12779 * doc.c (Fsnarf_documentation):
12780 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12781
127822008-02-01 Miles Bader <miles@gnu.org>
12783
12784 * dispextern.h (struct glyph_row): Only define "clip" field if
12785 HAVE_WINDOW_SYSTEM is defined.
12786
127872008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12788
12789 Fix up multi-tty merge.
12790
12791 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12792 and indentation.
12793
12794 * xfaces.c (free_realized_face, clear_face_gcs):
12795 Include font_done_for_face in the input_blocked section, just in case.
12796
12797 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12798 (get_char_face_and_encoding): Undo last change and remove the *other*
12799 duplicate definition (i.e. keep the one that's better scoped and that
12800 includes code for the font-backend).
12801
12802 * terminal.c (create_terminal): Default keyboard_coding to
12803 `no-conversion' and terminal_coding to `undecided'.
12804
12805 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12806
12807 * fontset.c (free_realized_fontsets): Check that the table entry does
12808 contain a fontset before trying to compare it to `base'.
12809
12810 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12811 syms_of_charset, and syms_of_coding earlier because init_window_once
12812 now needs Vcoding_system_hash_table to be setup.
12813
12814 * coding.h (default_buffer_file_coding): Remove.
12815
12816 * coding.c (default_buffer_file_coding): Remove.
12817 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12818 than ->symbol, and use the terminal-local coding system.
12819 (syms_of_coding): Don't setup the coding-systems that are not
12820 terminal-local.
12821 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12822
12823 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12824 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12825
12826 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12827 in chartab.c and were re-added here by mistake.
12828 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12829
12830 * doc.c (Fsnarf_documentation):
12831 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12832 src to etc.
12833
12834 * ChangeLog.10: Add mistakenly removed entry.
12835
128362008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12837
12838 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12839
128402008-02-01 Miles Bader <miles@gnu.org>
12841
12842 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12843 Add extra args to FACE_FOR_CHAR.
12844
128452008-02-01 Kenichi Handa <handa@m17n.org>
12846
12847 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12848 in sequence.
12849
12850 * chartab.c (map_sub_char_table, map_char_table): If the range
12851 contains just one character, call the function with that character
12852 even if the depth is not 3.
12853
128542008-02-01 Jason Rumney <jasonr@gnu.org>
12855
12856 * w32font.c (w32font_text_extents): Calculate metrics for the
12857 whole string.
12858
128592008-02-01 Jason Rumney <jasonr@gnu.org>
12860
12861 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12862
128632008-02-01 Jason Rumney <jasonr@gnu.org>
12864
12865 * w32term.c (x_set_glyph_string_clipping): Use
12866 get_glyph_string_clip_rects.
12867 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12868 Adjust for the change of struct glyph_string.
12869
12870 * w32font.c (w32font_draw): Do clipping here.
12871
128722008-02-01 Kenichi Handa <handa@m17n.org>
12873
12874 * xftfont.c (xftfont_draw): Adjust for the change of struct
12875 glyph_string.
12876
12877 * xterm.c (x_set_glyph_string_clipping): Use
12878 get_glyph_string_clip_rects.
12879 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12880 Adjust for the change of struct glyph_string.
12881
12882 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12883 the resulting clip(s}.
12884 (expose_overlaps): Add arg r. Change callers. Set it to
12885 row->clip temporarily.
12886 (expose_window): Redraw rows overlapping the exposed area.
12887
12888 * dispextern.h (struct glyph_row): New member clip.
12889 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12890 clip_height, new member clip, and num_clips.
12891
128922008-02-01 Kenichi Handa <handa@m17n.org>
12893
12894 * data.c (Fchar_or_string_p): Fix docstring.
12895
128962008-02-01 Kenichi Handa <handa@m17n.org>
12897
12898 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12899 create a temporary XftDraw object.
12900
129012008-02-01 Kenichi Handa <handa@m17n.org>
12902
12903 * font.c (Ffontp): Fix docstring.
12904
12905 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12906 strong evidence of ISO-2022.
12907
129082008-02-01 Kenichi Handa <handa@m17n.org>
12909
12910 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12911 SYNTAX_ENTRY_FOLLOW_PARENT.
12912
129132008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12914
12915 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12916 its type.
12917 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12918 Update to the new type of weak_hash_tables and next_weak.
12919
12920 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12921 a plain C pointer to Lisp_Hash_Table.
12922
12923 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12924 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12925 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12926 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12927 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12928 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12929 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12930 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12931 (GC_EQ): Remove since they've been identical to their non-GC_
12932 alter-egos ever since the markbit was eradicated.
12933
12934 * alloc.c:
12935 * buffer.c:
12936 * buffer.h:
12937 * data.c:
12938 * fileio.c:
12939 * filelock.c:
12940 * fns.c:
12941 * frame.h:
12942 * lisp.h:
12943 * macterm.c:
12944 * print.c:
12945 * process.c:
12946 * w32fns.c:
12947 * w32menu.c:
12948 * w32term.c:
12949 * xfns.c:
12950 * xmenu.c:
12951 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12952
129532008-02-01 Kenichi Handa <handa@m17n.org>
12954
12955 * chartab.c (map_sub_char_table): Make it work for the top-level
12956 char-table. Fix handling of parent char-table.
12957 (map_char_table): Adjust for the above change.
12958
129592008-02-01 Jason Rumney <jasonr@gnu.org>
12960
12961 * w32font.c (Qgdi): Rename from Qw32.
12962
129632008-02-01 Jason Rumney <jasonr@gnu.org>
12964
12965 * w32bdf.c (get_quoted_string): Make function static.
12966
129672008-02-01 Kenichi Handa <handa@m17n.org>
12968
12969 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12970 bigger ascent and descent than those of the font, use them as
12971 font's ascent and descent.
12972
129732008-02-01 Kenichi Handa <handa@m17n.org>
12974
12975 * Makefile.in (${lispsource}international/charprop.el): Move this
12976 target within "#ifdef HAVE_UNIDATA" and "#endif".
12977
129782008-02-01 Kenichi Handa <handa@m17n.org>
12979
12980 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12981 (shortlisp): Add ../lisp/language/tai-viet.el.
12982
129832008-02-01 Ulrich Mueller <ulm@gentoo.org>
12984
12985 * Makefile.in (${lispsource}international/charprop.el): Depend on
12986 temacs${EXEEXT}.
12987
129882008-02-01 Jason Rumney <jasonr@gnu.org>
12989
12990 * w32font.c (w32font_close): Delete the GDI font object.
12991
12992 * w32menu.c: Include character.h.
12993
12994 * w32proc.c: Likewise.
12995
12996 * w32select.c: Likewise.
12997
12998 * makefile.w32-in (w32proc.o): Depend on character.h.
12999
130002008-02-01 Jason Rumney <jasonr@gnu.org>
13001
13002 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13003
13004 * w32menu.c (syms_of_w32menu): Likewise.
13005
13006 * w32proc.c (syms_of_ntproc): Likewise.
13007
13008 * w32select.c (syms_of_w32select): Likewise.
13009
13010 * w32term.c (syms_of_w32term): Likewise.
13011
130122008-02-01 Jason Rumney <jasonr@gnu.org>
13013
13014 * w32font.c (w32font_draw): Delete brush after using it.
13015
130162008-02-01 Jason Rumney <jasonr@gnu.org>
13017
13018 * w32font.c (w32font_open): Don't set font_idx.
13019 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13020 to font settings.
13021 (w32font_draw): Fill background explicitly.
13022
130232008-02-01 Jason Rumney <jasonr@gnu.org>
13024
13025 * w32term.c (w32_initialize): Don't call w32font_initialize.
13026
13027 * w32font.c (w32font_info): Remove subranges.
13028 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13029 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13030 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13031 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13032 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13033 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13034 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13035 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13036 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13037 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13038 New symbols.
13039 (font_callback_data): New struct.
13040 (w32font_list, w32font_match): Use it.
13041 (w32font_open): Don't populate subranges.
13042 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13043 (w32font_encode_char): Always return unicode code-point as-is.
13044 (w32font_text_extents): Supply a transformation matrix to
13045 GetGlyphOutline. Never look up by glyph index. Avoid looping
13046 twice. Use unicode version of GetTexExtentPoint32 instead of
13047 glyph index version.
13048 (set_fonts_frame): Remove.
13049 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13050 set frame parameter. Use backward compatible fake foundries.
13051 Save generic family in extra slot under QCfamily. Make width slot
13052 constant. Save QCspacing value. Save list of scripts instead of
13053 binary subranges.
13054 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13055 (add_font_entity_to_list): Use font_callback_data struct. Filter
13056 unwanted fonts.
13057 (add_one_font_entity_to_list): Use font_callback_data struct.
13058 (w32_registry): Default to iso10646_1.
13059 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13060 string font registries. Don't fill in font name if it is a generic
13061 family name, fill family instead. Use spacing, family and script
13062 extra info to fill pitch, family and charset fields.
13063 (list_all_matching_fonts): Use font_callback_data struct.
13064 (unicode_range_for_char): Remove.
13065 (font_supported_scripts): New function.
13066 (w32font_initialize): Remove.
13067 (syms_of_w32font): Update which symbols are defined.
13068
130692008-02-01 Jason Rumney <jasonr@gnu.org>
13070
13071 * font.c (font_pixel_size): Reverse assq_no_quit args.
13072
13073 * w32term.h (FONT_WIDTH): Report max width, not average.
13074 (FONT_MAX_WIDTH): Remove.
13075 (FONT_AVG_WIDTH): New macro.
13076
13077 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13078 redefinition of FONT_WIDTH.
13079
13080 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13081 (w32_cache_char_metrics): Use FONT_WIDTH.
13082
13083 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13084
130852008-02-01 Jason Rumney <jasonr@gnu.org>
13086
13087 * w32font.c (w32font_open): Make lfHeight negative.
13088
13089 * w32fns.c (x_default_font_parameter): Use new style font name.
13090 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13091
130922008-02-01 Jason Rumney <jasonr@gnu.org>
13093
13094 * w32font.c (QCsubranges): New symbol.
13095 (w32font_open, w32font_has_char): Get subranges from subproperty
13096 of extra.
13097 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13098 (syms_of_w32font): Define :subranges symbol.
13099
13100 * font.c (font_put_extra): Expose externally.
13101
13102 * font.h (font_put_extra): Move declaration from font.c.
13103
13104 * font.c (Ffont_get): Use font driver to determine otf capability.
13105 (adjust_anchor): Check if driver defines anchor_point before using.
13106
13107 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13108 (w32font_draw): Use options.
13109 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13110 Fix detection of truetype fonts.
13111 (registry_to_w32_charset): Handle charsets other than iso8859-1
13112 expressed as lisp symbols.
13113 (w32_registry): Express charset as lisp symbol.
13114 (fill_in_logfont): Reverse pixel and point height logic.
13115 Don't set width here. Set quality to default.
13116
13117 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13118 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13119
13120 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13121 Remove redundant loop and allocation.
13122
13123 * makefile.w32-in (font.o, w32font.o): New objects.
13124 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13125 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13126
13127 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13128 STORE_XCHARB a valid l-value.
13129
13130 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13131 calculations for non-Truetype fonts.
13132 (x_draw_glyph_string): Sync with xterm.c.
13133 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13134 Remove redundant code.
13135 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13136
13137 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13138 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13139
13140 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13141 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13142
13143 * w32font.c: New file for w32 font backend.
13144
131452008-02-01 Kenichi Handa <handa@m17n.org>
13146
13147 * term.c: Don't include "buffer.h" twice.
13148
131492008-02-01 Kenichi Handa <handa@m17n.org>
13150
13151 * character.c (Funibyte_string): New function.
13152 (syms_of_character): Defsubr it.
13153
131542008-02-01 Jason Rumney <jasonr@gnu.org>
13155
13156 * w32term.c [USE_FONT_BACKEND]:
13157 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13158 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13159 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13160 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13161 (x_free_frame_resources): Sync with xterm.c.
13162
131632008-02-01 Andreas Schwab <schwab@suse.de>
13164
13165 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13166 char-table size.
13167
131682008-02-01 Kenichi Handa <handa@m17n.org>
13169
13170 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13171
131722008-02-01 Kenichi Handa <handa@m17n.org>
13173
13174 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13175 font_otf_gpos, add font_drive_otf.
13176
13177 * fontset.c (fontset_find_font): Pay attention to font size
13178 specified for a font.
13179 (reorder_font_vector): Check contents of font_def.
13180
13181 * font.c (struct otf_list): Delete it.
13182 (otf_list): Make it a lisp variable.
13183 (otf_open): Use lispy otf_list.
13184 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13185 (check_otf_features): New function.
13186 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13187 New functions.
13188 (font_drive_otf): New function merging font_otf_gsub and
13189 font_otf_gpos.
13190 (font_open_for_lface): New arg spec. Change argument order.
13191 (font_load_for_face): Adjust for the change of font_open_for_lface.
13192 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13193 Ffont_otf_gpos.
13194 (syms_of_font): Staticpro otf_list. Delete defsubr of
13195 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13196
13197 * xfaces.c (set_font_frame_param): Adjust for the change of
13198 font_open_for_lface.
13199
13200 * font.h (font_open_for_lface): Adjust prototype.
13201 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13202 member otf_drive.
13203 (font_otf_gsub, font_otf_gpos): Delete externs.
13204 (font_drive_otf): Extern it.
13205
132062008-02-01 Kenichi Handa <handa@m17n.org>
13207
13208 * font.c (font_at): If the window W is not on a window system,
13209 return Qnil.
13210
13211 * coding.c (produce_chars, encode_coding): Don't call
13212 insert_from_gap if no characters to produce.
13213
132142008-02-01 Kenichi Handa <handa@m17n.org>
13215
13216 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13217 Fclear_face_cache.
13218
13219 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13220
132212008-02-01 Miles Bader <miles@gnu.org>
13222
13223 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13224 Parse "--disable-font-backend" option.
13225 (standard_args): Add "--disable-font-backend" option.
13226
132272008-02-01 Kenichi Handa <handa@m17n.org>
13228
13229 * fontset.c (fontset_find_font): New function.
13230 (fontset_font): Use fontset_find_font.
13231 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13232 Register the specified font for all Latin characters.
13233 (new_fontset_from_font): Register the specified font for all Latin
13234 characters.
13235 (dump_fontset): For a realized fontset, include the base fontset
13236 name in the returned vector.
13237
132382008-02-01 Kenichi Handa <handa@m17n.org>
13239
13240 * character.h (CHAR_STRING): Cast C to unsigned on calling
13241 char_string.
13242
13243 * character.c (char_string): Type of arg C changed to unsigned.
13244 Signal an error if C is an invalid character code.
13245
13246 * editfns.c (general_insert_function, Fchar_to_string):
13247 Use CHARACTERP, not INTEGERP.
13248
132492008-02-01 Kenichi Handa <handa@m17n.org>
13250
13251 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13252 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13253
13254 * regex.c (analyse_first): Fix for multibyte characters in "case
13255 charset:" and "case categoryspec:".
13256
132572008-02-01 Andreas Schwab <schwab@suse.de>
13258
13259 * Makefile.in (LIBES): Move standard libraries to the end.
13260
132612008-02-01 Kenichi Handa <handa@m17n.org>
13262
13263 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13264 nonzero, don't shrink the buffer nextb.
13265
13266 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13267
13268 * coding.c (coding_alloc_by_making_gap): New arg offset.
13269 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13270 offset.
13271 (decode_coding_iso_2022): Update coding->safe_charsets.
13272 (decode_coding_gap): Temporarily set
13273 current_buffer->text->inhibit_shrinking to 1.
13274
132752008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13278 indexing into elements of s->cmp and s->char2b.
13279
132802008-02-01 Juanma Barranquero <lekktu@gmail.com>
13281
13282 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13283
132842008-02-01 Kenichi Handa <handa@m17n.org>
13285
13286 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13287 target_multibyte instead of multibyte.
13288 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13289 (bcmp_translate): Change the argument name from multibyte to
13290 target_multibyte.
13291
132922008-02-01 Kenichi Handa <handa@m17n.org>
13293
13294 These changes are to compile a regexp into a pattern that can be
13295 used both for multibyte and unibyte targets.
13296
13297 * Makefile.in (search.o): Depend on charset.h.
13298
13299 * character.c (multibyte_char_to_unibyte_safe): New function.
13300
13301 * search.c: Include "charset.h".
13302 (compile_pattern_1): Delete argument multibyte. Don't set
13303 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13304 (compile_pattern): Don't compare cp->buf.target_multibyte.
13305 Compare cp->buf.charset_unibyte.
13306 (compile_pattern): Set cp->buf.target_multibyte.
13307
13308 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13309
13310 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13311
13312 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13313 multibyte. Change callers.
13314 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13315 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13316 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13317 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13318 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13319 (regex_compile): Make the compiled pattern usable both for
13320 multibyte and unibyte targets.
13321 (analyse_first): Make the fastmap usable both for multibyte and
13322 unibyte targets.
13323 (TRANSLATE_VIA_MULTIBYTE): Delete.
13324 (re_match_2_internal): Pay attention to the case that the
13325 multibyteness of bufp and target may be different.
13326
133272008-02-01 Kenichi Handa <handa@m17n.org>
13328
13329 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13330 empty box occupy at least one column width.
13331
133322008-02-01 Miles Bader <miles@gnu.org>
13333
13334 * Makefile.in: Remove redundant HAVE_XFT clause.
13335
133362008-02-01 Kenichi Handa <handa@m17n.org>
13337
13338 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13339
133402008-02-01 Kenichi Handa <handa@m17n.org>
13341
13342 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13343 being nil.
13344
133452008-02-01 Kenichi Handa <handa@m17n.org>
13346
13347 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13348
133492008-02-01 Kenichi Handa <handa@m17n.org>
13350
13351 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13352
133532008-02-01 Kenichi Handa <handa@m17n.org>
13354
13355 * search.c (simple_search): Fix previous change.
13356
133572008-02-01 Kenichi Handa <handa@m17n.org>
13358
13359 * xftfont.c (ftfont_font_format): Extern declaration.
13360
13361 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13362
13363 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13364 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13365
13366 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13367 (ftfont_font_format): Fix previous change.
13368
13369 * font.h (Ffont_xlfd_name): EXFUN it.
13370
13371 * font.c (font_parse_xlfd): Fix the array size of `f'.
13372 (register_font_driver): Use EQ to compare driver->type.
13373
13374 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13375 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13376 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13377
133782008-02-01 Kenichi Handa <handa@m17n.org>
13379
13380 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13381 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13382
133832008-02-01 Kenichi Handa <handa@m17n.org>
13384
13385 * xfont.c (xfont_open): Set font->format.
13386
13387 * xftfont.c (xftfont_open): Set font->format.
13388
13389 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13390 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13391 (ftfont_open): Set font->format.
13392 (ftfont_font_format): New function.
13393
13394 * font.h (struct font): New member format.
13395
13396 * font.c (Qopentype): New variable.
13397 (syms_of_font): Defsym it.
13398 (Fquery_font): Change the format of the last element of the return
13399 value.
13400
134012008-02-01 Kenichi Handa <handa@m17n.org>
13402
13403 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13404 last resort.
13405
134062008-02-01 Kenichi Handa <handa@m17n.org>
13407
13408 * coding.c (detect_coding_charset): Fix detection of multi-byte
13409 charset.
13410
134112008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13412
13413 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13414
134152008-02-01 Kenichi Handa <handa@m17n.org>
13416
13417 * xdisp.c (get_next_display_element): Set it->face_id for the
13418 first component of a composition.
13419 (x_produce_glyphs): Check if the font is changed or not for composition.
13420
134212008-02-01 Kenichi Handa <handa@m17n.org>
13422
13423 * fontset.c (Qlatin): New variable.
13424 (syms_of_fontset): Define it as a lisp symbol.
13425 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13426
134272008-02-01 Kenichi Handa <handa@m17n.org>
13428
13429 * font.c (font_unparse_fcname): Pay attention to the case that
13430 some of font property is a null string.
13431
134322008-02-01 Kenichi Handa <handa@m17n.org>
13433
13434 * term.c: Include "composite.h".
13435 (encode_terminal_code): Output all components of composition.
13436 Check the size of encode_terminal_src.
13437 (produce_glyphs): For composition, call produce_composite_glyph.
13438 (append_composite_glyph, produce_composite_glyph): New functions.
13439
13440 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13441 is not found, get font_info from the current ascii face.
13442
134432008-02-01 Kenichi Handa <handa@m17n.org>
13444
13445 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13446 buffer-file-name to Qnil before calling insert_from_buffer.
13447
13448 * font.c (font_unparse_fcname): Pay attention to the case that
13449 foundry is a null string.
13450
134512008-02-01 Kenichi Handa <handa@m17n.org>
13452
13453 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13454
13455 * font.c (Qunicode_sip): New variable.
13456 (syms_of_font): Declare it as a Lisp symbol.
13457
13458 * font.h (Qunicode_sip): Extern it.
13459
134602008-02-01 Kenichi Handa <handa@m17n.org>
13461
13462 * composite.c (get_composition_id): Pay attention to TAB component.
13463
13464 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13465 TAB. Adjust for the change of s->char2b which always points to
13466 the first element of allocated memory.
13467
13468 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13469
13470 * xdisp.c (handle_composition_prop): Set it->c to the first
13471 non-TAB component.
13472 (fill_composite_glyph_string): Change argument.
13473 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13474 (x_produce_glyphs): Fix handling of left/right padding.
13475
134762008-02-01 Kenichi Handa <handa@m17n.org>
13477
13478 * coding.c (detect_coding_system): Fix for handling off
13479 inhibit_iso_escape_detection. Fix for the case that no coding
13480 system is defined for a specific coding category.
13481
134822008-02-01 Kenichi Handa <handa@m17n.org>
13483
13484 * font.c (font_matching_entity): Delete unused local var.
13485
13486 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13487 opening a font.
13488
13489 * fileio.c (Finsert_file_contents): On recovering a file, assume
13490 Unix-like eol.
13491 (choose_write_coding_system): On auto-saving a file, force
13492 Unix-like eol.
13493
13494 * coding.c (setup_coding_system): Fix setting of
13495 coding->common_flags based on eol_type.
13496 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13497 inherit from it.
13498
134992008-02-01 Kenichi Handa <handa@m17n.org>
13500
13501 * alloc.c (NSTATICS): Increas to 0x600.
13502
135032008-02-01 Kenichi Handa <handa@m17n.org>
13504
13505 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13506 (ftfont_list): Don't check :name property.
13507 (ftfont_match): New function.
13508 (ftfont_pattern_entity): If the pattern doesn't contain
13509 FC_SPACING, don't assume FC_MONO.
13510
13511 * font.h (struct font_driver): New member `match'.
13512 (font_update_drivers): Adjust prototype.
13513
13514 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13515 property of FONT.
13516 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13517 them unconditionally.
13518 (font_matching_entity): New function.
13519 (font_open_by_name): Try font_matching_entity if exact match is
13520 not found.
13521 (font_update_drivers): Delete the arg FONT. Return a list of
13522 actually used backends. Don't free faces, font caches here.
13523 Don't store data in frame parameters. Don't call x_set_font.
13524 (Ffont_spec): Store :name property as is.
13525 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13526 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13527 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13528 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13529 Call font->driver->otf_gsub instead of font_otf_gsub.
13530
13531 * frame.c (x_set_font_backend): Do more works that were done in
13532 font_update_drivers before.
13533
13534 * xfont.c (xfont_match): New function.
13535 (xfont_driver): Set xfont_driver.match to xfont_match.
13536 (xfont_draw): Set font in GC if necessary.
13537
13538 * ftxfont.c (ftxfont_match): New function.
13539 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13540
13541 * xftfont.c (xftfont_match): New function.
13542 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13543
135442008-02-01 Kenichi Handa <handa@m17n.org>
13545
13546 * font.h (struct font): New member scalable.
13547 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13548 (font_otf_gsub): Adjust prototype.
13549
13550 * font.c (font_otf_capability): Fix handling of the default langsys.
13551 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13552 Check the contents of SPEC.
13553 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13554 (check_gstring): New function.
13555 (REPLACEMENT_CHARACTER): New macro.
13556 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13557 glyph codes of GSTRING.
13558 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13559 (font_prepare_composition): Set cmp->glyph_len.
13560 (font_open_entity): Set font->scalable.
13561 (Ffont_get): Handle :otf property.
13562 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13563 functions.
13564 (Fquery_font): Use font->font.full_name.
13565 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13566 Sfont_otf_alternates.
13567
13568 * ftfont.c (ftfont_open): Set font->font.full_name and
13569 font->font.name properly. Fix calculation of font->font.height
13570 and font->min_width.
13571
13572 * ftxfont.c (ftxfont_create_gcs): New function.
13573 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13574 (ftxfont_draw_backgrond): Fix filling region.
13575 (ftxfont_default_fid): New function.
13576 (ftxfont_open): Set xfont->fid to the return value of
13577 ftxfont_default_fid.
13578 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13579 (ftxfont_done_face): Free only GCs that are created by
13580 ftxfont_create_gcs.
13581 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13582
13583 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13584 Clip to src->width, etc (not src->clip_XXX).
13585
13586 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13587 FontBackend frame parameter.
13588
135892008-02-01 Kenichi Handa <handa@m17n.org>
13590
13591 * font.h (struct font_driver_list): New member `on'.
13592 (Fclear_font_cache): EXFUN it.
13593 (font_update_drivers): Extern it.
13594
13595 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13596 (font_list_entities): Check driver_list->on.
13597 (register_font_driver): Initalize `on' member to 0.
13598 (font_update_drivers): New function.
13599 (Fclear_font_cache): Check driver_list->on.
13600
13601 * frame.h (Qfont_backend): Extern it.
13602 (x_set_font_backend): Extern it.
13603
13604 * frame.c (Qfont_backend): New variable.
13605 (frame_parms): New element for font-backend.
13606 (x_set_font_backend): New function.
13607
13608 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13609 FontBackend frame parameter.
13610 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13611 x_set_font_backend.
13612
13613 * xfont.c (xfont_list): Don't try listing by :name property if the
13614 name is not for XLFD.
13615
136162008-02-01 Kenichi Handa <handa@m17n.org>
13617
13618 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13619 (LGLYPH_SET_TO): New macros.
13620 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13621 element of G is vector or not.
13622 (font_at): Extern it.
13623
13624 * font.c: Include window.h.
13625 (font_lispy_object): New function.
13626 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13627 end of valid glyph.
13628 (font_close_object): Fix getting (struct font *).
13629 (font_at): New function.
13630 (Ffont_get): If FONT is a font-object, get entity from it.
13631 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13632 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13633 range check.
13634 (Ffont_at): New function.
13635 (syms_of_font): Defsubr Sfont_at.
13636
13637 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13638 before the entry for Qcomposition.
13639 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13640 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13641 the font in gstring.
13642 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13643 LGLYPH_FORM (g) to detect the end of valid glyph.
13644 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13645 we are composing with gstring.
13646
13647 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13648 Check if adjustment is vector or not.
13649
13650 * Makefile.in (font.o): Make it depends on window.h.
13651
136522008-02-01 Kenichi Handa <handa@m17n.org>
13653
13654 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13655 adjustment is vector or not.
13656
136572008-02-01 Miles Bader <miles@gnu.org>
13658
13659 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13660
136612008-02-01 Kenichi Handa <handa@m17n.org>
13662
13663 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13664 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13665 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13666
13667 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13668 (DEVICE_DELTA): Fix typo.
13669 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13670 LGLYPH format.
13671
13672 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13673 the change of LGLYPH format.
13674
136752008-02-01 Kenichi Handa <handa@m17n.org>
13676
13677 * ftfont.c (ftfont_list): Fix typo.
13678 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13679
136802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13681
13682 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13683
13684 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13685 xftface_info is non-NULL.
13686
136872008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13688
13689 * ftfont.c (ftfont_list): Move misplaced #endif.
13690
136912008-02-01 Kenichi Handa <handa@m17n.org>
13692
13693 * ftfont.c (ftfont_list): Pay attention to the case that
13694 FC_CAPABILITY is not defined.
13695
136962008-02-01 Kenichi Handa <handa@m17n.org>
13697
13698 * xftfont.c (xftfont_open): Set charset related members to -1.
13699
13700 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13701 QCname.
13702 (ftfont_open): Set charset related members to -1.
13703
13704 * fontset.c (Votf_script_alist): New variable.
13705 (syms_of_fontset): Initialize it.
13706 (fontset_font): Delete unused variable.
13707
13708 * fontset.h (Votf_script_alist): Extern it.
13709
13710 * font.c (font_find_for_lface): Optimize code.
13711
13712 * font.h (font_close_object, font_merge_old_spec): Extern them.
13713
137142008-02-01 Kenichi Handa <handa@m17n.org>
13715
13716 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13717 (syms_of_font): Initialize them.
13718 (font_pixel_size): Allow float value in dpi.
13719 (font_prop_validate_type): Delete.
13720 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13721 Change caller.
13722 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13723 (font_prop_validate_extra): Delete.
13724 (font_prop_validate_spacing): New function.
13725 (font_property_table): Add elements for all known properties.
13726 (get_font_prop_index): Rename from check_font_prop_name. New
13727 argument FROM. Change caller.
13728 (font_prop_validate): Validate all known properties.
13729 (font_put_extra): Delete argument force. Change caller.
13730 (font_expand_wildcards): Make it static. Fix the way of shrinking
13731 the possible range.
13732 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13733 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13734 Change caller.
13735 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13736 (font_parse_fcname): Delete argument merge. Fix parsing of point
13737 size. Don't validate properties values here. Change caller.
13738 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13739 (font_open_by_name): Delete unused variable.
13740 (Ffont_spec): Likewise. Validate property values.
13741 (Ffont_match_p): New function.
13742
13743 * font.h (QCscalable): Extern it.
13744 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13745
13746 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13747
13748 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13749 (xfont_list_pattern): New function.
13750 (xfont_list): Use xfont_list_pattern.
13751
137522008-02-01 Kenichi Handa <handa@m17n.org>
13753
13754 * font.h (Flist_fonts): EXFUN it.
13755
137562008-02-01 Jason Rumney <jasonr@gnu.org>
13757
13758 * w32term.c (w32_initialize): Add back smoothing_type and
13759 smoothing_enabled definitions.
13760
137612008-02-01 Kenichi Handa <handa@m17n.org>
13762
13763 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13764 s->face->font on determining underline position.
13765
137662008-02-01 Kenichi Handa <handa@m17n.org>
13767
13768 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13769 (font_has_char): Accept font-object too.
13770 (font_find_for_lface): Try at first with a size specified in face.
13771
137722008-02-01 Kenichi Handa <handa@m17n.org>
13773
13774 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13775 font_open_by_name.
13776
137772008-02-01 Kenichi Handa <handa@m17n.org>
13778
13779 * font.h (QCspacing, QCdpi): Extern them.
13780 (enum font_spacing): New enum.
13781 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13782
13783 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13784 (QCspacing, QCdpi): New variables.
13785 (syms_of_font): Initialize them.
13786 (font_pixel_size): New function.
13787 (font_put_extra): New function.
13788 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13789 in FONT_EXTRA.
13790 (font_parse_fcname): Handle enumerated values (e.g. bold).
13791 Fix handling font size. Add QCname property that contains only
13792 unknown properties.
13793 (font_score): Change argument. Change caller. Pay attention to
13794 FONT_PIXEL_SIZE_QUANTUM.
13795 (font_sort_entites, font_list_entities, font_find_for_lface)
13796 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13797 (Ffont_spec): Add QCname property that contains only unknown properties.
13798
13799 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13800 include weight in listing pattern, instead check weight of each
13801 listed font. Don't include scalable in pattern. Pay attention to
13802 FONT_PIXEL_SIZE_QUANTUM.
13803
138042008-02-01 Kenichi Handa <handa@m17n.org>
13805
13806 * font.c (font_parse_fcname): Fix parsing of point-size.
13807 (font_unparse_fcname): Produce symbolic names for style properties.
13808 (font_list_entities): Handle float size correctly.
13809 (font_open_by_name): Prefer `normal' property values if the name
13810 doesn't specify them.
13811
13812 * fontset.c (Finternal_char_font): Use font_get_name, not
13813 Ffont_xlfd_name.
13814
13815 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13816 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13817 pattern. Don't force scalable.
13818
13819 * xftfont.c (xftfont_open): For generating a name, start from
13820 96-byte buffer.
13821
138222008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13823
13824 * frame.h (x_new_fontset2): Fix prototype.
13825
138262008-02-01 Kenichi Handa <handa@m17n.org>
13827
13828 * font.h (struct font_driver): Delete member parse_name.
13829 (font_match_p, font_get_spec, font_parse_fcname)
13830 (font_unparse_fcname): Extern them.
13831 (font_get_name): Adjust prototype.
13832
13833 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13834 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13835 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13836 unnecessary checks for weight, slant, and swidth.
13837 (font_parse_fcname): New function.
13838 (font_unparse_fcname): New function.
13839 (font_parse_name): New function.
13840 (font_match_p): New function.
13841 (font_get_name): Change return value to Lisp string.
13842 (font_get_spec): New function.
13843 (Qunspecified, Qignore_defface): Don't extern them.
13844 (font_find_for_lface): Assume that LFACE is fully specified.
13845 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13846 object, use it for FACE.
13847 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13848 driver->parse_name.
13849 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13850
13851 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13852 prototype.
13853
13854 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13855 argument F. Don't call Fnew_fontset. Instead, directly call
13856 make_fontset.
13857
13858 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13859
13860 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13861 of x_new_fontset2.
13862
13863 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13864 (Qsans__serif): New variables.
13865 (ftfont_generic_family_list): New variable.
13866 (syms_of_ftfont): Initialize the above variables.
13867 (ftfont_pattern_entity): Delete argument NAME.
13868 (ftfont_list_generic_family): New function.
13869 (ftfont_parse_name): Delete this function.
13870 (ftfont_list): Try generic family only when FcFontList found no font.
13871 (ftfont_list_family): Fix args to FcObjectSetBuild.
13872
13873 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13874 object in attrs[LFACE_FONT_INDEX].
13875 (set_lface_from_font_name): Cancel all changes for font-backend.
13876 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13877 function.
13878 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13879 font object in QCfont attribute.
13880 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13881 (realize_default_face) [USE_FONT_BACKEND]: Call
13882 set_lface_from_font_and_fontset.
13883
13884 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13885 "fixed", and signal error here if no suitable font was found.
13886
13887 * xfont.c (xfont_parse_name): Delete this function.
13888
13889 * xftfont.c (xftfont_open): Change coding style of error
13890 handling. Generate fontconfig's fontname pattern.
13891
13892 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13893 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13894
13895 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13896 Both args FONTSET and FONT_OBJECT must be existing ones.
13897
138982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13899
13900 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13901
139022008-02-01 Kenichi Handa <handa@m17n.org>
13903
13904 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13905
13906 * font.h (struct font): Fix typo.
13907
13908 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13909 XLFD_XXX_INDEX.
13910 (enum xlfd_field_mask): New enum.
13911 (intern_font_field): Changed argument. Change caller. If digits
13912 are followed by non-digits, return a symbol.
13913 (font_expand_wildcards): New function.
13914 (font_parse_xlfd): Fix wildcard handling.
13915 (Ffont_spec): If :name is specified, reflect the info in the other
13916 properties.
13917
13918 * ftfont.c (ftfont_pattern_entity): Fix typo.
13919 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13920 locale.
13921
139222008-02-01 Kenichi Handa <handa@m17n.org>
13923
13924 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13925
13926 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13927 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13928 registry doesn't specify encoding part.
13929 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13930 (font_open_by_name): At first try parsing the name.
13931 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13932 as Lisp symbols.
13933
13934 * fontset.c (reorder_font_vector): Pay attention to the case that
13935 the 3rd element of font_def is nil.
13936 (fontset_font): For the default fontset, append one more fontset
13937 elements for a script-based font specification. Don't add script
13938 attribute on finding a font.
13939 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13940 font name.
13941 (fontset_ascii_font): If a font can't be opened, return nil.
13942
13943 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13944 (ftfont_pattern_entity): New function.
13945 (ftfont_get_cache): Assume that freetype_font_cache is already
13946 initialized.
13947 (ftfont_list): Handle the case that a file is specified in font
13948 name. Use ftfont_pattern_entity to generate entities.
13949 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13950 (syms_of_ftfont): Initialize freetype_font_cache.
13951
13952 * xftfont.c (xftfont_open): Make the font name fontconfig's
13953 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13954 (xftfont_close): Free font->font.name if not NULL.
13955
13956 * xfont.c (xfont_list): If script is specified for a font, return
13957 null_vector.
13958 (xfont_list_family): Declare argument type.
13959
13960 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13961 name, set LFACE_FONT (lface) to nil.
13962
13963 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13964 return Qnil.
13965
139662008-02-01 Kenichi Handa <handa@m17n.org>
13967
13968 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13969 (standard_args): Add "-enable-font-backend".
13970
139712008-02-01 Kenichi Handa <handa@m17n.org>
13972
13973 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13974 (struct xftdraw_list, xftdraw_list): Delete them.
13975 (register_xftdraw, check_xftdraw): Delete them.
13976 (xftfont_prepare_face): Don't call register_xftdraw.
13977 (xftfont_done_face): Don't call check_xftdraw.
13978 (xftfont_draw): Get background color only when with_background is
13979 nonzero.
13980
13981 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13982
139832008-02-01 Kenichi Handa <handa@m17n.org>
13984
13985 These changes are for the new font handling codes.
13986
13987 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13988 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13989 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13990 (FONTSRC, FONTOBJ): New variables.
13991 (obj): Add $(FONTOBJ).
13992 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13993 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13994 @LIBOTF_LIBS@.
13995 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13996 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13997
13998 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13999
14000 * character.h (Vscript_representative_chars): Extern it.
14001
14002 * character.c (Vscript_representative_chars): New variable.
14003 (syms_of_character): Declare it as a Lisp variable.
14004
14005 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14006 enable_font_backend is nonzero, accept the composition method
14007 COMPOSITION_WITH_GLYPH_STRING.
14008
14009 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14010 enumeration COMPOSITION_WITH_GLYPH_STRING.
14011
14012 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14013 members clip_x, clip_y, clip_width, and clip_height.
14014 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14015
14016 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14017 --enable-font-backend. Call syms_of_font.
14018
14019 * fns.c (assoc_no_quit): New function.
14020
14021 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14022 (face_for_font, new_fontset_from_font)
14023 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14024
14025 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14026 (fontset_font, fontset_ascii, face_for_char)
14027 (make_fontset_for_ascii_face, Ffont_info)
14028 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14029 is nonzero, use font-backend mechanism.
14030 (find_font_encoding): Make it non-static.
14031 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14032 New functions.
14033
14034 * frame.h (struct frame): New members resx and resy.
14035 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14036 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14037
14038 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14039 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14040
14041 * lisp.h (assoc_no_quit): Extern it.
14042
14043 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14044 Through out the file, use FONT_INFO_FROM_FACE instead of
14045 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14046 rif->per_char_metric.
14047 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14048 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14049 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14050 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14051 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14052 nonzero, use font-backend mechanism.
14053 (get_per_char_metric): New function.
14054
14055 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14056 (set_lface_from_font_name)
14057 (set_font_frame_param, free_realized_face)
14058 (prepare_face_for_display, clear_face_gcs)
14059 (Finternal_set_font_selection_order, realize_x_face)
14060 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14061 font-backend mechanism.
14062 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14063 (load_face_font) [USE_FONT_BACKEND]: Abort.
14064 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14065 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14066
14067 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14068 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14069 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14070 nonzero, register all available font drivers. Call
14071 x_default_font_parameter for deciding a font.
14072 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14073
14074 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14075 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14076 (x_set_glyph_string_clipping_exactly)
14077 (x_compute_glyph_string_overhangs)
14078 (x_draw_glyph_string_foreground)
14079 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14080 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14081 enable_font_backend is nonzero, use font-backend mechanism.
14082 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14083
140842008-02-01 Kenichi Handa <handa@m17n.org>
14085
14086 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14087 system_eol_type.
14088 (syms_of_coding): Initialize system_eol_type.
14089
14090 * process.c (Fset_process_coding_system): Inherit system's eol
14091 format if necessary.
14092
140932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14094
14095 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14096
140972008-02-01 Kenichi Handa <handa@m17n.org>
14098
14099 * coding.c (decode_eol): Pay attention to buffer relocation in
14100 del_range_2.
14101 (decode_coding): Call decode_eol before restoring undo_list.
14102
141032008-02-01 Kenichi Handa <handa@m17n.org>
14104
14105 * charset.c (Fdefine_charset_internal): Fix setting of
14106 emacs_mule_bytes.
14107
141082008-02-01 Kenichi Handa <handa@m17n.org>
14109
14110 * keyboard.c (read_char): Check if C is a character or not before
14111 looking up Vkeyboard_translate_table.
14112
141132008-02-01 Kenichi Handa <handa@m17n.org>
14114
14115 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14116 condition to terminate the loop.
14117
141182008-02-01 Kenichi Handa <handa@m17n.org>
14119
14120 * coding.c (produce_composition): Compare charbuf[i] instead of
14121 args[i] against 0.
14122 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14123
141242008-02-01 Kenichi Handa <handa@m17n.org>
14125
14126 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14127 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14128 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14129 detect_coding.
14130 (emacs_mule_char): Handle old style (Emacs 20) component character
14131 of a composition.
14132 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14133 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14134 composition rule.
14135 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14136
141372008-02-01 Kenichi Handa <handa@m17n.org>
14138
14139 * coding.c (encode_coding_ccl): Allocate destination dynamically
14140 when necessary.
14141
141422008-02-01 Kenichi Handa <handa@m17n.org>
14143
14144 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14145 the loop. When quitted, show a proper error message.
14146
141472008-02-01 Kenichi Handa <handa@m17n.org>
14148
14149 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14150 src->clip_head and src->clip_tail temporarily instead of src->hl.
14151
14152 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14153 character sequence.
14154 (Fccl_execute_on_string): Use ASET, not XSET.
14155
141562008-02-01 Kenichi Handa <handa@m17n.org>
14157
14158 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14159
141602008-02-01 Kenichi Handa <handa@m17n.org>
14161
14162 * coding.c (decode_coding): Fix the condition of terminating the
14163 decoding loop.
14164
141652008-02-01 Kenichi Handa <handa@m17n.org>
14166
14167 * data.c (Faset): On setting a character bigger than 255 in a
14168 unibyte string, signal an error instead of make the string multibyte.
14169
141702008-02-01 Kenichi Handa <handa@m17n.org>
14171
14172 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14173 made by a mapping table.
14174
141752008-02-01 Kenichi Handa <handa@m17n.org>
14176
14177 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14178 not.
14179 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14180 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14181
14182 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14183 s->face is NULL or not.
14184
141852008-02-01 Kenichi Handa <handa@m17n.org>
14186
14187 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14188 (x_draw_glyph_string): Fix drawing of right_overhang and
14189 left_overhang around/on cursor.
14190
14191 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14192
141932008-02-01 Kenichi Handa <handa@m17n.org>
14194
14195 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14196
141972008-02-01 Kenichi Handa <handa@m17n.org>
14198
14199 * coding.c (Fdefine_coding_system_internal)
14200 (Fdefine_coding_system_alias): Avoid a duplicated element in
14201 Vcoding_system_alist.
14202
142032008-02-01 Kenichi Handa <handa@m17n.org>
14204
14205 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14206
14207 * coding.c (Qcoding_system_define_form): New variable.
14208 (syms_of_coding): Intern and staticpro it.
14209 (Fcoding_system_p): Check Qcoding_system_define_form.
14210 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14211
14212 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14213 Fcoding_system_p.
14214 (CHECK_CODING_SYSTEM): If ID is not available, call
14215 Fcheck_coding_system.
14216 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14217 Try also Fcheck_coding_system.
14218
142192008-02-01 Kenichi Handa <handa@m17n.org>
14220
14221 * coding.c (code_conversion_restore): GCPRO arg.
14222
142232008-02-01 Kenichi Handa <handa@m17n.org>
14224
14225 * character.c (lisp_string_width): Check multibyteness of STRING.
14226
142272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14228
14229 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14230 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14231 (decode_mac_font_name): Use decode_coding_c_string instead of
14232 decode_coding.
14233 (x_load_font): Initialize fontp->fontset to -1. Set
14234 fontp->encoding_type.
14235
142362008-02-01 Kenichi Handa <handa@m17n.org>
14237
14238 * search.c (search_buffer): Give up BM search on case-fold-search
14239 if one of a target character has a case-equivalence of different
14240 byte length even if that target charcter is an ASCII.
14241 (simple_search): Fix calculation of byte length of matched text.
14242 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14243
142442008-02-01 Kenichi Handa <handa@m17n.org>
14245
14246 * coding.c (decode_coding): Fix handling of invalid bytes.
14247
142482008-02-01 Kenichi Handa <handa@m17n.org>
14249
14250 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14251 Unicode characters.
14252
142532008-02-01 Kenichi Handa <handa@m17n.org>
14254
14255 * coding.c (encode_coding_object): If a pre-write-conversion
14256 function makes a new buffer, kill it.
14257
142582008-02-01 Kenichi Handa <handa@m17n.org>
14259
14260 * coding.c (QCascii_compatible_p): New variable.
14261 (syms_of_coding): Initialize it.
14262 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14263 calling string_char.
14264 (record_conversion_result): Add `default:' case.
14265 (coding_charset_list): Delete unused variable `coding_type'.
14266 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14267 property in the plist of the coding system.
14268 (Fcoding_system_put): Check QCascii_compatible_p.
14269
142702008-02-01 Miles Bader <miles@gnu.org>
14271
14272 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14273 removed calculation of frame `f', as it's now used.
14274
142752008-02-01 Kenichi Handa <handa@m17n.org>
14276
14277 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14278 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14279 (UNIDATA): New variable.
14280 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14281 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14282 $(RUN_TEMACS) unconditionally.
14283
142842008-02-01 Kenichi Handa <handa@m17n.org>
14285
14286 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14287 (admindir): New variable.
14288 ($(lispsource)international/charprop.el): New target.
14289
142902008-02-01 Miles Bader <miles@gnu.org>
14291
14292 * character.c (chars-in-region): Remove obsolete function.
14293 (syms_of_character): Remove its initialization.
14294
142952008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14296
14297 * w32select.c (validate_coding_system)
14298 (setup_windows_coding_system): New functions.
14299 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14300 setup_windows_coding_system.
14301 (setup_config, Fw32_get_clipboard_data): Use
14302 validate_coding_system.
14303 (Fx_selection_exists): Move call to setup_config to a place
14304 where signals are allowed.
14305
14306 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14307 (Fcheck_coding_system): Add declarations.
14308
143092008-02-01 Kenichi Handa <handa@m17n.org>
14310
14311 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14312
143132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14314
14315 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14316 string as the second argument for x_new_fontset.
14317
143182008-02-01 Kenichi Handa <handa@m17n.org>
14319
14320 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14321 (encode_coding_object): Use safe_call instead of call2.
14322
143232008-02-01 Kenichi Handa <handa@m17n.org>
14324
14325 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14326
14327 * Makefile.in (lisp): Include charprop.el.
14328
143292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14330
14331 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14332 Not sure if it's unnecessary.
14333
143342008-02-01 Steven Tamm <steventamm@mac.com>
14335
14336 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14337 some possibly unnecessary fontset checking code that crashed
14338 when creating a new frame.
14339
143402008-02-01 Kenichi Handa <handa@m17n.org>
14341
14342 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14343 lookup_face.
14344
14345 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14346
14347 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14348
143492008-02-01 Kenichi Handa <handa@m17n.org>
14350
14351 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14352 (coding_charset_list): New function.
14353
14354 * coding.h (coding_charset_list): Extern it.
14355
143562008-02-01 Kenichi Handa <handa@m17n.org>
14357
14358 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14359 concatenation of family and registry.
14360
143612008-02-01 Kenichi Handa <handa@m17n.org>
14362
14363 * character.h (BYTE8_STRING): Fix typo.
14364
14365 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14366 string to multibyte (sync to HEAD).
14367
14368 * casefiddle.c (casify_region): Handle changes in byte-length
14369 using replace_range_2 (sync to HEAD).
14370
143712008-02-01 Andreas Schwab <schwab@suse.de>
14372
14373 * chartab.c (map_char_table): GCPRO table and arg.
14374
143752008-02-01 Kenichi Handa <handa@m17n.org>
14376
14377 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14378 already at limit.
14379
143802008-02-01 Kenichi Handa <handa@m17n.org>
14381
14382 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14383 instead of fast_c_string_match_ignore_case.
14384 (find_font_encoding): Change argument to Lisp_Object. Use
14385 fast_string_match_ignore_case instead of
14386 fast_c_string_match_ignore_case. Change caller.
14387
143882008-02-01 Kenichi Handa <handa@m17n.org>
14389
14390 * xdisp.c (get_next_display_element): In unibyte case, decide to
14391 display in octal form by checking a character by
14392 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14393
14394 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14395
14396 * character.c (unibyte_has_multibyte_table): New variable.
14397
14398 * character.h (unibyte_has_multibyte_table): Extern it.
14399 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14400
144012008-02-01 Kenichi Handa <handa@m17n.org>
14402
14403 * coding.c (encode_coding_iso_2022): Fix handling of charset
14404 annotation.
14405
144062008-02-01 Kenichi Handa <handa@m17n.org>
14407
14408 * coding.c (setup_coding_system): If coding_system is nil, use
14409 Qundecided.
14410 (Fterminal_coding_system): Return nil if terminal coding system is
14411 `undecided'.
14412 (syms_of_coding): Define coding-system `undecided' here. Setup
14413 terminal_coding as `undecided'.
14414
144152008-02-01 Kenichi Handa <handa@m17n.org>
14416
14417 * xdisp.c (message_dolog, set_message_1): Call
14418 unibyte_char_to_multibyte with arg type int.
14419
14420 * lread.c (read1): Fix reading of a char-table.
14421
14422 * print.c (print_object): Include sub char-table in circularities
14423 detection.
14424
144252008-02-01 Kenichi Handa <handa@m17n.org>
14426
14427 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14428 Append the found sequences in car of ARGS instead of prepending.
14429
144302008-02-01 Kenichi Handa <handa@m17n.org>
14431
14432 * fileio.c (report_file_error): Make a unibyte string from
14433 strerror (errorno).
14434 (Fsubstitute_in_file_name): Fix the arg to
14435 unibyte_char_to_multibyte. It is evaluated twice.
14436
144372008-02-01 Kenichi Handa <handa@m17n.org>
14438
14439 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14440
144412008-02-01 Kenichi Handa <handa@m17n.org>
14442
14443 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14444 BOM is not found.
14445 (detect_coding, detect_coding_system): Optimization for ISO-2022
14446 when no 8-bit data is found.
14447
144482008-02-01 Jason Rumney <jasonr@gnu.org>
14449
14450 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14451
144522008-02-01 Kenichi Handa <handa@m17n.org>
14453
14454 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14455 CHARS.
14456
144572008-02-01 Steven Tamm <steventamm@mac.com>
14458
14459 * macterm.c (mac_encode_char): Add charset argument and update
14460 to use encoding_type.
14461 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14462 switch to pure fontset.
14463 (decode_mac_font_name): Temporarily remove decoding.
14464 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14465 (x_load_font): Temporarily remove encoding.
14466
144672008-02-01 Kenichi Handa <handa@m17n.org>
14468
14469 * xfaces.c (Fface_font): If frame is not on a window system,
14470 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14471 refer to face->font.
14472 (split_font_name_into_vector, build_font_name_from_vector)
14473 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14474 when HAVE_WINDOW_SYSTEM is defined.
14475
144762008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14479 (x_produce_glyphs): Fix setting of members of cmp in case
14480 cmp->glyph_len is zero.
14481
14482 * fontset.c (Fset_fontset_font): Fix docstring.
14483 (Ffontset_info): Make it backward compatible. New arg ALL.
14484
144852008-02-01 Kim F. Storm <storm@cua.dk>
14486
14487 * process.c (read_process_output): Grow decoding_buf when needed;
14488 this could cause a crash in allocate_string and compact_small_strings.
14489
144902008-02-01 Kenichi Handa <handa@m17n.org>
14491
14492 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14493
144942008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * coding.c (setup_coding_system): Set coding->common_flags
14497 correctly for raw-text.
14498 (consume_chars): On encoding unibyte text by raw-text, don't check
14499 multibyte form.
14500 (encode_coding): On encoding by raw-text, never use translation tables.
14501
14502 * fileio.c (e_write): Short cut for the case of no encoding.
14503
145042008-02-01 Kenichi Handa <handa@m17n.org>
14505
14506 * coding.c (detect_coding, detect_coding_system): Delete unused
14507 variables.
14508
145092008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14512 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14513
145142008-02-01 Kenichi Handa <handa@m17n.org>
14515
14516 * coding.c (Ffind_coding_systems_region_internal): Include
14517 raw-text and no-conversion in the result.
14518
145192008-02-01 Kenichi Handa <handa@m17n.org>
14520
14521 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14522 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14523 FONT_DEF.
14524 (font_def_arg, add_arg, from_arg, to_arg): New args.
14525 (set_fontset_font): Change argument.
14526 (Fset_fontset_font): Fix for the case that TARGET is a script
14527 name and charset name.
14528 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14529
145302008-02-01 Kenichi Handa <handa@m17n.org>
14531
14532 * fontset.c (fontset_font): Rename from fontset_face. Change return
14533 value.
14534 (face_suitable_for_char_p, face_for_char): Adjust for the change
14535 of fontset_font.
14536 (make_fontset_for_ascii_face): Fix setting of the fontset element
14537 for ASCII.
14538 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14539 to get a font name.
14540 (Ffontset_info): Adjust for the change of fontset_font.
14541
14542 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14543
14544 * character.h (LEADING_CODE_LATIN_1_MIN)
14545 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14546
145472008-02-01 Kenichi Handa <handa@m17n.org>
14548
14549 * editfns.c (check_translation): New function.
14550 (Ftranslate_region_internal): Handle M:N mapping.
14551
145522008-02-01 Kenichi Handa <handa@m17n.org>
14553
14554 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14555
145562008-02-01 Kenichi Handa <handa@m17n.org>
14557
14558 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14559 goto invalid_code.
14560 (decode_coding_iso_2022): Fix handling of invalid designation.
14561
14562 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14563 after calling code_conversion_save.
14564
145652008-02-01 Kenichi Handa <handa@m17n.org>
14566
14567 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14568
14569 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14570
14571 * fontset.c: Include "intervals.h".
14572 (fontset_face): Fix comparing of Lisp_Objects.
14573 (free_face_fontset, new_fontset_from_font_name): Fix
14574 Lisp_Object/int mixup.
14575
14576 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14577
14578 * coding.c: Add many prototypes for static functions.
14579 (get_translation_table): Allow max_lookup to be NULL.
14580 (decode_coding, Ffind_coding_systems_region_internal)
14581 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14582 get_translation_table with max_lookup NULL.
14583
145842008-02-01 Kenichi Handa <handa@m17n.org>
14585
14586 * coding.c (get_translation_table): Declare it as Lisp_Object.
14587 (LOOKUP_TRANSLATION_TABLE): New macro.
14588 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14589 instead of CHAR_TABLE_REF.
14590
145912008-02-01 Kenichi Handa <handa@m17n.org>
14592
14593 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14594 annotation data format.
14595 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14596 Change arguments FROM and TO to single argument NCHARS. Change caller.
14597 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14598 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14599 (decode_coding_ccl, decode_coding_charset): Pay attention to
14600 coding->charbuf_used.
14601 (get_translation): New function.
14602 (produce_chars): New arguments translation_table and last_block.
14603 Translate characters here. Return number of carryover chars.
14604 Change caller.
14605 (produce_composition): New argument pos. Change caller.
14606 Adjust for the change of annotation data format.
14607 (produce_charset, produce_annotation): Likewise.
14608 (decode_coding, encode_coding): Don't call translate_chars.
14609 (consume_chars): New arg translation_table. Change caller.
14610 (translate_chars): Delete.
14611 (syms_of_coding): Make translation-table's number of extra slots 2.
14612
146132008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 * search.c (simple_search): Fix setting this_pos_byte in backward
14616 search.
14617
14618 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14619 byte sequence.
14620 (detect_coding_ccl): Fix setting of the variable valids.
14621
146222008-02-01 Kenichi Handa <handa@m17n.org>
14623
14624 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14625
14626 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14627
14628 * editfns.c (Ftranslate_region_internal): Rename from
14629 Ftranslate_region. Accept a char-table in TABLE.
14630 (syms_of_editfns): Defsubr Stranslate_region_internal.
14631
14632 * xfaces.c (set_lface_from_font_name): If a font is specified for
14633 a frame, generate a fontset from the font.
14634 (build_scalable_font_name): If the scalable font is requested for
14635 a specific size, don't change that size.
14636 (try_font_list): Try a scalable font also in the case that a
14637 pattern string is specified.
14638
146392008-02-01 Kenichi Handa <handa@m17n.org>
14640
14641 * xfaces.c (Fface_font): New optional arg CHARACTER.
14642
146432008-02-01 Kenichi Handa <handa@m17n.org>
14644
14645 * charset.h (CHARSET_OFFSET): New macro.
14646
146472008-02-01 Kenichi Handa <handa@m17n.org>
14648
14649 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14650
14651 * fontset.c (fontset_face): Handle the case that repertory is a
14652 char-table.
14653 (find_font_encoding): Return nil for unknown encoding.
14654 (Fset_fontset_font): Ignore a font of unknown encoding.
14655
146562008-02-01 Kenichi Handa <handa@m17n.org>
14657
14658 * keymap.c (describe_vector): Handle default value of a char table.
14659
14660 * fontset.c (fontset_face): Handle fallback fonts correctly.
14661 (Ffontset_info): Return infomation about fallback fonts.
14662
146632008-02-01 Kenichi Handa <handa@m17n.org>
14664
14665 * fontset.c (FONTSET_DEFAULT): New macro.
14666 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14667 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14668 the case that it is nil.
14669 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14670 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14671
14672 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14673 subset or superset.
14674
146752008-02-01 Kenichi Handa <handa@m17n.org>
14676
14677 * emacs.c (main): Call init_charset after syms_of_XXX.
14678
14679 * charset.c (Vcharset_map_directory): Delete.
14680 (Vcharset_map_path): New variable.
14681 (load_charset_map_from_file): Use Vcharset_map_path instead.
14682 (init_charset): Initialize Vcharset_map_path.
14683 (syms_of_charset): Delete declaration of "charset-map-directory",
14684 add declaration of "charset-map-path".
14685
146862008-02-01 Kenichi Handa <handa@m17n.org>
14687
14688 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14689 ASCII only string.
14690
14691 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14692
14693 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14694 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14695
146962008-02-01 Kenichi Handa <handa@m17n.org>
14697
14698 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14699
14700 * coding.c (QCmnemonic, QCdefalut_char)
14701 (QCdecode_translation_table, QCencode_translation_table)
14702 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14703 (get_translation_table): Return a list of translation tables if
14704 necessary.
14705 (decode_coding): Call get_translation_table with ENCODEP 0.
14706 (char_encodable_p): If translation_table is non-nil, always call
14707 translate_char.
14708 (Fdefine_coding_system_internal): Accept list of translation
14709 tables as :encode-translation-table and :decode-translation-table.
14710 (Fcoding_system_put): New function.
14711 (syms_of_coding): Declare new symbols. Defsubr
14712 Scoding_system_put.
14713 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14714 typically JISX0212.
14715
14716 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14717 when the charset is superset type.
14718
14719 * character.c (translate_char): Accept list of translation tables.
14720
147212008-02-01 Kenichi Handa <handa@m17n.org>
14722
14723 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14724 (CODING_ATTR_TRANS_TBL): New macro.
14725
14726 * coding.c (get_translation_table): New function.
14727 (translate_chars): Fix the bug of skipping annotation data.
14728 (decode_coding, encode_coding): Utilize get_translation_table.
14729 (char_encodable_p, Funencodable_char_position): Translate char if
14730 necessary.
14731 (Ffind_coding_systems_region_internal)
14732 (Fcheck_coding_systems_region): Setup translation table for encode
14733 in a coding system attribute vector in advance.
14734 (Fdefine_coding_system_internal): Allow a symbol as translation
14735 table. For shift-jis type coding system, allow 4th charset.
14736
147372008-02-01 Kenichi Handa <handa@m17n.org>
14738
14739 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14740
14741 * xdisp.c (get_next_display_element): Pass -1 as POS to
14742 FACE_FOR_CHAR if displaying a C-string.
14743
147442008-02-01 Kenichi Handa <handa@m17n.org>
14745
14746 * composite.c (get_composition_id): Handle xoff and yoff in a
14747 composition rule.
14748
14749 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14750 (struct composition): New member lbearing and rbearing.
14751
14752 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14753 (x_get_glyph_overhangs): Handle a composition glyph.
14754 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14755
14756 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14757 composition glyph.
14758
147592008-02-01 Kenichi Handa <handa@m17n.org>
14760
14761 * print.c: Include charset.h.
14762 (Vprint_charset_text_property): New variable.
14763 (Qdefault): Extern it.
14764 (PRINT_STRING_NON_CHARSET_FOUND)
14765 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14766 (print_check_string_result): New variable.
14767 (print_check_string_charset_prop): New function.
14768 (print_prune_charset_plist): New variable.
14769 (print_prune_string_charset): New function.
14770 (print_object): Call print_prune_string_charset if
14771 Vprint_charset_text_property is not t.
14772 (print_interval): Print nothing if interval->plist is nil.
14773 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14774 variable. Init and staticpro print_prune_charset_plist.
14775
147762008-02-01 Kenichi Handa <handa@m17n.org>
14777
14778 * fontset.c (new_fontset_from_font_name): Use the specified font
14779 for all characters in the new fontset.
14780
14781 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14782 OBJECT args.
14783
14784 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14785 OBJECT args for composition too.
14786
14787 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14788 OBJECT args.
14789
147902008-02-01 Kenichi Handa <handa@m17n.org>
14791
14792 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14793
14794 * fontset.c (reorder_font_vector): Adjust for the change of
14795 FONT_DEF format.
14796 (fontset_face): New arg id. Change caller.
14797 (face_for_char): New args pos and object.
14798 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14799 (fs_query_fontset): Check NAME by Fassoc too.
14800 (Fset_fontset_font): Allow non-XLFD font name.
14801 (Ffontset_info): Adjust for the change of FONT_DEF format.
14802
14803 * fontset.h (face_for_char): Adjust prototype.
14804
14805 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14806 (append_space, extend_face_to_end_of_line)
14807 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14808 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14809
14810 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14811 POS and OBJECT args.
14812
14813 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14814 POS and OBJECT args.
14815
148162008-02-01 Jason Rumney <jasonr@gnu.org>
14817
14818 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14819 of GlobalAlloc'ed memory.
14820
148212008-02-01 Kenichi Handa <handa@m17n.org>
14822
14823 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14824
14825 * charset.h (charset_table_used): Delete extern.
14826
14827 * charset.c (charset_table_used): Make it static.
14828 (map_charset_chars): Fix args to c_function with.
14829
14830 * chartab.c (map_sub_char_table_for_charset): Fix args to
14831 c_function with.
14832
14833 * coding.h (enum coding_result_code): Delete
14834 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14835
14836 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14837 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14838 (Vlast_code_conversion_error): New variables.
14839 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14840 (ONE_MORE_BYTE): Record error if any instead of signaling an
14841 error. If non-ASCII multibyte char is found, return the negative
14842 value of the code. All callers changed to check it.
14843 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14844 (record_conversion_result): New function. Change all codes setting
14845 coding->result to call this function.
14846 (detect_coding_utf_8, decode_coding_utf_8)
14847 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14848 Don't use the local variable incomplete.
14849 (emacs_mule_char): Change the second arg to `const'.
14850 (decode_coding): Fix of flushing out unprocessed data.
14851 (make_conversion_work_buffer): Fix making of a work buffer.
14852 (decode_coding_object): Return coding->dst_object.
14853
14854 * fontset.c (set_fontset_font): Fix args.
14855
14856 * lisp.h (CHARACTERBITS): Define as 22.
14857
14858 * process.c (send_process): Be sure to set coding->src_multibyte.
14859
14860 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14861
148622008-02-01 Kenichi Handa <handa@m17n.org>
14863
14864 * xdisp.c (handle_auto_composed_prop): Give limit to
14865 Fnext_single_char_property_change.
14866
148672008-02-01 Kenichi Handa <handa@m17n.org>
14868
14869 * composite.c (syms_of_composite): Don't make the composition hash
14870 table weak.
14871
14872 * fontset.c (Fset_fontset_font): Fix docstring.
14873
14874 * lisp.h (detect_coding_system): Adjust prototype.
14875
14876 * fileio.c (kill_workbuf_unwind): Delete this function.
14877 (Finsert_file_contents): Adjust the call of detect_coding_system.
14878 Get conversion_buffer by code_conversion_save. Use the macro
14879 CODING_MAY_REQUIRE_DECODING. After decoding, update
14880 coding_system.
14881
14882 * coding.h (make_conversion_work_buffer): Delete extern.
14883 (code_conversion_save): Extern it.
14884
14885 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14886 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14887 (decode_coding_utf_8): Don't do eol converion.
14888 (detect_coding_utf_16): Check coding->src_chars, not
14889 coding->src_bytes. Add heuristics for those that have no signature.
14890 (decode_coding_emacs_mule, decode_coding_iso_2022)
14891 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14892 Don't do eol converion.
14893 (adjust_coding_eol_type): Return a new coding system.
14894 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14895 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14896 each change.
14897 (decode_coding): Pay attention to undo_list. Do eol conversion for
14898 all types of coding-systems (if necessary).
14899 (Vcode_conversion_work_buf_list): Delete it.
14900 (Vcode_conversion_reused_workbuf): Rename from
14901 Vcode_conversion_reused_work_buf.
14902 (Vcode_conversion_workbuf_name): New variable.
14903 (reused_workbuf_in_use): New variable.
14904 (make_conversion_work_buffer): Delete the arg DEPTH.
14905 (code_conversion_restore): Change argument to cons.
14906 (code_conversion_save): Delete the argument BUFFER. Change callers.
14907 (detect_coding_system): New argument src_chars. Change callers.
14908 Fix for utf-16 detection.
14909 (init_coding_once): Don't use ISO_carriage_return.
14910 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14911 reused_workbuf_in_use.
14912
149132008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 * keymap.c (store_in_keymap): Pay attention to the case that idx
14916 is a cons specifying a character range.
14917
149182008-02-01 Kenichi Handa <handa@m17n.org>
14919
14920 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14921 HANDLED_RECOMPUTE_PROPS.
14922
14923 * coding.c (Fdefine_coding_system_internal): Fix checking of
14924 ascii compatibility.
14925
149262008-02-01 Kenichi Handa <handa@m17n.org>
14927
14928 * charset.c (find_charsets_in_text): Delete unused locale variable.
14929 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14930
14931 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14932 Resync charset_list to Vemacs_mule_charset_list.
14933
14934 * keymap.c (store_in_keymap): Pay attention to the case that idx
14935 is a cons specifying a character range.
14936
149372008-02-01 Kenichi Handa <handa@m17n.org>
14938
14939 * composite.c (update_compositions): Bind inhibit-read-only, etc
14940 to t before calling remove-list-of-text-properties.
14941
14942 * print.c (print_object): Always print ASCII chars as is.
14943
149442008-02-01 Kenichi Handa <handa@m17n.org>
14945
14946 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14947
14948 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14949 is a char table.
14950
149512008-02-01 Kenichi Handa <handa@m17n.org>
14952
14953 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14954
149552008-02-01 Kenichi Handa <handa@m17n.org>
14956
14957 * xfaces.c (set_lface_from_font_name): Fix for the case that
14958 FONTNAME is not fontset name.
14959
149602008-02-01 Kenichi Handa <handa@m17n.org>
14961
14962 * fns.c (base64_encode_1): Fix previous change.
14963
149642008-02-01 Kenichi Handa <handa@m17n.org>
14965
14966 * fontset.c (set_fontset_font): New function.
14967 (Fset_fontset_font): If a font is specified for a charset, use
14968 map_charset_chars to store the font spec in a fontset.
14969
149702008-02-01 Kenichi Handa <handa@m17n.org>
14971
14972 * fontset.c (fontset_face): Create a fallback fontset on demand.
14973 (make_fontset): Don't create a fallback fontset here.
14974 (free_face_fontset): Free a fallback fontset (if any) too.
14975 (n_auto_fontsets): Delete this variable.
14976 (auto_fontset_alist): New variable.
14977 (new_fontset_from_font_name): Check auto_fontset_alist.
14978 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14979 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14980 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14981 Defsubr Sfontset_list_all.
14982
149832008-02-01 Kenichi Handa <handa@m17n.org>
14984
14985 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14986
149872008-02-01 Kenichi Handa <handa@m17n.org>
14988
14989 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14990
149912008-02-01 Kenichi Handa <handa@m17n.org>
14992
14993 * editfns.c (Fgoto_char): Fix docstring.
14994
149952008-02-01 Kenichi Handa <handa@m17n.org>
14996
14997 * insdel.c (insert_from_gap): Adjust intervals correctly.
14998
149992008-02-01 Jason Rumney <jasonr@gnu.org>
15000
15001 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15002 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15003 (w32_initialize): Try to load it.
15004 (x_get_font_repertory): Use it if available.
15005 (w32_encode_char): Add shortcut for unicode output.
15006
15007 * w32fns.c (w32_load_system_font): Default charset to -1.
15008 (x_to_w32_charset): Match all fonts for unicode.
15009 (w32_to_x_charset): New parameter matching. Don't return partial
15010 or wildcard charsets.
15011 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15012 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15013 (w32_to_x_font): Match charset to real charset.
15014 (enum_font_cb2): Always list unicode versions.
15015
15016 * makefile.w32-in (temacs): Increase EMHEAP.
15017
150182008-02-01 Jason Rumney <jasonr@gnu.org>
15019
15020 * w32term.c (w32_encode_char): New charset parameter.
15021 font_info.encoding becomes encoding_type.
15022 (x_get_font_repertory): New function. Warning: stub only!
15023 (x_new_font): Return quickly if font already set.
15024 (x_new_fontset): fontsetname parameter is Lisp_Object.
15025 Use new fs_query_fontset. Try new_fontset_from_font_name.
15026 Use fontset_name for return value.
15027
15028 * w32term.h: Declare x_get_font_repertory.
15029
15030 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15031 place of find_charset_in_text. Use encode_coding_object in place
15032 of encode_coding.
15033 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15034 decode_coding.
15035
15036 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15037 of x_new_fontset.
15038 (w32_load_system_font): Initialize charset as unicode.
15039 font_info.encoding becomes encoding_type.
15040 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15041 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15042 (syms_of_w32fns): Set get_font_repertory_func.
15043
15044 * w32console.c: Include character.h. Use terminal_encode_buffer
15045 from term.c.
15046 (write_glyphs): Use new version of encode_terminal_code. Use
15047 encode_coding_object in place of encode_coding.
15048
15049 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15050 encoding becomes encoding_type.
15051
15052 * term.c (terminal_encode_buffer): Make externally visible.
15053
15054 * makefile.w32-in: Add character.h dependancies.
15055 (character.o, chartab.o): New targets.
15056
150572008-02-01 Kenichi Handa <handa@m17n.org>
15058
15059 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15060 CODING_ID_EOL_TYPE.
15061
150622008-02-01 Andreas Schwab <schwab@suse.de>
15063
15064 * coding.c (produce_chars): Revert last change.
15065
150662008-02-01 Kenichi Handa <handa@m17n.org>
15067
15068 * charset.h (charset_unicode): Extern it.
15069
15070 * charset.c (string_xstring_p): Check by (C >= 0x100).
15071 (find_charsets_in_text): Change format of the arc CHARSETS. New
15072 arg MULTIBYTE.
15073 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15074 change of find_charsets_in_text.
15075 (Fsplit_char): Fix doc. Never return unknown.
15076
15077 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15078
15079 * coding.c (Fdefine_coding_system_alias): Update
15080 Vcoding_system_list.
15081
15082 * fontset.c (load_font_get_repertory): Pay attention to the case
15083 that ENCODING of a font is specified by a char-table.
15084
15085 * xterm.c (x_get_font_repertory): Handle the case that the
15086 encoding of font is other than Unicode.
15087
150882008-02-01 Kenichi Handa <handa@m17n.org>
15089
15090 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15091 if a character is encodable by the terminal coding system. If
15092 not, produces proper number of `?'s. Update
15093 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15094 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15095
150962008-02-01 Kenichi Handa <handa@m17n.org>
15097
15098 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15099 variables.
15100 (encode_terminal_code): Change argument. Encode multiple
15101 characters at once. Store the result of encoding in
15102 terminal_encode_buffer.
15103 (write_glyphs, insert_glyphs): Adjust for the change of
15104 encode_terminal_code.
15105 (term_init): Initialize terminal_encode_buffer and
15106 terminal_encode_buf_size.
15107
15108 * coding.c (consume_chars): If coding->src_object is nil, don't
15109 check annotation.
15110
151112008-02-01 Kenichi Handa <handa@m17n.org>
15112
15113 * character.c (char_string): Use ASCII_CHAR_P instead of
15114 SINGLE_BYTE_CHAR_P.
15115
151162008-02-01 Kenichi Handa <handa@m17n.org>
15117
15118 * xdisp.c (handle_auto_composed_prop): Check if the last
15119 characters of auto-composed region is newly composed with the
15120 following characters.
15121 (handle_composition_prop): Fix checking of point being inside
15122 composition.
15123
151242008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 * fns.c (concat): Don't change multibyteness of the result by
15127 concatenating an 8-bit character.
15128
15129 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15130 multibyteness of the result when newelt is an 8-bit character.
15131
151322008-02-01 Dave Love <fx@gnu.org>
15133
15134 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15135 EMACS_INT.
15136
15137 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15138
15139 * xfaces.c (face_numeric_value): Declare dim size_t.
15140 (Finternal_lisp_face_equal_p): Remove unused f.
15141
15142 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15143 (MATRIX_ROW): Remove unused vars.
15144 (draw_glyphs, x_insert_glyphs, fast_find_position)
15145 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15146 byte/char counts.
15147
15148 * regex.c (regex_compile): Remove unused var.
15149
15150 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15151
15152 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15153 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15154
15155 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15156
15157 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15158
15159 * fileio.c (Fwrite_region): Remove unused var.
15160
15161 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15162 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15163
15164 * composite.c (Fremove_list_of_text_properties): Declare.
15165
15166 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15167 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15168 (coding_inherit_eol_type): Remove unused attrs.
15169 (detect_coding): Cast arg of detect_eol.
15170
15171 * charset.c (syms_of_charset): Remove unused var p.
15172 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15173 byte/char counts.
15174
15175 * casetab.c (set_case_table): Remove unused var.
15176
15177 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15178 unused vars.
15179
151802008-02-01 Dave Love <fx@gnu.org>
15181
15182 * xterm.c (x_bitmap_mask): Declare.
15183
151842008-02-01 Dave Love <fx@gnu.org>
15185
15186 * xterm.c (x_term_init): Fix type error.
15187
15188 * lisp.h: Add Funibyte_char_to_multibyte.
15189
15190 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15191 (Fset_coding_system_priority): Doc fix.
15192
15193 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15194
15195 * indent.c (check_composition): Make start and end EMACS_INT.
15196
15197 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15198
15199 * xdisp.c (handle_composition_prop, check_point_in_composition):
15200 Make buffer positions EMACS_INT.
15201
15202 * composite.c (find_composition, run_composition_function)
15203 (update_compositions, Ffind_composition_internal): Make buffer
15204 positions EMACS_INT.
15205
15206 * composite.h (find_composition, update_compositions): Make
15207 position args EMACS_INT.
15208
15209 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15210
15211 * intervals.c (get_property_and_range):
15212 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15213
15214 * unexalpha.c: Don't include varargs.h.
15215
152162008-02-01 Dave Love <fx@gnu.org>
15217
15218 * coding.h (ENCODE_UTF_8): New.
15219
15220 * Makefile.in (gtkutil.o): Depend on coding.h.
15221
15222 * coding.c (Fset_coding_system_priority): Doc fix.
15223
152242008-02-01 Kenichi Handa <handa@m17n.org>
15225
15226 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15227 the case of auto saving.
15228
152292008-02-01 Andreas Schwab <schwab@suse.de>
15230
15231 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15232 `range' from GC.
15233
152342008-02-01 Kenichi Handa <handa@m17n.org>
15235
15236 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15237
152382008-02-01 Kenichi Handa <handa@m17n.org>
15239
15240 * fileio.c (choose_write_coding_system): Return a decided coding system.
15241 (Fwrite_region): Set Vlast_coding_system_used to the return value
15242 of choose_write_coding_system.
15243
152442008-02-01 Kenichi Handa <handa@m17n.org>
15245
15246 * charset.c (Fset_charset_priority): Pay attention to duplicated
15247 arguments.
15248
15249 * coding.c (QCcategory): New variable.
15250 (syms_of_coding): Defsym it. Set all elements of
15251 Vcoding_category_table and their symbol values.
15252 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15253 coding-category-XXX, and coding-category-list.
15254 (Fdefine_coding_system_internal): Add category in the plist.
15255
152562008-02-01 Kenichi Handa <handa@m17n.org>
15257
15258 * callproc.c (Fcall_process): Handle carryover correctly.
15259
15260 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15261 (raw_text_coding_system): Check NILP (coding_system).
15262 (coding_inherit_eol_type): Check NILP (coding_system) and
15263 NILP (parent).
15264 (consume_chars): Fix for the case of raw-text.
15265
15266 * process.c (read_process_output): Handle carryover correctly.
15267
152682008-02-01 Dave Love <fx@gnu.org>
15269
15270 * regex.c (re_search_2): Fix last change.
15271
152722008-02-01 Kenichi Handa <handa@m17n.org>
15273
15274 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15275 target_multibyte. Even in a unibyte case, return a converted
15276 multibyte char.
15277 (GET_CHAR_AFTER): New macro.
15278 (PATFETCH): Translate via multibyte char.
15279 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15280 (SETUP_MULTIBYTE_RANGE): New macro.
15281 (regex_compile): Setup compiled code so that its multibyteness
15282 matches that of a target. Fix the handling of "[X-YZ]" using
15283 SETUP_MULTIBYTE_RANGE.
15284 (analyse_first) <charset>: For filling fastmap for all multibyte
15285 characters, don't check by BASE_LEADING_CODE_P.
15286 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15287 the same as RE_MULTIBYTE_P (bufp) now.
15288 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15289 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15290 (TRANSLATE_VIA_MULTIBYTE): New macro.
15291 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15292 It is the same as RE_MULTIBYTE_P (bufp) now.
15293 <exactn>: Translate via multibyte.
15294 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15295 translate it.
15296 <charset, charset_not>: Fetch a character by
15297 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15298 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15299 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15300 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15301 by GET_CHAR_AFTER.
15302 (bcmp_translate): Likewise.
15303
15304 * search.c (compile_pattern): Check the member target_multibyte,
15305 not the member multibyte of buf.
15306
15307 * lread.c (read1): While reading a string, set force_singlebyte
15308 and force_multibyte correctly.
15309
15310 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15311 up of unibyte_to_multibyte_table.
15312
153132008-02-01 Kenichi Handa <handa@m17n.org>
15314
15315 * coding.c (setup_coding_system): If coding has
15316 post-read-conversion or pre-write-conversion, set
15317 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15318 respectively.
15319 (decode_coding_gap): Run post-read-conversion if any.
15320
15321 * fileio.c (Finsert_file_contents): Even if we read into a
15322 unibyte buffer, check if we must decode the result or not.
15323
153242008-02-01 Kenichi Handa <handa@m17n.org>
15325
15326 * coding.c (make_conversion_work_buffer): Change the work buffer
15327 name to the same one as that of Emacs 21.
15328
153292008-02-01 Kenichi Handa <handa@m17n.org>
15330
15331 * coding.h (make_conversion_work_buffer): Adjust prototype.
15332 (code_conversion_restore): Don't extern it.
15333
15334 * coding.c (detected_mask): Delete unused variable.
15335 (decode_coding_iso_2022): Pay attention to the byte sequence of
15336 CTEXT extended segment, and retain those bytes as is.
15337 (decode_coding_ccl): Delete unused variable `valids'.
15338 (setup_coding_system): Delete unused variable `category'.
15339 (consume_chars): Delete unused variable `category'. Make it work
15340 for non-multibyte case.
15341 (make_conversion_work_buffer): Change argument.
15342 (saved_coding): Delete unused variable.
15343 (code_conversion_restore): Don't check saved_coding->destination.
15344 (code_conversion_save): New function.
15345 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15346 instead of record_unwind_protect.
15347 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15348 (detect_coding_system): Delete unused variable `mask'.
15349 (Fdefine_coding_system_internal): Delete unused variable id.
15350
15351 * fileio.c (kill_workbuf_unwind): New function.
15352 (Finsert_file_contents): On replacing, call
15353 make_conversion_work_buffer with correct args, and call
15354 record_unwind_protect with the first arg kill_workbuf_unwind.
15355
15356 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15361 (fontset_add): Fix for the case that TO is less than TO1.
15362 (Ffontset_info): Don't use fallback fontset on checking the
15363 default fontset.
15364 (dump_fontset): New function for debugging.
15365
15366 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15367 coding_type is Qcharset.
15368
153692008-02-01 Kenichi Handa <handa@m17n.org>
15370
15371 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15372 (map_char_table): Don't inherit the value from the parent on
15373 initializing VAL. Adjust for the above change.
15374
153752008-02-01 Kenichi Handa <handa@m17n.org>
15376
15377 * coding.c (Qsignature, Qendian): Delete these variables.
15378 (syms_of_coding): Don't initialize them.
15379 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15380 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15381 detect_info->found.
15382 (decode_coding_utf_16): Don't detect BOM here.
15383 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15384 is NOT utf_16_without_bom.
15385 (setup_coding_system): For a coding system of type utf-16, check
15386 if the attribute :endian is Qbig or not (not nil or not), and set
15387 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15388 (detect_coding): If coding type is utf-16 and BOM detection is
15389 required, detect it.
15390 (Fdefine_coding_system_internal): For a coding system of type
15391 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15392
153932008-02-01 Kenichi Handa <handa@m17n.org>
15394
15395 * coding.c (coding_set_source): Fix for the case that the current
15396 buffer is different from coding->src_object.
15397 (decode_coding_object): Don't use the conversion work buffer if
15398 DST_OBJECT is a buffer.
15399
154002008-02-01 Dave Love <fx@gnu.org>
15401
15402 * lread.c (read_emacs_mule_char) [len==2]: Index
15403 emacs_mule_charset correctly.
15404
154052008-02-01 Dave Love <fx@gnu.org>
15406
15407 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15408 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15409 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15410 treated specially.)
15411 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15412 (detected_mask): Remove Big5 bits.
15413
154142008-02-01 Kenichi Handa <handa@m17n.org>
15415
15416 The following changes are to make the font rescaling facility
15417 compatible with Emacs 21.
15418
15419 * xfaces.c (Vface_font_rescale_alist): Rename from
15420 Vface_resizing_fonts.
15421 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15422 (font_rescale_ratio): Rename from font_resizing_ratio.
15423 (split_font_name): Set font->rescale_ratio.
15424 (better_font_p): Pay attention to font->rescale_ratio.
15425 (build_scalable_font_name): Likewise. Change RESX, and RESY
15426 fields.
15427 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15428
154292008-02-01 Kenichi Handa <handa@m17n.org>
15430
15431 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15432 (Qutf_16_le): Remove these variables.
15433 (syms_of_coding): Don't DEFSYM them.
15434 (decode_coding_utf_16): Fix handling of BOM.
15435 (encode_coding_utf_16): Fix handling of BOM.
15436
154372008-02-01 Kenichi Handa <handa@m17n.org>
15438
15439 * fileio.c (Finsert_file_contents): On replacing, before decoding
15440 the file into the work buffer, set point of the work buffer to the end.
15441
154422008-02-01 Dave Love <fx@gnu.org>
15443
15444 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15445
154462008-02-01 Dave Love <fx@gnu.org>
15447
15448 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15449 and fix C types.
15450
154512008-02-01 Kenichi Handa <handa@m17n.org>
15452
15453 * xdisp.c (SKIP_GLYPHS): New macro.
15454 (set_cursor_from_row): Pay attention to string display properties.
15455
15456 * category.c (copy_category_entry): Fix for the case that RANGE
15457 is an integer.
15458
15459 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15460
15461 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15462
154632008-02-01 Kenichi Handa <handa@m17n.org>
15464
15465 * charset.c (Fcharset_id_internal): New function.
15466 (syms_of_charset): Defsubr it.
15467
15468 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15469 with the last arg charset_list acquired from coding.
15470 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15471 the attribute coding_attr_ccl_valids.
15472
15473 * coding.h (enum define_coding_ccl_arg_index): Set the first
15474 member coding_arg_ccl_decoder to coding_arg_max.
15475
15476 * ccl.h (ccl_driver): Adjust prototype.
15477
15478 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15479 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15480 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15481 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15482 last arg Qnil.
15483
154842008-02-01 Kenichi Handa <handa@m17n.org>
15485
15486 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15487 call encode_char.
15488
15489 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15490
154912008-02-01 Dave Love <fx@gnu.org>
15492
15493 * composite.c (syms_of_composite): Make composition_hash_table weak.
15494
154952008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15498 (font_name_registry): Don't extern them.
15499 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15500
15501 * fontset.h (Qfontset): Don't extern it.
15502 (new_fontset_from_font_name): Extern it.
15503
15504 * fontset.c: Give 8 extra slots to fontset objects.
15505 (Qfontset_info): New variable.
15506 (syms_of_fontset): Defsym it.
15507 (FONTSET_FALLBACK): New macro.
15508 (fontset_face): Try also the default fontset.
15509 (make_fontset): Realize a fallback fontset from the default fontset.
15510 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15511 using split_font_name_into_vector and build_font_name_from_vector.
15512 (Fset_fontset_font): Access the elements of font_spec by enum
15513 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15514 name by using split_font_name_into_vector.
15515 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15516 generate a proper font name from the fontset name. Update
15517 Vfontset_alias_alist.
15518 (n_auto_fontsets): New variable.
15519 (new_fontset_from_font_name): New function.
15520 (Ffont_info): Store the information about fonts generated from the
15521 default fontset in the first extra slot of the returned char-table.
15522
15523 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15524 (font_name_registry): Delete function.
15525 (split_font_name_into_vector): New function.
15526 (build_font_name_from_vector): New function.
15527 (font_list): The argument REGISTRY is now a list of registry names.
15528 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15529 specifies an explicit font name, return the name as is. Make a
15530 list of registy names.
15531
15532 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15533 of x_new_fontset.
15534 (Fx_create_frame): Don't call x_new_fontset here. Just use
15535 x_list_fonts to check the existence of fonts.
15536
15537 * xterm.h (x_new_fontset): Adjust prototype.
15538
15539 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15540 string. Use new_fontset_from_font_name to create a fontset from a
15541 font name.
15542
155432008-02-01 Kenichi Handa <handa@m17n.org>
15544
15545 * syntax.c (Vfind_word_boundary_function_table): New name for
15546 Vnext_word_boundary_function_table.
15547 (find-word-boundary-function-table): New name for
15548 next-word-boundary-function-table.
15549
155502008-02-01 Dave Love <fx@gnu.org>
15551
15552 * Makefile.in: Fix some dependencies.
15553
15554 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15555 set it to nil before returning.
15556
15557 * composite.c (update_compositions): Fix type error.
15558
15559 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15560
155612008-02-01 Kenichi Handa <handa@m17n.org>
15562
15563 * xterm.c (x_new_font): Optimize for the case that the font is
15564 already set for the frame.
15565
155662008-02-01 Kenichi Handa <handa@m17n.org>
15567
15568 * chartab.c (char_table_ascii): Check if the char table contents
15569 is sub-char-table or not.
15570 (char_table_set, char_table_set_range): Fix argument to
15571 char_table_ascii.
15572
15573 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15574 (detect_coding_utf_8, detect_coding_utf_16)
15575 (detect_coding_emacs_mule, detect_coding_iso_2022)
15576 (detect_coding_sjis, detect_coding_big5)
15577 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15578 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15579 sequence is valid in this coding system. Change callers.
15580 (MAX_ANNOTATION_LENGTH): New macro.
15581 (ADD_ANNOTATION_DATA): New macro.
15582 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15583 ADD_ANNOTATION_DATA. Change the format of annotation data.
15584 (ADD_CHARSET_DATA): New macro.
15585 (emacs_mule_char): New argument ID. Change callers.
15586 (decode_coding_emacs_mule, decode_coding_iso_2022)
15587 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15588 Produce charset annotation data in coding->charbuf.
15589 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15590 to charset annotation data in coding->charbuf.
15591 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15592 coding->common_flags if the coding system is iso-2022 based and
15593 uses designation.
15594 (produce_composition): Adjust for the new annotation data format.
15595 (produce_charset): New function.
15596 (produce_annotation): Handle charset annotation.
15597 (handle_composition_annotation, handle_charset_annotation): New
15598 functions.
15599 (consume_chars): Handle charset annotation. Utilize the above two
15600 functions.
15601 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15602 buffer, get the deleted text as a string and set
15603 coding->src_object to that string.
15604 (detect_coding, detect_coding_system): Use the new struct
15605 coding_detection_info.
15606
15607 * coding.h (struct coding_detection_info): New structure.
15608 (struct coding_system): Adjust prototype of the member `detector'.
15609 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15610
156112008-02-01 Kenichi Handa <handa@m17n.org>
15612
15613 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15614
156152008-02-01 Dave Love <fx@gnu.org>
15616
15617 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15618 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15619 to new local and nullify apropos_accumulate before returning.
15620 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15621
156222008-02-01 Kenichi Handa <handa@m17n.org>
15623
15624 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15625 correctly.
e3eea1fc 15626
aac0c6e3
MR
156272008-02-01 Dave Love <fx@gnu.org>
15628
15629 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15630
156312008-02-01 Kenichi Handa <handa@m17n.org>
15632
15633 The following changes are to make character composition happen
15634 automatically on displaying.
15635
15636 * Makefile.in (lisp, shortlisp): Add composite.elc.
15637
15638 * composite.h (Qauto_composed, Vauto_composition_function)
15639 (Qauto_composition_function): Extern them.
15640
15641 * composite.c (Vcomposition_function_table)
15642 (Qcomposition_function_table): Delete variables.
15643 (Qauto_composed, Vauto_composition_function)
15644 (Qauto_composition_function): New variables.
15645 (run_composition_function): Don't call
15646 compose-chars-after-function.
15647 (update_compositions): Clear `auto-composed' text property.
15648 (compose_chars_in_text): Delete this function.
15649 (syms_of_composite): Staticpro Qauto_composed and
15650 Qauto_composition_function. Declare Vauto_composition_function as
15651 a Lisp variable.
15652
15653 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15654
15655 * xdisp.c (it_props): Add an entry for Qauto_composed.
15656 (handle_auto_composed_prop): New function.
15657
15658 * xselect.c (selection_data_to_lisp_data): Don't call
15659 compose_chars_in_text.
15660
156612008-02-01 Dave Love <fx@gnu.org>
15662
15663 * keyboard.c (read_char): Modify checking around use of
15664 Vkeyboard_translate_table.
15665
15666 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15667 and fix C types.
15668
156692008-02-01 Kenichi Handa <handa@m17n.org>
15670
15671 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15672 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15673 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15674 the case that the last byte is '\r' correctly.
15675 (decode_coding): Flush out the unprocessed data correctly.
15676 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15677
156782008-02-01 Dave Love <fx@gnu.org>
15679
15680 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15681 Add XK_ISO... case.
15682 (xaw_scroll_callback): Revert last change.
15683
156842008-02-01 Kenichi Handa <handa@m17n.org>
15685
15686 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * xfaces.c (Vface_resizing_fonts): New variable.
15691 (struct font_name): New member `resizing_ratio'.
15692 (font_resizing_ratio): New function.
15693 (split_font_name): Set font->resizing_ratio.
15694 (better_font_p): Pay attention to font->resizing_ratio.
15695 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15696 RESX, and RESY fields.
15697 (try_alternative_families): Try scalable fonts if
15698 Vscalable_fonts_allowed is not Qt.
15699 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15700
157012008-02-01 Dave Love <fx@gnu.org>
15702
15703 * xterm.c (xaw_scroll_callback): Cast correctly.
15704
157052008-02-01 Dave Love <fx@gnu.org>
15706
15707 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15708 (lispy_kana_keys): Comment out.
15709 (make_lispy_event) [XK_kana_A]: Comment out.
15710
15711 * xterm.c (xaw_scroll_callback): Cast call_data.
15712 (XTread_socket): Deal with ASCII keysyms.
15713 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15714
157152008-02-01 Dave Love <fx@gnu.org>
15716
15717 * xterm.c (Vx_keysym_table): New.
15718 (syms_of_xterm): Initialize it.
15719 (XTread_socket): Use it.
15720 From head: Eliminate incorrect optimization that tried to avoid
15721 decoding the output of X*LookupString.
15722 (x_get_font_repertory): Delete charset declaration.
15723
157242008-02-01 Kenichi Handa <handa@m17n.org>
15725
15726 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15727 return 0.
15728 (Fdefine_coding_system_internal): Setup
15729 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15730
157312008-02-01 Dave Love <fx@gnu.org>
15732
15733 * coding.c (Fcheck_coding_system): Doc fix.
15734
15735 * editfns.c (Finsert_byte): Return a proper value.
15736
157372008-02-01 Kenichi Handa <handa@m17n.org>
15738
15739 * coding.c (decode_coding): Fix args to translate_chars. Pay
15740 attention to Vstandard_translation_table_for_decode.
15741 (encode_coding): Fix args to translate_chars. Pay attention to
15742 Vstandard_translation_table_for_encode.
15743
15744 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15745 SINGLE_BYTE_CHAR_P.
15746
15747 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15748 not by SINGLE_BYTE_CHAR_P.
15749
15750 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15751 SINGLE_BYTE_CHAR_P.
15752
15753 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15754 SINGLE_BYTE_CHAR_P.
15755
15756 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15757 by SINGLE_BYTE_CHAR_P.
15758
15759 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15760 SINGLE_BYTE_CHAR_P.
15761
157622008-02-01 Dave Love <fx@gnu.org>
15763
15764 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15765
157662008-02-01 Dave Love <fx@gnu.org>
15767
15768 * fns.c (Flanginfo): Fix typo.
15769
15770 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15771
157722008-02-01 Kenichi Handa <handa@m17n.org>
15773
15774 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15775 (detect_coding_emacs_mule, detect_coding_iso_2022)
15776 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15777 incomplete byte sequence. Don't update *mask when correctly detected.
15778 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15779 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15780 (detect_coding, detect_coding_system): Adjust for the changes above.
15781
157822008-02-01 Kenichi Handa <handa@m17n.org>
15783
15784 * character.c (char_string): Rename from
15785 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15786 (string_char): Rename from string_char.
15787
15788 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15789 if C is greater than MAX_3_BYTE_CHAR.
15790 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15791 string_char instead of string_char_with_unification.
15792
157932008-02-01 Dave Love <fx@gnu.org>
15794
15795 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * keymap.c (push_key_description): Pay attention to force_multibyte.
15800
15801 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15802
158032008-02-01 Dave Love <fx@gnu.org>
15804
15805 * charset.c (define_charset_internal): Rename `supprementary'.
15806
15807 * Makefile.in (lisp, shortlisp): Remove latin-N.
15808
158092008-02-01 Dave Love <fx@gnu.org>
15810
15811 * xfns.c (x_window, x_window): Use use_xim.
15812
15813 * xterm.c (use_xim): Initialize.
15814 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15815 (x_term_init): Maybe set use_xim.
15816
15817 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15818
158192008-02-01 Kenichi Handa <handa@m17n.org>
15820
15821 * search.c (search_buffer): Fix case-fold-search of multibyte
15822 characters.
15823 (boyer_moore): Rename the last argument to char_high_bits.
15824
158252008-02-01 Kenichi Handa <handa@m17n.org>
15826
15827 * xdisp.c (display_string): Fix for the case of zero width glyph.
15828
15829 * xfns.c (x_set_font): Change the error message of the case that
15830 x_new_fontset returns Qt.
15831
15832 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15833 (Finternal_set_lisp_face_attribute): Use signal_error for the
15834 error of invalid fontset.
15835
15836 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15837 fontset, return Qt.
15838
158392008-02-01 Dave Love <fx@gnu.org>
15840
15841 * unexelf.c (unexec): Make .got handling not SGI-specific.
15842
15843 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15844
15845 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15846
15847 * keyboard.c (read_key_sequence): Fix type error.
15848
15849 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15850 type error.
15851
15852 * fontset.c (fontset_add): Return Lisp_Object.
15853
158542008-02-01 Dave Love <fx@gnu.org>
15855
15856 * charset.h (charset_ordered_list_tick): Declare extern.
15857
158582008-02-01 Kenichi Handa <handa@m17n.org>
15859
15860 The following changes (and some of 2008-02-01 changes of mine) are
15861 for handling syntax, category, and case conversion for unibyte
15862 characters by converting them to multibyte on the fly. With these
15863 changes, we don't have to setup syntax and case tables for unibyte
15864 characters in each language environment.
15865
15866 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15867 multibyte if necessary.
15868
15869 * bytecode.c (Fbyte_code): Likewise.
15870
15871 * character.h (LEADING_CODE_LATIN_1_MIN)
15872 (LEADING_CODE_LATIN_1_MAX): New macros.
15873 (unibyte_to_multibyte_table): Extern it.
15874 (unibyte_char_to_multibyte): New macro.
15875 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15876 (CHAR_LEADING_CODE): New macro.
15877 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15878
15879 * character.c (unibyte_to_multibyte_table): New variable.
15880 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15881 (multibyte_char_to_unibyte): If C is an eight-bit character,
15882 convert it to the corresponding byte value.
15883
15884 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15885 not 1, signals an error. Update the elements of
15886 unibyte_to_multibyte_table.
15887 (init_charset_once): Initialize unibyte_to_multibyte_table.
15888 (syms_of_charset): Define the charset `iso-8859-1'.
15889
15890 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15891 as is without converting it to unibyte. In a unibyte buffer,
15892 convert C to multibyte before checking the syntax.
15893
15894 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15895
15896 * minibuf.c (Fminibuffer_complete_word): Use the macro
15897 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15898
15899 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15900
15901 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15902 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15903 that is zero, convert an eight-bit char to multibyte.
15904 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15905 non-emacs case.
15906 (PATFETCH): Convert an eight-bit char to multibyte.
15907 (HANDLE_UNIBYTE_RANGE): New macro.
15908 (regex_compile): Setup the compiled pattern for multibyte chars
15909 even if the given regex string is unibyte. Use PATFETCH_RAW
15910 instead of PATFETCH in many places. To handle `charset'
15911 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15912 only for ASCII chars.
15913 (analyse_first) <exactn>: Simplify because the compiled pattern
15914 is multibyte.
15915 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15916 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15917 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15918 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15919 multibyte always 1.
15920 (re_search_2): In emacs, set the locale variable multibyte to 1,
15921 otherwise to 0. New local variable target_multibyte. Check it
15922 to decide the multibyteness of STR1 and STR2. If
15923 target_multibyte is zero, convert unibyte chars to multibyte
15924 before translating and checking fastmap.
15925 (TARGET_CHAR_AND_LENGTH): New macro.
15926 (re_match_2_internal): In emacs, set the locale variable multibyte
15927 to 1, otherwise to 0. New local variable target_multibyte. Check
15928 it to decide the multibyteness of STR1 and STR2. Use
15929 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15930 <charset, charset_not>: If multibyte is nonzero, check fastmap
15931 only for ASCII chars. Call bcmp_translate with
15932 target_multibyte, not with multibyte.
15933 <begline>: Declare the local variable C as `unsigned'.
15934 (bcmp_translate): Change the last arg name to target_multibyte.
15935
15936 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15937 the regexp pattern and the matching target. Set cp->buf.multibyte
15938 to the multibyteness of the regexp pattern. Set
15939 cp->but.target_multibyte to the multibyteness of the matching target.
15940 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15941 FETCH_STRING_CHAR_ADVANCE.
15942 (Freplace_match): Convert unibyte chars to multibyte.
15943
15944 * syntax.c (char_quoted, back_comment, scan_words)
15945 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15946 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15947 unibyte chars to multibyte.
15948 (skip_chars): Delete the arg syntaxp, and move the code for
15949 handling syntaxes to skip_syntaxes. Change callers.
15950 Fix the case that the multibyteness of STRING and the current
15951 buffer doesn't match.
15952 (skip_syntaxes): New function.
15953 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15954 SINGLE_BYTE_CHAR_P.
15955
159562008-02-01 Kenichi Handa <handa@m17n.org>
15957
15958 * xfaces.c (QCfontset): New variable.
15959 (LFACE_FONTSET): New macro.
15960 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15961 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15962 (Finternal_set_lisp_face_attribute)
15963 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15964 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15965 check also LFACE_FONTSET_INDEX.
15966 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15967 attrs[LFACE_FONT_INDEX].
15968 (syms_of_xfaces): Intern and staticpro QCfontset.
15969
15970 * dispextern.h (enum lface_attribute_index): New member
15971 LFACE_FONTSET_INDEX.
15972
15973 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15974
159752008-02-01 Kenichi Handa <handa@m17n.org>
15976
15977 * coding.c (coding_set_destination): Fix coding->destination for
15978 the case converting a region.
15979 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15980 (encode_coding_object): Fix coding->dst_pos and
15981 coding->dst_pos_byte for the case converting a region.
15982
15983 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15984
15985 * character.h (BYTE8_STRING): New macro.
15986
15987 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15988
159892008-02-01 Kenichi Handa <handa@m17n.org>
15990
15991 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15992 characters by octal form.
15993
15994 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15995
15996 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15997 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15998 _fetch_multibyte_char_len.
15999 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16000
16001 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16002
16003 * casefiddle.c (casify_object): Simplify. Handle the case that
16004 the case conversion change the byte length.
16005 (casify_region): Likewise.
16006
16007 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16008
16009 * character.c (_fetch_multibyte_char_len): Delete this variable.
16010 (syms_of_character): Setup Vprintable_chars.
16011
16012 * editfns.c (Fchar_equal): Fix for the unibyte case.
16013 (Finsert_byte): New function.
16014 (syms_of_editfns): Defsubr it.
16015
16016 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16017 of direct code 0x3ffff.
16018
16019 * search.c (Freplace_match): Fix for the unibyte case.
16020
160212008-02-01 Kenichi Handa <handa@m17n.org>
16022
16023 * lread.c (safe_to_load_p): Fix the logic.
16024
16025 * syntax.c (scan_words): Don't treat characters belonging to
16026 different scripts as constituting a word.
16027
16028 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16029
16030 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16031
16032 * emacs.c (main): In the case of --unibyte, instead of aborting on
16033 finding non-empty buffer, make it unibyte.
16034
160352008-02-01 Kenichi Handa <handa@m17n.org>
16036
16037 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16038 to create a fontset.
16039
160402008-02-01 Dave Love <fx@gnu.org>
16041
16042 * character.c (Funibyte_char_to_multibyte): Doc fix.
16043
16044 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16045
160462008-02-01 Kenichi Handa <handa@m17n.org>
16047
16048 * fontset.c (fontset_add): Make the type `int'.
16049 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16050
16051 * character.c (unibyte_char_to_multibyte)
16052 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16053 charset_unibyte, not charset_primary.
16054
16055 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16056
16057 * charset.c (charset_unibyte): Rename from charset_primary.
16058 (Funibyte_charset): Rename from Fprimary_charset.
16059 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16060 (syms_of_charset): Adjust for the above changes.
16061
16062 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16063 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16064 it->multibyte_p is zero.
16065
16066 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16067 Delete extern.
16068
160692008-02-01 Kenichi Handa <handa@m17n.org>
16070
16071 * coding.c (Fdefine_coding_system_internal): Fix category setting
16072 for a coding system of type iso-2022.
16073
160742008-02-01 Kenichi Handa <handa@m17n.org>
16075
16076 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16077
160782008-02-01 Kenichi Handa <handa@m17n.org>
16079
16080 * syntax.c (Vnext_word_boundary_function_table): New variable.
16081 (next-word-boundary-function-table): Declare it as a Lisp variable
16082 in syms_of_syntax.
16083 (scan_words): Call functions in Vnext_word_boundary_function_table
16084 if any.
16085
16086 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16087
16088 * fontset.c (fs_load_font): If fontp->charset is not negative,
16089 return fontp without setting its members.
16090
160912008-02-01 Dave Love <fx@gnu.org>
16092
16093 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16094
16095 * m/sparc.h (HAVE_ALLOCA): Delete.
16096
16097 * s/irix6-5.h: Don't include strings.h.
16098 (bcopy, bzero, bcmp): Don't undef.
16099
16100 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16101
16102 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16103 (TIOCSIGSEND): Don't test IRIX6.
16104 (bcopy, bzero, bcmp): Define conditionally.
16105
161062008-02-01 Kenichi Handa <handa@m17n.org>
16107
16108 * buffer.c (Qas, Qmake, Qto): New variables.
16109 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16110 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16111
16112 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16113 we are inserting a process output into a multibyte buffer.
16114
16115 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16116 multibyte_char_to_unibyte.
16117
16118 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16119 by the primary charset, make it eight-bit char.
16120 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16121
16122 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16123 (charset_8_bit__control, charset_8_bit_graphic)
16124 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16125 (define_charset_internal): New function.
16126 (syms_of_charset): Call define_charset_internal for pre-defined
16127 charsets.
16128
16129 * charset.h (charset_8_bit): Extern it.
16130
16131 * coding.c (make_conversion_work_buffer): Adjust for the change
16132 of Fset_buffer_multibyte.
16133 (encode_coding_raw_text): Increment p0 in the loop.
16134
16135 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16136
16137 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16138 for the change of Fset_buffer_multibyte.
16139
16140 * fns.c (Fstring_to_multibyte): New function.
16141 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16142
161432008-02-01 Dave Love <fx@gnu.org>
16144
16145 * xfns.c (x_put_x_image): Declare args.
16146
16147 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16148 (try_font_list): Declare an arg.
16149
16150 * xdisp.c (message2_nolog, set_message): Declare an arg.
16151
16152 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16153
16154 * syntax.c (scan_sexps_forward): Declare an arg.
16155
16156 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16157 Declare an arg.
16158
16159 * lisp.h (Fnew_fontset): Declare.
16160
16161 * keymap.c (push_key_description): Call CHARACTERP correctly.
16162
16163 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16164 (face_for_char): Delete unused vars.
16165 (Fset_fontset_font): Doc fix. Delete unused vars.
16166
16167 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16168
16169 * composite.c (update_compositions): Declare arg.
16170
16171 * cm.c (calccost, cmgoto): Declare args.
16172
16173 * charset.c: Remove `emacs' conditional. Doc fixes.
16174 (map_char_table_for_charset): Declare.
16175
16176 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16177
16178 * ccl.c: Remove `emacs' conditional.
16179
161802008-02-01 Kenichi Handa <handa@m17n.org>
16181
16182 The following changes are to allow specifying multiple font
16183 patterns for a character range (specified by script or charset).
16184
16185 * Makefile.in (abbrev.o): Depend on syntax.h.
16186 (xfaces.o): Depend on charset.h.
16187
16188 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16189 SINGLE_BYTE_CHAR_P.
16190
16191 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16192
16193 * character.h (Vchar_script_table): Extern it.
16194
16195 * character.c (Vscript_alist): Delete.
16196 (Vchar_script_table, Qchar_script_table): New variable.
16197 (syms_of_character): Declare Vchar_script_table as a lisp variable
16198 and initialize it.
16199
16200 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16201 have property char-table-extra-slots, make no extra slot.
16202
16203 * dispextern.h (struct face): Delete member `charset'.
16204 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16205 SINGLE_BYTE_CHAR_P.
16206 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16207 Add prototypes.
16208 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16209 (generate_ascii_font_name): Rename from generate_ascii_font.
16210
16211 * fontset.h (get_font_repertory_func): New prototype.
16212 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16213 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16214
16215 * fontset.c (Qprepend, Qappend): New variables.
16216 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16217 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16218 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16219 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16220 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16221 (load_font_get_repertory): New functions.
16222 (fontset_set): Delete.
16223 (fontset_face): New arg FACE. Return face ID, not face.
16224 Complete re-write to handle new fontset structure. Change caller.
16225 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16226 (face_for_char): Don't call lookup_face.
16227 (make_fontset_for_ascii_face): New arg FACE.
16228 (fs_load_font): New arg CHARSET_ID. Don't check
16229 Vfont_encoding_alist here.
16230 (find_font_encoding): New function.
16231 (list_fontsets): Use STRINGP, not ! NILP.
16232 (accumulate_script_ranges): New function.
16233 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16234 re-written to handle new fontset structure.
16235 (Ffontset_font): Return a copy of element.
16236 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16237 docstring of font-encoding-alist.
16238
16239 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16240 (Fset_fotset_font): Fix arguments to 5.
16241
16242 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16243
16244 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16245 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16246 (highlight_trailing_whitespace): Adjust for the change of
16247 lookup_named_face.
16248
16249 * xfaces.c: Include charset.h.
16250 (load_face_font): Delete argument C. Change caller.
16251 (generate_ascii_font_name): Rename from generate_ascii_font.
16252 (font_name_registry): New function.
16253 (cache_face): Store ascii faces before non-ascii faces in buckets.
16254 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16255 Lookup only ascii faces.
16256 (lookup_non_ascii_face): New function.
16257 (lookup_named_face): Delete argument C. Change caller.
16258 (lookup_derived_face): Delete argument C. Change caller.
16259 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16260 a string, just call font_list with it.
16261 (choose_face_font): Delete arguments FACE and C. New arg
16262 FONT_SPEC. Change caller.
16263 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16264 Change caller.
16265 (realize_non_ascii_face): New function.
16266 (realize_x_face): Call load_face_font here.
16267 (realize_tty_face): Delete argument C. Change caller.
16268 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16269 get a face ID.
16270 (dump_realized_face): Don't print charset of FACE.
16271
16272 * xfns.c (x_set_font): Always call x_new_fontset and
16273 store_frame_parameter.
16274 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16275 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16276
16277 * xterm.h (x_get_font_repertory): Extern it.
16278
16279 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16280 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16281 it->multibyte_p is zero.
16282 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16283 (x_new_fontset): If FONTSETNAME doesn't match any existing
16284 fontsets, create a new one.
16285 (x_get_font_repertory): New function.
16286
162872008-02-01 Kenichi Handa <handa@m17n.org>
16288
16289 * coding.c (Ffind_coding_systems_region_internal): Detect an
16290 ASCII only string correctly.
16291
16292 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16293 version is 0.
16294
162952008-02-01 Kenichi Handa <handa@m17n.org>
16296
16297 * lread.c: Include "coding.h".
16298 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16299 (load_each_byte, unread_char): New variables.
16300 (readchar_backlog): Delete.
16301 (readchar): Return a character unless load_each_byte is nonzero.
16302 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16303 cons. If unread_char is not -1, simply return it.
16304 (unreadchar): Handle the case that readcharfun is
16305 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16306 (read_multibyte): Delete.
16307 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16308 (read_emacs_mule_char): New functions.
16309 (Fload): Even if the file doesn't have the extension ".elc", if
16310 safe_to_load_p returns a positive version number, assume that the
16311 file contains bytecompiled code. If the version is less than 22,
16312 load the file while decoding multibyte sequences by emacs-mule.
16313 (readevalloop): Don't use readchar_backlog.
16314 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16315 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16316 (read_escape): Delete the arg BYTEREP.
16317 (read1): Set load_each_byte to 1 temporarily while handling
16318 #@NUMBER. Don't call read_multibyte.
16319 (read_vector): Call Fread with a cons. If readcharfun is
16320 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16321 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16322 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16323 and Qload_force_doc_strings.
16324
163252008-02-01 Kenichi Handa <handa@m17n.org>
16326
16327 * xdisp.c (face_before_or_after_it_pos): Call
16328 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16329
163302008-02-01 Kenichi Handa <handa@m17n.org>
16331
16332 * character.h (TRAILING_CODE_P): New macro.
16333 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16334 (string_char_with_unification): Fix prototype.
16335 (Vscript_alist): Extern it.
16336
16337 * character.c (Vscript_alist): New variable.
16338 (string_char_with_unification, str_as_unibyte)
16339 (string_escape_byte8): Add `const' to local variables.
16340 (syms_of_character): Declare script-alist as a Lisp variable.
16341
16342 * charset.h (Vcharset_ordered_list): Extern it.
16343 (charset_ordered_list_tick): Extern it.
16344 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16345 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16346 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16347 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16348 (Funify_charset): Adjust for the change of Funify_charset.
16349
16350 * charset.c (charset_ordered_list_tick): New variable.
16351 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16352 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16353 deunify intead of unify a charset.
16354 (string_xstring_p): Add `const' to local variables.
16355 (find_charsets_in_text): Add `const' to arguments and local variables.
16356 (encode_char): Adjust for the change of Funify_charset. Fix
16357 detecting of invalid code.
16358 (Fset_charset_priority): Increment charset_ordered_list_tick.
16359 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16360 and TO_CODE.
16361
16362 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16363 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16364 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16365 (decode_coding_ccl, consume_chars)
16366 (Ffind_coding_systems_region_internal)
16367 (Fcheck_coding_systems_region): Add `const' to local variables.
16368
16369 * print.c (print_object): Use octal form for printing the
16370 contents of a bool vector.
16371
163722008-02-01 Dave Love <fx@gnu.org>
16373
16374 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16375 <version == 20>: Refuse to load.
16376
163772008-02-01 Dave Love <fx@gnu.org>
16378
16379 * fns.c: Move coding.h.
16380 (Qcodeset, Qdays, Qmonths): New.
16381 (concat): Use CHARACTERP instead of INTEGERP.
16382 (Flocale_codeset): Delete.
16383 (Flanginfo): New function.
16384 (syms_of_fns): Change accordingly.
16385
16386 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16387
163882008-02-01 Dave Love <fx@gnu.org>
16389
16390 * casetab.c (init_casetab_once, init_casetab_once): Fix
16391 CHAR_TABLE_SET call.
16392
16393 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16394
16395 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16396
16397 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16398 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16399 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16400
16401 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16402
16403 * coding.c (ENCODE_DESIGNATION, decode_eol)
16404 (make_conversion_work_buffer, code_conversion_restore)
16405 (Fdefine_coding_system_internal): Convert Lisp types.
16406 (code_conversion_restore): Use EQ, not ==.
16407 (Fencode_coding_string): Fix code_convert_string call.
16408
16409 * coding.h (code_convert_region): Fix prototype.
16410
16411 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16412
16413 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16414 (Ffontset_info): Convert Lisp types.
16415
16416 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16417
16418 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16419
16420 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16421
16422 * chartab.c: Include "...h", not <...h> in some cases.
16423
16424 * callproc.c (Fcall_process): Remove unused variables.
16425
164262008-02-01 Dave Love <fx@gnu.org>
16427
16428 * coding.c (Fset_coding_system_priority): Allow null arg list.
16429
164302008-02-01 Dave Love <fx@gnu.org>
16431
16432 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16433 (Fself_insert_and_exit): Use CHARACTERP.
16434
16435 * callproc.c (Fcall_process): Remove unused vars.
16436
16437 * xterm.c (XTread_socket): Add extra dead keysyms.
16438
16439 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16440
16441 * dispextern.h: Remove prototypes for redraw_frame,
16442 redraw_garbaged_frames.
16443
16444 * cmds.c (Fself_insert_command): Use CHARACTERP.
16445
16446 * chartab.c (make_sub_char_table): Remove unused var.
16447 (Fset_char_table_default, Fmap_char_table): Doc fix.
16448
16449 * keymap.c (access_keymap): Remove generic char code.
16450 (push_key_description): Use CHARACTERP.
16451
164522008-02-01 Dave Love <fx@gnu.org>
16453
16454 * charset.c: Doc fixes.
16455 (Funify_charset): Extra checking.
16456
164572008-02-01 Dave Love <fx@gnu.org>
16458
16459 * lread.c: Remove some unused variables.
16460 (safe_to_load_p): If safe, return the magic number version byte.
16461 (Fload): Maybe use load-with-code-conversion.
16462
164632008-02-01 Kenichi Handa <handa@m17n.org>
16464
16465 * category.c (Fmodify_category_entry): Don't modify the contents
16466 of category_set for characters out of the range. Avoid
16467 unnecessary modification.
16468
16469 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16470 Vchar_unify_table. The default value of the table is now nil.
16471
16472 * character.c (syms_of_character): Setup Vchar_width_table for
16473 eight-bit-control and raw-byte chars.
16474
16475 * charset.h (enum define_charset_arg_index): Delete
16476 charset_arg_parents and add charset_arg_subset and
16477 charset_arg_superset.
16478 (enum charset_attr_index): Delete charset_parents and add
16479 charset_subset and charset_superset.
16480 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16481 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16482 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16483 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16484 (CHARSET_SUPERSET): New macros.
16485 (charset_work): Extern it.
16486 (ENCODE_CHAR): Use charset_work.
16487 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16488 (map_charset_chars): Extern it.
16489
16490 * charset.c (load_charset_map): Set the default value of encoder
16491 and deunifier char-tables to nil.
16492 (map_charset_chars): Change argument. Change callers. Use
16493 map_char_table_for_charset instead of map_char_table.
16494 (Fmap_charset_chars): New optional args from_code and to_code.
16495 (Fdefine_charset_internal): Adjust for the change of
16496 `define-charset' (:parents -> :subset or :superset).
16497 (charset_work): New variable.
16498 (encode_char, syms_of_charset): Adjust for the change of
16499 Fdefine_charset_internal.
16500 (Ffind_charset_string): Setup the vector `charsets' correctly.
16501
16502 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16503 the previous change.
16504 (char_table_ref_and_range): Adjust for the above change.
16505 (map_sub_char_table_for_charset): New function.
16506 (map_char_table_for_charset): New function.
16507
16508 * keymap.c (describe_vector): Handle a char-table directly here.
16509 (describe_char_table): Delete.
16510
16511 * lisp.h (map_charset_chars): Delete.
16512
165132008-02-01 Dave Love <fx@gnu.org>
16514
16515 * fns.c (count_combining): Comment out (unused).
16516 (Flocale_codeset): New.
16517 (syms_of_fns): Defsubr it.
16518
16519 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16520 (size_t): Remove.
16521
165222008-02-01 Dave Love <fx@gnu.org>
16523
16524 * Makefile.in (chartab.o): Depend on charset.h.
16525
165262008-02-01 Kenichi Handa <handa@m17n.org>
16527
16528 * character.c (syms_of_character): Set the default value of
16529 Vprintable_chars to Qnil.
16530
165312008-02-01 Dave Love <fx@gnu.org>
16532
16533 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * charset.c (load_charset_map): Handle the case that from < to
16538 correctly.
16539
16540 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16541 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16542 Pay attention to raw-8-bit chars.
16543
165442008-02-01 Kenichi Handa <handa@m17n.org>
16545
16546 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16547 It is not bytecompiled now.
16548
16549 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16550 (charset_jisx0208): New variables.
16551 (Fdefine_charset_internal): Setup them if appropriate.
16552 (init_charset_once): Initialize them to -1.
16553
16554 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16555 (charset_jisx0208): Extern them.
16556
16557 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16558 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16559 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16560 (setup_iso_safe_charsets): Fix arguments to Fassq.
16561 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16562 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16563 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16564 (encode_coding_iso_2022): Change the 1st arg to
16565 ENCODE_ISO_CHARACTER to a variable.
16566
165672008-02-01 Kenichi Handa <handa@m17n.org>
16568
16569 * charset.h (enum define_charset_arg_index): New enums
16570 charset_arg_min_code and charset_arg_max_code.
16571 (struct charset): New member char_index_offset.
16572
16573 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16574 Take charset->char_index_offset into account.
16575 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16576 args[charset_arg_max_code]. Setup charset.char_index_offset.
16577 (syms_of_charset): Fix args to Fdefine_charset_internal.
16578
165792008-02-01 Dave Love <fx@gnu.org>
16580
16581 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16582
165832008-02-01 Dave Love <fx@gnu.org>
16584
16585 * coding.c: Doc fixes.
16586 (Fcoding_system_aliases): Fix return value.
16587 (Qmac): Remove (duplicated) definition.
16588
165892008-02-01 Dave Love <fx@gnu.org>
16590
362654a6
JB
16591 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16592 New functions.
aac0c6e3
MR
16593
16594 * character.c (Fstring): Doc fix.
16595
16596 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16597
362654a6 16598 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16599 (font-encoding-alist): Doc fix.
16600
166012008-02-01 Dave Love <fx@gnu.org>
16602
16603 * term.c (costs_set): Declare static, non-initialized for pcc.
16604 (encode_terminal_code): Remove unused var.
16605
16606 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16607 for K&R.
16608
16609 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16610
16611 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16612 (suffixes): Move out of make_subsidiaries for K&R.
16613
16614 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16615
16616 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16617
166182008-02-01 Dave Love <fx@gnu.org>
16619
16620 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16621
16622 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16623
166242008-02-01 Yong Lu <lyongu@asia-infonet.com>
16625
16626 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16627
16628 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16629
166302008-02-01 Kenichi Handa <handa@m17n.org>
16631
16632 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16633 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16634
166352008-02-01 Kenichi Handa <handa@m17n.org>
16636
16637 * coding.c (decode_coding_charset): Adjust for the change of
16638 Fdefine_coding_system_internal.
16639 (Fdefine_coding_system_internal): For a coding system of
16640 `charset' type, store a list of charset IDs in
16641 `charset_attr_charset_valids' element of coding attributes.
16642
166432008-02-01 Kenichi Handa <handa@m17n.org>
16644
16645 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16646 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16647 caller. Handle 2-byte and 3-byte charsets correctly.
16648 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16649 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16650 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16651 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16652 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16653 sequence.
16654 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16655 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16656 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16657 and alt&rule composition.
16658 (decode_coding_iso_2022): Handle composition correctly.
16659 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16660
16661 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16662 re-defining a charset. If the charset has :emacs-mule-id, setup
16663 emacs_mule_bytes.
16664 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16665
166662008-02-01 Kenichi Handa <handa@m17n.org>
16667
16668 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16669 (encode_coding_big5, encode_coding_charset): If coding requires safe
16670 encoding, produce a character specified by
16671 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16672
166732008-02-01 Dave Love <fx@gnu.org>
16674
16675 * xterm.c (XSetIMValues): Declare.
16676
16677 * process.c: Conditionally include sys/wait.h, pty.h.
16678
16679 * print.c (print_object): Fix print format for 64-bit systems.
16680
16681 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16682
16683 * buffer.c (emacs_strerror): Declare.
16684
16685 * fontset.c (Fclear_face_cache): Declare.
16686 (accumulate_font_info): Comment-out (unused).
16687 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16688 variables.
16689
16690 * character.h (string_escape_byte8): Declare.
16691
16692 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16693 unused vars.
16694 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16695 (Fmap_charset_chars): Doc fix.
16696
16697 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16698 (Fset_coding_system_priority, Fset_coding_system_priority)
16699 (Fdefine_coding_system_internal): Doc fix.
16700
167012008-02-01 Dave Love <fx@gnu.org>
16702
16703 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16704
167052008-02-01 Kenichi Handa <handa@m17n.org>
16706
16707 * character.c (string_escape_byte8): Make multibyte string with
16708 correct size.
16709
16710 * charset.c (Fmake_char): Delete unnecessary code.
16711
167122008-02-01 Kenichi Handa <handa@m17n.org>
16713
16714 * xfns.c (x_encode_text): Allocate coding.destination here, and
16715 call encode_coding_object with dst_object Qnil.
16716
16717 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16718 multibyte form correctly.
16719
16720 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16721 against Vfont_encoding_alist.
16722
16723 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16724 handling of charset list.
16725 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16726 (decode_coding_object): Move point to coding->dst_pos before
16727 calling post-read-conversion function.
16728 (encode_coding_object): Give correct arguments to
16729 pre-write-conversion. Ignore the return value of
16730 pre-write-conversion function. Pay attention to the case that
16731 pre-write-conversion changes the current buffer. If dst_object is
16732 Qt, even if coding->src_bytes is zero, allocate at least one byte
16733 to coding->destination.
16734
16735 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16736
16737 * charset.c (Fmake_char): Make it more backward compatible.
16738 (Fmap_charset_chars): Fix docstring.
16739
167402008-02-01 Dave Love <fx@gnu.org>
16741
16742 * coding.c: Doc fixes.
16743 (Fdefine_coding_system_alias): Use names, not symbols, in
16744 coding-system-alist.
16745
167462008-02-01 Kenichi Handa <handa@m17n.org>
16747
16748 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16749 of calling free_realized_face.
16750
167512008-02-01 Yong Lu <lyongu@asia-infonet.com>
16752
16753 * charset.c (read_hex): Don't treat SPC as a comment starter.
16754 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16755 (Fdecode_char): Fix typo.
16756
167572008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * charset.h (struct charset): New member `code_space_mask'.
16760
16761 * coding.c (coding_set_source): Delete the local variable beg_byte.
16762 (encode_coding_charset, Fdefine_coding_system_internal):
16763 Delete the local variable charset.
16764 (Fdefine_coding_system_internal): Setup
16765 attrs[coding_attr_charset_valids] correctly.
16766
16767 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16768 member to check if CODE is valid or not.
16769 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16770 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16771 is within the range of charset->min_code and carset->max_code.
16772
167732008-02-01 Dave Love <fx@gnu.org>
16774
16775 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16776
16777 * dispextern.h (generate_ascii_font): Fix return type.
16778
16779 * xfaces.c (generate_ascii_font): Fix arg declaration.
16780
16781 * coding.c (coding_inherit_eol_type)
16782 (Fset_terminal_coding_system_internal)
16783 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16784
167852008-02-01 Kenichi Handa <handa@m17n.org>
16786
16787 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16788 multiple charsets correctly.
16789
167902008-02-01 Kenichi Handa <handa@m17n.org>
16791
16792 * search.c (boyer_moore): Fix handling of multibyte character
16793 translation.
16794
16795 * xdisp.c (display_mode_element): When the variable `elt' is
16796 changed, update `this' and `lisp_string'.
16797
167982008-02-01 Kenichi Handa <handa@m17n.org>
16799
16800 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16801
16802 * callproc.c (Fcall_process): Be sure to give the current buffer
16803 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16804
16805 * charset.c (struct charset_map_entries): New struct.
16806 (load_charset_map): Rename from parse_charset_map. New args
16807 entries and n_entries. Change caller.
16808 (load_charset_map_from_file): Rename from load_charset_map.
16809 Change caller. New arg control_flag. Call load_charset_map at
16810 the tail.
16811 (load_charset_map_from_vector): New function.
16812 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16813 (encode_char): If the charset is compact, change a character index
16814 to a code point.
16815
16816 * coding.c (coding_alloc_by_making_gap): Check the case that the
16817 source and destination are the same correctly.
16818 (decode_coding_raw_text): Set coding->consumed_char and
16819 coding->consumed to 0.
16820 (produce_chars): If coding->chars_at_source is nonzero, update
16821 coding->consumed_char and coding->consumed before calling
16822 alloc_destination.
16823 (Fdefine_coding_system_alias): Register ALIAS in
16824 Vcoding_system_alist.
16825 (syms_of_coding): Define `no-conversion' coding system at the tail.
16826
16827 * fileio.c (Finsert_file_contents): Set coding_system instead of
16828 val. If the current buffer is multibyte, always call
16829 decode_coding_gap.
16830
16831 * xfaces.c (try_font_list): Give higher priority to fontset's
16832 family than face's family.
16833
168342008-02-01 Kenichi Handa <handa@m17n.org>
16835
16836 * callproc.c (Fcall_process): Be sure to give the current buffer
16837 to decode_coding_c_string.
16838
16839 * xfaces.c (try_font_list): Give a family specified in a fontset
16840 higher priority than a family specified in a face.
16841
168422008-02-01 Kenichi Handa <handa@m17n.org>
16843
16844 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16845 Fix arguments to insert_from_buffer.
16846
16847 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16848
168492008-02-01 Kenichi Handa <handa@m17n.org>
16850
16851 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16852 (decode_coding_gap): Set coding->dst_multibyte correctly.
16853
168542008-02-01 Kenichi Handa <handa@m17n.org>
16855
16856 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16857 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16858 (encode_coding_utf_16): Substitute coding->default_char for
16859 non-Unicode characters.
16860 (decode_coding): Don't call record_insert here.
16861 (setup_coding_system): Initialize `surrogate' of
16862 coding->spec.utf_16 to 0.
16863 (EMIT_ONE_BYTE): Fix for multibyte case.
16864
16865 * insdel.c (insert_from_gap): Call record_insert.
16866
168672008-02-01 Kenichi Handa <handa@m17n.org>
16868
16869 * casefiddle.c (casify_region): Fix multibyte case.
16870
16871 * character.c (c_string_width): Add return type `int'.
16872 (char_string_with_unification): Delete arg ADVANCED.
16873
16874 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16875 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16876 (CHAR_STRING_ADVANCE): Make it do-while statement.
16877
16878 * chartab.c (sub_char_table_set_range): Optimize for the case
16879 DEPTH == 3. Add workaround code for a GCC optimization bug.
16880
16881 * charset.c (parse_charset_map): Remove an unused variable.
16882
16883 * coding.c: Delete unused variables.
16884
16885 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16886 earlier. If inserted is zero and the coding system doesn't
16887 require flushing, don't call decode_coding_gap.
16888
16889 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16890
168912008-02-01 Kenichi Handa <handa@m17n.org>
16892
16893 The following changes are for using Unicode as an internal
16894 character model, and use UTF-8 format for buffer/string
16895 representation.
16896
16897 * .gdbinit (xchartable): Adjust for the change of char table structure.
16898 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16899
16900 * Makefile.in (obj): Add character.o and chartab.o.
16901 (lisp, shortlisp): Remove utf-8.elc.
16902 (*.o): For many files, change dependency on charset.h to
16903 character.h, and add dependency on character.h.
16904 (character.o, chartab.o): New targets.
16905
16906 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16907 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16908 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16909 of "charset.h".
16910
16911 * dired.c, filelock.c: Include "character.h".
16912
16913 * alloc.c: Include "character.h" instead of "charset.h".
16914 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16915 (syms_of_alloc): Remove defsubr for Smake_char_table.
16916
16917 * buffer.c: Include "character.h" instead of "charset.h", don't
16918 include "coding.h".
16919 (Fset_buffer_multibyte): Adjust for UTF-8.
16920
16921 * buffer.h: EXFUN Fbuffer_live_p.
16922
16923 * callproc.c: Include "character.h" instead of "charset.h".
16924 (Fcall_process): Big change for the new code-conversion APIs.
16925
16926 * casetab.c: Include "character.h" instead of "charset.h".
16927 (set_canon, set_identity, shuffle): Adjust for the new
16928 map_char_table spec.
16929 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16930 accessing the char table structure.
16931
16932 * chartab.c: New file that implements char table.
16933
16934 * category.c: Include "character.h".
16935 (copy_category_entry): New function.
16936 (copy_category_table): Call map_char_table and copy_category_entry.
16937 (Fmake_category_table): Initialize all top-level slots.
16938 (char_category_set): New function.
16939 (modify_lower_category_set): Delete.
16940 (Fmodify_category_entry): Call char_table_ref_and_range.
16941
16942 * category.h (CATEGORY_SET): Just call char_category_set.
16943
16944 * ccl.c: Include "character.h".
16945 (Qccl, Qcclp): New variables.
16946 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16947 it's less than 256.
16948 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16949 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16950 and DST type.
16951 (ccl_driver): Change types of argument, adjust code accordingly.
16952 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16953 ccl_driver.
16954 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16955
16956 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16957 New members src_multibyte, dst_multibyte, consumed, and produced.
16958 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16959 (CODING_SPEC_CCL_PROGRAM): New macro.
16960 (ccl_driver): Update prototype.
16961 (Qccl, Qcclp, Fccl_program_p): Extern them.
16962 (CHECK_CCL_PROGRAM): New macro.
16963
16964 * character.c, character.h, chartab.c: New files.
16965
16966 * charset.c: Mostly re-written. Move character and multibyte sequence
16967 handling codes to character.c.
16968
16969 * charset.h: Mostly re-written. Move character and multibyte sequence
16970 handling codes to character.h.
16971
16972 * coding.c, coding.h: Mostly re-written.
16973
16974 * composite.c: Include "character.h" instead of "charset.h".
16975 (CHAR_WIDTH): Move to character.h.
16976 (HASH_KEY, HASH_VALUE): Delete.
16977
16978 * composite.h (enum composition_method): Change order of enumeration
16979 symbols.
16980
16981 * data.c: Include "character.h" instead of "charset.h".
16982 (Faref): Call CHAR_TABLE_REF for a char table.
16983 (Faset): Call CHAR_TABLE_SET for a char table.
16984
16985 * dispextern.h (free_realized_face, check_face_attribytes)
16986 (generate_ascii_font): Extern them.
16987 (free_realized_multibyte_face): Delete extern.
16988
16989 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16990 table structure.
16991
16992 * editfns.c: Include "character.h" instead of "charset.h".
16993 (Fchar_to_string): Always call CHAR_STRING.
16994
16995 * emacs.c (main): Call init_charset_once, init_charset,
16996 syms_of_chartab, and syms_of_character.
16997
16998 * fileio.c: Include "character.h" instead of "charset.h".
16999 (Finsert_file_contents): Big change for the new code-conversion API.
17000 (choose_write_coding_system, Fwrite_region): Likewise.
17001 (build_annotations_2): Delete.
17002 (e_write): Big change for the new code-conversion API.
17003
17004 * fns.c: Include "character.h" instead of "charset.h".
17005 (copy_sub_char_table): Move to chartab.c.
17006 (Fcopy_sequence): Call copy_char_table for a char table.
17007 (concat): Delete codes calling count_multibyte.
17008 (string_char_to_byte, string_byte_to_char): Adjust for the new
17009 multibyte form.
17010 (internal_equal): Adjust for the change of char table structure.
17011 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17012 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17013 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17014 (char_table_translate, optimize_sub_char_table)
17015 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17016 chartab.c.
17017 (char_table_ref_and_index): Delete.
17018 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17019 (Fmd5): Call preferred_coding_system instead of accessing
17020 Vcoding_category_list. Adjust for the new code-conversion API.
17021 (syms_of_fns): Move defsubr for char table related functions to
17022 chartab.c.
17023
17024 * fontset.c: Mostly re-written.
17025
17026 * fontset.h (struct font_info): Change type of the member encoding_type.
17027 (enum FONT_SPEC_INDEX): New enum.
17028 (fontset_font_pattern, fs_load_font): Update prototype.
17029 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17030
17031 * indent.c: Include "character.h" instead of "charset.h".
17032 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17033
17034 * insdel.c: Include "character.h" instead of "charset.h".
17035 (copy_text): Don't refer to Vnonascii_translation_table.
17036 (insert_from_gap): New function.
17037
17038 * keyboard.c: Include "character.h" instead of "charset.h".
17039 (command_loop_1): Never call direct_output_forward_char before
17040 a non-ASCII character.
17041 (read_char): If Vkeyboard_translate_table is a char table, always
17042 translate a character.
17043
17044 * keymap.c: Include "character.h".
17045 (store_in_keymap): Handle the case that IDX is a cons.
17046 (Fdefine_key): Handle the case that KEY is a cons and the car part
17047 is also a cons (range).
17048 (push_key_description): Adjust for the new character code.
17049 (describe_vector): Call describe_char_table for a char table.
17050 (describe_char_table): New function.
17051
17052 * keymap.h (describe_char_table): Extern it.
17053
17054 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17055 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17056 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17057 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17058 Delete.
17059 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17060 structure.
17061 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17062 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17063 (CHARTAB_SIZE_BITS_3): New macros.
17064 (chartab_size): Extern it.
17065 (struct Lisp_Char_Table): Re-design.
17066 (struct Lisp_Sub_Char_Table): New structure.
17067 (HASH_KEY, HASH_VALUE): Move from fns.c.
17068 (CHARACTERBITS): Define as 22.
17069 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17070 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17071 (GC_SUB_CHAR_TABLE_P): New macro.
17072 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17073 (code_convert_string_norecord): Deleted extern.
17074 (init_character_once, syms_of_character, init_charset)
17075 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17076
17077 * lread.c: Include "character.h".
17078 (read_multibyte): New arg NBYTES.
17079 (read_escape): Change the meaning of returned *BYTEREP.
17080 (to_multibyte): Delete.
17081 (read1): Adjust the handling of char table and string.
17082
17083 * print.c: Include "character.h" instead of "charset.h".
17084 (print_string): Convert 8-bit raw bytes to octal form by
17085 string_escape_byte8.
17086 (print_object): Adjust for the new multibyte form. Print 8-bit
17087 raw bytes always in octal form. Handle sub char table correctly.
17088
17089 * process.c: Include "character.h" instead of "charset.h".
17090 (read_process_output, send_process): Adjust for the new
17091 code-conversion API.
17092
17093 * puresize.h (BASE_PURESIZE): Increase.
17094
17095 * regex.c: Include "character.h" instead of "charset.h".
17096 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17097 (regex_compile): Accept a range whose starting and ending
17098 character have different leading bytes.
17099 (analyse_first): Adjust for the above change.
17100
17101 * search.c: Include "character.h" instead of "charset.h".
17102 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17103 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17104
17105 * syntax.c: Include "character.h" instead of "charset.h".
17106 (syntax_parent_lookup): Delete.
17107 (Fmodify_syntax_entry): Accept a cons as CHAR.
17108 (skip_chars): Adjust for the new multibyte form.
17109 (init_syntax_once): Call char_table_set_range instead of directly
17110 accessing the structure of a char table.
17111
17112 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17113 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17114 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17115 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17116
17117 * term.c: Include "buffer.h" and "character.h".
17118 (encode_terminal_code, write_glyphs): Adjust for the new
17119 code-conversion API.
17120 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17121
17122 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17123
17124 * xdisp.c: Include "character.h".
17125 (get_next_display_element): Adjust for the new multibyte form.
17126 (disp_char_vector): Adjust for the new char table structure.
17127 (decode_mode_spec_coding): Adjust for the new structure of
17128 coding system.
17129 (decode_mode_spec): Adjust for the new code-conversion API.
17130
17131 * xfaces.c: Include "character.h" instead of "charset.h".
17132 (load_face_font): Adjust for the change of choose_face_font and
17133 FS_LOAD_FONT.
17134 (generate_ascii_font): New function.
17135 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17136 (set_font_frame_param): Adjust for the change of choose_face_font.
17137 (free_realized_face): Make it public.
17138 (free_realized_faces_for_fontset): Rename from
17139 free_realized_multibyte_face. Free also faces realized for ASCII.
17140 (choose_face_font): Change arguments. Adjust for the change of
17141 fontset_font_pattern and FS_LOAD_FONT.
17142
17143 * xfns.c: Include "character.h".
17144 (x_encode_text): Adjust for the new code-conversion API.
17145
17146 * xselect.c: Don't include "charset.h".
17147 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17148
17149 * xterm.c: Include "character.h".
17150 (x_encode_char): New argument CHARSET. Change caller.
17151 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17152 Call ENCODE_CHAR instead of SPLIT_CHAR.
17153 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17154 CHAR_WIDTH instead of CHARSET_WIDTH.
17155 (XTread_socket): Adjust for the new code-conversion API.
17156 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17157 (x_load_font): Adjust for the change of struct font.
17158
171592008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17160
17161 * xfaces.c (face_at_buffer_position): Remove unused vars.
17162
171632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17164
17165 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17166 Fix overflow checking.
17167
171682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17169
17170 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17171 Cancel previous change.
17172
171732008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17174
17175 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17176 ccl->eight_bit_control. Fix check for buffer overflow.
17177 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17178 (ccl_driver): Initialize extra_bytes to 0.
17179
171802008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17181
17182 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17183 return it ORed with ctrl_modifier.
17184
171852008-01-29 Miles Bader <miles@gnu.org>
17186
17187 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17188
171892008-01-28 Jason Rumney <jasonr@gnu.org>
17190
17191 * w32.c (stat): Don't double check for networked drive.
17192
171932008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17194
17195 * window.c (run_window_configuration_change_hook): New function.
17196 Code extracted from set_window_buffer. Set the selected frame.
17197 (set_window_buffer): Use it.
17198 * window.h (run_window_configuration_change_hook): Declare.
17199 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17200
17201 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17202
172032008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17204
17205 * Makefile.in: Remove references to unused macros.
17206
172072008-01-26 Eli Zaretskii <eliz@gnu.org>
17208
17209 * w32.c (g_b_init_get_sid_sub_authority)
17210 (g_b_init_get_sid_sub_authority_count): New static variables.
17211 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17212 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17213 (init_user_info): Use them to retrieve uid and gid.
17214 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17215 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17216 st_uid and st_gid of the file.
17217
172182008-01-26 Jason Rumney <jasonr@gnu.org>
17219
17220 * w32.c (logon_network_drive): New function.
17221 (stat): Use it.
17222
172232008-01-26 Chong Yidong <cyd@stupidchicken.com>
17224
17225 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17226 invisible text covered with an ellipsis.
17227
172282008-01-25 Richard Stallman <rms@gnu.org>
17229
17230 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17231 jump back to beginning. Move some other initializations after that.
17232 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17233 New variables.
17234 (syms_of_xdisp): Init them.
17235
17236 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17237
17238 * buffer.c (reset_buffer_local_variables):
17239 Implement `permanent-local-hook'.
17240 (Qpermanent_local_hook): New variable.
17241 (syms_of_buffer): Init and staticpro it.
17242
172432008-01-25 Michael Albinus <michael.albinus@gmx.de>
17244
17245 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17246
172472008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17248
17249 * fns.c (Fclrhash): Return TABLE.
17250
172512008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17252
17253 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17254 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17255 is set even without positional changes.
17256 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17257
17258 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17259
172602008-01-23 Jason Rumney <jasonr@gnu.org>
17261
17262 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17263
17264 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17265 the unicode range available in MULE by locale-coding-system.
17266 Improve dbcs lead byte detection. Set event timestamp and modifiers
17267 earlier.
17268
172692008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17270
17271 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17272 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17273 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17274 when used on child processes.
17275
172762008-01-21 Michael Albinus <michael.albinus@gmx.de>
17277
17278 * dbusbind.c (Fdbus_method_return_internal): Rename from
17279 Fdbus_method_return.
17280 (Fdbus_unregister_object): Move to dbus.el.
17281 (Fdbus_call_method, Fdbus_method_return_internal)
17282 (Fdbus_send_signal): Improve debug messages.
17283
172842008-01-20 Martin Rudalics <rudalics@gmx.at>
17285
17286 * undo.c (undo_inhibit_record_point): New variable.
17287 (syms_of_undo): Initialize it.
17288 (record_point): Don't record point when undo_inhibit_record_point
17289 is set.
17290
172912008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17292
17293 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17294
17295 * xdisp.c (Qauto_hscroll_mode): New var.
17296 (syms_of_xdisp): Initialize it.
17297 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17298 window's buffer.
17299 (hscroll_windows): Don't check automatic_hscrolling_p here.
17300
17301 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17302 vscroll if we're setting window-buffer to the value it already has.
17303
173042008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17305
17306 * m/intel386.h: Remove references to XENIX.
17307
173082008-01-17 Andreas Schwab <schwab@suse.de>
17309
17310 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17311 instead of HAVE_X86_64_LIB64_DIR.
17312 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17313
173142008-01-17 Glenn Morris <rgm@gnu.org>
17315
17316 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17317 to HAVE_X86_64_LIB64_DIR.
17318
173192008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17320
17321 * s/irix3-3.h:
17322 * s/irix4-0.h:
17323 * s/386-ix.h:
17324 * s/domain.h:
17325 * s/hpux9-x11r4.h:
17326 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17327
17328 * sysdep.c: Remove code containing references to symbols defined
17329 by unsupported systems.
17330
173312008-01-16 Glenn Morris <rgm@gnu.org>
17332
17333 * coding.c (select-safe-coding-system-function): Doc fix.
17334
173352008-01-15 Glenn Morris <rgm@gnu.org>
17336
17337 * config.in: Revert 2008-01-13 change: this is a generated file.
17338
173392008-01-13 Tom Tromey <tromey@redhat.com>
17340
17341 * lisp.h: Fix typo.
17342
173432008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17344
17345 * m/sequent-ptx.h:
17346 * m/sequent.h:
17347 * s/ptx.h:
17348 * s/ptx4-2.h:
17349 * s/ptx4.h: Remove files for systems no longer supported.
17350
17351 * callproc.c (Fcall_process): Fix previous change.
17352
173532008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17354
17355 * unexsunos4.c: Remove file, system not supported anymore.
17356
17357 * m/mips.h:
17358 * m/intel386.h:
17359 * callproc.c:
17360 * config.in:
17361 * ecrt0.c:
17362 * emacs.c:
17363 * fileio.c:
17364 * frame.c:
17365 * getpagesize.h:
17366 * keyboard.c:
17367 * lread.c:
17368 * process.c:
17369 * puresize.h:
17370 * sysdep.c:
17371 * systty.h:
17372 * syswait.h:
17373 * unexec.c:
17374 * xdisp.c:
17375 * alloc.c: Remove code containing references to symbols defined by
17376 unsupported systems.
17377
173782008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17379
17380 * coding.c (detect_coding_mask): Fix previous change.
17381
173822008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17383
17384 * coding.c (detect_coding_iso2022): New arg
17385 latin_extra_code_state. Allow Latin extra codes only
17386 when *latin_extra_code_state is nonzero.
17387 (detect_coding_mask): If there is a NULL byte, detect the encoding
17388 as UTF-16 or binary. If Latin extra codes exist, detect the
17389 encoding as ISO-2022 only when there's no other proper encoding is
17390 found.
17391
173922008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17393
17394 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17395 #ifdef MAC_OS.
17396
173972008-01-08 Richard Stallman <rms@gnu.org>
17398
17399 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17400
174012008-01-06 Nick Roberts <nickrob@snap.net.nz>
17402
17403 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17404 menu bar in parentheses.
17405
174062008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17407
17408 * m/7300.h:
17409 * m/acorn.h:
17410 * m/alliant-2800.h:
17411 * m/alliant.h:
17412 * m/alliant1.h:
17413 * m/alliant4.h:
17414 * m/altos.h:
17415 * m/amdahl.h:
17416 * m/apollo.h:
17417 * m/att3b.h:
17418 * m/aviion-intel.h:
17419 * m/aviion.h:
17420 * m/celerity.h:
17421 * m/clipper.h:
17422 * m/cnvrgnt.h:
17423 * m/convex.h:
17424 * m/cydra5.h:
17425 * m/delta88k.h:
17426 * m/dpx2.h:
17427 * m/dual.h:
17428 * m/elxsi.h:
17429 * m/f301.h:
17430 * m/gould-np1.h:
17431 * m/gould.h:
17432 * m/i860.h:
17433 * m/ibmps2-aix.h:
17434 * m/ibmrt-aix.h:
17435 * m/ibmrt.h:
17436 * m/irist.h:
17437 * m/is386.h:
17438 * m/isi-ov.h:
17439 * m/mega68.h:
17440 * m/mg1.h:
17441 * m/news-r6.h:
17442 * m/news-risc.h:
17443 * m/news.h:
17444 * m/nh3000.h:
17445 * m/nh4000.h:
17446 * m/ns16000.h:
17447 * m/ns32000.h:
17448 * m/nu.h:
17449 * m/orion.h:
17450 * m/orion105.h:
17451 * m/paragon.h:
17452 * m/pfa50.h:
17453 * m/plexus.h:
17454 * m/pyramid.h:
17455 * m/pyrmips.h:
17456 * m/sh3el.h:
17457 * m/sps7.h:
17458 * m/sr2k.h:
17459 * m/stride.h:
17460 * m/sun1.h:
17461 * m/sun2.h:
17462 * m/sun3-68881.h:
17463 * m/sun3-fpa.h:
17464 * m/sun3-soft.h:
17465 * m/sun3.h:
17466 * m/sun386.h:
17467 * m/symmetry.h:
17468 * m/tad68k.h:
17469 * m/tahoe.h:
17470 * m/targon31.h:
17471 * m/tek4300.h:
17472 * m/tekxd88.h:
17473 * m/tower32.h:
17474 * m/tower32v3.h:
17475 * m/ustation.h:
17476 * m/wicat.h:
17477 * m/xps100.h:
17478 * s/cxux.h:
17479 * s/cxux7.h:
17480 * s/dgux.h:
17481 * s/dgux4.h:
17482 * s/dgux5-4-3.h:
17483 * s/dgux5-4r2.h:
17484 * s/esix.h:
17485 * s/esix5r4.h:
17486 * s/hiuxmpp.h:
17487 * s/hiuxwe2.h:
17488 * s/iris3-5.h:
17489 * s/iris3-6.h:
17490 * s/isc2-2.h:
17491 * s/isc3-0.h:
17492 * s/isc4-0.h:
17493 * s/isc4-1.h:
17494 * s/newsos5.h:
17495 * s/newsos6.h:
17496 * s/osf1.h:
17497 * s/osf5-0.h:
17498 * s/riscix1-1.h:
17499 * s/riscix12.h:
17500 * s/sco4.h:
17501 * s/sco5.h:
17502 * s/sunos4-0.h:
17503 * s/sunos4-1.h:
17504 * s/sunos413.h:
17505 * s/sunos4shr.h:
17506 * s/umax.h:
17507 * s/unipl5-2.h:
17508 * s/xenix.h:
17509 * cxux-crt0.s:
17510 * unexapollo.c:
17511 * unexconvex.c:
17512 * unexenix.c:
17513 * unexsni.c: Remove files for systems no longer supported.
17514
17515 * m/intel386.h: Remove references to unsupported systems.
17516
17517 * w32.c (get_emacs_configuration): Remove reference to i860.
17518
17519 * sysdep.c: Remove dead code.
17520
175212008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17522
17523 * s/rtu.h:
17524 * m/masscomp.h: Remove files. Platform is obsolete.
17525
175262008-01-04 Michael Albinus <michael.albinus@gmx.de>
17527
17528 * dbusbind.c (Fdbus_method_return): New function.
17529 (xd_read_message): Add the serial number to the event.
17530 (Fdbus_register_method): Activate the function.
17531
175322008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17533
17534 * keyboard.c (read_key_sequence): Fix typo.
17535
175362008-01-03 Michael Albinus <michael.albinus@gmx.de>
17537
17538 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17539 (xd_signature, xd_append_arg): Handle element type detection for
17540 empty arrays.
17541 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17542 SDATA () calls; this must be solved more general.
17543 (Fdbus_register_signal): Use SBYTES instead of strlen.
17544
175452008-01-03 Magnus Henoch <magnus@zemdatav>
17546
17547 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17548 unsigned int for byte values (necessary for big-endian platform).
17549 (Fdbus_call_method): Handle the case of no returned arguments.
17550
175512007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17552
17553 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17554
175552007-12-31 Magnus Henoch <mange@freemail.hu>
17556
17557 * dbusbind.c (xd_signature): Signature of variant is just "v".
17558
175592007-12-30 Michael Albinus <michael.albinus@gmx.de>
17560
17561 * dbusbind.c: Fix several errors and compiler warnings.
17562 Reported by Tom Tromey <tromey@redhat.com>.
17563 (XD_ERROR, XD_DEBUG_MESSAGE)
17564 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17565 (xd_append_arg): Part for basic D-Bus types rewritten.
17566 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17567 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17568 appropriate.
17569 (xd_read_message): Return Qnil. Don't signal an error; it is not
17570 useful during event reading.
17571 (Fdbus_register_signal): Signal an error if the check for
17572 FUNCTIONP fails.
17573 (Fdbus_register_method): New function. The implementation is not
17574 complete, the call of the function signals an error therefore.
17575 (Fdbus_unregister_object): New function, renamed from
17576 Fdbus_unregister_signal. The initial check signals an error, if
17577 the object is not well formed.
17578
175792007-12-30 Richard Stallman <rms@gnu.org>
17580
17581 * textprop.c (get_char_property_and_overlay):
17582 Signal error if POSITION is out of range in a buffer.
17583
175842007-12-29 Martin Rudalics <rudalics@gmx.at>
17585
17586 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17587 because the original parameters are in pure storage now.
17588
175892007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17590
17591 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17592
175932007-12-22 Eli Zaretskii <eliz@gnu.org>
17594
17595 * callint.c (syms_of_callint) <command-history>: Add reference to
17596 history-length in the doc string.
17597
175982007-12-17 Jason Rumney <jasonr@gnu.org>
17599
17600 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17601 before passing as wParam.
17602
176032007-12-22 Michael Albinus <michael.albinus@gmx.de>
17604
17605 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17606 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17607 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17608 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17609 as number.
17610 (Fdbus_call_method): Fix docstring.
17611
176122007-12-21 Michael Albinus <michael.albinus@gmx.de>
17613
17614 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17615 New macros.
17616 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17617 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17618 Simplify.
17619 (xd_signature): New function.
17620 (xd_append_arg): Compute also signatures. Major rewrite.
17621 (xd_retrieve_arg): Make debug messages friendly.
17622 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17623 Check for signatures of arguments.
17624
176252007-12-19 Michael Albinus <michael.albinus@gmx.de>
17626
17627 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17628 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17629 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17630 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17631 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17632 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17633 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17634 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17635 (xd_retrieve_value): Remove. Functionality included in ...
17636 (xd_append_arg): New function.
17637 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17638
176392007-12-16 Michael Albinus <michael.albinus@gmx.de>
17640
17641 * dbusbind.c (top): Include <stdio.h>.
17642 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17643 dbus_message_new_method_call and dbus_message_new_signal.
17644 (Fdbus_register_signal): Rename unique_name to uname.
17645 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17646 non-existing unique name. Fix typos in matching rule. Return an
17647 object which is useful in Fdbus_unregister_signal.
17648 (Fdbus_unregister_signal): Reimplementation, in order to remove
17649 only the corresponding entry.
17650 (Vdbus_registered_functions_table): Change the order of entries.
17651 Apply these changes in xd_read_message and Fdbus_register_signal.
17652
176532007-12-16 Andreas Schwab <schwab@suse.de>
17654
17655 * fileio.c (Finsert_file_contents): Fix overflow check to not
17656 depend on undefined integer overflow.
17657
176582007-12-14 Jason Rumney <jasonr@gnu.org>
17659
17660 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17661 for characters above 127.
17662
176632007-12-13 Jason Rumney <jasonr@gnu.org>
17664
17665 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17666 before dereferencing array.
17667 (lookup_vk_code): Remove zero comparison.
17668
176692007-12-14 Michael Albinus <michael.albinus@gmx.de>
17670
17671 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17672 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17673 Use `unsigned int' instead of `uint'.
17674 (xd_read_message, Fdbus_register_signal): Split expressions into
17675 multiple lines before operators "&&" and "||", according to the
17676 GNU Coding Standards.
17677
176782007-12-14 Eli Zaretskii <eliz@gnu.org>
17679
17680 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17681
176822007-12-12 Juri Linkov <juri@jurta.org>
17683
17684 * buffer.c (Frename_buffer): In interactive spec replace
17685 `read-buffer' with `read-string' that uses `buffer-name-history'
17686 as history, and the current buffer's name as default.
17687
176882007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17689
17690 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17691 manipulating the backtrace manually.
17692 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17693 (struct backtrace, backtrace_list): Remove.
17694 (command_loop_1): Remove dead var `no_direct'.
17695
17696 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17697 preserve non-built-in buffer-local variables.
17698 (Fkill_all_local_variables): Don't re-create&re-set permanent
17699 buffer-local variables.
17700
177012007-12-09 Juri Linkov <juri@jurta.org>
17702
17703 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17704 Lisp code that uses `read-buffer' with current buffer as default.
17705
177062007-12-08 Michael Albinus <michael.albinus@gmx.de>
17707
17708 * dbusbind.c (xd_read_message): Generate an event for every
17709 registered handler. There might be several handlers registered
17710 for the same signal.
17711 (Fdbus_register_signal): Don't overwrite a registration for the
17712 same signal. Add a new registration if handlers are different.
17713 (Vdbus_registered_functions_table): Rework doc string.
17714
177152007-12-07 Michael Albinus <michael.albinus@gmx.de>
17716
17717 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17718 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17719 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17720 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17721 Unify argument lists.
17722 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17723 arguments and hash table keys. Use unique name for service.
17724 (Fdbus_unregister_signal): Remove checks.
17725 (Vdbus_registered_functions_table): Fix doc string.
17726
177272007-12-05 Magnus Henoch <mange@freemail.hu>
17728
17729 * process.c (make_process): Initialize pty_flag to 0.
17730
177312007-12-05 Jason Rumney <jasonr@gnu.org>
17732
17733 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17734 specified XBMs.
17735
177362007-12-05 Richard Stallman <rms@gnu.org>
17737
17738 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17739
177402007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17741
17742 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17743 New variable.
17744 (mac_try_close_socket) [MAC_OSX]: New function.
17745 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17746 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17747
17748 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17749 Use mac_try_close_socket.
17750
177512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17752
17753 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17754 reloc_base.
17755 (copy_dysymtab): Compute relocation base here.
17756 (rebase_reloc_address) [__ppc64__]: New function.
17757 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17758 changed.
17759
177602007-12-05 Jason Rumney <jasonr@gnu.org>
17761
17762 * w32proc.c (sys_spawnve): Quote args with wildcards.
17763
177642007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17765
17766 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17767 __objc_* sections.
17768 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17769
177702007-12-05 Michael Albinus <michael.albinus@gmx.de>
17771
17772 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17773 Move check for Vdbus_registered_functions_table to
17774 xd_read_queued_messages.
17775 (xd_read_queued_messages): Protect xd_read_message calls by
17776 internal_condition_case_1.
17777
177782007-12-04 Michael Albinus <michael.albinus@gmx.de>
17779
17780 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17781 Qdbus_system_bus and Qdbus_session_bus, respectively.
17782 (Vdbus_intern_symbols): Remove.
17783 (Vdbus_registered_functions_table): New hash table.
17784 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17785 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17786 Rewrite in order to manage registered functions by hash table
17787 Vdbus_registered_functions_table.
17788
177892007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17790
17791 * xterm.c: Update URL to Window Manager Specification in comment.
17792
177932007-12-02 Michael Albinus <michael.albinus@gmx.de>
17794
17795 * config.in (HAVE_DBUS): Add.
17796
17797 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17798 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17799 (obj): Add $(DBUS_OBJ).
17800 (LIBES): Add $(DBUS_LIBS).
17801 (dbusbind.o): New target.
17802
17803 * dbusbind.c: New file.
17804
17805 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17806
17807 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17808 (Qdbus_event): New Lisp symbol.
17809 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17810 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17811 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17812
17813 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17814
178152007-12-01 Richard Stallman <rms@gnu.org>
17816
17817 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17818
178192007-11-30 Jason Rumney <jasonr@gnu.org>
17820
17821 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17822 (w32con_reset_terminal_modes): Clear screen buffer.
17823 (w32_face_attributes): Don't use color indexes that are out of range.
17824 Only reverse the default colors.
17825
17826 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17827 WINDOWSNT.
17828
17829 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17830
178312007-11-29 Jason Rumney <jasonr@gnu.org>
17832
17833 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17834 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17835 if the terminal colors are initialized.
17836 (unspecified_fg, unspecified_bg): Remove unused declarations.
17837
178382007-11-29 Andreas Schwab <schwab@suse.de>
17839
17840 * keyboard.c (apply_modifiers): Fix typo.
17841
178422007-11-29 Richard Stallman <rms@gnu.org>
17843
17844 * keymap.c (Fcurrent_local_map): Doc fix.
17845
178462007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17847
17848 * s/gnu-kfreebsd.h: New file.
17849
178502007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17851
17852 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17853 Don't cast redundantly.
17854
17855 * keyboard.c (KEY_TO_CHAR): New macro.
17856 (parse_modifiers, apply_modifiers): Accept integer arguments.
17857 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17858 for chars and symbol keys.
17859 After doing such remapping, apply function-key-map again.
17860
178612007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17862
17863 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17864 compiled anymore.
17865
178662007-11-26 Andreas Schwab <schwab@suse.de>
17867
17868 * process.c (list_processes_1): Fix indentation level of the
17869 command column.
17870
178712007-11-23 Andreas Schwab <schwab@suse.de>
17872
17873 * editfns.c (Fformat): Handle %c specially since it requires the
17874 argument to be of type int.
17875
178762007-11-23 Markus Triska <markus.triska@gmx.at>
17877
17878 * emacs.c (main): Call init_editfns before init_process, since
17879 init_process sets Vprocess_connection_type depending on OS release.
17880
178812007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17882
17883 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17884 (find_symbol_value): Use do_symval_forwarding.
17885
17886 * data.c (set_internal): Set the value in the `cons-cell' (for
17887 Buffer_Local_values) not only for frame-local variables.
17888
178892007-11-22 Andreas Schwab <schwab@suse.de>
17890
17891 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17892 values to sprintf.
17893 * keymap.c (Fsingle_key_description): Likewise.
17894 * print.c (print_object): Likewise.
17895
178962007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17897
17898 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17899 file for image is nil.
17900
179012007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17902
17903 * term.c: Include stdarg.h.
17904 (fatal): Implement using varargs.
17905 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17906
179072007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17908
17909 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17910 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17911 Update call to buffer_slot_type_mismatch.
17912 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17913 (buffer_slot_type_mismatch): Update.
17914 * buffer.c (buffer_local_types): Remove.
17915 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17916 (defvar_per_buffer): Set the type in the buffer_objfwd.
17917
179182007-11-21 Jason Rumney <jasonr@gnu.org>
17919
17920 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17921 CreateFileMapping returns NULL on failure.
17922
179232007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17924
17925 * search.c (Fset_match_data): Remove the `evaporate' feature.
17926 (unwind_set_match_data): Don't use the `evaporate' feature.
17927
179282007-11-21 Jason Rumney <jasonr@gnu.org>
17929
17930 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17931
17932 * w32console.c (w32con_write_glyphs): Remove unused variables.
17933
179342007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17935
17936 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17937
17938 * s/darwin.h (MULTI_KBOARD): Remove.
17939
17940 * macfns.c (x_create_tip_frame, Fx_create_frame)
17941 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17942
179432007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17944
17945 * buffer.c (Fbuffer_local_value): Remove redundant test.
17946 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17947 than in `current-buffer' to match the comment.
17948 Do the swap using swap_in_global_binding.
17949
17950 * data.c (store_symval_forwarding, set_internal):
17951 * eval.c (specbind): Remove dead code.
17952
17953 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17954 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17955 Since we do not want to see internal Lisp_*fwd objects here.
17956
179572007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17958
17959 * sysdep.c (init_system_name): Use getaddrinfo if available.
17960
17961 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17962 (x_scroll_bar_note_movement): start, end, with, height in struct
17963 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17964
179652007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17966
17967 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17968
179692007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17970
17971 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17972 This undoes Richard's change of 14-Oct-2002.
17973
17974 * alloc.c (allocate_other_vector):
17975 * lisp.h (allocate_other_vector): Remove.
17976
17977 * window.c (struct save_window_data): Move non-lisp data to the end
17978 and make it `int' rather than Lisp_Object.
17979 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17980 Done wrap/unwrap integer values.
17981 (Fset_window_configuration, compare_window_configurations):
17982 Update use of fields to their new types.
17983
17984 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17985 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17986 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17987 (SET_SCROLL_BAR_X_WINDOW): Remove.
17988 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17989 Access the new x_window field directly.
17990 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17991 Don't wrap/unwrap integers into Lisp_Objects.
17992 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17993 (x_scroll_bar_report_motion):
17994 Don't wrap/unwrap integers into Lisp_Objects.
17995 (x_term_init): Use SDATA.
17996 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17997 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17998 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17999 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18000 * xfns.c (x_set_background_color):
18001 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18002 Access the new x_window field directly.
18003
18004 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18005 (allocate_pseudovector): Make non-static.
18006
18007 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18008 (allocate_pseudovector): Declare.
18009 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18010
180112007-11-15 Andreas Schwab <schwab@suse.de>
18012
18013 * editfns.c (Fformat): Correctly format EMACS_INT values.
18014 Also take precision into account when formatting an integer.
18015
18016 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18017
180182007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18019
18020 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18021 (syms_of_keyboard): Defsubr it.
18022
18023 * data.c (swap_in_global_binding): Fix longstanding bug where
18024 store_symval_forwarding was not called with the right second argument,
18025 thus causing objfwd-ing from being dropped.
18026
180272007-11-14 Juanma Barranquero <lekktu@gmail.com>
18028
18029 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18030 (Fx_display_pixel_height, Fx_display_planes)
18031 (Fx_display_color_cells, Fx_server_max_request_size)
18032 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18033 (Fx_display_visual_class, Fx_display_save_under):
18034 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18035 (Fx_display_pixel_height, Fx_display_planes)
18036 (Fx_display_color_cells, Fx_server_max_request_size)
18037 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18038 (Fx_display_mm_height, Fx_display_mm_width)
18039 (Fx_display_backing_store, Fx_display_visual_class)
18040 (Fw32_select_font, Fx_display_save_under):
18041 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18042 (Fx_display_pixel_height, Fx_display_planes)
18043 (Fx_display_color_cells, Fx_server_max_request_size)
18044 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18045 (Fx_display_save_under): Fix typos in docstrings.
18046
180472007-11-14 Juanma Barranquero <lekktu@gmail.com>
18048
18049 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18050 corresponding to deleted entries; they are an implementation detail.
18051 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18052 Remove variables.
18053 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18054 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18055 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18056 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18057 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18058 (Fw32_define_rgb_color, Fw32_load_color_file)
18059 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18060 Fix typos in docstrings.
18061 (Fx_server_version): Reflow docstring.
18062 (Fw32_shell_execute): Doc fixes.
18063
180642007-11-13 Juanma Barranquero <lekktu@gmail.com>
18065
18066 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18067 if w32_parse_hot_key returned nil.
18068
180692007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18070
18071 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18072
180732007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18074
aac0c6e3
MR
18075 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18076
18077 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18078
18079 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18080 Remove W32_SCROLL_BAR_CLICK_EVENT.
18081
18082 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18083 Add MULTIMEDIA_KEY_EVENT.
18084
18085 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18086 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18087 (make_lispy_event) [WINDOWSNT]: Use it to translate
18088 MULTIMEDIA_KEY_EVENT.
18089
18090 * w32term.h (WM_APPCOMMAND): Define if not already.
18091 (GET_APPCOMMAND_LPARAM): Likewise.
18092
18093 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18094 WM_APPCOMMAND.
18095
18096 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18097 (syms_of_w32fns): Export and initialize it.
18098 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18099
181002007-11-09 Chong Yidong <cyd@stupidchicken.com>
18101
18102 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18103 twice.
18104
18105 * xdisp.c (handle_face_prop): Fix last change.
18106
181072007-11-09 Richard Stallman <rms@gnu.org>
18108
18109 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18110 not just for after-strings and before-strings.
18111 Call face_for_overlay_string and pass the overlay to it.
18112 (handle_display_prop): Determine whether property came from an overlay.
18113 Pass OVERLAY arg to handle_single_display_spec.
18114 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18115 (load_overlay_strings): Fill in it->string_overlays.
18116 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18117
18118 * xfaces.c (face_for_overlay_string): Function renamed from
18119 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18120
18121 * dispextern.h (struct it): New elt string_overlays.
18122 New elt from_overlay, also in stack.
18123 Rearrange a few elements.
18124 (face_for_overlay_string): Decl renamed from
18125 face_at_buffer_position_no_overlays, and add argument.
18126
181272007-11-09 Richard Stallman <rms@gnu.org>
18128
18129 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18130 to get the base face for an overlay string.
18131
18132 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18133
18134 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18135
18136 * xdisp.c (handle_stop): Move some code out of loop.
18137
181382007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18139
18140 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18141 Fix conversion from Lisp object to ATSUFontID.
18142
181432007-11-09 Jason Rumney <jasonr@gnu.org>
18144
18145 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18146
181472007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18148
18149 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18150 Don't assume regions are aligned to page boundary.
18151 (print_load_command_name): Add LC_UUID if defined.
18152
181532007-11-09 Richard Stallman <rms@gnu.org>
18154
18155 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18156
181572007-11-07 Jason Rumney <jasonr@gnu.org>
18158
18159 * s/windows95.h: Remove.
18160
181612007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18162
18163 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18164 abort with a message on unhandled store_type values.
18165
181662007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18167
18168 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18169 Remove HAVE_X11R5 and HAVE_X11R4.
18170
181712007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18172
18173 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18174
181752007-11-01 Johan Bockgård <bojohan@gnu.org>
18176
18177 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18178 Don't set s->stippled_p here, since it has already been set by
18179 x_set_glyph_string_gc from x_draw_glyph_string.
18180
181812007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18182
18183 * sunfns.c: Remove file.
18184
18185 * m/sun386.h:
18186 * m/sun2.h:
18187 * m/sparc.h: Remove Sun windows code.
18188
181892007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18190
18191 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18192 (init_keyboard): Set current_kboard's window-system to nil.
18193 (tty_read_avail_input): Typo.
18194 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18195
181962007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18197
18198 * s/usg5-4.h:
18199 * s/usg5-3.h:
18200 * s/ptx.h:
18201 * m/is386.h:
18202 * m/ibmps2-aix.h:
18203 * Makefile.in: Remove all mentions of X10.
18204
18205 * dispnew.c (syms_of_display): Don't mention version 10.
18206
182072007-10-28 Juanma Barranquero <lekktu@gmail.com>
18208
18209 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18210 ($(BLD)/abbrev.$(O)): Remove.
18211
182122007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18213
18214 Rewrite abbrev.c in Elisp.
18215 * image.c (Qcount): Don't declare as extern.
18216 (syms_of_image): Initialize and staticpro `Qcount'.
18217 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18218 * emacs.c (main): Don't call syms_of_abbrev.
18219 * Makefile.in (obj): Remove abbrev.o.
18220 (abbrev.o): Remove.
18221 * abbrev.c: Remove.
18222
182232007-10-26 Martin Rudalics <rudalics@gmx.at>
18224
18225 * window.c (window_min_size_2): Don't count header-line.
18226
182272007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18228
18229 * frame.h (struct frame): Move all bit fields after the first bit
18230 field to take advantage of the available space. Group all the
18231 chars together to reduce wasted space due to padding.
18232
182332007-10-26 Juanma Barranquero <lekktu@gmail.com>
18234
18235 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18236
18237 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18238 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18239 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18240 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18241 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18242 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18243 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18244 (last_marked, mark_object_loop_halt): Make static.
18245
18246 * frame.c (syms_of_frame) <delete-frame-functions>:
18247 Fix typo in docstring.
18248
182492007-10-25 Juanma Barranquero <lekktu@gmail.com>
18250
18251 * w32.c (init_environment): Fix tiny memory leak.
18252 (w32_get_resource): Remove unused variable `ok'.
18253
182542007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18255
18256 Make `window-system' into a keyboard-local variable (rather than
18257 frame-local as done originally by multi-tty).
18258
18259 * keyboard.h (struct kboard): Add Vwindow_system.
18260 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18261 (mark_kboards): Mark Vwindow_system.
18262
18263 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18264 (init_display): Don't set the obsolete `window-system' frame-param.
18265
18266 * xterm.c (x_term_init):
18267 * w32term.c (w32_create_terminal):
18268 * term.c (init_tty): Set Vwindow_system.
18269 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18270 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18271
18272 * xfns.c (Fx_create_frame, x_create_tip_frame):
18273 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18274 * macfns.c (Fx_create_frame):
18275 Don't set the obsolete `window-system' frame-param.
18276
18277 * frame.h (Qwindow_system): Remove.
18278 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18279 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18280
182812007-10-24 Richard Stallman <rms@gnu.org>
18282
18283 * frame.c (x_figure_window_size): For fullscreen case,
18284 set USPosition | PPosition without clobbering rest of window_prompting.
18285
18286 * keyboard.c (Fcurrent_idle_time): Doc fix.
18287
18288 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18289
182902007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18291
18292 * process.c (unwind_request_sigio): Only define if __ultrix__.
18293
18294 * callproc.c (child_setup): Remove spurious *.
18295
18296 * lisp.h (Fget_text_property): Declare.
18297 (have_menus_p): Declare it here rather than in sys-dep header files.
18298 * macterm.h (have_menus_p):
18299 * msdos.h (have_menus_p):
18300 * xterm.h (have_menus_p): Remove.
18301
18302 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18303 (Fmake_variable_frame_local): Just check the variable's const-ness
18304 rather than checking nil or t.
18305
183062007-10-22 Jason Rumney <jasonr@gnu.org>
18307
18308 * w32fns.c: Include math.h.
18309 (w32_abort): Declaration moved to nt/config.nt.
18310
18311 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18312 (abort): Redefinition moved to nt/config.nt.
18313
18314 * m/windowsnt.h: Remove.
18315
183162007-10-22 Juanma Barranquero <lekktu@gmail.com>
18317
18318 * emacs.c (Fdump_emacs): Fix typo in message.
18319 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18320 <installation-directory>: Reflow docstring.
18321
183222007-10-22 Juri Linkov <juri@jurta.org>
18323
18324 * minibuf.c: Allow minibuffer default to be a list of default values.
18325 With empty input use the first element of this list as returned default.
18326 (string_to_object)
18327 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18328 (read_minibuf): If defalt is cons, set histstring to its car.
18329 (Fread_string): If default_value is cons, set val to its car.
18330 (Fread_buffer): If def is cons, use its car.
18331 (Fcompleting_read): If defalt is cons, set val to its car.
18332
183332007-10-21 Michael Albinus <michael.albinus@gmx.de>
18334
18335 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18336
183372007-10-20 Juanma Barranquero <lekktu@gmail.com>
18338
18339 * doc.c (Fdocumentation): Check for advice in all cases.
18340
183412007-10-19 Chong Yidong <cyd@stupidchicken.com>
18342
18343 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18344
183452007-10-19 Richard Stallman <rms@gnu.org>
18346
18347 * doc.c (Fdocumentation): Check for and handle an advised function.
18348
183492007-10-19 Juanma Barranquero <lekktu@gmail.com>
18350
18351 * process.c (Fset_process_filter): Doc fix.
18352
183532007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18354
18355 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18356 which caused key-translation-map to applied repeatedly (thus breaking
18357 double-mode).
18358
183592007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18360
18361 * xselect.c (x_own_selection, x_handle_selection_clear)
18362 (x_clear_frame_selections):
18363 * w32menu.c (list_of_panes, list_of_items):
18364 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18365 * textprop.c (validate_plist, interval_has_all_properties)
18366 (interval_has_some_properties, interval_has_some_properties_list)
18367 (add_properties, text_property_list):
18368 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18369 * minibuf.c (Fassoc_string):
18370 * macselect.c (x_own_selection, x_clear_frame_selections)
18371 (Fx_disown_selection_internal):
18372 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18373 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18374
183752007-10-17 Chong Yidong <cyd@stupidchicken.com>
18376
18377 * process.c: Link to libs for calling res_init() if available.
18378 (Fmake_network_process): Call res_init() before getaddrinfo or
18379 gethostbyname, if possible.
18380
183812007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18382
18383 * lread.c (read1): Set pvectype for char_tables.
18384
18385 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18386 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18387 Add type checks.
18388 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18389
18390 * alloc.c (free_misc): Use XMISCTYPE.
18391 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18392
183932007-10-17 Glenn Morris <rgm@gnu.org>
18394
18395 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18396 (syms_of_minibuf): Add Qcompletion_ignore_case.
18397 * dired.c (Qcompletion_ignore_case): Change to external.
18398 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18399 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18400 (Fread_file_name): Use it rather than intern'ing.
18401
18402 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18403 (Fread_coding_system): Ignore case of user input.
18404
184052007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18406
18407 * xdisp.c (handle_display_prop): Ignore display specs after
18408 replacing one when string text is being replaced.
18409 (handle_single_display_spec): Pretend as if characters with display
18410 property haven't been consumed only when buffer text is being replaced.
18411
184122007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18413
18414 * xfns.c (Fx_create_frame, Fx_display_list):
18415 * window.c (window_fixed_size_p, enlarge_window)
18416 (shrink_window_lowest_first):
18417 * macterm.c (init_font_name_table):
18418 * macfns.c (Fx_create_frame, Fx_display_list):
18419 * lread.c (close_load_descs):
18420 * keyboard.c (read_char_x_menu_prompt):
18421 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18422 * coding.c (code_convert_region_unwind): Test the type of an object
18423 rather than just !NILP before extracting data from it.
18424
18425 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18426
18427 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18428 (XMISCANY): New macro.
18429 (XMISCTYPE): Use it.
18430 (struct Lisp_Misc_Any): New type.
18431 (union Lisp_Misc): Use it.
18432 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18433 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18434 (find_symbol_value, set_internal, default_value, Fset_default)
18435 (Fmake_variable_buffer_local, Fmake_local_variable)
18436 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18437 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18438 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18439 * alloc.c (allocate_buffer): Set the size and tag.
18440 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18441 Use XMISCANY.
18442 (die): Follow the GNU convention for error messages.
18443 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18444 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18445 tag any more.
18446 (set_buffer_internal_1):
18447 * frame.c (store_frame_param):
18448 * eval.c (specbind):
18449 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18450
18451 * doc.c (Fsnarf_documentation): Simplify.
18452
184532007-10-14 Juanma Barranquero <lekktu@gmail.com>
18454
18455 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18456 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18457
184582007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18459
18460 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18461
184622007-10-14 Juanma Barranquero <lekktu@gmail.com>
18463
18464 * eval.c (do_autoload): Don't save autoloads.
18465
18466 * data.c (Ffset): Save autoload of the function being set.
18467
184682007-10-07 John Paul Wallington <jpw@pobox.com>
18469
18470 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18471 parameter before setting up faces.
18472
184732007-10-13 Eli Zaretskii <eliz@gnu.org>
18474
18475 * ccl.c (Fregister_code_conversion_map):
18476 * keyboard.c (append_tool_bar_item): Reformat last change.
18477
18478 * lisp.h (eabs): Rename from `abs'. All callers changed.
18479
184802007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18481
18482 * buffer.c (add_overlay_mod_hooklist):
18483 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18484 * fontset.c (make_fontset):
18485 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18486 (append_tool_bar_item):
18487 * macmenu.c (grow_menu_items):
18488 * w32menu.c (grow_menu_items):
18489 * xmenu.c (grow_menu_items): Use larger_vector.
18490
184912007-10-13 Eli Zaretskii <eliz@gnu.org>
18492
18493 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18494 selected frame'' on MSDOS).
18495
184962007-10-12 Martin Rudalics <rudalics@gmx.at>
18497
18498 * frame.c (Qexplicit_name): New variable.
18499 (x_report_frame_params): Report it in parameter alist.
18500 (syms_of_frame): Intern and staticpro it.
18501
185022007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18503
18504 * macfns.c (x_create_tip_frame): Set terminal for frame.
18505
185062007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18507
18508 * frame.c (Qenvironment): Remove.
18509 (syms_of_frame) <Qenvironment>: Don't initialize.
18510 (Fdelete_frame): Don't treat the `environment' param specially.
18511 * frame.h (Qenvironment): Don't declare.
18512 * callproc.c (set_initial_environment): Don't set unused frame param.
18513
18514 * frame.c (Fframe_with_environment): Remove.
18515 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18516
18517 * lisp.h (Fframe_with_environment): Don't declare.
18518
185192007-10-10 Juanma Barranquero <lekktu@gmail.com>
18520
18521 * indent.c (indent_tabs_mode, last_known_column)
18522 (last_known_column_modified): Make static.
18523 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18524
185252007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18526
18527 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18528
185292007-10-09 Jason Rumney <jasonr@gnu.org>
18530
18531 * w32term.c (x_set_window_size): Disable code that attempts to tell
18532 Lisp code about a size change before it actually happens.
18533
185342007-10-09 Richard Stallman <rms@gnu.org>
18535
18536 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18537 return HANDLED_RETURN.
18538
185392007-10-08 Martin Rudalics <rudalics@gmx.at>
18540
18541 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18542 when there's an unread command event.
18543
18544 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18545 window autoselection act appropriately when leaving selected frame.
18546 (syms_of_frame): Initialize focus_follows_mouse.
18547 * frame.h (focus_follows_mouse): Extern it.
18548 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18549 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18550 * msdos.c (dos_rawgetc): Likewise.
18551 * w32term.c (w32_read_socket): Likewise.
18552 * xterm.c (handle_one_xevent): Likewise.
18553 * xdisp.c (syms_of_xdisp): In doc-string of
18554 mouse-autoselect-window mention focus-follows-mouse.
18555
185562007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18557
18558 * macterm.c (mac_load_query_font): Fix missing return value.
18559 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18560 Add BLOCK_INPUT.
18561
185622007-10-08 Richard Stallman <rms@gnu.org>
18563
18564 * xdisp.c (get_window_cursor_type): Implement documented behavior
18565 for cursor-in-non-selected-windows = t.
18566
185672007-10-08 Jason Rumney <jasonr@gnu.org>
18568
18569 * w32.c (w32_get_resource): Always close registry keys.
18570
185712007-10-08 Jason Rumney <jasonr@gnu.org>
18572
18573 * makefile.w32-in (LIBS): Add COMCTL32.
18574
18575 * w32fns.c (globals_of_w32fns): Init common controls.
18576
185772007-10-08 Richard Stallman <rms@gnu.org>
18578
18579 * image.c (our_memory_buffer): Rename from omfib_buffer.
18580
185812007-10-08 Richard Stallman <rms@gnu.org>
18582
18583 * buffer.c (Foverlays_at): Doc fix.
18584
185852007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18586
18587 * fns.c (Fplist_put): Preserve uneven tail data.
18588
185892007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18590
18591 * termhooks.h (enum event_kind): Remove trailing comma.
18592
18593 * frame.h (enum): Remove trailing comma.
18594
185952007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18596
18597 * w32proc.c (delete_child): Don't terminate threads of zombies.
18598
185992007-10-08 Martin Rudalics <rudalics@gmx.at>
18600
18601 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18602
18603 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18604 last-repeatable-command.
18605 (init_kboard): Initialize Vlast_repeatable_command.
18606 (command_loop_1): Set it to real_this_command unless that was
18607 bound to an input event.
18608 (mark_kboards): Mark it.
18609
186102007-10-08 Richard Stallman <rms@gnu.org>
18611
18612 * eval.c (condition-case): Doc fix.
18613
186142007-10-08 Masatake YAMATO <jet@gyve.org>
18615
18616 * xfaces.c (tty_supports_face_attributes_p): Fix code
18617 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18618 was copied and not edited.
18619
186202007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18621
18622 Add new `input-decode-map' keymap and use it for terminal
18623 escape sequences.
18624 * keyboard.h (struct kboard): Add Vinput_decode_map.
18625 Remove Vlocal_key_translation_map.
18626 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18627 (init_kboard): Init input-decode-map.
18628 Replace local-key-translation-map back with key-translation-map.
18629 (syms_of_keyboard): Declare input-decode-map.
18630 Remove local-key-translation-map. Update docstrings.
18631 (mark_kboards): Mark Vinput_decode_map.
18632 Don't mark Vlocal_key_translation_map.
18633 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18634 Replace local-key-translation-map back with key-translation-map.
18635 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18636 Bind in input-decode-map rather than function-key-map.
18637
18638 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18639 This was made redundant by the previous introduction of XSETPVECTYPE.
18640
186412007-10-09 Richard Stallman <rms@gnu.org>
18642
18643 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18644
186452007-09-29 Richard Stallman <rms@gnu.org>
18646
18647 * eval.c (internal_condition_case_2, internal_condition_case_1)
18648 (internal_condition_case): Reenable abort if x_catching_errors ()
18649 to see if that really happens and why.
18650
186512007-10-06 Andreas Schwab <schwab@suse.de>
18652
18653 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18654
186552007-10-04 Juanma Barranquero <lekktu@gmail.com>
18656
18657 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18658
186592007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18660
18661 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18662
186632007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18664
18665 * window.h (struct window):
18666 * window.c (struct save_window_data, struct saved_window):
18667 * termhooks.h (struct terminal):
18668 * process.h (struct Lisp_Process):
18669 * frame.h (struct frame):
18670 * buffer.h (struct buffer):
18671 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18672 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18673 The size field of (pseudo)vectors is now unsigned.
18674 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18675
18676 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18677 Turn `count' into an integer.
18678
18679 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18680 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18681 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18682 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18683 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18684
18685 * alloc.c (allocate_pseudovector): New fun.
18686 (ALLOCATE_PSEUDOVECTOR): New macro.
18687 (allocate_window, allocate_terminal, allocate_frame)
18688 (allocate_process): Use it.
18689 (mark_vectorlike): New function.
18690 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18691 (mark_terminals): Use it.
18692 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18693 (Fmake_byte_code): Use XSETPVECTYPE.
18694
18695 * frame.c (Fframe_parameters): Minor simplification.
18696
18697 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18698
18699 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18700
18701 * buffer.c (Fget_buffer_create, init_buffer_once):
18702 * lread.c (defsubr):
18703 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18704
18705 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18706 defined differently in the m/*.h files.
18707 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18708 (XSETPVECTYPE): New macro.
18709 (XSETPSEUDOVECTOR): Use it.
18710
18711 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18712 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18713
18714 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18715 * lread.c (defvar_per_buffer):
18716 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18717
18718 * window.c (candidate_window_p): Only consider as visible frames that
18719 are on the same terminal.
18720
18721 * m/ibms390x.h (MARKBIT): Remove unused macro.
18722
187232007-10-01 Juanma Barranquero <lekktu@gmail.com>
18724
18725 * lread.c (Fload): Fix typo in docstring.
18726
187272007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18728
18729 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18730 of a non-zero value can't yield zero.
18731
187322007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18733
18734 * term.c (term_clear_mouse_face, term_mouse_highlight)
18735 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18736
18737 * print.c (safe_debug_print): Use XHASH.
18738
18739 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18740 Lisp elements such as tags.
18741 (XHASH): New macro.
18742 (EQ): Use it.
18743 (SREF, SSET, STRING_COPYIN): Use SDATA.
18744 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18745
18746 * alloc.c (mark_terminal): Remove left-over declaration.
18747 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18748 (allocate_vectorlike): Remove type argument. Adjust callers.
18749 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18750 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18751
18752 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18753 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18754 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18755 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18756 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18757 Use them.
18758
18759 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18760 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18761 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18762
187632007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18764
18765 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18766 loaded by default.
18767
187682007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18769
18770 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18771 on this tty.
18772 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18773
18774 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18775 Update all users.
18776 (handle_one_term_event): Use Gpm_DrawPointer.
18777 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18778 Signal errors instead of returning nil. Always return nil.
18779 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18780 Make it a noop if gpm-mouse was not activated.
18781 (syms_of_term): Update names.
18782
187832007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18784
18785 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18786 (init_sys_modes): Check that gpm_tty is the current tty.
18787
18788 * alloc.c (allocate_terminal): Set the vector size to only count the
18789 lisp fields. Initialize those to nil.
18790 (mark_object): Don't treat terminals specially.
18791 (mark_terminal): Remove.
18792 (mark_terminals): Use mark_object instead.
18793
18794 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18795 the GC to the beginning.
18796
18797 * indent.h:
18798 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18799
18800 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18801
188022007-09-25 Jason Rumney <jasonr@gnu.org>
18803
18804 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18805
18806 * w32console.c (create_w32cons_output): Remove.
18807
18808 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18809
18810 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18811 (reset_sys_modes): Use reset_terminal_modes_hook.
18812
188132007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18814
18815 * eval.c (do_autoload): Don't output any message.
18816
188172007-09-24 Juri Linkov <juri@jurta.org>
18818
18819 * emacs.c (standard_args): Change priority of "--no-splash"
18820 from 40 to 3. Add "--no-desktop" with the same priority.
18821
188222007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18823
18824 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18825 and optimize the case where they are all 1.
18826
188272007-09-23 Johannes Weiner <hannes@saeurebad.de>
18828
18829 * lisp.h (abs): Define if not defined.
18830 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18831 Don't define `abs', since it's defined in lisp.h.
18832
188332007-09-22 Eli Zaretskii <eliz@gnu.org>
18834
18835 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18836 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18837 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18838 (init_tty): Use DEV_TTY instead of "/dev/tty".
18839 [WINDOWSNT]: No need to protect from NAME arg being null.
18840
188412007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18842
18843 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18844 up the tty state.
18845
188462007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18847
18848 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18849 (gpm_tty): Change its type.
18850 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18851 (gpm_tty): Change its type and initialize it.
18852 (Fterm_open_connection): Check the frame is indeed a tty.
18853 Use the new gpm_tty.
18854 (Fterm_close_connection): Use the new gpm_tty.
18855 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18856 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18857
188582007-09-21 Juanma Barranquero <lekktu@gmail.com>
18859
18860 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18861 underline_color, to draw strike-through.
18862
188632007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18864
18865 * lisp.h (allocate_terminal): Declare.
18866
18867 * window.c (candidate_window_p): Consider frames that are being placed
18868 by the user as somewhere between visible and iconified.
18869 (window_loop): Prefer windows on the current frame.
18870 (Fselect_window): Move the use of select-frame to the beginning so we
18871 can just delegate all the work (it'll call us back anyway).
18872
18873 * frame.c (Qdisplay_environment_variable):
18874 * frame.h (Qdisplay_environment_variable): Delete.
18875
18876 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18877 of the first arg, since that value may be a union.
18878
18879 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18880 parameter rather than Qdisplay_environment_variable. If all else
18881 fails, look for DISPLAY in initial-environment.
18882
188832007-09-21 Glenn Morris <rgm@gnu.org>
18884
18885 * Makefile.in (emacstool): Remove target.
18886 (lisp, shortlisp): Remove termdev.elc.
18887
188882007-09-21 Markus Triska <markus.triska@gmx.at>
18889
18890 * xterm.c (x_delete_display): Compile session management conditionally.
18891
188922007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18893
18894 * callproc.c (getenv_internal_1): New function.
18895 (getenv_internal): Use it.
18896 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18897
18898 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18899 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18900 (Fset_terminal_parameter): Work with dead terminals as well.
18901 (Fmodify_terminal_parameters): Remove.
18902
18903 * terminal.c (get_terminal): Handle terminals.
18904 Make sure the terminal returned is live.
18905 (create_terminal): Use allocate_terminal.
18906 (mark_terminals): Move to alloc.c.
18907 (delete_terminal): Use terminal->name as liveness status.
18908 NULL out fields after freeing their contents.
18909 Don't deallocate the object.
18910 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18911 rather than an int.
18912 (Fterminal_live_p): Accept non-integer arguments.
18913 (Fterminal_list): Return terminal objects rather than an ints.
18914
18915 * alloc.c (enum mem_type): New member for `terminal' objects.
18916 (allocate_terminal): New function.
18917 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18918 Handle terminals.
18919 (mark_terminal): New fun.
18920 (mark_terminals): Move from terminal.c.
18921
18922 * term.c (get_tty_terminal): Don't treat output_initial specially.
18923 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18924 (delete_tty): Use terminal->name as liveness status.
18925
18926 * termhooks.h (struct terminal): Make it into a pseudovector.
18927 Remove `deleted' replaced by checking `name's nullness.
18928
18929 * print.c (print_object): Handle terminals.
18930
18931 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18932 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18933
18934 * frame.c (make_terminal_frame):
18935 * keyboard.c (tty_read_avail_input):
18936 * w32term.c (x_delete_terminal):
18937 * xfns.c (Fx_create_frame, x_create_tip_frame):
18938 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18939
189402007-09-20 Glenn Morris <rgm@gnu.org>
18941
18942 * process.c (Fmake_network_process): Doc fix.
18943
189442007-09-19 Jason Rumney <jasonr@gnu.org>
18945
18946 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18947
189482007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18949
18950 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18951 Fix a C warning regarding variable constness.
18952
18953 * xterm.c (handle_one_xevent): Fix a C warning.
18954
189552007-09-18 Jason Rumney <jasonr@gnu.org>
18956
18957 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18958
189592007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18960
18961 * gtkutil.c (gdpy_def): New variable.
18962 (xg_initialize): Initialize gdpy_def.
18963 (xg_display_close): If no other display exists, set gdpy_def to a
18964 new connection.
18965
189662007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18967
18968 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18969 when we have no file name for the icon.
18970 (xg_tool_bar_expose_callback): Remove.
18971 (xg_create_tool_bar): Don't connect expose signal to
18972 xg_tool_bar_expose_callback.
18973 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18974
189752007-09-16 Andreas Schwab <schwab@suse.de>
18976
18977 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18978 values instead of zapping them.
18979
189802007-09-14 Glenn Morris <rgm@gnu.org>
18981
18982 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18983 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18984 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18985 scope and rename to omfib_buffer for clarity.
18986 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18987
189882007-09-14 Kenichi Handa <handa@m17n.org>
18989
18990 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18991
189922007-09-13 Jason Rumney <jasonr@gnu.org>
18993
18994 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18995
18996 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18997
18998 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18999 (mac_term_init): Call here instead, passing rif.
19000
190012007-09-13 Glenn Morris <rgm@gnu.org>
19002
19003 * s/hpux.h: No longer define `static' as nothing.
19004
190052007-09-13 Johan Bockgård <bojohan@gnu.org>
19006
19007 * callint.c (Fcall_interactively): Remove unused var `fun'.
19008
190092007-09-12 Romain Francoise <romain@orebokech.com>
19010
19011 * window.c (prefer_window_split_horizontally, display_buffer):
19012 Revert 2007-09-08 change.
19013
190142007-09-12 Glenn Morris <rgm@gnu.org>
19015
19016 * alloca.c: Remove file.
19017 * Makefile.in (alloca): Do not undef.
19018 (allocaobj, alloca.o): Remove.
19019 (otherobj): Remove allocaobj.
19020 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19021 * regex.c (C_ALLOCA): Remove all references and code that was only
19022 used when this was defined.
19023 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19024 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19025 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19026
19027 * Makefile.in (SOURCES, unlock, relock): Delete.
19028
19029 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19030 (menu_grab_callback): All uses changed.
19031
19032 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19033 (x_reply_selection_request): All uses changed.
19034
190352007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19036
19037 * lread.c (load_warn_old_style_backquotes): Change message to look
19038 better when it appears in the middle of byte-compiler messages.
19039
190402007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19041
19042 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19043
19044 * xterm.c (x_create_terminal): Add comment.
19045
19046 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19047
190482007-09-10 Richard Stallman <rms@gnu.org>
19049
19050 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19051
190522007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19053
19054 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19055 (DEFUN): Document `intspec', use it instead of `prompt'.
19056
19057 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19058
19059 * data.c (Finteractive_form): If the interactive specification starts
19060 with a `(', use it as a Lisp form.
19061
19062 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19063 name and file modes.
19064
19065 * callint.c (Fcall_interactively): Comment fixes.
19066
190672007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19068
19069 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19070 and compiled functions.
19071
190722007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19073
19074 * window.c (prefer_window_split_horizontally): New variable.
19075 (display_buffer): Consider splitting window horizontally depending
19076 on prefer_window_split_horizontally.
19077
190782007-09-08 Eli Zaretskii <eliz@gnu.org>
19079
19080 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19081
190822007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19083
19084 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19085
19086 * frame.c (x_set_frame_parameters): Check number is positive before
19087 using XFASTINT.
19088
19089 * window.c (freeze_window_start): Don't presume selected_window holds
19090 a window object.
19091 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19092
190932007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19094
19095 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19096
190972007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19098
19099 * window.c (Vsplit_window_preferred_function): New var.
19100 (Fdisplay_buffer): Use it.
19101 (syms_of_window): Export, and initialize it.
19102
191032007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19104
19105 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19106
191072007-09-06 Glenn Morris <rgm@gnu.org>
19108
19109 * gtkutil.c (menu_grab_callback) <cnt>:
19110 * xselect.c (x_reply_selection_request) <cnt>: Move static
19111 variable to file scope.
19112
191132007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19114
19115 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19116 consistent values of selected_frame and selected_window.
19117
191182007-09-04 Jason Rumney <jasonr@gnu.org>
19119
19120 * w32console.c (initialize_w32_display): Zero unused hooks.
19121
191222007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19123
19124 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19125 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19126
191272007-09-04 Jason Rumney <jasonr@gnu.org>
19128
19129 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19130 in w32console.c. Set up input. Remove XXX comments that have been
19131 confirmed as correct.
19132
19133 * s/ms-w32.h (MULTI_KBOARD): Define.
19134
19135 * w32console.c (one_and_only_w32cons): Remove.
19136 (initialize_w32_display): Take terminal argument.
19137
19138 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19139 initialize_w32_display.
19140 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19141
19142 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19143
19144 * keyboard.c (discard_mouse_events): Discard it.
19145 (make_lispy_event): Translate it to a lisp event.
19146 (lispy_wheel_names): Add wheel-left and right events.
19147 (syms_of_keyboard): Enlarge wheel_syms.
19148
19149 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19150 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19151
19152 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19153
19154 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19155 from WM_MOUSEHWHEEL.
19156 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19157
19158 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19159 terminal.
19160
19161 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19162 keyboard for the terminal.
19163
191642007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19165
19166 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19167 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19168 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19169 and resume-tty-function to resume-tty-hook.
19170 (Fsuspend_tty, Fresume_tty): Use new names.
19171
191722007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19173
19174 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19175 if it starts with "n:".
19176
191772007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19178
19179 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19180
191812007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19182
19183 * frame.h:
19184 * frame.c (Qterm_environment_variable): Remove.
19185 (syms_of_frame): Don't init and staticpro it.
19186
19187 * callproc.c (getenv_internal): Remove special case for $TERM.
19188
19189 * callproc.c (Vinitial_environment): New variable.
19190 (set_initial_environment): Initialize it.
19191 (syms_of_callproc): Declare it.
19192 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19193 TERM under which a process runs is never related to the TERM in which
19194 Emacs is running.
19195
191962007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19197
19198 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19199 * s/darwin.h: ... do it here.
19200
192012007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19202
19203 * lisp.h (set_initial_environment): Rename from set_global_environment.
19204
19205 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19206 removed by mistake on the multi-tty branch.
19207
19208 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19209 (Fmodify_frame_parameters): Return a value.
19210
19211 * image.c (png_load): Comment-out var only used in commented-out code.
19212
19213 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19214 before passing it to mark_object.
19215
19216 * xfaces.c (internal_resolve_face_name): Return a value.
19217 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19218
19219 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19220 (x_icon): Comment-out var only used in commented-out code.
19221
192222007-08-29 Romain Francoise <romain@orebokech.com>
19223
19224 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19225 QUIT hasn't been provided.
19226
192272007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19228
19229 * callproc.c (child_setup, getenv_internal): Use the
19230 display-environment-variable and term-environment-variable frame params.
19231 (set_initial_environment): Initialise Vprocess_environment.
19232
19233 * config.in: Disable multi-keyboard support on a mac.
19234
19235 * frame.c (Qterm_environment_variable)
19236 (Qdisplay_environment_variable): New variables.
19237 (syms_of_frame): Intern and staticpro them.
19238 (Fmake_terminal_frame): Disable output method test.
19239
19240 * frame.h: Declare them here.
19241
19242 * macfns.c (x_set_mouse_color): Get rif from the frame.
19243 (x_set_tool_bar_lines): Don't use updating_frame.
19244 (mac_window): Add 2 new parameters for consistency with other systems.
19245 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19246 frame parameters following what is done in X11 and w32. Don't use
19247 FRAME_MAC_DISPLAY_INFO.
19248 (Fx_open_connection, start_hourglass): Remove window-system check.
19249 (x_create_tip_frame): Get the keyboard from the terminal.
19250
19251 * macmenu.c: Reorder includes.
19252 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19253
19254 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19255 terminal parameter.
19256 (x_clear_frame): Add a frame parameter.
19257 (note_mouse_movement): Get rif from the frame.
19258 (mac_term_init): Initialize the terminal.
19259 (mac_initialize): Make static and move terminal initialization ...
19260 (mac_create_terminal): ... to this new function.
19261
19262 * macterm.h (struct mac_display_info): Add terminal.
19263 (mac_initialize): Delete declaration.
19264
19265 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19266
19267 * sysdep.c: Comment out text after #endif.
19268
19269 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19270 is defined. Better initialize ttys in windows. Use terminal
19271 specific mouse_position_hook.
19272
19273 * termhooks.h (union display_info): Add mac_display_info.
19274
19275 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19276 Set the default minibuffer frame, window_system and the rest of the
19277 frame parameters following what is done in X11.
19278
19279 * w32term.c (w32_initialize): Make static.
19280
19281 * xselect.c (x_handle_selection_clear): Only access
19282 terminal->kboard when MULTI_KBOARD is defined.
19283
19284 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19285 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19286
192872007-08-29 Jason Rumney <jasonr@gnu.org>
19288
19289 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19290 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19291
19292 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19293 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19294
19295 * keyboard.c (restore_kboard_configuration): Only define when
19296 MULTI_KBOARD defined.
19297
19298 * makefile.w32-in: Update dependancies from Makefile.in.
19299 (OBJ1): Add terminal.$(O)
19300
19301 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19302 Don't define function body.
19303 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19304
19305 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19306
19307 * w32.c (request_sigio, unrequest_sigio): Remove.
19308
19309 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19310 (w32con_clear_frame, w32con_clear_end_of_line)
19311 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19312 (w32con_delete_glyphs, w32con_set_terminal_window)
19313 (scroll_line, w32_sys_ring_bell): Add frame arg.
19314 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19315 Add terminal arg.
19316 (PICK_FRAME): Remove.
19317 (w32con_write_glyphs): Use frame specific terminal coding.
19318 (one_and_only_w32cons): New global variable.
19319 (initialize_w32_display): Use it for storing hooks.
19320 (create_w32cons_output): New function.
19321
19322 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19323 arg a frame.
19324
19325 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19326 Set window_system.
19327 (x_set_tool_bar_lines): Don't use updating_frame.
19328 (Fx_create_frame): Set terminal and ref count.
19329 (Fx_open_connection): Remove window-system check.
19330
19331 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19332
19333 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19334 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19335 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19336 Add frame arg.
19337 (x_delete_terminal, w32_create_terminal): New functions.
19338 (w32_term_init): Create a terminal.
19339 (w32_initialize): Move terminal specific initialization to
19340 w32_create_terminal.
19341
19342 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19343 (w32_clear_rect, w32_clear_area): Use background from frame.
19344 (w32_display_info): Add terminal.
19345 (w32_sys_ring_bell, x_delete_display): Declare here.
19346
19347 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19348
19349 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19350
193512007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19352
19353 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19354 Fix get_named_tty calls for the controlling tty.
19355
193562007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19357
19358 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19359
193602007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19361
19362 * term.c (tty_insert_glyphs): Add missing first parameter.
19363
193642007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19365
19366 * buffer.c (Fbuffer_list, Fbury_buffer):
19367 Take frame->buried_buffer_list into account.
19368
19369 * cm.c (current_tty): New variable, for cmputc().
19370 (cmputc): Use it.
19371 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19372 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19373 (cmgoto): Add tty parameter. Pass it on to calccost().
19374 Use emacs_tputs() instead of tputs().
19375
19376 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19377 tputs().
19378 (current_tty): New variable, for cmputc().
19379 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19380
19381 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19382 (internal_condition_case, internal_condition_case_1)
19383 (internal_condition_case_2): Don't abort when x_catching_errors.
19384
19385 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19386 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19387 prevent crashes caused by bogus longjmps in read_char.
19388
19389 * keymap.h (Fset_keymap_parent): Add EXFUN.
19390
19391 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19392 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19393 Remove redundant definition.
19394
19395 * macfns.c (x_set_mouse_color, x_make_gc):
19396 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19397
19398 * w32term.c (x_free_frame_resources):
19399 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19400 (w32_initialize): Use the accessor macros for terminal characteristics.
19401
19402 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19403 Use the accessor macros for terminal characteristics.
19404 * msdos.c (internal_terminal_init): Use the accessor macros for
19405 terminal characteristics.
19406 (ScreenVisualBell, internal_terminal_init):
19407 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19408
19409 * termopts.h (no_redraw_on_reenter): Declare.
19410
19411 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19412 (mark_terminals, mark_ttys): Declare.
19413 (Fgarbage_collect): Call them.
19414 (mark_object): Mark buried_buffer_list.
19415
19416 * prefix-args.c: Include stdlib.h for exit.
19417
19418 * syssignal.h: Add comment.
19419
19420 * indent.c: Include stdio.h.
19421
19422 * window.h (Vinitial_window_system): Declare.
19423 (Vwindow_system): Delete declaration.
19424
19425 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19426
19427 * image.c (lookup_image): Don't initialize `c' until the xasserts
19428 have been run.
19429
19430 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19431 FRAME_FOREGROUND_PIXEL.
19432
19433 * print.c (print_preprocess): Don't lose print_depth levels while
19434 iterating.
19435
19436 * widget.c (update_from_various_frame_slots):
19437 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19438
19439 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19440 frames.
19441 (window_internal_height): Remove bogus make_number call.
19442 (init_window_once): Call make_terminal_frame with two zero parameters.
19443
19444 * fileio.c (Fread_file_name): Update comment.
19445
19446 * callint.c (Fcall_interactively):
19447 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19448 Make sure it is correctly unwound.
19449
19450 * xsmfns.c (x_session_close): New function.
19451
19452 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19453 Delete declarations.
19454
19455 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19456 (x_output): Remove background_pixel and foreground_pixel fields.
19457 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19458 (x_delete_device, x_session_close): Declare.
19459
19460 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19461 (read_filtered_event): Call `read_char' with a local
19462 `wrong_kboard_jmpbuf'.
19463
19464 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19465 Don't call single_kboard_state. Use FRAME_RIF.
19466
19467 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19468 systems.
19469
19470 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19471 (Fframe_with_environment, Fset_input_meta_mode)
19472 (Fset_quit_char): EXFUN.
19473 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19474 (init_sys_modes, reset_sys_modes): Update prototypes.
19475 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19476
19477 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19478 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19479 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19480 Delete declarations.
19481 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19482 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19483 New declarations.
19484
19485 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19486 already does that during init_display(). Call syms_of_keymap
19487 before syms_of_keyboard. Call `syms_of_terminal'.
19488 Call set_initial_environment, not set_process_environment.
19489 (shut_down_emacs): Call reset_all_sys_modes() instead of
19490 reset_sys_modes().
19491
19492 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19493 (internal_resolve_face_name, resolve_face_name_error): New functions.
19494 (resolve_face_name): Protect against loops and errors thrown by Fget.
19495 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19496 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19497
19498 * scroll.c: Replace CURTTY() with local variables throughout the
19499 file (where applicable).
19500 (calculate_scrolling, calculate_direct_scrolling)
19501 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19502 characteristics.
19503
19504 * keymap.c (Vfunction_key_map): Remove.
19505 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19506 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19507 (Vkey_translation_map): Remove.
19508 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19509 (Fdescribe_buffer_bindings)
19510 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19511 Update for terminal-local key-translation-map.
19512
19513 * Makefile.in (callproc.o): Update dependencies.
19514 (lisp, shortlisp): Add termdev.elc.
19515 (obj): Add terminal.o.
19516 (terminal.o): Add dependencies.
19517 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19518 (data.o, fns.o): Add termhooks.h dependency.
19519 (SOME_MACHINE_LISP): Add dnd.elc.
19520 (minibuf.o): Fix typo.
19521 Update dependencies.
19522
19523 * data.c (do_symval_forwarding, store_symval_forwarding)
19524 (find_symbol_value): Use the selected frame's keyboard, not
19525 current_kboard.
19526
19527 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19528 Vwindow_system.
19529
19530 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19531 Fmenu_bar_open.
19532 (syms_of_xmenu): Update defsubr.
19533 (mouse_position_for_popup, Fx_popup_menu)
19534 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19535 (set_frame_menubar, free_frame_menubar)
b97439ce 19536 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19537 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19538 an X frame.
19539
19540 * xselect.c (x_own_selection): Abort if not an X frame.
19541 (some_frame_on_display): Check if it is an X frame.
19542 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19543
19544 * coding.c: Include frame.h and termhooks.h.
19545 (terminal_coding, keyboard_coding): Delete.
19546 (Fset_terminal_coding_system_internal)
19547 (Fset_keyboard_coding_system_internal)
19548 (Fkeyboard_coding_system)
19549 (Fterminal_coding_system): Add a terminal parameter.
19550 Get terminal_coding from the terminal.
19551 (init_coding_once): Don't call setup_coding_system here.
19552
19553 * dispextern.h (set_scroll_region, turn_off_insert)
19554 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19555 (tty_clear_end_of_line, tty_setup_colors)
19556 (delete_tty, updating_frame)
19557 (produce_special_glyphs, produce_glyphs, write_glyphs)
19558 (insert_glyphs): Remove.
19559 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19560 (tty_turn_off_highlight, get_tty_size): Add declaration.
19561 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19562
19563 * frame.h (enum output_method): Add output_initial.
19564 (struct x_output): Delete.
19565 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19566 Access foreground_pixel and background_pixel directly from the frame.
19567 (tty_display): Delete.
19568 (struct frame): Add buried_buffer_list, foreground_pixel,
19569 background_pixel and terminal. Delete kboard.
19570 (union output_data): Add tty.
19571 (FRAME_KBOARD): Get the kboard from the terminal.
19572 (FRAME_INITIAL_P): New macro.
19573 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19574 (Qterm_environment_variable, Qdisplay_environment_variable)
19575 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19576 New declarations.
19577
19578 * termchar.h (tty_output, tty_display_info): New structures.
19579 (tty_list): Declare.
19580 (FRAME_TTY, CURTTY): New macros.
19581 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19582 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19583 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19584 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19585
19586 * callproc.c: Include frame.h and termhooks.h, for terminal
19587 parameters.
19588 (add_env): New function.
19589 (child_setup): Use it.
19590 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19591 (getenv_internal): Fix get_terminal_param call.
19592 (Fgetenv_internal, egetenv): Update doc.
19593 (syms_of_callproc): Initialize Vprocess_environment to nil.
19594 Register and initialize them. Remove obsolete defvars. Update doc
19595 strings.
19596 (child_setup): Handle Vlocal_environment_variables.
19597 (getenv_internal): Add terminal parameter.
19598 Handle Vlocal_environment_variables.
19599 (Fgetenv_internal): Add terminal parameter.
19600 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19601 environment in a frame (not terminal) parameter. Update doc strings.
19602 (set_initial_environment): Rename from set_global_environment.
19603 Store Emacs environment in initial frame parameter.
19604
19605 * xdisp.c (redisplay_internal): Update references to
19606 `previous_terminal_frame'.
19607 (display_mode_line, Fformat_mode_line): Replace calls to
19608 `push_frame_kboard' with `push_kboard'.
19609 (get_glyph_string_clip_rects): Add extra parentheses and
19610 braces to prevent compiler warnings.
19611 (calc_pixel_width_or_height): Add xassert to check that the
19612 frame is alive. Don't call `lookup_image' on a termcap frame.
19613 (message2_nolog, message3_nolog, redisplay_internal)
19614 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19615 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19616 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19617 (Fx_display_pixel_width, Fx_display_pixel_height)
19618 (Fx_display_planes, Fx_display_color_cells)
19619 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19620 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19621 (Fx_display_backing_store, Fx_display_visual_class)
19622 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19623 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19624
19625 * xfns.c (x_set_foreground_color x_set_background_color)
19626 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19627 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19628 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19629 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19630 terminal that is being deleted.
19631 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19632 frame parameter, and make sure it overrides any user-supplied setting.
19633 (Fx_close_connection, Fx_synchronize): Unify argument names with
19634 the rest of the DEFUNs.
19635
19636 * dispnew.c (Fsend_string_to_terminal): Update call to
19637 `get_tty_terminal'.
19638 (Fredraw_frame, Fsend_string_to_terminal)
19639 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19640 FRAME_TERMCAP_P and FRAME_TTY.
19641 (window_change_signal): Don't believe width/height values that are
19642 impossibly small.
19643 (Vinitial_window_system): Rename from Vwindow_system.
19644 (termscript, Wcm, rif): Delete.
19645
19646 * termhooks.h (struct terminal): New struct containing the
19647 previously global text display hooks and new members NAME,
19648 DELETED and PARAM_ALIST.
19649 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19650 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19651 (FRAME_RIF): New macros.
19652 (get_terminal_param, get_device): New declarations.
19653 (termscript): Delete declaration.
19654
19655 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19656 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19657 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19658 FRAME_FOREGROUND_PIXEL.
19659 (x_fully_uncatch_errors): Disable definition.
19660 (x_scroll_bar_expose): Fix reference to foreground pixel.
19661 (XTread_socket): Disable loop on all X displays.
19662 (x_delete_terminal): Don't set terminal->deleted and let
19663 delete_terminal delete the frames on the terminal.
19664 (x_delete_display): Doc update to reflect changes in
19665 delete_terminal.
19666 (x_display_info) <terminal>: Move member earlier in the struct.
19667 (deleting_tty): Remove old variable.
19668 (Fsuspend_tty): Call clear_tty_hooks.
19669 (Fresume_tty, init_tty): Call set_tty_hooks.
19670 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19671 errors on X frames.
19672 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19673 (handle_one_xevent): Initialize `f' to NULL.
19674 (x_delete_terminal, x_create_terminal): New functions.
19675 (XTset_terminal_modes, XTreset_terminal_modes)
19676 (XTread_socket, x_connection_closed, x_term_init)
19677 (x_term_init, x_delete_display): Add terminal parameter.
19678 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19679 X connections.
19680
19681 * frame.c: Include termchar.h.
19682 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19683 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19684 (Qdisplay_environment_variable): New vars.
19685 (Fframep): Deal with output_initial.
19686 (Fframe-live-p): Doc fix.
19687 (Fwindow-system): New function.
19688 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19689 (make_terminal_frame): Don't create frames on a terminal that is
19690 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19691 (store_frame_param): Check for found_for_frame before calling XFRAME.
19692 (Fmake_terminal_frame): Handle NULL tty names correctly.
19693 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19694 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19695 frames to refer to a deleted frame in their 'environment parameter.
19696 (Fframe_with_environment): New function.
19697 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19698 (get_future_frame_param): New function.
19699 (Fmake_terminal_frame): Use it.
19700 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19701
19702 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19703 * sysdep.c (reset_sys_modes): Update for renames.
19704
19705 * keyboard.c (tty_read_avail_input): New function.
19706 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19707 (syms_of_keyboard): Defsubr them.
19708 (Fset_input_meta_mode, Fset_quit_char): New functions.
19709 (Fset_input_mode): Split to above functions.
19710 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19711 parameter. Use it in call to `read_char'.
19712 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19713 Set wrong_kboard_jmpbuf correctly in recursive calls.
19714 Use current_kboard to access Vkeyboard_translate_table.
19715 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19716 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19717 Update longjmp invocations. Remember the original current_kboard,
19718 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19719 changes it. Comment out unnecessary calls to
19720 `record_single_kboard_state' and `any_kboard_state'.
19721 Update recursive calls.
19722 (wrong_kboard_jmpbuf): Remove global variable.
19723 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19724 Handle deleted interrupted_kboards correctly; that is a legal
19725 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19726 and read_char calls. Abort if interrupted_kboard died in read_char.
19727 (any_kboard_state, single_kboard_state)
19728 (push_frame_kboard): Remove function.
19729 (pop_kboard): Switch out of single_kboard mode if the kboard has
19730 been deleted. Remove unused variable. Help debugging by not
19731 changing current_kboard unnecessarily. Set current_kboard to the
19732 kboard of the selected frame when the stored kboard object has
19733 been deleted before pop_kboard.
19734 (temporarily_switch_to_single_kboard): Change first parameter to a
19735 frame pointer. Throw an error when caller wants to change kboards
19736 while in single_kboard mode. Don't push_kboard if we weren't in
19737 single kboard state. Don't pop_kboard if we popped into any
19738 kboard state.
19739 (restore_kboard_configuration): Abort if pop_kboard changed the
19740 kboard in single_kboard mode. Call pop_kboard only after setting
19741 up single_kboard mode.
19742 (Frecursive_edit): Switch to single_kboard mode only in nested
19743 command loops.
19744 (cmd_error, command_loop, command_loop_1, timer_check):
19745 Comment out unnecessary call to `any_kboard_state' and
19746 `record_single_kboard_state'.
19747 (delete_kboard): Exit single_kboard mode if we have just deleted
19748 that kboard. Use FRAME_KBOARD.
19749 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19750 `fatal_error_signal'.
19751 (record_single_kboard_state): Don't push_kboard if we weren't in
19752 single kboard state. Don't pop_kboard if we popped into any
19753 kboard state.
19754 (push_frame_kboard): Rename to push_kboard.
19755 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19756 (read_avail_input): Read input from all terminals.
19757 (mark_kboards): Also mark Vkeyboard_translate_table.
19758 (kbd_buffer_store_event_hold): Simplify condition.
19759 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19760 (Vkeyboard_translate_table): Move to struct kboard.
19761 (init_kboard): Initialize Vkeyboard_translate_table.
19762 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19763 Vkeyboard_translate_table. Update doc strings. Update docs of
19764 local-function-key-map and function-key-map.
19765
19766 * terminal.c: New file.
19767
19768 * term.c: Include errno.h.
19769 (Vring_bell_function, device_list, initial_device)
19770 (next_device_id, ring_bell, update_begin, update_end)
19771 (set_terminal_window, cursor_to, raw_cursor_to)
19772 (clear_to_end, clear_frame, clear_end_of_line)
19773 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19774 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19775 (syms_of_term): Move their initialization to terminal.c.
19776 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19777 (Ftty_display_color_cells)
19778 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19779 (clear_tty_hooks, set_tty_hooks)
19780 (init_tty, maybe_fatal): New functions.
19781 (Ftty_type): Return nil if terminal is not on a tty instead of
19782 throwing an error. Doc update.
19783 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19784 Doc update. Initialize new subrs and variables.
19785 (delete_tty): Use terminal->deleted.
19786 (tty_set_terminal_modes): Rename from set_terminal_modes.
19787 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19788 (set_scroll_region): Rename to `tty_set_scroll_region'.
19789 (turn_on_insert): Rename to `tty_turn_on_insert'.
19790 (turn_off_insert): Rename to `tty_turn_off_insert'.
19791 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19792 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19793 (toggle_highligh): Rename to `tty_toggle_highlight'.
19794 (background_highlight): Rename to `tty_background_highlight'.
19795 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19796 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19797 (tty_set_scroll_region, tty_background_highlight)
19798 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19799 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19800 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19801 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19802 Add static modifier.
19803 (tty_reset_terminal_modes, tty_set_terminal_window)
19804 (tty_set_scroll_region, tty_background_highlight)
19805 (tty_highlight_if_desired, tty_cursor_to)
19806 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19807 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19808 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19809 renames.
19810
198112007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19812
19813 * keyboard.c: Qrtl is new.
19814 (parse_tool_bar_item): Handle :rtl keyword.
19815 (syms_of_keyboard): Intern :rtl keyword.
19816
19817 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19818
19819 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19820 so no Lisp code is executed.
19821 (file_for_image, find_rtl_image): New functions.
19822 (xg_get_image_for_pixmap): Use file_for_image.
19823 (update_frame_tool_bar): If direction is RTL, use RTL image if
19824 defined. Use Gtk stock images if defined.
19825
198262007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19827
19828 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19829 for nonexistent or zero-width glyph in composition glyph.
19830
198312007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19832
19833 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19834
19835 * xdisp.c (Finvisible_p): New function.
19836 (syms_of_xdisp): defsubr it.
19837
198382007-08-24 Juanma Barranquero <lekktu@gmail.com>
19839
19840 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19841 Doc fixes.
19842
198432007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19844
19845 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19846
198472007-08-24 Martin Rudalics <rudalics@gmx.at>
19848
19849 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19850 whether decoding has modified buffer contents.
19851
198522007-08-24 Jason Rumney <jasonr@gnu.org>
19853
19854 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19855 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19856 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19857 (init_svg_functions) [HAVE_NTGUI]: New function.
19858 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19859 (svg_load_image): Use them.
19860 (svg_load_image) [HAVE_NTGUI]: Implement background.
19861
198622007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19863
19864 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19865 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19866 (LIBX): Remove @RSVG_LIBS@.
19867 (LIBES): Add $(RSVG_LIBS).
19868
19869 * image.c (svg_load_image): Blend with specified background if exists.
19870 Use IMAGE_BACKGROUND. Add Mac OS Support.
19871
19872 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19873 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19874 Remove macros.
19875 [MAC_OSX] (socket_callback): Do nothing.
19876 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19877 ReceiveNextEvent.
19878 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19879 socket_callback.
19880 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19881
198822007-08-22 Glenn Morris <rgm@gnu.org>
19883
19884 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19885
198862007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19887
19888 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19889
19890 * image.c: Add support for SVG images. Some additional comments
19891 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19892 (svg_image_p): New function to test for SVG image.
19893 (svg_load): New function to load SVG image.
19894 (svg_load_image): New function, helper for svg_load.
19895 (Qsvg): New Lisp_object.
19896 (svg_keyword_index): New enum.
19897 (svg_format): New static `image_keyword' struct.
19898 (svg_type): New static `image_type' struct.
19899 (librsvg/rsvg.h): Include it.
19900
199012007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19902
19903 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19904
199052007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19906
19907 * lread.c (Qold_style_backquotes): New var.
19908 (syms_of_lread): Init and staticpro it.
19909 (load_warn_old_style_backquotes): New fun.
19910 (Fload): Use them to warn about old style backquotes.
19911 (end_of_file_error, Fload): Remove unused vars.
19912
19913 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19914
19915 * lread.c (Vold_style_backquotes): New var.
19916 (syms_of_lread): Init and export it to Elisp.
19917 (read1): Set it when we find an old-style (back)quote.
19918
199192007-08-22 Jason Rumney <jasonr@gnu.org>
19920
19921 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19922
199232007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19924
19925 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19926
199272007-08-19 Richard Stallman <rms@gnu.org>
19928
19929 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19930
199312007-08-19 Andreas Schwab <schwab@suse.de>
19932
19933 * alloc.c (pure): Round PURESIZE up.
19934
199352007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19936
19937 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19938 active frame.
19939
199402007-08-16 Richard Stallman <rms@gnu.org>
19941
19942 * eval.c (Fcommandp): Add parens to clarify.
19943
19944 * minibuf.c (Fall_completions): Use enum for type of table.
19945
19946 * emacs.c (USAGE2): Improve text.
19947
199482007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19949
19950 * term.c (tty_default_color_capabilities): Declare static
19951 variables in file scope, to avoid HPUX compiler problem.
19952
199532007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19954
19955 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19956 to gtk_toolbar_insert.
19957
199582007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19959
19960 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19961
19962 * insdel.c (reset_var_on_error): New fun.
19963 (signal_before_change, signal_after_change):
19964 Use it to reset (after|before)-change-functions to nil in case of error.
19965 Bind inhibit-modification-hooks to t.
19966 Don't bind (after|before)-change-functions to nil while they run.
19967
199682007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19969
19970 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19971 filling pixmap with stippled background.
19972
199732007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19974
19975 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19976 Don't use invisible frame as parent window for repositioning.
19977
199782007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19979
19980 * print.c (new_backquote_output): Rename from old_backquote_output.
19981 (print): Inverse its logic (according to its name) so as to match the
19982 behavior of new_backquote_flag in lread.c.
19983
199842007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19985
19986 * gmalloc.c (posix_memalign): New function.
19987
19988 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19989 ActivateControl/DeactivateControl here.
19990 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19991 frame-notice-user-settings is non-nil.
19992 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19993 for kEventParamFMFontStyle.
19994 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19995 mac_pass_command_to_system and mac_pass_control_to_system here.
19996 (XTread_socket): Call ActivateControl/DeactivateControl here.
19997 (XTread_socket) [TARGET_API_MAC_CARBON]:
19998 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19999 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20000 for window repositioning.
20001
200022007-08-08 Glenn Morris <rgm@gnu.org>
20003
20004 * Replace `iff' in doc-strings and comments.
20005
200062007-08-07 Chong Yidong <cyd@stupidchicken.com>
20007
20008 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20009
200102007-08-07 Martin Rudalics <rudalics@gmx.at>
20011
20012 * fileio.c (Finsert_file_contents): Run format-decode and
20013 after_insert_file_functions on entire buffer when REPLACE is
20014 non-nil and inhibit modification_hooks and point_motion_hooks.
20015 For consistency, run after_insert_file_functions iff something
20016 got inserted. Move signal_after_change and update_compositions
20017 after code running after_insert_file_functions. Make sure that
20018 undo_list doesn't record intermediate steps of the decoding process.
20019
200202007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20021
20022 * emacs.c (main)
20023 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20024 Call malloc_enable_thread on interactive startup.
20025
20026 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20027 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20028 [USE_PTHREAD]: Conditionalize with it.
20029 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20030 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20031 New functions.
20032
200332007-08-06 Chong Yidong <cyd@stupidchicken.com>
20034
20035 * xdisp.c (redisplay_window): When restoring original buffer
20036 position, make sure it is still valid.
20037
20038 * image.c (png_load): Ignore png-supplied background color.
20039
200402007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20041
20042 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20043 Use kCFAbsoluteTimeIntervalSince1970.
20044
20045 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20046 New variable.
20047 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20048 event loop should be quit.
20049 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20050 Quit dialog event loop if quit_dialog_event_loop is set.
20051
20052 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20053 (Selection): New typedef. Use instead of ScrapRef.
20054 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20055 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20056 (mac_clear_selection): Rename from clear_scrap.
20057 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20058 scrap_has_target_type. All uses changed.
20059 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20060 (mac_selection_has_target_p): New functions.
20061 (mac_put_selection_value): Rename from put_scrap_string.
20062 (mac_get_selection_value): Rename from get_scrap_string.
20063 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20064 (put_scrap_private_timestamp, scrap_has_target_type)
20065 (get_scrap_private_timestamp): Remove functions.
20066 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20067 (x_own_selection, x_get_local_selection):
20068 Use mac_valid_selection_value_p.
20069 (x_own_selection): Don't use put_scrap_private_timestamp.
20070 Record OWNERSHIP-INFO into Vselection_alist instead.
20071 (x_get_local_selection): Don't check type if request is local.
20072 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20073 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20074
200752007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20076
20077 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20078 add comment explaining why.
20079
200802007-08-03 Richard Stallman <rms@gnu.org>
20081
20082 * fileio.c (Fvisited_file_modtime): Use make_time.
20083
200842007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20085
20086 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20087 build.
20088
200892007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20090
20091 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20092
200932007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20094
20095 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20096
200972007-07-30 Richard Stallman <rms@gnu.org>
20098
20099 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20100
201012007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20102
20103 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20104
201052007-07-28 Nick Roberts <nickrob@snap.net.nz>
20106
20107 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20108 remote default-directory.
20109
20110 * buffer.c (mode-line-format): Update doc string.
20111
201122007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20113
20114 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20115 scroll bar gap.
20116 (x_scroll_bar_create): Set bar->fringe_extended_p.
20117 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20118 on frame edge. Check fringe background extension. Don't clear
20119 extended fringe background area.
20120
20121 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20122 (w32_fill_area): Enclose multiple statements with do ... while (0).
20123
20124 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20125 Extend fringe background to scroll bar gap.
20126 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20127 Set bar->fringe_extended_p.
20128 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20129 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20130 background extension. Don't clear extended fringe background area.
20131
20132 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20133 New member fringe_extended_p.
20134
201352007-07-25 Glenn Morris <rgm@gnu.org>
20136
20137 * Relicense all FSF files to GPLv3 or later.
20138
20139 * COPYING: Switch to GPLv3.
20140
201412007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20142
20143 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20144
20145 * data.c (Finteractive_form): Check for the presence of an
20146 `interactive-form' symbol property more thoroughly.
20147
20148 * data.c (Finteractive_form): Use an `interactive-form' property if
20149 present, analogous to the function-documentation property.
20150
201512007-07-24 Jason Rumney <jasonr@gnu.org>
20152
20153 * w32fns.c (x_real_positions): Get real position from OS instead of
20154 calculating it.
20155
201562007-07-23 Jason Rumney <jasonr@gnu.org>
20157
20158 * filelock.c (current_lock_owner): Allow for @ sign in username.
20159
201602007-07-22 Nick Roberts <nickrob@snap.net.nz>
20161
20162 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20163 remote default-directory.
20164
20165 * buffer.c (mode-line-format): Describe above case in doc string.
20166
201672007-07-20 Eli Zaretskii <eliz@gnu.org>
20168
20169 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20170 Define if not defined.
20171
201722007-07-18 Jason Rumney <jasonr@gnu.org>
20173
20174 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20175
201762007-07-18 Richard Stallman <rms@gnu.org>
20177
20178 * data.c (Fsetq_default): Doc fix.
20179
20180 * eval.c (Fsetq): Doc fix.
20181
201822007-07-18 Juanma Barranquero <lekktu@gmail.com>
20183
20184 * coding.c (Ffind_operation_coding_system):
20185 * eval.c (For, Fand): Doc fixes.
20186 Reported by Johan Bockgård.
20187
201882007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20189
20190 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20191
20192 * xterm.h: Declare x_ewmh_activate_frame.
20193
20194 * xterm.c (x_ewmh_activate_frame): New function.
20195 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20196
201972007-07-17 Martin Rudalics <rudalics@gmx.at>
20198
20199 * window.c (Fdisplay_buffer): If largest or LRU window is the
20200 only window, split it even if it is not eligible for splitting.
20201 This restores the original behavior broken by the 2007-07-15
20202 change.
20203
202042007-07-17 Glenn Morris <rgm@gnu.org>
20205
20206 * abbrev.c (abbrev_check_chars): New function.
20207 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20208 Call abbrev_check_chars to check abbrev characters are word
20209 constituents. Doc fix.
20210
202112007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20212
20213 * process.c (Fstart_process, Fmake_network_process)
20214 (read_process_output): Fix up last changes.
20215
202162007-07-16 Eli Zaretskii <eliz@gnu.org>
20217
20218 * makefile.w32-in (clean): Don't delete *~.
20219
202202007-07-16 Andreas Schwab <schwab@suse.de>
20221
20222 * window.c (Fdisplay_buffer): Use NILP.
20223 (Fset_window_scroll_bars): Likewise.
20224
202252007-07-15 Martin Rudalics <rudalics@gmx.at>
20226
20227 * window.c (window_min_size_2): New function.
20228 (window_min_size_1, size_window, Fdisplay_buffer)
20229 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20230 windows without mode- or header-lines when window-min-height is
20231 too small.
20232 (size_window): Reset nodelete_p after testing it, following an
20233 earlier note by Kim F. Storm.
20234 (display_buffer): Do not set split_height_threshold to twice the
20235 value of window_min_height to avoid changing the value of a
20236 customizable variable. Rather explicitly check whether the
20237 height of the window that shall be splitted is at least as large
20238 as split_height_threshold.
20239 (Fwindow_full_width_p): New defun.
20240 (syms_of_window): Defsubr it.
20241
20242 * window.h: Add EXFUN for Fwindow_full_width_p.
20243
202442007-07-14 Jason Rumney <jasonr@gnu.org>
20245
20246 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20247
202482007-07-14 Richard Stallman <rms@gnu.org>
20249
20250 * eval.c (maybe_call_debugger): New function.
20251 (find_handler_clause): Use maybe_call_debugger.
20252 Call it when the handler says `debug'.
20253 Eliminate DEBUGGER_VALUE_PTR.
20254 (Fsignal): Eliminate debugger_value.
20255 (Qdebug): New variable.
20256 (syms_of_eval): Initialize it.
20257
202582007-07-14 Juanma Barranquero <lekktu@gmail.com>
20259
20260 * eval.c (Fprogn):
20261 * keyboard.c (Ftrack_mouse):
20262 * print.c (Fwith_output_to_temp_buffer):
20263 * window.c (Fsave_window_excursion): Doc fix.
20264
202652007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20266
20267 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20268
202692007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20270
20271 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20272 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20273 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20274 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20275 Remove unused encoding_carryover.
20276 * process.c: Adjust all functions accordingly.
20277
202782007-07-12 Richard Stallman <rms@gnu.org>
20279
20280 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20281
202822007-07-11 Jason Rumney <jasonr@gnu.org>
20283
20284 * makefile.w32-in (LIBS): Include OLE32.
20285
20286 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20287 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20288
202892007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20290
20291 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20292 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20293 from a Lisp_Object into a bare pointer.
20294 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20295 Adjust the code correspondingly.
20296
20297 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20298
20299 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20300 (term_show_mouse_face): Remove unused var `j'.
20301 (handle_one_term_event): Remove unused vars `i' and `j'.
20302 Don't cast return value of ttyname since it's not necessary.
20303
203042007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20305
20306 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20307 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20308
20309 * fns.c (map_char_table): Use an array of int for `indices' rather than
20310 an array of Lisp_Objects (which are only ever integers anyway).
20311 (Fmap_char_table): Update caller.
20312 * lisp.h: Update prototype.
20313 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20314 * fontset.c (Ffontset_info):
20315 * casetab.c (set_case_table): Update callers.
20316
20317 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20318
20319 * keymap.c (struct accessible_keymaps_data)
20320 (struct where_is_internal_data): New structures.
20321 (accessible_keymaps_1, where_is_internal_1): Use them to change
20322 interface to adhere to the one used by map_keymap.
20323 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20324 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20325
20326 * keymap.h (map_keymap_function_t): More informative prototype.
20327
203282007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20329
20330 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20331 (looking_at_1): Don't change search_regs and last_thing_searched
20332 if `inhibit-changing-match-data' is non-nil.
20333 (string_match_1, search_buffer, set_search_regs): Likewise.
20334 (syms_of_search): Add Lisp level definition for
20335 `inhibit-changing-match-data' and set it to nil.
20336 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20337 start and end of the match, instead of using values in search_regs.
20338
203392007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20340
20341 * minibuf.c (Fcompleting_read): New value `confirm-only'
20342 for `require-match'.
20343
203442007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20345
20346 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20347 part of the 2007-06-27 change to syms_of_fileio.
20348
203492007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20350
20351 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20352 Check WINDOWP before using XWINDOW. Consolidate return statements.
20353
203542007-06-27 Richard Stallman <rms@gnu.org>
20355
20356 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20357
203582007-06-27 Juanma Barranquero <lekktu@gmail.com>
20359
20360 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20361
203622007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20363
20364 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20365 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20366 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20367 (_free_internal, memalign): Use them.
20368 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20369 Initialize to PTHREAD_MUTEX_INITIALIZER.
20370 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20371 (morecore_nolock): Rename from morecore. All uses changed.
20372 Use only nolock versions of internal allocation functions.
20373 (_malloc_internal_nolock, _realloc_internal_nolock)
20374 (_free_internal_nolock): New functions created from
20375 _malloc_internal, _realloc_internal, and _free_internal.
20376 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20377 Copy hook value to automatic variable before its use.
20378 (memalign): Copy hook value to automatic variable before its use.
20379
203802007-06-26 Kenichi Handa <handa@m17n.org>
20381
20382 * coding.c (Ffind_operation_coding_system): Docstring improved.
20383 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20384
203852007-06-25 David Kastrup <dak@gnu.org>
20386
20387 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20388 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20389 cater for additional parameter.
20390
20391 * keymap.h: Adjust number of parameters to `current-active-maps'.
20392
20393 * doc.c (Fsubstitute_command_keys): Adjust call of
20394 `current-active-maps'.
20395
203962007-06-25 David Kastrup <dak@gnu.org>
20397
20398 * callint.c (Fcall_interactively): Make the parsing of interactive
20399 specs somewhat more readable.
20400
204012007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20402
20403 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20404 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20405 if extended background has already been filled.
20406
204072007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20408
20409 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20410 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20411
20412 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20413 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20414 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20415 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20416 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20417 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20418 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20419 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20420 Run timers during dialog popup.
20421 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20422
204232007-06-21 Jason Rumney <jasonr@gnu.org>
20424
20425 * image.c (convert_mono_to_color_image): Swap fore and background.
20426
204272007-06-20 Jason Rumney <jasonr@gnu.org>
20428
20429 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20430 (w32_free_bdf_font): Unmap memory not handle.
20431
204322007-06-20 Sam Steingold <sds@gnu.org>
20433
20434 * gmalloc.c (__morecore): Fix the declaration to comply with the
20435 definition.
20436
204372007-06-20 Juanma Barranquero <lekktu@gmail.com>
20438
20439 * w32term.c (w32_delete_display): Remove leftover declaration.
20440 (w32_define_cursor, w32_initialize): Make static.
20441
20442 * w32.c (_wsa_errlist): Fix typo in error message.
20443 (init_environment): Ignore any environment variable from the
20444 registry having a null value.
20445
204462007-06-20 Glenn Morris <rgm@gnu.org>
20447
20448 * Makefile.in (LIBGIF): Default to -lgif.
20449
204502007-06-17 Jason Rumney <jasonr@gnu.org>
20451
20452 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20453 unicode strings.
20454
204552007-06-16 Juanma Barranquero <lekktu@gmail.com>
20456
20457 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20458 Fix typo in docstring.
20459
204602007-06-16 Eli Zaretskii <eliz@gnu.org>
20461
20462 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20463 and their keybindings.
20464
204652007-06-15 Chong Yidong <cyd@stupidchicken.com>
20466
20467 * composite.c (update_compositions): Fix last fix.
20468
204692007-06-14 Jason Rumney <jasonr@gnu.org>
20470
20471 * w32.c (get_process_times_fn): New function pointer.
20472 (globals_of_w32): Intialize it if present in kernel32.dll.
20473 (w32_get_internal_run_time): New function.
20474
20475 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20476
204772007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20478
20479 * composite.c (update_compositions): Check the validness of
20480 compositions.
20481
204822007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20483
20484 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20485 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20486
20487 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20488 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20489
20490 * macgui.h (USE_MAC_TOOLBAR): New define.
20491
20492 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20493 Return immediately unless popup is activated.
20494
20495 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20496 background to scroll bar gap.
20497 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20498 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20499 scroll bars on frame edge. Check fringe background extension.
20500 Don't clear extended fringe background area.
20501 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20502 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20503 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20504 [USE_MAC_TOOLBAR]: New macros.
20505 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20506 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20507 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20508 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20509 [USE_MAC_TOOLBAR]: New functions.
20510 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20511 manually if previous repositioning has failed.
20512 (mac_handle_keyboard_event): Use precomputed event kind.
20513 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20514 as tool bar item click. Handle mouse movement over tool bar items.
20515
20516 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20517 toolbar_win_gravity.
20518 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20519 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20520 Add externs.
20521
20522 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20523 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20524
205252007-06-14 Chong Yidong <cyd@stupidchicken.com>
20526
20527 * image.c (search_image_cache): Remove unused variable.
20528
205292007-06-13 Chong Yidong <cyd@stupidchicken.com>
20530
20531 * xfns.c, xmenu.c: Link to xaw3d if available.
20532
205332007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20534
20535 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20536 frame_foreground and frame_background.
20537
20538 * image.c (lookup_image): Save frame foreground and background colors.
20539 (search_image_cache): Check if saved and current frame colors match.
20540
205412007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20542
20543 * regex.c (regex_compile): Remove the `regnum' counter.
20544 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20545
205462007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20547
20548 * term.c: Include intervals.h to declare Fget_text_property.
20549
205502007-06-10 Jason Rumney <jasonr@gnu.org>
20551
20552 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20553
205542007-06-08 Juanma Barranquero <lekktu@gmail.com>
20555
20556 * callint.c (Fcall_interactively):
20557 * editfns.c (Fdelete_and_extract_region):
20558 * fileio.c (Fread_file_name):
20559 * fns.c (Fmapconcat):
20560 * keyboard.c (cmd_error_internal):
20561 * keymap.c (Fkey_description):
20562 * lread.c (openp):
20563 * minibuf.c (read_minibuf):
20564 * search.c (wordify):
20565 * sunfns.c (sel_read):
20566 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20567 * xfns.c (x_default_scroll_bar_color_parameter):
20568 * xmenu.c (menu_help_callback):
20569 * xselect.c (Fx_get_atom_name):
20570 * xterm.c (x_term_init): Use empty_unibyte_string.
20571
205722007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20573
20574 * alloc.c (init_strings): Initialize canonical empty strings.
20575 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20576 canonical empty string when the requested size is 0.
20577
20578 * emacs.c (empty_unibyte_string): Rename from empty_string.
20579 (empty_multibyte_string): New canonical empty string.
20580 (syms_of_emacs): Don't initialize empty_string.
20581
20582 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20583 string, if appropriate.
20584 (empty_unibyte_string, empty_multibyte_string): New externs.
20585 (empty_string): Remove extern.
20586
20587 * lread.c (syms_of_lread): Use empty_unibyte_string.
20588
205892007-06-07 Jason Rumney <jasonr@gnu.org>
20590
20591 * s/ms-w32.h: Don't define HAVE_TZNAME.
20592
20593 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20594
205952007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20596
20597 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20598
20599 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20600 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20601
20602 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20603 Don't call next handler.
20604 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20605 Remove argument. Install handler to application.
20606 (set_frame_menubar): Don't change deep_p.
20607 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20608 FRAME_OUTER_TO_INNER_DIFF_Y.
20609 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20610 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20611 [HAVE_DIALOGS]: New macros.
20612 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20613 Use them.
20614 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20615
20616 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20617 init_service_handler. All callers changed. Return OSStatus value.
20618
20619 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20620 All callers changed so as not to call SetPortWindowPort.
20621 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20622 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20623 mac_draw_string_common.
20624 (mac_draw_image_string_qd): Likewise.
20625 (mac_draw_string_common): Use them. Add INLINE.
20626 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20627 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20628 GetGlobalMouse.
20629 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20630 and FRAME_OUTER_TO_INNER_DIFF_Y.
20631 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20632 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20633 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20634 repositioning window to mac_handle_window_event.
20635 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20636 saving window location to mac_handle_window_event
20637 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20638 (install_menu_target_item_handler): Remove argument in extern.
20639 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20640 Also accept command events.
20641 (do_keystroke): New function created from XTread_socket.
20642 (init_command_handler): Remove functions.
20643 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20644 and save window location by kEventWindowShowing and kEventWindowHiding
20645 handlers here. Don't call next handler for window state change and
20646 focus events.
20647 (mac_handle_application_event, mac_handle_keyboard_event)
20648 [TARGET_API_MAC_CARBON]: New functions.
20649 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20650 kEventWindowShowing and kEventWindowHiding events. Move installation
20651 of mouse, font, text input and menu target item handlers to
20652 install_application_handler.
20653 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20654 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20655 New function.
20656 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20657 Register it.
20658 (XTread_socket) [TARGET_API_MAC_CARBON]:
20659 Consolidate SendEventToEventTarget calls.
20660 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20661 Move application activation handler to mac_handle_application_event.
20662 Move keyboard handler to mac_handle_keyboard_event.
20663 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20664 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20665 init_command_handler. Call install_application_handler.
20666
20667 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20668 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20669
206702007-06-07 Glenn Morris <rgm@gnu.org>
20671
20672 * emacs.c (main): Use `emacs-copyright' in --version output.
20673
206742007-06-06 Chong Yidong <cyd@stupidchicken.com>
20675
20676 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20677
206782007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20679
20680 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20681
20682 * macgui.h: Replace WindowPtr with WindowRef.
20683
20684 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20685 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20686 Replace ControlHandle with ControlRef.
20687 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20688
20689 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20690 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20691 Replace ControlHandle with ControlRef.
20692 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20693 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20694
20695 * macterm.h (struct scroll_bar): Rename member control_handle_low
20696 and control_handle_high to control_ref_low and control_ref_high.
20697 All uses changed.
20698 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20699 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20700 respectively. All uses changed.
20701 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20702 (install_window_handler, remove_window_handler): Replace WindowPtr
20703 with WindowRef in externs.
20704
207052007-06-05 Juanma Barranquero <lekktu@gmail.com>
20706
20707 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20708
207092007-06-03 Nick Roberts <nickrob@snap.net.nz>
20710
20711 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20712
20713 * frame.c (Fmouse_position, Fmouse_pixel_position):
20714 Condition on HAVE_GPM too.
20715
20716 * term.c (term_mouse_highlight): Remove unused variables.
20717 (Fterm_open_connection): Set gpm_zerobased to 1.
20718 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20719 Use zero based co-ordinates.
20720 (handle_one_term_event): Report a drag as mouse movement too.
20721
20722 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20723
207242007-06-03 Chong Yidong <cyd@stupidchicken.com>
20725
20726 * image.c (search_image_cache): New function. Require background
20727 color match if background color is unspecified in the image spec.
20728 (uncache_image, lookup_image): Use it.
20729
207302007-06-01 Juanma Barranquero <lekktu@gmail.com>
20731
20732 * window.c (Fshrink_window): Reflow docstring.
20733
207342007-06-02 Chong Yidong <cyd@stupidchicken.com>
20735
20736 * Version 22.1 released.
20737
207382007-06-01 Richard Stallman <rms@gnu.org>
20739
20740 * xfns.c (x_encode_text): Add GCPRO.
20741
207422007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20743
20744 * xfns.c (x_set_name_internal): Save encoded name before
20745 x_encode_text in case string data is relocated.
20746
207472007-05-31 Richard Stallman <rms@gnu.org>
20748
20749 * buffer.c (syms_of_buffer): Doc fix.
20750
207512007-05-30 Nick Roberts <nickrob@snap.net.nz>
20752
20753 * sysdep.c (init_sys_modes): Add rather than replace with
20754 O_NONBLOCK.
20755
20756 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20757 term_mouse_moveto.
20758
20759 * termhooks.h (term_mouse_moveto): New extern.
20760
20761 * term.c (mouse_face_window): Rename...
20762 (Qmouse_face_window): ...to this.
20763 (term_show_mouse_face, term_clear_mouse_face)
20764 (term_mouse_highlight): Use Qmouse_face_window.
20765 (term_mouse_moveto): New function.
20766 (term_mouse_position): Make it work.
20767 (syms_of_term): Uncomment assignment to mouse_position_hook.
20768 Staticpro Qmouse_face_window.
20769
207702007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20771
20772 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20773 around current_column call.
20774
207752007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20776
20777 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20778 * xdisp.c (next_element_from_buffer):
20779 * window.c (delete_window):
20780 * term.c (term_mouse_highlight):
20781 * msdos.c (getdefdir):
20782 * macterm.c (mac_create_bitmap_from_bitmap_data)
20783 (init_font_name_table):
20784 * fns.c (Fsxhash):
20785 * data.c (Fmake_local_variable):
20786 * ccl.c (ccl_driver): Likewise.
20787
207882007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20789
20790 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20791 Call mac_wakeup_from_rne on window size change.
20792
207932007-05-25 Chong Yidong <cyd@stupidchicken.com>
20794
20795 * image.c (uncache_image): Fix typo.
20796
207972007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20798
20799 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20800
208012007-05-22 Richard Stallman <rms@gnu.org>
20802
20803 * xterm.c (x_connection_closed): Remove NO_RETURN.
20804
208052007-05-22 Martin Rudalics <rudalics@gmx.at>
20806
20807 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20808
208092007-05-21 Chong Yidong <cyd@stupidchicken.com>
20810
20811 * image.c (uncache_image): New function.
20812 (Fimage_refresh): New function.
20813
208142007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20815
20816 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20817
208182007-05-20 Nick Roberts <nickrob@snap.net.nz>
20819
20820 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20821 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20822
208232007-05-20 Nick Roberts <nickrob@snap.net.nz>
20824
20825 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20826 conditional on [HAVE_GPM_H].
20827
208282007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20829
20830 * syntax.c (skip_chars): Update syntax-table only after we checked that
20831 the new location is valid.
20832
208332007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20834
20835 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20836 mac_get_window_bounds.
20837
208382007-05-20 Nick Roberts <nickrob@snap.net.nz>
20839
20840 * Makefile.in (LIBGPM): Allow it to be set from configure.
20841 If set then link Emacs with it.
20842
20843 * config.in: Regenerate.
20844
20845 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20846 New externs.
20847
20848 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20849 Include gpm.h.
20850 (handle_one_term_event, term_gpm): New externs.
20851
20852 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20853 and allow it to be interrupted by SIGIO.
20854
20855 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20856 (wait_reading_process_output): Wait on gpm_fd too.
20857 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20858 (add_gpm_wait_descriptor_called_flag): New variable.
20859 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20860
20861 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20862 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20863 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20864 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20865 (make_lispy_event): Add case GPM_CLICK_EVENT.
20866 (read_avail_input): Handle mouse input.
20867
20868 * term.c (write_glyphs_with_face): New function.
20869 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20870 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20871 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20872 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20873 (last_mouse_x, last_mouse_y): New variables.
20874 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20875 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20876 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20877 (Fterm_close_connection): New functions.
20878 (term_init): Initialise mouse_face_window.
20879
208802007-05-19 Chong Yidong <cyd@stupidchicken.com>
20881
20882 * xdisp.c (redisplay_window): If first window line is a
20883 continuation line, recompute the new window start instead of
20884 recentering.
20885
208862007-05-18 Glenn Morris <rgm@gnu.org>
20887
20888 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20889 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20890
208912007-05-17 Glenn Morris <rgm@gnu.org>
20892
20893 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20894
208952007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20896
20897 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20898 dead key repeat and up events.
20899
209002007-05-14 Chong Yidong <cyd@stupidchicken.com>
20901
20902 * image.c (pbm_load): Check image size for monochrome pbm.
20903
209042007-05-13 Chong Yidong <cyd@stupidchicken.com>
20905
20906 * xterm.c (XTread_socket): Revert last change.
20907
209082007-05-12 Chong Yidong <cyd@stupidchicken.com>
20909
20910 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20911
20912 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20913
209142007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20915
20916 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20917 mixup (YAILOM).
20918
209192007-05-07 Andreas Schwab <schwab@suse.de>
20920
20921 * keymap.c (Flookup_key): Fix typo in last change.
20922
209232007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20924
20925 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20926 mapping for unibyte strings.
20927
209282007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20929
20930 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20931 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20932
209332007-04-29 Richard Stallman <rms@gnu.org>
20934
20935 * insdel.c (replace_range): For undo, record insertion first.
20936
209372007-04-29 Andreas Schwab <schwab@suse.de>
20938
20939 * lisp.h (VECSIZE): Use OFFSETOF.
20940
209412007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20942
20943 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20944 disabled lines.
20945
209462007-04-28 Richard Stallman <rms@gnu.org>
20947
20948 * lread.c (read_escape): In a string, \s is always space.
20949
209502007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20951
20952 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20953
20954 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20955 submenu for menu bar items.
20956
20957See ChangeLog.10 for earlier changes.
20958
20959;; Local Variables:
20960;; coding: utf-8
20961;; add-log-time-zone-rule: t
aac0c6e3
MR
20962;; End:
20963
76b6f707 20964 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20965
20966 This file is part of GNU Emacs.
20967
20968 GNU Emacs is free software: you can redistribute it and/or modify
20969 it under the terms of the GNU General Public License as published by
20970 the Free Software Foundation, either version 3 of the License, or
20971 (at your option) any later version.
20972
20973 GNU Emacs is distributed in the hope that it will be useful,
20974 but WITHOUT ANY WARRANTY; without even the implied warranty of
20975 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20976 GNU General Public License for more details.
20977
20978 You should have received a copy of the GNU General Public License
20979 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20980
20981;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40