gtkutil.c: Scroll bar thumb not updated properly (bug #5177).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e8d7886a
JD
12009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2
3 * gtkutil.c (scroll_end_callback): New function (bug #5177)
4 (xg_create_scroll_bar): Call scroll_end_callback on button release
5 event (bug #5177).
6 (xg_event_is_for_scrollbar): != replaced with ==.
7
d0db2ec8
KH
82009-12-12 Kenichi Handa <handa@m17n.org>
9
10 * ftfont.c (struct ftfont_info): New member matrix.
11 (ftfont_open): Setup xftfont_info->matrix.
12 (MFLTFontFT): New member matrix.
13 (FLOOR, CEIL, ROUND): New macros.
14 (ftfont_get_metrics): Handle matrix transformation.
15 (ftfont_shape_by_flt): New arg matrix. Callers changed.
16
17 * xftfont.c (struct xftfont_info): New member matrix.
18 (xftfont_open): Setup xftfont_info->matrix.
19
202009-12-10 Kenichi Handa <handa@m17n.org>
21
22 * xdisp.c (append_space_for_newline): Consider face-remapping.
23
2cc7b62f
AS
242009-12-09 Andreas Schwab <schwab@linux-m68k.org>
25
b87dd913
AS
26 * xsettings.c: Include "keyboard.h".
27
eba5eb94
AS
28 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
29
2cc7b62f
AS
30 Fix implicit function declarations.
31 * cmds.c: Include "frame.h".
32 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
33 * frame.h: Move declaration of delete_frame outside of
34 HAVE_WINDOW_SYSTEM.
35
a4ef73c8
CY
362009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
37
38 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
39
40 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
41 GTK builds.
42
944a300c
AS
432009-12-07 Andreas Schwab <schwab@linux-m68k.org>
44
45 * unexelf.c (unexec): Don't search for .data twice.
46
022eef62
CY
472009-12-05 Chong Yidong <cyd@stupidchicken.com>
48
426ac949
CY
49 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
50 if push failed.
51 (handle_line_prefix): Set avoid_cursor_p here. Check return value
52 of push_display_prop (Bug#5000).
53
022eef62
CY
54 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
55 value of font_list_entities (Bug#5085).
56
be95bee9
JB
572009-12-04 Juanma Barranquero <lekktu@gmail.com>
58
59 Fix `string-to-number' to deal consistently with integers and floats.
60 * lread.c (isfloat_string): New argument ignore_trailing to accept all
61 trailing characters, not just whitespace.
62 (read1): Pass new arg 0 to keep old behavior.
63 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
64 trailing chars, as it is already done for integers. Doc fixes.
65 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
66
24c2d7ce
EZ
672009-12-04 Eli Zaretskii <eliz@gnu.org>
68
69 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
70 unused enumeration value.
71
7e694795
EZ
722009-12-03 Eli Zaretskii <eliz@gnu.org>
73
74 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
75
84b31826
SM
762009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
77
78 * process.c (Fmake_network_process): Fix up the tests for
79 "connectionless socket", so they DTRT for seqpacket sockets as well.
80
f00c449b
SM
812009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
82
83 * process.c (Qseqpacket): New symbol.
84 (HAVE_SEQPACKET): New macro.
85 (Fmake_network_process): Accept new :type `seqpacket'.
86 (init_process): Add `seqpacket' feature when applicable.
87 (syms_of_process): Initialize Qseqpacket.
88
8096a0ff
YM
892009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
90
91 * font.c (font_load_for_lface, font_open_by_name): Don't store name
92 if entity is Qnil.
93
3e0de07f
SM
942009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
95
96 * print.c (print_preprocess): Preprocess the key_and_value table of
97 hashtables, even tho they're "hidden" (bug#5082).
98
abeafb2a
JD
992009-11-29 Jan Djärv <jan.h.d@swipnet.se>
100
101 * frame.c (frame_make_pointer_invisible)
102 (frame_make_pointer_visible): Declare f before statements.
103
4bf47195
EZ
1042009-11-28 Eli Zaretskii <eliz@gnu.org>
105
106 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
107 omitted dependencies on lisp.h.
108
c525b3f2
JD
1092009-11-27 Jan Djärv <jan.h.d@swipnet.se>
110
ece2d4ed
JD
111 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
112 is NULL.
113
114 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
115
116 * frame.c (frame_make_pointer_invisible)
3e0de07f 117 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
118 frame.
119
c525b3f2
JD
120 * search.c (simple_search): Remove warning by making *p const.
121
2f00e299
DN
1222009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
123
124 * xdisp.c (power_letter): Remove duplicate const.
125
084b049b
JD
1262009-11-25 Jan Djärv <jan.h.d@swipnet.se>
127
a1fadc6f
JD
128 * term.c (delete_tty): Remove check for last terminal (bug#4970).
129
084b049b
JD
130 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
131 defaults (bug #5025).
132
28259cac
SM
1332009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
134
135 * insdel.c (adjust_markers_for_delete): Move it in the
136 right direction! (bug#4803)
137
e8e14166
YM
1382009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
139
140 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
141
142 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
143
86677b58
GM
1442009-11-24 Glenn Morris <rgm@gnu.org>
145
146 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
147
581e51e8
JD
1482009-11-23 Jan Djärv <jan.h.d@swipnet.se>
149
cfc86c7a
JD
150 * Makefile.in: Must create deps for ecrt0.o in its rule.
151
581e51e8
JD
152 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
153 because that is what Gtk+ font dialog understands.
154
155 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
156 of Fcopy_sequence.
157 (font_open_by_name): Put name given into QCname for font-object returned.
158
159 * frame.c (x_set_font): Save original font name as frame parameter
160 font-parameter.
161
162 * xsettings.c (set_default_xft_settings): New function.
163 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
164 is found.
165
8b264ecb
AS
1662009-11-22 Andreas Schwab <schwab@linux-m68k.org>
167
168 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
169 searching backwards through multibyte buffer.
170
872870b2
JD
1712009-11-21 Jan Djärv <jan.h.d@swipnet.se>
172
173 * xterm.c: #include xgselect.h.
174 (x_initialize): Call xgselect_initialize.
175
176 * xsettings.c (something_changedCB): C++ comments => C comments.
177 (init_gconf): Do not deal with any GLib file descriptors, xg_select
178 does that now.
179
180 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
181 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
182 (scroll_bar_button_cb): Remove.
183 (create_menus): C++ comments => C comments. Don't bind grab-notify
184 event.
185 (xg_create_scroll_bar): Don't bind button-press-event and
186 button-release-event.
187
188 * process.c: Include xgselect.h if defined (USE_GTK) ||
189 defined (HAVE_GCONF).
190 (wait_reading_process_output): Call xg_select for the same condition.
191
192 * xgselect.c (xg_select): New function to better integrate with
193 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
194
195 * xgselect.h: New file, declare xg_select, xgselect_initialize.
196
197 * Makefile.in (XOBJ): Add xgselect.o.
198
62a6e103
AS
1992009-11-21 Andreas Schwab <schwab@linux-m68k.org>
200
201 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
202 ignored second argument. All callers changed.
203 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
204 (RE_STRING_CHAR_AND_LENGTH): Likewise.
205 * xdisp.c (string_char_and_length): Likewise.
206
b0ca0f33
DN
2072009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
208
209 * xterm.c (x_new_font):
210 * print.c (print_object):
211 * cmds.c (Fself_insert_command): Move declarations before statements.
212
dd5a6279
CY
2132009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
214
215 * s/cygwin.h: Remove unneeded linker flags.
216
4a8e097d
JD
2172009-11-20 Jan Djärv <jan.h.d@swipnet.se>
218
0d1d0d26
JD
219 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
220
221 * xsettings.h: Declare xsettings_get_system_font.
222
223 * xsettings.c (xsettings_get_system_font): New function.
224 (init_gconf): No use initiating gconf unless we have Xft also.
225 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
226 HAVE_GCONF.
227
4a8e097d
JD
228 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
229 add a blank entry so it doesn't collapse into nothing.
230
8ab1650e
SM
2312009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
232
233 * lread.c (Funintern): Comment out last change.
234
82c602f0
RS
2352009-11-19 Richard Stallman <rms@gnu.org>
236
237 * lread.c (Funintern): Error if symbol is t or nil.
238
87e32266
SM
2392009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
240
241 * insdel.c (make_gap_larger): Don't make as many assumptions about the
242 representation of Lisp integers.
243 Reported by MJ Chan <mjchan.inbox@gmail.com>.
244
1b9ac145
AS
2452009-11-17 Andreas Schwab <schwab@linux-m68k.org>
246
247 * lisp.h: Remove declaration of Ffont_get_system_font.
248 * xfns.c: Move include of "xsettings.h".
249 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
250
dfb3c4c6
JD
2512009-11-17 Jan Djärv <jan.h.d@swipnet.se>
252
87e32266
SM
253 * xsettings.c (something_changedCB, Ffont_get_system_font):
254 Check use_system_font.
dfb3c4c6
JD
255 (syms_of_xsettings): DEFVAR font-use-system-font.
256
9370c1d8
AS
2572009-11-17 Andreas Schwab <schwab@linux-m68k.org>
258
25fe851a
AS
259 * xfns.c (x_default_font_parameter): Remove dead assignment.
260
9370c1d8
AS
261 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
262
637fa988
JD
2632009-11-17 Jan Djärv <jan.h.d@swipnet.se>
264
87e32266 265 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 266 not have FC_LCD_*. #define them if not there.
a6eb20d8 267
87e32266 268 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 269
637fa988
JD
270 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
271
272 * xterm.c (handle_one_xevent): Call xft_settings_event for
273 ClientMessage, PropertyNotify and DestroyNotify.
274 (x_term_init): If we have XFT, get DPI from Xft.dpi.
275 Call xsettings_initialize.
276
277 * xftfont.c (xftfont_fix_match): New function.
278 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
279 Call xftfont_fix_match after XftFontMatch.
280
281 * xfont.c (xfont_driver): Initialize all members.
282
87e32266
SM
283 * xfns.c (x_default_font_parameter):
284 Try font from Ffont_get_system_font.
637fa988
JD
285 Do not get font from x_default_parameter if we got one from
286 Ffont_get_system_font.
87e32266 287 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
288
289 * w32font.c (w32font_driver): Initialize all members.
290
291 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
292
293 * lisp.h: Declare syms_of_xsettings.
294
87e32266
SM
295 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
296 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
297
298 * ftfont.c (ftfont_filter_properties): New function.
299
300 * frame.c (x_set_font): Remove unused variable lval.
301
87e32266 302 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
303
304 * font.c (font_put_extra): Don't return if val is nil, it means
305 boolean option is off.
306 (font_parse_fcname): Collect all extra properties in extra_props
307 and call filter_properties for all drivers with extra_props and
308 font as parameter.
87e32266
SM
309 (font_open_entity): Do not use cache, it does not pick up new
310 fontconfig settings like hinting.
637fa988
JD
311 (font_load_for_lface): If spec had a name in it, store it in entity.
312
313 * emacs.c (main): Call syms_of_xsettings
314
315 * config.in: HAVE_GCONF is new.
316
317 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
318 xsettings.o is new.
319
5a942932
KH
3202009-11-17 Kenichi Handa <handa@m17n.org>
321
322 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
323 back to the default font in case that no suitable font is found.
324
b7c7a4d1
SM
3252009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
326
327 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
328 Suggested by Chad Brown <yandros@mit.edu>.
329 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
330
072f1e39
JD
3312009-11-16 Jan Djärv <jan.h.d@swipnet.se>
332
333 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
334
5d1e70a2
AS
3352009-11-14 Andreas Schwab <schwab@linux-m68k.org>
336
87e32266 337 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 338
a53cfbe5
JD
3392009-11-14 Jan Djärv <jan.h.d@swipnet.se>
340
473a99b7
JD
341 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
342 has a parent.
343
a53cfbe5
JD
344 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
345 dependency files in deps/. Include those files into Makefile.
346
347 * config.in: Generated (AUTO_DEPEND).
348
f04bb9b2
MA
3492009-11-13 Michael Albinus <michael.albinus@gmx.de>
350
b7c7a4d1 351 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
352 Vdbus_registered_functions_table, because it contains also
353 properties. Fix docstring.
b7c7a4d1 354 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 355
8f11f7ec
SM
3562009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
357
358 * alloc.c (mark_object): Don't reprocess marked strings.
359 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
360 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
361
8a605fe8
KH
3622009-11-13 Kenichi Handa <handa@m17n.org>
363
8f11f7ec 364 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
365 semantics of Vword_combining_categories.
366 (Vword_combining_categories): Describe the slight change of the
367 semantics.
368
241c4680
EZ
3692009-11-13 Eli Zaretskii <eliz@gnu.org>
370
371 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
372
373 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
374
5d58e44c
SM
3752009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
376
377 * xdisp.c (syms_of_xdisp): Fix typo in last change.
378
5e13f9d3
JB
3792009-11-12 Juanma Barranquero <lekktu@gmail.com>
380
381 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
382
cf54c754
DR
3832009-11-11 David Reitter <david.reitter@gmail.com>
384
385 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
386 variables to fix 2009-11-09 change.
387
a4ada374
DN
3882009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
389
91433552
DN
390 * process.c (ifflag_def): Make flag_sym constant.
391 (Fnetwork_interface_info): Use a constant pointer.
392 (ifflag_table):
393 * xfns.c (cursor_bits):
394 * xdisp.c (power_letter):
395 * termcap.c (speeds, esctab):
396 * sysdep.c (baud_convert):
397 * keyboard.c (lispy_accent_codes, modifier_names):
398 * image.c (xbm_format, xpm_format, pbm_format, png_format)
399 (jpeg_format, tiff_format, gif_format, svg_format)
400 (interlace_start, interlace_increment, gs_format):
401 * gtkutil.c (separator_names):
402 * fringe.c (swap_nibble):
403 * fns.c (base64_value_to_char, base64_char_to_value):
404 * fileio.c (make_temp_name_tbl):
405 * coding.c (suffixes): Make constant.
406
f4265f6c
DN
407 * frame.c (make_initial_frame):
408 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
409 build_string.
410 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
411
04420943
DN
412 * s/freebsd.h:
413 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
414
0a5d24ae
DN
415 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
416 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
417
a4ada374
DN
418 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
419 * xterm.c (syms_of_xterm):
420 * xfaces.c (syms_of_xfaces):
421 * xdisp.c (syms_of_xdisp):
422 * lread.c (syms_of_lread):
423 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
424 build_string.
91433552 425
a4ada374
DN
426 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
427
af98fc7f
SM
4282009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
429
8ab1650e 430 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 431
e90292a9
JD
4322009-11-10 Jan Djärv <jan.h.d@swipnet.se>
433
434 * keyboard.h: Declare timer_check.
435
436 * keyboard.c (timer_check_2): New function that does what the old
437 timer_check did.
438 (timer_check): Call timer_check_2 until -1 or a non-zero time is
439 returned, i.e. don't return -1 with timers pending.
440
441 * process.c: Remove extern declaration of timer_check.
442
443 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
444 even if timer_check returned -1.
445
af98fc7f
SM
446 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
447 xg_dialog_data.
e90292a9
JD
448 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
449 the event loop.
450 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
451 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
452 Destroy the dialog after xg_dialog_run.
453
045b83c0
SM
4542009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
455
456 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
457
1fb99a3a
JD
4582009-11-10 Jan Djärv <jan.h.d@swipnet.se>
459
460 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
461
04e452cb
JB
4622009-11-09 Juanma Barranquero <lekktu@gmail.com>
463
464 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
465
ef7417fd
SM
4662009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
467
468 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
469 w32menu.c, and nsmenu.m.
470 Simplify the obsolete case where position is nil.
471 (cleanup_popup_menu): New function, moved from nsmenu.m.
472 (struct skp): Remove slot `notreal'.
473 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
474 adjust callers.
475 (single_menu_item): Adjust call to parse_menu_item.
476 (syms_of_menu): Defsubr x-popup-menu.
477 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
478 (keymap_panes): Don't export any more.
479 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
480 (xmenu_show): Declare.
481 * keyboard.c (parse_menu_item): Remove arg `notreal'.
482 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
483 * keyboard.h (parse_menu_item): Update declaration.
484 * xmenu.c (Fx_popup_menu): Remove.
485 (syms_of_xmenu): Don't defsubr x-popup-menu.
486 * w32menu.c (Fx_popup_menu): Remove.
487 (syms_of_w32menu): Don't defsubr x-popup-menu.
488 * nsmenu.m (cleanup_popup_menu): Remove.
489 (ns_menu_show): Rename from ns_popup_menu and remove all the code
490 moved to menu.c's Fx_popup_menu.
491 (Fx_popup_menu): Remove.
492 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
493 menu_items (it's done in menu.c already).
494
424d6179
SM
4952009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
496
497 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
498 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
499
c0df13a6 5002009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
501
502 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 503 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
504 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
505 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
506
2de9f71c
SM
5072009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
508
509 Let integers use up 2 tags to give them one extra bit and thus double
510 their range.
511 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
512 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
513 New macros.
514 (enum Lisp_Type): Use them. Give explicit values.
515 (Lisp_Type_Limit): Remove.
516 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
517 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
518 Pay attention to USE_2_TAGS_FOR_INTS.
519 (INTEGERP): Use LISP_INT_TAG_P.
520 * fns.c (internal_equal): Simplify the default case.
521 (sxhash): Use case_Lisp_Int.
522 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
523 any more.
524 (Ftype_of): Use case_Lisp_Int.
525 (store_symval_forwarding): Take into account the fact that Ints can
526 now have more than one tag.
527 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
528 buffer_slot_type_mismatch):
529 * xfaces.c (face_attr_equal_p):
530 * print.c (print_object):
531 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
532 Use case_Lisp_Int.
533
323637a2
EZ
5342009-11-06 Eli Zaretskii <eliz@gnu.org>
535
7ac65b38
EZ
536 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
537
323637a2
EZ
538 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
539 warning.
540
e511451f
JD
5412009-11-06 Jan Djärv <jan.h.d@swipnet.se>
542
543 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
544
545 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
546
547 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
548 ButtonPressRelease and MotionNotify (bug#4870).
549
5e2327cf
DN
5502009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
551
5adc433e
DN
552 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
553
d67b4f80
DN
554 * xterm.c (syms_of_xterm):
555 * xselect.c (syms_of_xselect):
556 * xmenu.c (syms_of_xmenu):
557 * xfns.c (syms_of_xfns):
558 * xfaces.c (syms_of_xfaces):
559 * xdisp.c (syms_of_xdisp):
560 * window.c (syms_of_window):
561 * w32fns.c (syms_of_w32fns):
562 * undo.c (syms_of_undo):
563 * textprop.c (syms_of_textprop):
564 * terminal.c (syms_of_terminal):
565 * syntax.c (syms_of_syntax):
566 * sound.c (syms_of_sound):
567 * search.c (syms_of_search):
568 * print.c (syms_of_print):
569 * minibuf.c (syms_of_minibuf):
570 * macros.c (syms_of_macros):
571 * keymap.c (syms_of_keymap, initial_define_key)
572 (initial_define_lispy_key):
573 * keyboard.c (syms_of_keyboard):
574 * insdel.c (syms_of_insdel):
575 * image.c (syms_of_image):
576 * fringe.c (syms_of_fringe):
577 * frame.c (syms_of_frame):
578 * fontset.c (syms_of_fontset):
579 * fns.c (syms_of_fns):
580 * fns.c (syms_of_fns):
581 * fileio.c (syms_of_fileio):
582 * fileio.c (syms_of_fileio):
583 * eval.c (syms_of_eval):
584 * doc.c (syms_of_doc):
585 * dispnew.c (syms_of_display):
586 * dired.c (syms_of_dired):
587 * dbusbind.c (syms_of_dbusbind):
588 * data.c (syms_of_data):
589 * composite.c (syms_of_composite):
590 * coding.c (syms_of_coding):
591 * cmds.c (syms_of_cmds):
592 * charset.c (define_charset_internal, syms_of_character):
593 * ccl.c (syms_of_ccl):
594 * category.c (syms_of_category, init_category_once):
595 * casetab.c (syms_of_casetab):
596 * casefiddle.c (syms_of_casefiddle):
597 * callint.c (syms_of_callint):
598 * bytecode.c (syms_of_bytecode):
599 * buffer.c (keys_of_buffer, syms_of_buffer):
600 * alloc.c (syms_of_alloc):
601 * process.c (syms_of_process, init_process):
602 * lread.c (syms_of_lread, init_obarray):
603 * font.c (build_style_table):
604 * emacs.c (syms_of_emacs, main): Replace calls to intern with
605 intern_c_string, calls to make_pure_string with
606 make_pure_c_string. Use pure_cons instead of Fcons.
607
5e2327cf
DN
608 * process.c (socket_options): Make it const.
609 (set_socket_option, init_process): Use a const pointer.
610
611 * lread.c (intern_c_string): New function.
612 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
613 (defvar_int): Uset it. Make the name const char*.
614
615 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
616 (defvar_int): Update prototypes.
617 (DEFUN, EXFUN): Support for prototypes is now required.
618 (intern_c_string): New prototype.
619 (struct Lisp_Subr): Make symbol_name constant.
620
621 * font.c (struct table_entry): Remove unused member. Make NAMES
622 constant.
623 (weight_table, slant_table, width_table): Make constant.
624
625 * emacs.c (struct standard_args): Make name and longname constant.
626
627 * character.h (DEFSYM): Use intern_c_string.
628
a56eaaef
DN
6292009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
630
631 * alloc.c (make_pure_c_string): New function.
632
633 * eval.c (Fautoload): Purecopy all arguments.
634
f6a07420
KH
6352009-11-05 Kenichi Handa <handa@m17n.org>
636
637 * fileio.c (Finsert_file_contents): Be sure set coding-system of
638 the buffer in case of replace.
639
5d28d4b1
DN
6402009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
641
642 * puresize.h (BASE_PURESIZE): Increase to 1620000.
643
b349d111
SM
6442009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
645
d528b1ce
SM
646 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
647 when applicable (bug#4851).
648
b349d111
SM
649 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
650 (P_): Support for prototypes is now required.
651
c38eb027
CY
6522009-10-31 Chong Yidong <cyd@stupidchicken.com>
653
654 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
655 (Bug#4827).
656
0405f8d9
EZ
6572009-10-30 Eli Zaretskii <eliz@gnu.org>
658
d528b1ce 659 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 660
ca0a881a
DN
6612009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
662
663 * puresize.h (BASE_PURESIZE): Increase to 1470000.
664
d528b1ce
SM
665 * lread.c (Fload): Purecopy the file name when building
666 Vpreloaded_file_list.
ca0a881a 667
47e0e0e4
JR
6682009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
669
670 * w32fns.c (syms_of_w32fns): Change default value of
671 w32-scroll-lock-modifier to nil. (Bug#2827)
672
057bce6f
JB
6732009-10-26 Juanma Barranquero <lekktu@gmail.com>
674
782a943e 675 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 676
242bc74c
AS
6772009-10-26 Andreas Schwab <schwab@redhat.com>
678
679 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
680
522d013a
JB
6812009-10-26 Juanma Barranquero <lekktu@gmail.com>
682
683 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
684 For delta < 0, skip check that only makes sense when the mini-window
685 is going to be enlarged. (Bug#4534)
686
18060980
CY
6872009-10-25 Chong Yidong <cyd@stupidchicken.com>
688
689 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
690 string in menu maps (Bug#4471).
691
fec8f0fe
CY
6922009-10-24 Chong Yidong <cyd@stupidchicken.com>
693
694 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
695 FRAME_NS_VIEW on terminal frames (Bug#4765).
696
10d66ec0
AS
6972009-10-24 Andreas Schwab <schwab@linux-m68k.org>
698
1cae01f7
AS
699 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
700 DBUS_TYPE_UINTnn separately to get proper sign extension.
701
58a12889
AS
702 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
703 can properly handle unsigned types.
d528b1ce 704 (make_uid, make_gid): Remove.
58a12889 705
987c9327
AS
706 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
707 types again.
708
522d013a 709 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
710 (system_process_attributes): Likewise.
711
905a9ed3
DN
7122009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
713
714 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
715
716 * eval.c (Fautoload): Purecopy the filename. Simplify.
717
718 * category.c (Fdefine_category): Purecopy docstring.
719
a599b3e8
AS
7202009-10-23 Andreas Schwab <schwab@linux-m68k.org>
721
7b792fc9
AS
722 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
723
a599b3e8
AS
724 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
725
b35ac83e
CY
7262009-10-23 Chong Yidong <cyd@stupidchicken.com>
727
728 * window.c (Fwindow_edges, Fwindow_pixel_edges)
729 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
730 (Bug#4775).
731
e8903e00
SM
7322009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
733
734 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
735 (init_fileio_once):
736 * lisp.h (init_fileio_once): Remove.
737 * emacs.c (main): Don't call init_fileio_once.
738
8f43cbf3
DN
7392009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
740
741 * puresize.h (BASE_PURESIZE): Increase to 1430000.
742
26898943
AS
7432009-10-21 Andreas Schwab <schwab@linux-m68k.org>
744
745 * doprnt.c (doprnt): Fix overflow check.
746
5c646d5a
JD
7472009-10-21 Jan Djärv <jan.h.d@swipnet.se>
748
3132a7ea
JD
749 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
750
5c646d5a
JD
751 * xterm.h (x_wait_for_event): Declare it.
752
753 * xterm.c (pending_event_wait): New variable.
754 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
755 see pending_event_wait.eventtype.
756 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
757 (x_new_font): Call change_frame_size with new rows/columns before we
758 try to resize the frame.
5c646d5a 759 (x_wait_for_event): New function.
d528b1ce
SM
760 (x_set_window_size_1): Don't change gravity unless change_gravity
761 is set.
5c646d5a
JD
762 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
763 don't change frame size, instead wait for the ConfigureNotify.
764 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
765 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
766 (x_initialize): Initialize pending_event_wait.
767
768 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
769 size.
770
771 * widget.c (EmacsFrameSetValues): Add comment.
772 (EmacsFrameSetCharSize): Just call x_set_window_size.
773
774 * gtkutil.c (xg_frame_set_char_size): Flush events and call
775 x_wait_for_event.
d528b1ce 776 (flush_and_sync): Remove again.
5c646d5a
JD
777 (xg_get_font_name): Suggest monospace if no previous font is known.
778
e9c1637d
SM
7792009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
780
781 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 782 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 783
5a72cccb
YM
7842009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
785
786 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
787 processing pending events when event is filtered for input method.
ab04798f 788 (Bug#3681)
5a72cccb 789
2629aa37
JB
7902009-10-20 Juanma Barranquero <lekktu@gmail.com>
791
792 * fns.c: Add #endif accidentally removed in previous change.
793
c3417a74
DN
7942009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
795
796 * fns.c: Remove code for unsupported system: MAC_OS.
797 * image.c: Likewise. Include setjmp.h.
798
9685cef2
JD
7992009-10-19 Jan Djärv <jan.h.d@swipnet.se>
800
801 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
802 pixel -1 (bug #4742).
803
d7306fe6
DN
8042009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
805
019d2c4c
DN
806 * process.c (create_pty): Remove conditionals for no longer
807 supported systems: UNIPLUS and RTU.
808
ee6bacd4
DN
809 * xterm.c:
810 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
811
d7306fe6
DN
812 * alloc.c: Do not define struct catchtag.
813 * eval.c: Move struct catchtag definition ...
814 * lisp.h: ... here.
815
816 * image.c: Move png.h #include earlier to avoid warnings.
817
818 * xterm.c:
819 * xsmfns.c:
820 * xselect.c:
821 * xrdb.c:
822 * xmenu.c:
823 * xftfont.c:
824 * xfont.c:
825 * xfns.c:
826 * xfaces.c:
827 * xdisp.c:
828 * window.c:
829 * widget.c:
830 * w32xfns.c:
831 * w32uniscribe.c:
832 * w32term.c:
833 * w32select.c:
834 * w32reg.c:
835 * w32proc.c:
836 * w32menu.c:
837 * w32inevt.c:
838 * w32heap.c:
839 * w32font.c:
840 * w32fns.c:
841 * w32console.c:
842 * w32.c:
843 * w16select.c:
844 * vm-limit.c:
845 * unexsol.c:
846 * unexec.c:
847 * unexcw.c:
848 * unexaix.c:
849 * undo.c:
850 * tparam.c:
851 * textprop.c:
852 * terminfo.c:
853 * terminal.c:
854 * termcap.c:
855 * term.c:
856 * syntax.c:
857 * sound.c:
858 * sheap.c:
859 * search.c:
860 * scroll.c:
861 * region-cache.c:
862 * regex.c:
863 * ralloc.c:
864 * process.c:
865 * print.c:
b024548b
DN
866 * nsterm.m:
867 * nsselect.m:
868 * nsmenu.m:
869 * nsimage.m:
870 * nsfont.m:
871 * nsfns.m:
d7306fe6
DN
872 * msdos.c:
873 * minibuf.c:
874 * menu.c:
875 * marker.c:
876 * macros.c:
877 * keymap.c:
878 * keyboard.c:
879 * intervals.c:
880 * insdel.c:
881 * indent.c:
882 * gtkutil.c:
883 * ftxfont.c:
884 * ftfont.c:
885 * fringe.c:
886 * frame.c:
887 * fontset.c:
888 * font.c:
889 * fns.c:
890 * floatfns.c:
891 * filelock.c:
892 * fileio.c:
893 * emacs.c:
894 * editfns.c:
895 * dosfns.c:
896 * doprnt.c:
897 * doc.c:
898 * dispnew.c:
899 * dired.c:
900 * dbusbind.c:
901 * data.c:
902 * composite.c:
903 * coding.c:
904 * cmds.c:
905 * cm.c:
906 * chartab.c:
907 * charset.c:
908 * character.c:
909 * ccl.c:
910 * category.c:
911 * casetab.c:
912 * casefiddle.c:
913 * callproc.c:
914 * callint.c:
915 * bytecode.c:
916 * buffer.c:
917 * atimer.c: Include setjmp.h. (Bug#4643)
918
fd5f21e6
SM
9192009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
920
4c0354d7
SM
921 Remove leftover table unibyte_to_multibyte_table.
922 * character.c (unibyte_to_multibyte_table): Remove.
923 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
924 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
925 * character.h (UNIBYTE_TO_CHAR): New macro.
926 (MAKE_CHAR_MULTIBYTE): Use it.
927 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
928 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
929 (message_dolog, set_message_1):
930 * search.c (Freplace_match):
931 * editfns.c (Fcompare_buffer_substrings):
932 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
933 (concat):
934 * insdel.c (copy_text, count_size_as_multibyte):
935 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
936 * term.c (produce_glyphs):
937 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
938 * regex.c (RE_CHAR_TO_MULTIBYTE):
939 * cmds.c (internal_self_insert):
940 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
941
fd5f21e6
SM
942 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
943
4418646e
DN
9442009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
945
946 * puresize.h (BASE_PURESIZE): Increase to 1310000.
947
35f5c1d2
JB
9482009-10-16 Juanma Barranquero <lekktu@gmail.com>
949
950 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
951
a0cd8f6b
AR
9522009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
953
954 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
955 still needed under Tiger.
956
957 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
958
959 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
960 __Apple__.
961
962 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
963
01a8d3fa
KH
9642009-10-15 Kenichi Handa <handa@m17n.org>
965
966 * print.c (print_object): Escape a symbol like "2E10" too.
967
bf6c75c9 9682009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
969
970 Cleanups and changes for 64-bit compile under Snow Leopard.
971 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
972
973 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
974
c5959062 975 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
976 (ns_findfonts, nsfont_list_family): Use long format in printf, and
977 cast argument.
978 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 979 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
980
981 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
982
983 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
984 where appropriate.
985
986 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
987 where appropriate.
6e4780c5
JB
988 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
989 Use stringWithUTF8String.
bf6c75c9
AR
990 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
991
6e4780c5
JB
992 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
993 Add formal protocol mention to inheritance.
bf6c75c9
AR
994 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
995
6e4780c5
JB
996 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
997 Fix printf format.
bf6c75c9
AR
998 (ns_query_color): Use CGFloat where appropriate.
999 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1000 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1001 argument.
1002
3d87f118
AR
1003 * config.in (NS_HAVE_NSINTEGER): Drop.
1004
a95c8102
AR
1005 * dbusbind.c (dbus-method-return-internal)
1006 (dbus-method-error-internal): Use long format in printf, and cast
1007 argument.
1008
1009 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1010 in printf, and cast argument.
1011
6873acca 1012 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1013 cast argument.
1014
9ec6f100
GM
10152009-10-11 Glenn Morris <rgm@gnu.org>
1016
1017 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1018
5be883cd
JD
10192009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1020
1021 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1022 menu bar with a small width so it doesn't enlarge the frame.
1023
d7a39b51
JB
10242009-10-08 Juanma Barranquero <lekktu@gmail.com>
1025
1026 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1027
0c2b6f8e
GM
10282009-10-06 Glenn Morris <rgm@gnu.org>
1029
1030 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1031 SOME_MACHINE_LISP (this enters indirectly via DOC).
1032
e02131a2
EZ
10332009-10-05 Eli Zaretskii <eliz@gnu.org>
1034
1035 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1036
b4744254
EZ
10372009-10-04 Eli Zaretskii <eliz@gnu.org>
1038
1039 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1040 Doc fix.
1041
dbf64827
JB
10422009-10-03 Martin Rudalics <rudalics@gmx.at>
1043
1044 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1045
e9a0aef8
MA
10462009-10-02 Michael Albinus <michael.albinus@gmx.de>
1047
d528b1ce 1048 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1049 used anymore outside fileio.c.
1050
1051 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1052
64eb2b56
JB
10532009-10-01 Juanma Barranquero <lekktu@gmail.com>
1054
1055 * lisp.h (Qdelete_directory_internal):
1056 Declare, instead of Qdelete_directory.
1057
1058 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1059
9d28c33e
SM
10602009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1061
1062 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1063
9d8f3bd9
MA
10642009-10-01 Michael Albinus <michael.albinus@gmx.de>
1065
9d28c33e 1066 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1067 Fdelete_directory. It is not a command anymore. It has no file
1068 name handler.
1069
9694740b
SM
10702009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1071
1072 * xdisp.c (get_next_display_element): Use an enum in last change.
1073
748e162f
KH
10742009-09-28 Kenichi Handa <handa@m17n.org>
1075
9694740b 1076 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1077 unibyte_display_via_language_environment in handling
1078 Vnobreak_char_display.
1079
17efd58d
AR
10802009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1081
1082 * nsterm.h (ns_app_name): New extern variable.
1083
1084 * nsterm.m (ns_app_name): New variable.
1085 (ns_term_init): Set and use it.
1086 (ns_term_shutdown): Use it.
1087
1088 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1089 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1090
1091 * nsfns.m (ns_set_name_iconic, ns_set_name)
1092 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1093 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1094
9694740b
SM
1095 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1096 Remove double-casting in client_data comparison.
31c2d412 1097
3208cb35
YM
10982009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1099
1100 * keyboard.c (make_lispy_event): Remember last wheel direction.
1101 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1102
b7d552d6
GM
11032009-09-26 Glenn Morris <rgm@gnu.org>
1104
1105 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1106 internal.elc. Add term/pc-win.elc.
1107 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1108 term/x-win.elc.
1109 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1110 term/w32-win.elc.
1111 (NS_SUPPORT): New.
1112 (lisp): Add NS_SUPPORT.
1113 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1114
4ff670a8
DR
11152009-09-25 David Reitter <david.reitter@gmail.com>
1116
1117 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1118 on Mac OS X 10.6+ (bug#4513).
1119
feabfb6c
JB
11202009-09-24 Juanma Barranquero <lekktu@gmail.com>
1121
1122 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1123 some parts of Emacs code (like font selection) don't grok them.
1124 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1125
de59072a
AS
11262009-09-24 Andreas Schwab <schwab@redhat.com>
1127
1128 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1129
a489517b
JB
11302009-09-24 Juanma Barranquero <lekktu@gmail.com>
1131
1132 * dired.c (Fdirectory_files): Fix typo in docstring.
1133
0592970c
AR
11342009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1135
1136 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1137 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1138 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1139 under GNUstep.
1140 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1141
1142 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1143 glyph advancement.
1144
48e8a88b
AR
11452009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1146
1147 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1148 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1149
1150 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1151 deleted (bug #4492).
1152
e14f0a78
AR
1153 * nsfont.m (Vns_reg_to_script): New lisp variable.
1154 (syms_of_nsfont): Declare it.
1155 (ns_registry_to_script): New function.
1156 (ns_get_req_script): Call it.
1157 (ns_findfonts): Don't give up on non-unicode registry.
1158
1159 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1160
5b650faa
SM
11612009-09-20 Tom Tromey <tromey@redhat.com>
1162
1163 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1164 batch mode (bug#4228).
1165
a489517b 11662009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1167
1168 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1169 carefully. (Bug #4339)
0bae4e09 1170
fcfe06f3
CY
11712009-09-18 Chong Yidong <cyd@stupidchicken.com>
1172
d798ba87 1173 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1174
31642728
AR
11752009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1176
1177 * emacs.c (inhibit_x_resources): Update doc string for NS.
1178 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1179 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1180
1181 * nsterm.h (ns_no_defaults): Remove.
1182
1183 * nsterm.m (ns_no_defaults): Remove.
1184 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1185 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1186 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1187 don't update the NSWindow itself.
1188 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1189 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1190
1191 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1192 ns_use_qd_smoothing.
1193
1194 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1195 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1196 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1197 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1198
8686ac71
JB
11992009-09-17 Juanma Barranquero <lekktu@gmail.com>
1200
1201 * emacs.c (inhibit_x_resources): New variable.
1202 (main) [HAVE_NS]: Don't process --quick command line option.
1203 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1204
1205 * lisp.h (inhibit_x_resources): Declare it extern.
1206
1207 * w32reg.c (x_get_string_resource):
1208 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1209
e227ba05
EZ
12102009-09-17 Eli Zaretskii <eliz@gnu.org>
1211
362654a6
JB
1212 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1213 Add lisp/term/internal.elc.
e227ba05 1214
742d40e8
SM
12152009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1216
1217 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1218 (bug#4461).
1219
005bd5a2
DN
12202009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1221
1222 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1223
1224 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1225 (OBJECTS_MACHINE): Remove, unused.
1226
f9af9719
SM
12272009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1228
1229 * frame.c (x_get_resource_string): Remove unused.
1230
0307c7d2
JD
12312009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1232
1233 * xterm.c (x_new_font): Call change_frame_size before calling
1234 x_set_window_size, in case frame size won't change.
1235
1236 * frame.c (x_set_font): Remove dead code.
1237
428b13d6
SM
12382009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1239
1240 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1241
5766c380
SM
12422009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1243
1244 * lread.c (Fload): Don't output a message after loading an obsolete
1245 package any more (done in Lisp now).
1246
2fd0161b
CY
12472009-09-12 Chong Yidong <cyd@stupidchicken.com>
1248
1249 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1250
bc5e75b6
SM
12512009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1252
1253 * keymap.c (Fwhere_is_internal): Use nconc2.
1254
c31c985e
AM
12552009-09-11 Alan Mackenzie <acm@muc.de>
1256
1257 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1258 batch mode.
1259
78012bd2
AS
12602009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1261
1262 * xdisp.c (display_mode_element): Detect cycles.
1263
9d889332
SM
12642009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1265
1266 * keymap.c (where_is_internal): Don't erroneously return nil right after
1267 filling the cache.
1268 (where_is_internal_1): Fix up typo.
1269
7ab5d780
GM
12702009-09-11 Glenn Morris <rgm@gnu.org>
1271
1272 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1273 share a common doc-string.
1274
5238a749
SM
12752009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1276
66d77eda
SM
1277 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1278 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1279
5238a749
SM
1280 * keymap.c (QCadvertised_binding): New constant.
1281 (syms_of_keymap): Initialize it.
1282 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1283 if applicable.
1284
19f48442
SM
12852009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1286
50d4ba39
SM
1287 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1288 (parse_menu_item): Streamline since bindings are recomputed all the
1289 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1290 more and don't support lmenu's menu-alias any more either.
1291
a88a5372
SM
1292 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1293 (where_is_internal): Strip it down to only traverse the keymaps.
1294 Move the cache handling from Fwhere_is_internal to here.
1295 (Fwhere_is_internal): Move the handling of remapping and the choice of
1296 the best binding from where_is_internal to here.
1297 Unify the cached/noncached paths, so remapping is also handled
1298 correctly when the cache is used, and so the cache can be used to
1299 speed up remap-handling when applicable.
1300 Give preference to non-remapped bindings.
1301 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1302 non-remapped bindings.
1303 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1304 command remapping.
1305
19f48442
SM
1306 * xdisp.c (display_mode_element): Move list length limit from 50 to
1307 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1308
599498c3 13092009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1310
1311 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1312
f9b7b5ac
SM
13132009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1314
a53af587
JB
1315 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1316 (Bug#4334)
1317
f9b7b5ac
SM
1318 * keymap.c (where_is_internal): Filter out shadowed remappings.
1319 Assume that where_is_internal returns unshadowed bindings to simplify
1320 the code and get rid of the gotos. Use ASIZE.
1321
04f4b72d
JD
13222009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1323
4da146f2
JD
1324 * xterm.c (x_focus_changed): If we get a focusout and pointer
1325 is invisible, make it visible.
1326
04f4b72d
JD
1327 * xterm.h: Remove condition for declaration of
1328 x_*_window_to_frame.
1329
7cef7ce3
SM
13302009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1331
1332 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1333 initial terminal as well.
1334
a54fa5b7
JD
13352009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1336
1337 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1338 x_menubar_window_to_frame.
a54fa5b7
JD
1339
1340 * xterm.c: Remove declarations also in xterm.h
1341 (XTmouse_position): Do not return valid positions
1342 for clicks in the menubar and the toolbar for Gtk+.
1343
1344 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1345 if the widget for the event has the same top level as a frame,
1346 return the frame.
1347 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1348 internal windows, bug #4122.
1349 (x_non_menubar_window_to_frame): Remove.
1350
5a021dd0
GM
13512009-09-02 Glenn Morris <rgm@gnu.org>
1352
1353 * buffer.c (default-major-mode): Move most of the doc from here...
1354 (major-mode): ... to here.
1355
548fe2f3
NR
13562009-08-30 Nick Roberts <nickrob@snap.net.nz>
1357
1358 * process.c (wait_reading_process_output): Keep the descriptor
1359 when pty is used by a non-child process, e.g., in I/O buffer of
1360 GDB this allows inferior to be restarted.
1361
e0840eef
EZ
13622009-08-29 Eli Zaretskii <eliz@gnu.org>
1363
1364 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1365 both branches into one.
1366
82e98df4
SM
13672009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1368
1369 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1370 (main): Use enable-multibyte-characters rather than
1371 default-enable-multibyte-characters. Output a warning message when
1372 running a unibyte session.
1373
890617cb
YM
13742009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1375
1376 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1377 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1378 (copy_data_segment): Also copy __program_vars section.
1379 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1380 (dump_it) [LC_DYLD_INFO]: Use it.
1381
1382 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1383
e7adeadc
EZ
13842009-08-28 Eli Zaretskii <eliz@gnu.org>
1385
1386 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1387 $(SRC)/buildobj.h.
1388 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1389 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1390 $(SRC)/buildobj.h.
1391 (clean): Add buildobj.h.
1392
3ed8bbdc
TZ
13932009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1394
1395 * print.c (print_object): Set escapeflag to 1 when printing
1396 hashtable keys and values.
1397
155a6764
SM
13982009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1399
1400 * lread.c (read_integer): Use doubles (and potentially return a float
1401 number) as we do in string-to-number.
1402 (read1): Use strtol to read integers, signal errors on strtol's
1403 overflow and use floats if strtol's output is too large for
1404 Elisp integers.
1405
877610de
EZ
14062009-08-27 Eli Zaretskii <eliz@gnu.org>
1407
1408 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1409 (make-buildobj-SH): Fix last change.
1410 (SRC): Move to before where it's first used.
1411
ef73e7be
KH
14122009-08-27 Kenichi Handa <handa@m17n.org>
1413
550c8289
KH
1414 * process.c (send_process): Use encode_coding_object instead of
1415 encode_coding_string to perform eol-conversion even if the string
1416 is unibyte.
1417
60afa08d
KH
1418 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1419 character.
1420
ef73e7be 1421 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1422 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1423
7b3a82d7
DN
14242009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1425
5654bf63
DN
1426 * callproc.c (Fcall_process): Remove always true #if.
1427
7b3a82d7
DN
1428 * lisp.h: Replace #if 0 code for checking with text pointing to
1429 the --enable-checking configure flag.
1430
1431 * emacs.c (main): Mention the --enable-profiling configure flag
1432 instead of using CFLAGS.
1433
878bde49
KR
14342009-08-26 Ken Raeburn <raeburn@raeburn.org>
1435
1436 * Makefile.in (buildobj.h): New target.
1437 (doc.o): Depend on it.
1438 (temacs${EXEEXT}): Don't generate buildobj.lst.
1439 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1440 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1441 ($(BLD)/doc.$(O)): Depend on it.
1442 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1443 provided by Eli Zaretskii.)
1444 ($(TEMACS)): Don't generate buildobj.lst.
1445 * doc.c: Include buildobj.h.
1446 (buildobj): New static variable.
1447 (Fsnarf_documentation): Use it, instead of opening and reading
1448 buildobj.lst.
1449
1574224c
MA
14502009-08-25 Michael Albinus <michael.albinus@gmx.de>
1451
1452 * dbusbind.c (Fdbus_call_method)
1453 (Fdbus_call_method_asynchronously): Use English numeric format for
1454 timeout values in doc string.
1455
d9da2f45
KH
14562009-08-25 Kenichi Handa <handa@m17n.org>
1457
ef73e7be
KH
1458 * alloc.c (mark_char_table): New function.
1459 (mark_object): Use mark_char_table for a char-table.
1460
d9da2f45
KH
1461 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1462 (CHAR_TABLE_REF): Use it.
1463
c8edcc01
KR
14642009-08-23 Ken Raeburn <raeburn@raeburn.org>
1465
1466 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1467 before invoking the newly build emacs to check for load-path
1468 shadowing.
1469
7763401b
GM
14702009-08-22 Glenn Morris <rgm@gnu.org>
1471
1472 * Makefile.in (bootstrap_exe): New variable.
1473 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1474 Use ${bootstrap_exe}.
1475
729eadda
EZ
14762009-08-22 Eli Zaretskii <eliz@gnu.org>
1477
1478 * coding.h (encode_coding_string): Don't encode unibyte strings.
1479 (Bug#4047)
1480
eb4c6ace
MA
14812009-08-22 Michael Albinus <michael.albinus@gmx.de>
1482
1483 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1484
1485 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1486 intended as hotfix only.
1487 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1488
36e34d1b
AR
14892009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1490
1491 * nsterm.m (ns_get_color): Update documentation properly for last
1492 change, and clean up loose ends in the code left by it. Fix
1493 longstanding bug with 16-bit hex parsing, and add support for
1494 yet another X11 format (rgb:r/g/b) for compatibility.
1495 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1496 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1497
f983eb8a
SM
14982009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1499
1500 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1501
3f56d3c6
MA
15022009-08-20 Michael Albinus <michael.albinus@gmx.de>
1503
1504 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1505 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1506 (xd_initialize, xd_pending_messages): Check, whether
1507 $DBUS_SESSION_BUS_ADDRESS is set.
1508
fb641d68
YM
15092009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1510
1511 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1512
1513 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1514
cf59a374
GM
15152009-08-20 Glenn Morris <rgm@gnu.org>
1516
1517 * emacs.c (system-type): Doc fix.
1518
1373f3be
SM
15192009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1520
1521 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1522 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1523
058ed861
MA
15242009-08-18 Michael Albinus <michael.albinus@gmx.de>
1525
1373f3be
SM
1526 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1527 New functions.
058ed861
MA
1528 (xd_initialize): Revert change from 2009-08-16.
1529
563a866e 15302009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1531
1532 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1533 font-group vector, return nil.
5fc05db0 1534
e42bdf01
CY
15352009-08-17 Chong Yidong <cyd@stupidchicken.com>
1536
1537 * process.c (status_notify): Don't perform redisplay.
1538 (Fdelete_process, list_processes_1, process_send_signal):
1539 Expliticly perform redisplay.
1540 (wait_reading_process_output): Always check process status, but
1541 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1542
4230ab74
KR
15432009-08-17 Ken Raeburn <raeburn@raeburn.org>
1544
1373f3be 1545 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1546 (XFLOAT_INIT): New macro for storing a float value.
1547 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1548 * fns.c (sxhash): Copy out the value of a float in order to
1549 examine its bytes.
1550 * dbusbind.c (xd_append_arg): Likewise.
1551
4230ab74
KR
1552 * emacs.c (main): Don't call syms_of_data twice.
1553
a0645cdd
MA
15542009-08-16 Michael Albinus <michael.albinus@gmx.de>
1555
1556 * dbusbind.c (xd_initialize): Add connection file descriptor to
1557 input_wait_mask, in order to let select() detect, whether a new
1558 message has been arrived.
ca4f31ea 1559 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1560
485db0ba
MA
15612009-08-15 Michael Albinus <michael.albinus@gmx.de>
1562
1373f3be
SM
1563 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1564 New functions.
485db0ba
MA
1565
1566 * lisp.h (xd_pending_messages): Declare.
1567
1568 * keyboard.c (readable_events): Call xd_pending_messages.
1569
b5b98ff4
CY
15702009-08-15 Chong Yidong <cyd@stupidchicken.com>
1571
1373f3be 1572 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1573
f8354c6e
CY
1574 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1575
b5b98ff4
CY
1576 * buffer.c (set_buffer_internal_1)
1577 (swap_out_buffer_local_variables): Check for unbound local
1578 variables (Bug#4138).
1579
8b9fc636
EZ
15802009-08-14 Eli Zaretskii <eliz@gnu.org>
1581
1582 * process.c (create_pty): Fix last change.
1583
ce959360
CY
15842009-08-13 Chong Yidong <cyd@stupidchicken.com>
1585
1586 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1587 (xbm_load_image): Caller changed.
64b807c9 1588 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1589
c7baf7e9
NR
15902009-08-13 Nick Roberts <nickrob@snap.net.nz>
1591
1592 * process.c (create_pty): New function.
1593 (Fstart_process): Use it to allow Emacs to just associate a pty
1594 with the buffer. See associated change in gdb-mi.el.
1595 (list_processes_1): Deal with no program name.
1596 (start_process_unwind): Use pid == -2 to mean no process.
1597
1ac9108a
SM
15982009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1599
1600 * cmds.c (nonundocount): New global variable.
1601 (keys_of_cmds): Initialize it.
1602 (Fself_insert_command): Use it to combine upto 20 sequential chars
1603 into a single undo entry, just like the Qself_insert_command code in
1604 keyboard.c does.
1605 Call frame_make_pointer_invisible, also like the Qself_insert_command
1606 code in keyboard.c does.
1607 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1608 than its own local replacement for it.
1609
e267324c
KR
16102009-08-10 Ken Raeburn <raeburn@raeburn.org>
1611
1ac9108a 1612 * fns.c (concat): Don't re-set string length to its current value.
77437343 1613
1ac9108a
SM
1614 * coding.h (decode_coding_string, encode_coding_string):
1615 Use SBYTES macro.
f0bed503 1616
1ac9108a 1617 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1618 (doprnt): Merge with doprnt1, discarding lispstrings code.
1619 * lisp.h (doprnt_lisp): Don't declare.
1620
416e006d
JL
16212009-08-07 Juri Linkov <juri@jurta.org>
1622
1623 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1624
6f7d5780
DN
16252009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1626
1627 * print.c (syms_of_print): Undo previous change.
1628
f19a0f5b
TZ
16292009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1630
1631 * lread.c (read1, syms_of_lread): Read hashtables back from the
1632 readable format.
1633
1634 * print.c (print_preprocess, print_object): Print hashtables fully
1635 and readably.
1636 (syms_of_print): Provide 'hashtable-print-readable.
1637
b9173dc2
AR
16382009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1639
1640 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1641 no family set.
1642 (nsfont_open): Handle case when entity has no family.
1643
1586503c
AR
16442009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1645
1646 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1647 element, not a list, for match case.
1648
087048cd
KH
16492009-07-28 Kenichi Handa <handa@m17n.org>
1650
1651 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1652 rigidly.
1653
1654 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1655 font_parse_xlfd. Check font properties more rigidly.
1656
780c2506
DN
16572009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1658
31fd7c5c
JB
1659 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1660 bsd-common.h.
780c2506 1661
a8c0cc18
KH
16622009-07-27 Kenichi Handa <handa@m17n.org>
1663
1664 * xfaces.c (face_with_height): Call font_clear_prop.
1665
4fbe2306
CY
16662009-07-26 Chong Yidong <cyd@stupidchicken.com>
1667
111d9af3
CY
1668 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1669
1670 * xterm.c (x_term_init): Use Qx.
1671
4fbe2306
CY
1672 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1673
1ac9108a 1674 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1675 (ns_get_color): Revert 2009-07-16 change.
1676
beb0b7f9
EZ
16772009-07-25 Eli Zaretskii <eliz@gnu.org>
1678
1679 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1680 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1681
2baf5e76
KR
16822009-07-25 Ken Raeburn <raeburn@raeburn.org>
1683
1ac9108a
SM
1684 * coding.h (decode_coding_string, encode_coding_string):
1685 Use SCHARS macro.
8890e5f5 1686
2baf5e76 1687 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1688 (load_depth): Delete.
2baf5e76
KR
1689 (Qload_in_progress): New variable.
1690 (load_unwind): Don't reference load_depth or load_in_progress.
1691 (Fload): Likewise; specbind Qload_in_progress instead.
1692 (init_lread): Don't initialize load_depth.
1693 (syms_of_lread): Initialize and protect Qload_in_progress.
1694
1395c6f5
AR
16952009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1696
1697 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1698
4e2f36cf
AR
16992009-07-23 Yavor Doganov <yavor@gnu.org>
1700
1701 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1702
5dd9a6f7
AR
17032009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1704
1705 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1706 Bugs 3792, 3720, 2402.
1707 (ns_lookup_indexed_color): Check for bad index.
1708 (ns_index_color): Init unused slot to 0.
1709 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1710 Bug 3714, possibly 3082.
5dd9a6f7 1711
c902b920
JR
17122009-07-22 Jason Rumney <jasonr@gnu.org>
1713
1ac9108a
SM
1714 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1715 Position IME window at cursor (Bug#2570).
c902b920
JR
1716 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1717 (globals_of_w32fns): Dynamically load functions required above.
1718
1719 * w32term.c (w32_draw_window_cursor): Send message to reposition
1720 any IME window.
1721
090101cf
CY
17222009-07-21 Chong Yidong <cyd@stupidchicken.com>
1723
1724 * fileio.c: Revert 2009-07-16 changes.
1725 (Vauto_save_include_big_deletions): New variable.
1726 (Fdo_auto_save): Disable auto-save only if
1727 auto-save-include-big-deletions is nil.
1728
e6583e3d
CY
17292009-07-21 Chong Yidong <cyd@stupidchicken.com>
1730
1731 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1732 the overflowed pixels into account (Bug#3879).
1733
ece435a5
KR
17342009-07-21 Ken Raeburn <raeburn@raeburn.org>
1735
1736 * lread.c (load_depth): New variable.
1737 (Fload, load_unwind, init_lread): Set it to the load recursion
1738 depth; set load_in_progress as a simple boolean based on the
1739 current load_depth. (Bug#3892)
1740
40b2d973
AR
17412009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1742
1743 * nsfont.m (ns_has_attribute): Remove.
1744 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1745
10be7e0d
JL
17462009-07-18 Juri Linkov <juri@jurta.org>
1747
1748 * process.c (Fset_process_query_on_exit_flag): Mention killing
1749 a buffer in docstring.
1750
fa055055
KH
17512009-07-17 Kenichi Handa <handa@m17n.org>
1752
1753 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1754
042f7b69
YM
17552009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1756
1757 * nsfns.m (Fns_set_alpha): Remove function.
1758 (syms_of_nsfns): Don't defsubr it.
1759
1760 * nsterm.m (ns_get_color): Remove incompatible color formats.
1761 (ns_color_to_lisp): Generate #rrggbb color format string.
1762
4be941e3
RS
17632009-07-16 Richard Stallman <rms@gnu.org>
1764
1765 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1766 (Fset_buffer_auto_saved): Handle save_length = -2.
1767
4e6b227d
CY
17682009-07-16 Chong Yidong <cyd@stupidchicken.com>
1769
1770 * xterm.c (Qx_gtk_map_stock): New var.
1771
1772 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1773 of calling intern each time.
1774
a1856973
YM
17752009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1776
1777 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1778 does tiling.
1779
1780 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1781
497e54d8
KH
17822009-07-14 Kenichi Handa <handa@m17n.org>
1783
72d36834
KH
1784 * font.c (font_vconcat_entity_vectors): New function.
1785 (struct font_sort_data): New member font_driver_preference.
1786 (font_compare): Check font_driver_preference.
1787 (font_sort_entities): The format of the first argument changed.
1788 (font_delete_unmatched): Likewise.
1789 (font_list_entities): The return type changed.
1790 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1791 (font_find_for_lface): Adjuste for the above changes.
1792 Don't suppress the checking of C even if the repertory supports it.
1793 (Flist_fonts): Adjust for the above changes.
72d36834 1794
1ac9108a
SM
1795 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1796 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1797 Reject a font who has adstyle property that is different from a
1798 langname derived from registry property.
1ac9108a 1799 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1800
b6046155
EZ
18012009-07-13 Eli Zaretskii <eliz@gnu.org>
1802
1803 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1804 local copy of dirfilename.
1805
fb6b6049
KH
18062009-07-13 Kenichi Handa <handa@m17n.org>
1807
e2402a5e
KH
1808 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1809 against max_char.
1810
fb6b6049
KH
1811 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1812 calling XSYMBOL (sym).
1813
65156807
EZ
18142009-07-11 Eli Zaretskii <eliz@gnu.org>
1815
1ac9108a
SM
1816 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1817 New function.
1818 (directory_files_internal) [WINDOWSNT]:
1819 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1820 the filesystem of the directory is fast or slow.
1821
1822 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1823 file name.
1824 (is_slow_fs): New function.
1825 (stat): Use it to determine whether to issue more system calls to
1826 get accurate file attributes, when w32-get-true-file-attributes is
1827 `local'.
1828
e0ab5fcf
JD
18292009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1830
1831 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1832 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1833 parameter font-parameter as default to the font dialog.
1834
784ceded
KH
18352009-07-10 Kenichi Handa <handa@m17n.org>
1836
1837 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1838
fb8edc0b
EZ
18392009-07-09 Eli Zaretskii <eliz@gnu.org>
1840
1ac9108a 1841 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1842
fb8edc0b
EZ
1843 * w32.c (stat): Treat UNC file names as residing on remote
1844 drives. (Bug#3542)
1845
635c75b1
KH
18462009-07-09 Kenichi Handa <handa@m17n.org>
1847
1848 * fontset.c (fontset_find_font): Fix previous change.
1849
c1d5ce94
MA
18502009-07-08 Michael Albinus <michael.albinus@gmx.de>
1851
1852 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1853 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1854 error flag.
1855
edb61b39
KH
18562009-07-08 Kenichi Handa <handa@m17n.org>
1857
374bf7e4
KH
1858 * fontset.c (fontset_find_font): Fix the logic of handling
1859 charset_matched.
1860 (font_for_char): Delete unused var.
1861 (generate_ascii_font_name): Delete it.
1862
edb61b39
KH
1863 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1864
1865 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1866 (encode_coding_sjis): Fix the code range check.
1867
0f3f018c
CY
18682009-07-07 Chong Yidong <cyd@stupidchicken.com>
1869
1870 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1871 (Fexpand_file_name): Copy string data properly (Bug#3772).
1872
fcaf6f3a
JD
18732009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1874
1875 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1876 first MapNotify.
1877
6809ca75
KH
18782009-07-07 Kenichi Handa <handa@m17n.org>
1879
1880 * character.h (unibyte_has_multibyte_table): Delete extern.
1881 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1882
1883 * charset.c (Fset_charset_priority): Update charset_unibyte.
1884 (syms_of_charset): Initialize charset_unibyte.
1885
1886 * character.c (unibyte_has_multibyte_table): Delete it.
1887 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1888 charset_unibyte.
1889 (multibyte_char_to_unibyte_safe): Likewise.
1890 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1891
1ac9108a 1892 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1893 (x_produce_glyphs): Likewise.
1894
1895 * .gdbinit (xcharset): Fix the treating $arg0.
1896
ad9e2d54
EZ
18972009-07-04 Eli Zaretskii <eliz@gnu.org>
1898
1899 Emulation of `getloadavg' on MS-Windows.
1900 * w32.c: Include float.h
1901 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1902 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1903 (get_native_system_info, get_system_times): New functions.
1904 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1905 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1906 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1907 g_b_init_get_system_times, and num_of_processors.
1908
0a3472c7
JR
19092009-07-03 Jason Rumney <jasonr@gnu.org>
1910
1911 * w32term.c (w32_initialize): Use standard types.
1912
80904120
EZ
19132009-07-03 Eli Zaretskii <eliz@gnu.org>
1914
1915 * dired.c (Ffile_attributes): Decode user and group names by the
1916 locale's encoding. (Bug#3443)
1917
6978862d
DN
19182009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1919
f8d23104
DN
1920 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1921 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1922
1923 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1924
1925 * term.c (init_tty): Remove spurious #ifdef.
1926
6978862d
DN
1927 * m/mips.h: Mention this file is also used for netbsd.
1928 * m/pmax.h: Remove file.
1929
e044e4fc
JD
19302009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1931
1932 * xterm.h (struct x_display_info): Add invisible_cursor.
1933 (struct x_output): Add current_cursor.
1934
1935 * xterm.c (XTtoggle_invisible_pointer): New function.
1936 (x_define_frame_cursor): Don't define cursor if invisible or the
1937 same as before. Set current_cursor.
1938 (x_create_terminal): Set toggle_invisible_pointer_hook.
1939
1940 * xfns.c (make_invisible_cursor): New function.
1941 (x_set_mouse_color): Call make_invisible_cursor.
1942 Set current_cursor.
1943 (x_window): Set current_cursor.
1944
1945 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1946
1947 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1948 inserting a character.
1949 (read_avail_input): Call frame_make_pointer_visible.
1950
1951 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1952 (frame_make_pointer_invisible, frame_make_pointer_visible):
1953 New functions.
e044e4fc
JD
1954 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1955
1956 * frame.h: Declare frame_make_pointer_invisible and
1957 frame_make_pointer_visible.
1958 (struct frame): Add pointer_invisible.
1959
574c8efa
JD
19602009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1961
7b507248
JD
1962 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1963 frame isn't visible.
1964 (xg_frame_resized): If width/height is -1, get size of window
1965 from X server.
1966
1967 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1968 for MapNotify.
1969
835bdaa7 1970 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1971 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1972 (flush_and_sync): Reintroduce.
574c8efa 1973
3f1c6666 19742009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1975
31fd7c5c 1976 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1977
1978 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1979 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1980
1981 * frame.h: Declare Qsticky.
1982
cad9ef74
JD
1983 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1984
1985 * nsfns.m (ns_frame_parm_handlers): Ditto.
1986
1987 * frame.c: Declare Qsticky.
1988 (frame_parms): Add sticky.
1989
1990 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1991
1992 * xterm.h: Declare x_set_sticky.
1993
1994 * xterm.c (x_set_sticky): New function.
1995
69b16610
JD
1996 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1997 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1998 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1999
2000 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2001
2002 * frame.c: Qmaximized is new.
2003 (x_set_frame_parameters): Do not handle fullscreen specially.
2004 Only set width and height if explicitly set.
2005 (x_set_fullscreen): Handle Qmaximized.
2006 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2007 (syms_of_frame): Initialize Qmaximized.
2008
1ac9108a
SM
2009 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2010 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2011
2012 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2013 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2014 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2015 set gravity to NorthWestGravity when USE_GTK.
2016 (set_wm_state): New function.
31fd7c5c 2017 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2018 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2019 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2020 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2021 to x_real_positions and x_fullscreen_adjust.
2022
2023 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2024 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2025 flush_and_sync.
2026 (xg_height_changed): New function.
2027 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2028 and gtk_window_set_policy. Set frame gravity after parsing the
2029 geometry string.
3f1c6666
JD
2030 (xg_update_frame_menubar, free_frame_menubar)
2031 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2032 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2033 Remove calls to xg_frame_set_char_size.
2034
fd503d99
KH
20352009-07-01 Kenichi Handa <handa@m17n.org>
2036
2037 * keyboard.c (decode_keyboard_code): New function.
2038 (tty_read_avail_input): Decode the input bytes if necessary.
2039
1ac9108a
SM
2040 * coding.c (setup_coding_system):
2041 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2042 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2043 use Qno_conversion.
2044
24ed93fb
YM
20452009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2046
2047 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2048
99061dfc
CY
20492009-06-30 Chong Yidong <cyd@stupidchicken.com>
2050
1ac9108a 2051 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2052
ff90fbde
JR
20532009-06-30 Jason Rumney <jasonr@gnu.org>
2054
2055 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2056 is already loaded.
2057 Set user model ID if supported (bug#1849).
2058
5f445726
JM
20592009-06-29 Jim Meyering <meyering@redhat.com>
2060
2061 Remove useless if-before-xfree test.
2062 * nsfont.m (nsfont_close): Remove useless test.
2063 * term.c (delete_tty): Likewise.
2064 * w32.c (system_process_attributes): Likewise.
2065 * w32font.c (w32font_close): Likewise.
2066 * xfaces.c (x_free_gc): Likewise.
2067 * xselect.c (buffer): Likewise.
2068
b9607587
AS
20692009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2070
2071 * process.c (send_process): Keep decoded string in a local
2072 variable and protect it from GC. (Bug#3521)
2073
89ba96f4
EZ
20742009-06-28 Eli Zaretskii <eliz@gnu.org>
2075
2076 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2077 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2078
098a1589
CY
20792009-06-28 Chong Yidong <cyd@stupidchicken.com>
2080
485422be
CY
2081 * xdisp.c (start_display, handle_face_prop)
2082 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2083 (redisplay_window, try_window_id, produce_image_glyph):
2084 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2085
098a1589
CY
2086 * xterm.c (x_update_window_begin, x_new_focus_frame)
2087 (x_scroll_bar_handle_click, handle_one_xevent)
2088 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2089 (x_make_frame_visible, x_make_frame_invisible)
2090 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2091 code chunks that are now obsolete.
2092
78c38319
MA
20932009-06-28 Michael Albinus <michael.albinus@gmx.de>
2094
2095 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2096 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2097 for hours, when optimzation is enabled.
2098 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2099 (xd_read_message): Make them static.
2100
4189ed40
CY
21012009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2102
2103 * term.c (turn_on_face): Allow simultaneously bold and dim
2104 terminal faces (Bug#3530).
2105
cd9b5e16
CY
21062009-06-27 Chong Yidong <cyd@stupidchicken.com>
2107
4e23bedb
CY
2108 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2109
cd9b5e16
CY
2110 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2111 truncation glyphs (Bug#3686).
2112
07cc3c35
GM
21132009-06-27 Glenn Morris <rgm@gnu.org>
2114
2115 * m/pmax.h: Restore file, with only netbsd portions.
2116
31fd7c5c 21172009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2118
cd9b5e16 2119 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2120
42d4a64f
KH
21212009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2122
2123 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2124 the arg FORCE_SYMBOL.
2125
930fe55b 21262009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2127
2128 * fontset.c (fontset_find_font): When a usable rfont_def is found
2129 in a fallback font-group, make it the first element of the group.
2130
57ebc3fd
CY
21312009-06-24 Chong Yidong <cyd@stupidchicken.com>
2132
2133 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2134
f084f942
KH
21352009-06-24 Kenichi Handa <handa@m17n.org>
2136
2137 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2138 set for C.
2139 (fontset_font): Record the availability of a font for C both in
2140 the realized fontsets of the current one and the default one.
2141
2f686c87
DN
21422009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2143
2144 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2145 conditional, it is always defined on AIX.
2146
666e158e
MB
21472009-06-23 Miles Bader <miles@gnu.org>
2148
2149 * window.c (Vrecenter_redisplay): New variable.
2150 (syms_of_window): Initialize it.
2151 (Qtty): New extern declaration.
2152 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2153
c6da7cd2
JM
21542009-06-23 Jim Meyering <meyering@redhat.com>
2155
1ac9108a
SM
2156 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2157 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2158 pointer dereferences are guaranteed to be valid.
c6da7cd2 2159
678dca3d
KH
21602009-06-23 Kenichi Handa <handa@m17n.org>
2161
74d75424
KH
2162 * emacs.c (main): Call init_font ().
2163
2164 * font.h (Vfont_log): Extern it.
2165 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2166
2167 * font.c (font_sort_entities, font_list_entities)
2168 (font_matching_entity, font_open_entity)
2169 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2170 (Vfont_log): Delete static.
2171 (font_log_env_checked): Delete this variable.
2172 (font_add_log): Don't check font_log_env_checked.
2173 (font_deferred_log): Check Vfont_log.
2174 (init_font): New function.
2175
678dca3d
KH
2176 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2177
2178 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2179
2180 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2181
2182 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2183
2184 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2185 (face_for_char): Don't call font_deferred_log here.
2186 (font_for_char): Likewise.
2187
8a668709
CY
21882009-06-22 Chong Yidong <cyd@stupidchicken.com>
2189
9a01ee33
CY
2190 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2191 rather than its background_width for drawing the overline and
2192 underline (Bug#489).
2193
2194 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2195 rather than its background_width for drawing the overline and
2196 underline (Bug#489).
ec7c9926
CY
2197 (xg_default_icon_file): New variable.
2198 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2199 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2200
8a668709
CY
2201 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2202 (load_overlay_strings): Remove externs.
2203 (fast_find_position): Function deleted.
2204 (mouse_face_from_buffer_pos): New function, based on
2205 fast_find_position. Correctly handle before-strings,
2206 display-strings, and after-strings (Bug#1220).
2207 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2208
4d4c02d8
CY
22092009-06-21 Chong Yidong <cyd@stupidchicken.com>
2210
1ac9108a 2211 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2212 (move_it_in_display_line_to, move_it_in_display_line_to)
2213 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2214
70243478
CY
22152009-06-21 Chong Yidong <cyd@stupidchicken.com>
2216
2217 * Branch for 23.1.
2218
13087e59
JR
22192009-06-21 Jason Rumney <jasonr@gnu.org>
2220
2221 * w32term.c (keyboard_codepage): New static variable.
2222 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2223 (w32_read_socket) [WM_CHAR]: Use it to decode character
2224 input (bug#3237).
2225 (w32_initialize): Initialize it.
2226 (codepage_for_locale): New function.
2227
4735b74e
KR
22282009-06-20 Ken Raeburn <raeburn@raeburn.org>
2229
2230 * process.c (status_message): Pass Faset index argument as a lisp
2231 object, so as to work with USE_LISP_UNION_TYPE.
2232
0e727afa
YM
22332009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2234
2235 * coding.c (Ffind_coding_systems_region_internal):
2236 Cache checked characters.
2237
cf299835
KH
22382009-06-18 Kenichi Handa <handa@m17n.org>
2239
1ac9108a 2240 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2241
90f20d94
AS
22422009-06-18 Andreas Schwab <aschwab@redhat.com>
2243
2244 * xdisp.c (redisplay_internal): Check that the frame is still
2245 live after redisplay of its windows.
2246 (redisplay_windows): Check that the window is still live.
2247
7f1faf1c
KH
22482009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2249
2250 * coding.c (detect_coding_utf_16): Fix previous change.
2251
cc13543e
KH
22522009-06-16 Kenichi Handa <handa@m17n.org>
2253
2254 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2255 UTF-16 by checking the dispersion of Eth and Oth bytes.
2256
977b85f4
AS
22572009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2258
2259 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2260
66bd43d1
KH
22612009-06-15 Kenichi Handa <handa@m17n.org>
2262
2263 * process.c (status_message): Fix previous change. Be sure to
2264 decode a localized string.
2265
cb5ca9c5
YM
22662009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2267
2268 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2269 add comment explaining why.
2270
ec7709ba 22712009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2272
ec7709ba 2273 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2274
4b7f335c
AR
22752009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2276
2277 * nsfont.m (ns_attribute_value): Remove.
2278 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2279 (ns_has_attribute): Shrink the normal range.
2280 (ns_findfonts): Don't worry about requested spec in determining
2281 need for synthItal.
e41820ee 2282 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2283
73b26103
SZ
22842009-06-14 Seiji Zenitani <zenitani@mac.com>
2285
2286 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2287
5753e4da
KH
22882009-06-11 Kenichi Handa <handa@m17n.org>
2289
2290 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2291 overhang for the static composition case.
2292
3561b671
KH
22932009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2294
5753e4da
KH
2295 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2296 overhang for the automatic composition case.
2297
3561b671
KH
2298 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2299 composition case.
2300
852bbd41
CY
23012009-06-10 Chong Yidong <cyd@stupidchicken.com>
2302
2303 * xdisp.c (get_next_display_element): When handling wrap-prefix
2304 and line-prefix, treat \n as a control character (bug#3502).
2305
9903d1e6
KH
23062009-06-10 Kenichi Handa <handa@m17n.org>
2307
2308 * font.c (font_parse_family_registry): Fix for one-char foundry.
2309 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2310
0bcbaaaa
CY
23112009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2312
2313 * process.c (status_message): Fix handling of multibyte signal
2314 string (Bug#3499).
2315
40aa3f13
JM
23162009-06-09 Jim Meyering <meyering@redhat.com>
2317
1f80c7e2
CY
2318 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2319 color name is missing.
40aa3f13 2320
72d51285
KH
23212009-06-09 Kenichi Handa <handa@m17n.org>
2322
2323 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2324 FROM-CODE and TO-CODE are codepoints of CHARSET.
2325
c1d04d84
AR
23262009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2327
2328 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2329
23302009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2331
2332 Changes to support :script/:lang/:otf in NS font driver.
2333 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2334 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2335 indicate not part of font driver interface, and change callers.
2336 (ns_get_family): Remove pointless null check.
2337 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2338 ns_spec_to_descriptor, ns_descriptor_to_entity.
2339 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2340 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2341 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2342 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2343 (ns_get_req_script, ns_accumulate_script_ranges)
2344 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2345 New functions.
2346 (nsfont_list, nsfont_match): Use ns_findfonts.
2347 (nsfont_open): Use font descriptor instead of traits.
2348 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2349 (dump_glyphstring): Rename to ns_dump_glyphstring.
2350
c7eb9816
AR
2351 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2352
c1d04d84
AR
2353 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2354
2355 * fontset.c (fontset_from_font): Remove NS-specific code.
2356
ec7709ba 23572009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2358
2359 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2360 nonactive windows.
2361
31fd7c5c 23622009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2363
1ac9108a 2364 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2365
68852c13 23662009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2367
2368 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2369
6756cd1d
CY
23702009-06-07 Chong Yidong <cyd@stupidchicken.com>
2371
2372 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2373 account for the overflowing of newlines into the last glyph on the
2374 display line (Bug#3482).
2375
28bf482a
DR
23762009-06-05 David Reitter <david.reitter@gmail.com>
2377
ec7709ba
JB
2378 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2379 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2380 Fns_selection_exists_p, Fns_selection_owner_p.
2381
fdb55376
JR
23822009-06-03 Jason Rumney <jasonr@gnu.org>
2383
2384 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2385 available. (Bug#3379)
2386
05129fbe
KH
23872009-05-29 Kenichi Handa <handa@m17n.org>
2388
1ac9108a
SM
2389 * coding.c (get_translation_table):
2390 Check Venable_character_translation.
05129fbe 2391
ec7709ba 23922009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2393
ec7709ba
JB
2394 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2395 (x_make_frame_visible): Move frame to front rather than calling
15891144 2396 ns_raise_frame().
ec7709ba 2397 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2398 isn't key window.
ec7709ba 2399 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2400 drawRect may be called by NSView even if the frame is hidden.
2401
ec7709ba
JB
2402 * nsfns.m (Fx_create_frame): Follow other ports in
2403 determining visibility; default to t. Ensure async_visible is set.
15891144 2404
21f73755
EZ
24052009-05-23 Eli Zaretskii <eliz@gnu.org>
2406
2407 * dired.c (Ffile_attributes): Doc fix.
2408
34001e41
CY
24092009-05-22 Chong Yidong <cyd@stupidchicken.com>
2410
2411 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2412
46306a17
SM
24132009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2414
2415 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2416 and xfont_scratch_props.
2417 (syms_of_xfont): Do it here instead.
2418 (xfont_find_ccl_program): Delete, unused.
2419 (xfont_open): Delete unused var `i'.
2420
ef6e0694
KH
24212009-05-21 Kenichi Handa <handa@m17n.org>
2422
2423 * fontset.c (Qlatin): Don't make it static.
2424
46306a17
SM
2425 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2426 New functions.
ef6e0694
KH
2427 (xfont_scripts_cache, xfont_scratch_props): New variables.
2428 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2429 (xfont_list_pattern): Argument changed. Callers changed.
2430 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2431 (xfont_list): Don't reject a font spec with :script property.
2432 (xfont_has_char): Fix setting of encoding.
2433 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2434 xfont_scratch_props.
2435
24362009-05-19 Kenichi Handa <handa@m17n.org>
2437
46306a17 2438 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2439 Callers changed.
2440
24412009-05-18 Kenichi Handa <handa@m17n.org>
2442
2443 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2444
ac71ced7
SM
24452009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2446
2447 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2448 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2449
1c6d1051
YM
24502009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2451
2452 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2453 (x_delete_terminal): Dissociate resource database from display and
2454 then call XrmDestroyDatabase before closing display.
2455
9b9b779c
AR
24562009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2457
2458 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2459 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2460 whether selected frame is viable before raising it (based on patch
2461 by David Reitter), and improve commentary.
2462 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2463
cccd42d5
KH
24642009-05-15 Kenichi Handa <handa@m17n.org>
2465
2466 * font.c (Ffont_spec): Check arguments.
2467
337fbd17
CY
24682009-05-14 Chong Yidong <cyd@stupidchicken.com>
2469
2470 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2471 weight when testing attributes (Bug#3282).
2472
47a6002f
JD
24732009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2474
2475 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2476 what we expect to get in the next ConfigureNotify event.
2477
9cb363db
YM
2478 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2479 before Xft one (Bug#1696).
2480
b9126609
CY
24812009-05-07 David Reitter <david.reitter@gmail.com>
2482
2483 * nsfns.m (Fx_display_planes): Compute bitplanes using
2484 NSBitsPerPixelFromDepth (Bug#3207).
2485
27a69fd9
CY
24862009-05-10 Chong Yidong <cyd@stupidchicken.com>
2487
2488 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2489
00f37552
TTN
24902009-05-10 Ulrich Mueller <ulm@gentoo.org>
2491
2492 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2493
2d82a920
DR
24942009-05-07 David Reitter <david.reitter@gmail.com>
2495
ec7709ba
JB
2496 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2497 Respect mouse face background.
2d82a920 2498
46b0d52d
DR
24992009-05-07 David Reitter <david.reitter@gmail.com>
2500
ec7709ba
JB
2501 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2502 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2503 in ns_update_begin and ns_update_end.
2504
ce1b23bb
SM
25052009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2506
5996e1b7
SM
2507 * nsfns.m (ns_get_screen): Rewrite.
2508 Don't presume selected-frame is of type `ns'.
2509
ba98e3a0
SM
2510 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2511 all drivers.
2512
ce1b23bb
SM
2513 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2514
bcda200f
YM
25152009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2516
2517 * keyboard.h (add_user_signal): Fix typo in extern.
2518
2519 * lisp.h (add_user_signal): Remove extern.
2520
2521 * unexelf.c (unexec): Consider a section to precede the .bss section
2522 if its addresses overlap that of .bss.
2523 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2524 instead of dumping process.
2525
864660a2
SM
25262009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2527
2528 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2529
50da4e56
SM
25302009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2531
2532 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2533
51520a1a
DN
25342009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2535
2536 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2537 any statements.
2538
409ea3a1
AS
25392009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2540
59c4c60f
AS
2541 * process.c (read_process_output): Make sure the current buffer is
2542 always restored.
2543
409ea3a1
AS
2544 * coding.c (record_conversion_result): Don't modify
2545 Vlast_code_conversion_error for successful result.
2546 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2547
56f00ed2
KH
25482009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2549
2550 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2551 (load_charset_map): Remove unnecessary code.
56f00ed2 2552
4491c9d2
DR
25532009-04-30 David Reitter <david.reitter@gmail.com>
2554
35f5b128 2555 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2556 through f24.
2557
6970f632
CY
25582009-04-30 Chong Yidong <cyd@stupidchicken.com>
2559
2560 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2561
2562 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2563 face_at_buffer_position.
2564 (face_before_or_after_it_pos, get_next_display_element)
2565 (note_mouse_highlight): Update face_at_buffer_position call.
2566
2567 * term.c (term_mouse_highlight):
2568 * msdos.c (IT_note_mouse_highlight):
2569 * fontset.c (Finternal_char_font):
35f5b128 2570 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2571
2572 * dispextern.h (face_at_buffer_position): Update prototype.
2573
0c616f63
KH
25742009-04-30 Kenichi Handa <handa@m17n.org>
2575
35f5b128 2576 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2577
ad3aaf33
AS
25782009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2579
2580 * callproc.c (Fcall_process): Fix GC protection. Make sure
2581 current buffer is always restored.
2582
c3c963a0
YM
25832009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2584
2585 * atimer.c (init_atimer): Also clear stopped_atimers.
2586
2587 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2588
7e3386cb
YM
2589 * process.c (create_process): Clean up merger residues of
2590 2008-07-17 change.
2591
91f68422
CY
25922009-04-29 Ulrich Mueller <ulm@gentoo.org>
2593
2594 * lread.c (Vread_circle): New variable.
2595 (read1): Disable recursive read if Vread_circle is nil.
2596
24b34550
KH
25972009-04-29 Kenichi Handa <handa@m17n.org>
2598
2599 * fontset.h (set_default_ascii_font): Delete extern.
2600
2601 * fontset.c (set_default_ascii_font): Delete this unused function.
2602
2603 * frame.c (x_set_font): When ARG is a font-object, check if the
2604 font-object matches with the ASCII font-spec of the frame's
9c358bda 2605 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2606
77bf07e1
AS
26072009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2608
2609 * fns.c (Flocale_info): Protect vector from GC during decoding.
2610
2611 * process.c (Fstart_process): Protect argv strings from GC during
2612 encoding.
2613
2c55aacf
AS
26142009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2615
2616 * sysdep.c: Include <ctype.h>.
2617
b892d3c9
DR
26182009-04-27 David Reitter <david.reitter@gmail.com>
2619
35f5b128 2620 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2621 Remove commented-out code.
2622
9d0644c4
JB
26232009-04-26 Johan Bockgård <bojohan@gnu.org>
2624
2625 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2626
b7053016
JR
26272009-04-25 Jason Rumney <jasonr@gnu.org>
2628
2629 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2630
4e8231f3
YM
26312009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2632
2633 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2634 Swap bytes in short integer if fringe bitmap width > 8.
2635
493dcf2c
KH
26362009-04-23 Kenichi Handa <handa@m17n.org>
2637
2638 * xfaces.c (Fx_list_fonts): If a font size is specified in
2639 PATTERN, set it in returned scalable fonts.
2640
401e9e57
CY
26412009-04-22 Chong Yidong <cyd@stupidchicken.com>
2642
708e05dc
CY
2643 * keyboard.c (Fset_input_meta_mode): Doc fix.
2644
2645 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2646
1ac9108a 2647 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2648
2649 * coding.c (Fterminal_coding_system): Doc fix.
2650
2651 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2652 (Fx_display_pixel_height, Fx_display_planes)
2653 (Fx_display_color_cells, Fx_server_max_request_size)
2654 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2655 (Fx_display_mm_height, Fx_display_mm_width)
2656 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2657 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2658 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2659 (check_x_display_info): Handle terminal objects instead of
2660 terminal ids.
2661
401e9e57
CY
2662 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2663 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2664 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2665 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2666
df80c7f0
KH
26672009-04-21 Kenichi Handa <handa@m17n.org>
2668
5a8f12af 2669 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2670 (font_score): Check AVGWIDTH too.
908567ef 2671
df80c7f0
KH
2672 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2673 worst case.
1ac9108a
SM
2674 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2675 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2676
705af33f
JR
26772009-04-19 Jason Rumney <jasonr@gnu.org>
2678
2679 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2680 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2681
2682 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2683 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2684 get_phys_cursor_geometry.
2685
b71ac3dd 2686 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2687 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2688 using get_phys_cursor_geometry.
2689
2690 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2691 correctly calculated.
2692
dc2933eb
JD
26932009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2694
1ac9108a
SM
2695 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2696 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2697 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2698 is deprecated.
2699
973e7849
AS
27002009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2701
2702 * font.c (font_put_frame_data): Use xfree instead of free.
2703
314d66f4
JB
27042009-04-17 Juanma Barranquero <lekktu@gmail.com>
2705
2706 * w32font.c (Qja, Qko): Remove declarations.
2707 (syms_of_w32font): Don't DEFSYM them.
2708
cf702558
CY
27092009-04-17 Chong Yidong <cyd@stupidchicken.com>
2710
2711 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2712
2713 * font.h (Qja, Qko): Extern them.
2714
2715 * ftfont.c (Qja, Qko): Remove declarations.
2716
2717 * xfont.c (Qja, Qko): Remove declarations.
2718
b50504f5
KH
27192009-04-17 Kenichi Handa <handa@m17n.org>
2720
bde25748
KH
2721 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2722 string from a vector to handle Latin-1 characters correctly.
2723
b50504f5
KH
2724 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2725 entity even if the cache hits.
2726
f4646fff
AS
27272009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2728
2729 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2730 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2731
e7deaab0
AS
2732 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2733 * lisp.h: Adjust prototypes.
2734
0a0e7d49
CY
27352009-04-16 Chong Yidong <cyd@stupidchicken.com>
2736
2737 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2738 change (Bug#3003).
2739
3c908a57
KH
27402009-04-16 Kenichi Handa <handa@m17n.org>
2741
1ac9108a 2742 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2743
2744 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2745 adstyle.
2746
2747 * ftfont.c (Qja, Qko): Don't make them static.
2748 (enum ftfont_cache_for): New enum.
2749 (fc_charset_table): Undo the previous change.
2750 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2751 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2752 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2753 non-scarable font, try to get AVERAGE_WIDTH.
2754 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2755 Change ft_face_cache from a list of a hash-table. Don't check
2756 `ja' and `ko' adstyle here.
2757 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2758 FTFONT_CACHE_FOR_CHARET.
2759 (ftfont_get_charset): Undo the previous change.
1ac9108a 2760 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2761 (ftfont_close): Likewise.
2762 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2763
2764 * font.c (font_sort_entites): Change the meaning of the arg
2765 BEST-ONLY. Don't optimize for VEC of lenght 1.
2766 (font_select_entity): Just return the value of font_sort_entites.
2767
2768 * xfaces.c (merge_face_vectors): Reflect font properties in
2769 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2770 font_clear_prop if a face attribute doesn't change.
2771
3c908a57
KH
2772 * charset.h (charset_ksc5601): Extern it.
2773
2774 * charset.c (charset_ksc5601): New variable.
2775 (Fdefine_charset_internal): Set charset_ksc5601.
2776 (init_charset_once): Initialize charset_ksc5601 to -1.
2777
d65859c3
DN
27782009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2779
2780 * fileio.c (history_delete_duplicates): Remove unused declaration.
2781
2782 * callint.c (history_delete_duplicates): New declaration.
2783 (Fcall_interactively): Remove command history duplicates when
2784 history_delete_duplicates is true.
2785
3ba010e5
EZ
27862009-04-14 Eli Zaretskii <eliz@gnu.org>
2787
2788 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2789
06f19b91
KH
27902009-04-14 Kenichi Handa <handa@m17n.org>
2791
2792 * font.c (Ffont_info): Fix docstring. Fix the second element of
2793 the returned value (bug#2949).
2794
2cce8bfc
CY
27952009-04-14 Chong Yidong <cyd@stupidchicken.com>
2796
2797 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2798
d156542d
KH
27992009-04-14 Kenichi Handa <handa@m17n.org>
2800
2801 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2802 encoding charset is ascii_compatible.
2803
2804 * charset.c (Fdefine_charset_internal): Make charset
2805 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2806 code_offset is 0, and covers all ASCII characters.
2807
86fa089e
SM
28082009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2809
2810 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2811 (ns_string_to_pasteboard_internal):
2812 * nsmenu.m (process_dialog):
2813 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2814 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2815 * lisp.h (Fx_load_color_file): Declare.
2816
a8a3728b
KH
28172009-04-13 Kenichi Handa <handa@m17n.org>
2818
1ac9108a 2819 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2820 (font_select_entity): Suppress the code to optimize for the same
2821 kind of fonts.
2822 (font_load_for_lface): Get a font that supports at least ASCII
2823 characters.
2824
2825 * ftfont.c (Qja, Qko): New variables.
2826 (fc_charset_table): Delete uniquifier data for iso8859-1.
2827 (ftfont_get_latin1_charset): New function.
2828 (get_adstyle_property): New function.
2829 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2830 bitmap fonts.
2831 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2832 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2833 `ko' or `ja'.
2834 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2835 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2836 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2837 property.
2838 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2839 (syms_of_ftfont): DEFSYM Qja and Qko.
2840
483670b5
KH
28412009-04-09 Kenichi Handa <handa@m17n.org>
2842
12b55765
KH
2843 * charset.c (map_charset_chars): For a charset of `superset'
2844 method, fix calculation of code range.
2845
483670b5
KH
2846 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2847 from the list of extra properties.
2848 (font_clear_prop): Be sure to delete `:name' font property.
2849
57d3b93b
KH
28502009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2851
b4b2c2ca
YM
2852 * dispnew.c (redraw_overlapping_rows): Fix detection of
2853 overlapping for topmost and bottommost rows.
2854
1ac9108a 2855 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2856
472c3609
JR
28572009-04-06 Jason Rumney <jasonr@gnu.org>
2858
2859 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2860
ab193662
KH
28612009-04-06 Kenichi Handa <handa@m17n.org>
2862
2863 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2864
2865 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2866
0c26f026
KH
28672009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2868
2869 * ftfont.c (ftfont_open): Fix checking of the return value of
2870 FT_Load_Char. Fix setting font->underline_thickness.
2871
e173bbce
CY
28722009-04-04 Chong Yidong <cyd@stupidchicken.com>
2873
2874 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2875 (Fterminal_parameters, Fterminal_parameter)
2876 (Fset_terminal_parameter): In doc string, refer to terminal
2877 objects rather than terminal ids.
2878
693a2698
EZ
28792009-04-04 Eli Zaretskii <eliz@gnu.org>
2880
2881 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2882 ret_lim_data. (Bug#2867)
2883
d5221487
CY
28842009-04-03 Chong Yidong <cyd@stupidchicken.com>
2885
2886 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2887 so they don't get wider than the window, matching 2006-01-23
2888 change to the partner function in xdisp.c (Bug#2800).
2889
223509a3
KH
28902009-04-03 Kenichi Handa <handa@m17n.org>
2891
2892 * print.c (print_object): Make each lowest sub_char_table start a
2893 new line (Bug#2866).
2894
74fcd0b1
KH
28952009-04-02 Kenichi Handa <handa@m17n.org>
2896
2897 * fontset.c (fontset_font): Record no-font when a fontset
2898 explicitly tells not to try another font-specs.
2899
c542407d
SM
29002009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2901
2902 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2903
e3869731
KH
29042009-03-30 Kenichi Handa <handa@m17n.org>
2905
d8d2f142
KH
2906 * fontset.c (fontset_from_font): Specify only registry in a
2907 font-spec for all characters supported by that registry.
2908
e3869731
KH
2909 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2910 even if HAVE_M17N_FLT is not defined.
2911
5da5f805
CY
29122009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2913
2914 * ftfont.c: Conditionalize prototyping and use of
2915 ftfont_variation_glyphs.
2916
ab226c50
SM
29172009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2918
9628fed7
SM
2919 * frame.c (delete_frame): Work around compiler bug.
2920
2921 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2922 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2923 Some more EMACS_INT.
2924 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2925
2926 * xdisp.c (dump_glyph): Fix typo.
2927
ae19ba7c
SM
2928 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2929 (adjust_markers_gap_motion, adjust_markers_for_delete)
2930 (adjust_markers_for_insert, adjust_point)
2931 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2932 (make_gap, copy_text, count_size_as_multibyte, insert)
2933 (insert_and_inherit, insert_before_markers)
2934 (insert_before_markers_and_inherit, insert_1)
2935 (count_combining_before, count_combining_after, insert_1_both)
2936 (insert_from_string, insert_from_string_before_markers)
2937 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2938 (insert_from_buffer_1, adjust_after_replace)
2939 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2940 (replace_range_2, del_range, del_range_1, del_range_byte)
2941 (del_range_both, del_range_2, modify_region)
2942 (prepare_to_modify_buffer, signal_before_change)
2943 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2944 for buffer positions and sizes.
2945 * lisp.h: Adjust prototypes accordingly.
2946
2947 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2948 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2949 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2950
ab226c50
SM
2951 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2952
46dfb8fb
JD
29532009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2954
2955 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2956 lines and columns so we keep the same pixel height and width.
2957
2958 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2959 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2960 (x_handle_net_wm_state): New function to update frame parameter
2961 fullscreen.
2962 (x_term_init): Initialize atoms for _NET_WM_STATE.
2963
2964 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2965
d347e494
SM
29662009-03-27 Kevin Ryde <user42@zip.com.au>
2967
2968 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2969 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2970 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2971 (Fgpm_mouse_stop): Pass that new parameter.
2972 * termhooks.h (close_gpm): Adjust prototype.
2973
84db11d6
SM
29742009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2975
c95a5008
SM
2976 * lisp.h (Fx_focus_frame): Declare.
2977
84db11d6
SM
2978 * callint.c (Fcall_interactively): For '^' just delegate the work to
2979 handle-shift-selection.
2980 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2981
0a1958d6
CY
29822009-03-24 Chong Yidong <cyd@stupidchicken.com>
2983
0bfdff23
CY
2984 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2985
0a1958d6
CY
2986 * data.c (Qinteractive_form): New variable.
2987 (Finteractive_form): Use it.
2988
2989 * eval.c (Fcommandp): Use Qinteractive_form.
2990
58aec0d6
JR
29912009-03-24 Jason Rumney <jasonr@gnu.org>
2992
2993 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2994 Calculate total size precisely. Decode environment variables
2995 before substituting. (Bug#38)
2996
553dd618
KH
29972009-03-24 Kenichi Handa <handa@m17n.org>
2998
2999 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3000 encoding (Bug#2722).
553dd618 3001
c39ea606
JD
30022009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3003
3004 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3005 that gdpy is set.
3006
bc9b2b5e
AM
30072009-03-22 Alan Mackenzie <acm@muc.de>
3008
3009 * callint.c (Finteractive): Clarify the doc string - even
3010 promptless elements need \n separators.
3011
9f995a76
JR
30122009-03-22 Jason Rumney <jasonr@gnu.org>
3013
3014 * w32term.c (syms_of_w32term): Doc fix for
3015 x-use-underline-position-properties.
3016
22749e9a
EZ
30172009-03-21 Eli Zaretskii <eliz@gnu.org>
3018
3019 * w32.c (getpwuid): Change argument type to unsigned.
3020 (struct w32_id): Change type of `rid' member to unsigned.
3021 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3022 argument ID to unsigned. All callers changed.
3023 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3024
e00553bf
EZ
30252009-03-20 Eli Zaretskii <eliz@gnu.org>
3026
3027 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3028 negative, produce a float value.
3029
3030 * dired.c (make_uid, make_gid): New functions.
3031 (Ffile_attributes): Use them to avoid negative UID and GID.
3032
f761d6b6
JB
30332009-03-20 Juanma Barranquero <lekktu@gmail.com>
3034
3035 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3036 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3037 Fix typos in docstrings.
3038
d507f8d7
KH
30392009-03-19 Kenichi Handa <handa@m17n.org>
3040
3041 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3042 changed, use font_load_for_lface to get a new font object.
3043 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3044
3045 * frame.c (x_set_font): Handle the case that ARG is a cons.
3046
c68845e0
GM
30472009-03-19 Glenn Morris <rgm@gnu.org>
3048
3049 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3050
bfa49dd1
CY
30512009-03-19 Chong Yidong <cyd@stupidchicken.com>
3052
3053 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3054
8458d4c1
KH
30552009-03-19 Kenichi Handa <handa@m17n.org>
3056
3057 * charset.c (load_charset_map_from_file): When a mapfile can't be
3058 loaded, signal an error.
3059
78e7d1fe
EZ
30602009-03-18 Eli Zaretskii <eliz@gnu.org>
3061
3062 * dired.c (Ffile_attributes): Make sure UID and GID are always
3063 positive, even if the value is too large for a positive EMACS_INT.
3064 Doc fix.
3065
3066 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3067
5da9fdfa
YM
30682009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3069
3070 * xmenu.c (xdialog_show): Move Fredisplay call ...
3071 (Fx_popup_dialog): ... here.
3072
7519c40d
SM
30732009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3074
3075 * dired.c (file_name_completion): Disable the first optimization just
3076 installed, since it is not implemented correctly.
3077
2cd298e2
SM
30782009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3079
3080 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3081 only if the entry can affect bestmatch.
2cd298e2
SM
3082 Stop the search early, as Ftry_completion already does.
3083
48d37adf
CY
30842009-03-17 Chong Yidong <cyd@stupidchicken.com>
3085
e10c9c93 3086 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3087
9286b16a
CY
30882009-03-15 Chong Yidong <cyd@stupidchicken.com>
3089
3090 * keyboard.c (parse_menu_item): Don't display remappings as menu
3091 equivalent bindings (Bug#788).
3092
f7b146dc
JR
30932009-03-15 Jason Rumney <jasonr@gnu.org>
3094
3095 * w32term.h (WM_EMACS_PAINT): New message.
3096 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3097 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3098 before passing to lisp thread. (Bug#950)
3099
f761d6b6 31002009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3101
d93f9575
CY
3102 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3103 variable as it was never reset.
3104 (ns_term_init): Remove initialization of Lisp-settable defaults
3105 and ns_expand_space.
3106 (-setPanelFromDefaultValues): Remove ns_expand_space.
3107 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3108 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3109 i.e. no additional spacing, similar to Carbon port.
3110
d93f9575
CY
3111 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3112 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3113
305018ec
JD
31142009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3115
3116 * sound.c (alsa_configure): Remove call to deprecated
3117 snd_pcm_sw_params_set_xfer_align.
3118
f761d6b6 31192009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3120
3121 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3122 after clicking in a detached tool bar.
3123 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3124
46e722a9
SM
31252009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3126
348db3dd
SM
3127 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3128 int/Lisp_Object mixup).
46e722a9 3129
a3d16f39
KH
31302009-03-13 Kenichi Handa <handa@m17n.org>
3131
3132 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3133 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3134 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3135 (set_fontset_font): Change ARG to a vector. Handle range_list in
3136 ARG correctly.
3137 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3138 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3139 the above change.
3140 (fontset_from_font): Fix previous change.
fe24f56a 3141 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3142 entry. If FONTSET is the default fontset, don't set the extra
3143 slot of the returning char-table.
3144
b066e6b6
JB
31452009-03-12 Juanma Barranquero <lekktu@gmail.com>
3146
3147 * nsfns.m (Fx_close_connection): Doc fix.
3148 (Fns_do_applescript): Reflow docstring.
3149 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3150 (Fx_display_pixel_width, Fx_display_pixel_height)
3151 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3152 Fix typos in docstrings.
3153 (Fns_set_alpha): Fix typos in error messages.
3154
d472514e 31552009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3156
d472514e 3157 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3158 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3159 were used for such events.
3160
d472514e
JB
3161 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3162 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3163
d472514e 3164 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3165 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3166
fb930676
KH
31672009-03-11 Kenichi Handa <handa@m17n.org>
3168
ff85581a
KH
3169 * font.h (font_open_by_spec): Extern it.
3170
c50b7e98
KH
3171 * font.c (font_open_by_spec): New function.
3172 (font_open_by_name): Use font_open_by_spec.
3173
fb930676
KH
3174 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3175 fontset of the frame.
3176
3177 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3178 modify the default font of frames that use this fontset.
3179 (num_auto_fontsets): New variable.
3180 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3181 name. Be sure to set FONTSET_ASCII to the correct font name.
3182 (update_auto_fontset_alist): New function.
3183
df4e8455
JB
31842009-03-11 Juanma Barranquero <lekktu@gmail.com>
3185
3186 * makefile.w32-in: Update dependencies.
3187
0a375797
AR
31882009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3189
3190 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3191
61313fa3
SM
31922009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3193
3194 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3195
b55103fb
CY
31962009-03-10 Chong Yidong <cyd@stupidchicken.com>
3197
3198 * lread.c (Feval_buffer): Doc fix.
3199
dde2559c
KH
32002009-03-09 Kenichi Handa <handa@m17n.org>
3201
3202 * charset.c (Qfile_name_handler_alist): Extern it.
3203 (load_charset_map_from_file): Temporarily bind
3204 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3205
df4e8455 32062009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3207
47f588bb
GM
3208 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3209 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3210
4ddf94bd
AR
32112009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3212
4c9bdfc2
AR
3213 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3214 (x_set_window_size): Change back to calculated method of setting
3215 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3216 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3217 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3218
fe41ae9e
AR
3219 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3220
4c9bdfc2
AR
3221 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3222 accelerator in parens under GNUstep.
3223
825d0875
KH
32242009-03-06 Kenichi Handa <handa@m17n.org>
3225
3226 These changes are to detect incorrect composition sequence without
f3b3be74 3227 looking ahead the source. (Bug#2370)
825d0875
KH
3228
3229 * coding.h: Include "composite.h".
3230 (enum compisition_state): New enum.
3231 (struct compisition_status): New struct.
3232 (struct iso_2022_spec): New member cmp_status.
3233 (struct emacs_mule_spec): New struct.
3234 (struct coding_system): New members ctext_extended_segment_len and
3235 embedded_utf_8. Change the union member
3236 spec.emacs_mule_full_support to spec.emacs_mule.
3237
3238 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3239 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3240 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3241 (ADD_COMPOSITION_DATA): New arg nbytes.
3242 (emacs_mule_char): New arg cmp_status.
3243 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3244 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3245 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3246 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3247 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3248 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3249 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3250 (EMACS_MULE_COMPOSITION_END): New macro.
3251 (emacs_mule_finish_composition): New function.
3252 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3253 (decode_coding_emacs_mule): Avoid long looking ahead while
3254 handling composition.
3255 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3256 (ENCODE_COMPOSITION_RULE): New macro.
3257 (finish_composition): New function.
3258 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3259 (DECODE_COMPOSITION_START): New implementation.
3260 (DECODE_COMPOSITION_END): Likewise.
3261 (STORE_COMPOSITION_RULE): New macro.
3262 (decode_coding_iso_2022): Avoid long looking ahead while handling
3263 composition, CTEXT extended segment, and embedded UTF-8.
3264 (setup_coding_system): For a coding of type iso-2022, reset
3265 CODING_ISO_EXTSEGMENT_LEN (coding) and
3266 CODING_ISO_EMBEDDED_UTF_8 (coding).
3267 (get_translation): Delete arguments last_block, from_nchars,
3268 to_nchars. Callers changed.
3269 (produce_chars): Don't modify charbuf. Adjusted for the change of
3270 get_translation.
98a326f7 3271 (produce_composition): Adjust for the new annotation sequence.
825d0875 3272 (handle_composition_annotation): Likewise.
98a326f7 3273 (consume_chars): Adjust for the change of get_translation.
825d0875 3274
ccbc4452
AR
32752009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3276
4ddf94bd 3277 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3278
988a7ddb
KH
32792009-03-05 Kenichi Handa <handa@m17n.org>
3280
3281 * font.c (font_select_entity): New function.
3282 (font_find_for_lface): Use font_select_entity to select a font.
3283
3284 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3285 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3286 font with C restriction.
3287
98a326f7 32882009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3289
be1bce46 3290 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3291
10ea2b82
JR
32922009-03-04 Jason Rumney <jasonr@gnu.org>
3293
2c93b248 3294 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3295 characters that have already been read. (Bug#2569)
2c93b248 3296
10ea2b82
JR
3297 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3298 Log an error message if check_image_size failed.
3299 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3300 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3301
71a0c011
EZ
33022009-03-02 Eli Zaretskii <eliz@gnu.org>
3303
3304 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3305 when decoding process output.
3306
2f63bba8
RS
33072009-03-01 Richard M Stallman <rms@gnu.org>
3308
3309 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3310
3311 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3312
0a9564cb
EZ
33132009-02-28 Eli Zaretskii <eliz@gnu.org>
3314
3315 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3316 (decode_coding_emacs_mule, decode_coding_iso_2022)
3317 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3318 (decode_coding_raw_text, decode_coding_charset)
3319 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3320 Honor inhibit-eol-conversion. (Bug #2186)
3321
449148b3
JR
33222009-02-28 Jason Rumney <jasonr@gnu.org>
3323
3324 * coding.c (detect_coding_charset): If not checking latin extra,
3325 fail on characters between 0x80 and 0xA0. (Bug#2354)
3326
a4aee864
EZ
33272009-02-28 Eli Zaretskii <eliz@gnu.org>
3328
3329 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3330 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3331
d88bee5a
GM
33322009-02-27 Glenn Morris <rgm@gnu.org>
3333
3334 * callint.c (Finteractive): Doc fix.
3335
a808f22d
KH
33362009-02-27 Kenichi Handa <handa@m17n.org>
3337
3338 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3339
caf8d60c
CY
33402009-02-27 Chong Yidong <cyd@stupidchicken.com>
3341
3342 * font.c (font_style_to_value): Set value for unknown symbols to
3343 100 instead of 255.
b61137ea
CY
3344 (weight_table, slant_table, width_table): Treat "unspecified" as
3345 the default value.
caf8d60c 3346
1a0de25c
JB
33472009-02-26 Juanma Barranquero <lekktu@gmail.com>
3348
3349 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3350
8fc45744
JB
33512009-02-25 Juanma Barranquero <lekktu@gmail.com>
3352
107bd7d1
JB
3353 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3354 error as soon as a recursive load is detected.
8fc45744 3355
f097e223
AR
33562009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3357
3358 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3359 before caching.
3360
8810a12f
KH
33612009-02-24 Kenichi Handa <handa@m17n.org>
3362
3363 * fontset.c (fontset_find_font): Fix the condition for checking
3364 unavailable font.
3365
2c7d1565
GM
33662009-02-24 Glenn Morris <rgm@gnu.org>
3367
3368 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3369 whitespace that confuses documentation.
3370
a20878b6
MB
33712009-02-23 Miles Bader <miles@gnu.org>
3372
3373 * process.c (Flist_system_processes, Fprocess_attributes)
3374 (syms_of_process): Rename `system-process-attributes' to
3375 `process-attributes'.
3376
b3b58c01
AS
33772009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3378
1b3b981b
AS
3379 * coding.h (struct coding_system): Make safe_charsets a pointer to
3380 unsigned char.
3381 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3382 being 255.
3383 (SAFE_CHARSET_P): Likewise.
3384 (setup_iso_safe_charsets): Properly setup safe_charsets.
3385 (Fdefine_coding_system_internal): Likewise.
3386 (setup_coding_system): Likewise. Remove unneeded casts.
3387 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3388 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3389 unneeded casts.
3390
b3b58c01
AS
3391 * insdel.c (del_range_2): Don't modify gap contents when called
3392 from decode_coding_object. (Bug#1809)
3393
0b6f228c
CY
33942009-02-21 Chong Yidong <cyd@stupidchicken.com>
3395
3396 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3397 Qfont_object.
3398 (Ftype_of): Recognize font objects.
3399
3400 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3401
3402 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3403 moved to data.c.
3404
52f8870b
AR
34052009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3406
3407 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3408 async_iconified. Based on a patch by Christian Lynbech
3409 <christian.lynbech@tieto.com>.
3410 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3411
7087d5e9
GM
34122009-02-20 Glenn Morris <rgm@gnu.org>
3413
3414 * syntax.c (Fskip_chars_forward): Fix doc typo.
3415
41d2ceef
CY
34162009-02-20 Chong Yidong <cyd@stupidchicken.com>
3417
3418 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3419
1a3b7ca6
CY
34202009-02-19 Chong Yidong <cyd@stupidchicken.com>
3421
3422 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3423
73cce38d
KH
34242009-02-19 Kenichi Handa <handa@m17n.org>
3425
3426 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3427 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3428
a51092ee
DN
34292009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3430
3431 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3432
c423ecca
KH
34332009-02-18 Kenichi Handa <handa@m17n.org>
3434
3435 * font.c (font_check_otf_features): Fix handling of `nil' element.
3436 (Ffont_spec): Describe :lang and :otf in the docstring.
3437
4c1958f4
AS
34382009-02-16 Andreas Schwab <schwab@suse.de>
3439
3440 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3441 string.
3442
5704f39a
KH
34432009-02-16 Kenichi Handa <handa@m17n.org>
3444
3445 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3446 (Bug#1723)
5704f39a 3447
8f0085aa
CY
34482009-02-14 Chong Yidong <cyd@stupidchicken.com>
3449
a057d86a 3450 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3451
3452 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3453 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3454
aff01dd9
EZ
34552009-02-14 Eli Zaretskii <eliz@gnu.org>
3456
3457 * msdos.c (MAX_SCREEN_BUF): New macro.
3458 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3459 Encode the entire run of glyphs sharing the same face, instead of
3460 doing that one glyph at a time (fixes a bug with displaying
3461 double-size characters).
3462
ba301db3
AR
34632009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3464
3465 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3466
3467 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3468 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3469 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3470
3471 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3472 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3473
51d861de
SM
34742009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3475
3476 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3477 invisible areas.
3478
7fed8996
JR
34792009-02-12 Jason Rumney <jasonr@gnu.org>
3480
631ea4fb
JR
3481 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3482 (add_font_entity_to_list): Call check_face_name even when family
3483 is unspecified.
3484
cb4a3e42
JR
3485 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3486 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3487 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3488
7fed8996 3489 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3490 raster fonts. (Bug#2219)
7fed8996 3491
895416e3
KH
34922009-02-12 Kenichi Handa <handa@m17n.org>
3493
3494 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3495 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3496 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3497 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3498 (find_automatic_composition): While looking forward and backward,
3499 check static composition. Fix where to stop looking forward.
3500 (composition_adjust_point): Fix checking of static composition.
3501 (Fcomposition_get_gstring): Pay attention to
1dacf998 3502 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3503
3504 * lisp.h (fast_looking_at): Extern it.
3505
3506 * search.c (fast_looking_at): New function.
3507
51d861de 3508 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3509 <struct glyph>.u.cmp.to.
3510 (append_composite_glyph): Likewise.
3511
51d861de 3512 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3513 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3514 composition.
51d861de 3515 (append_composite_glyph): Adjust for the change of
895416e3
KH
3516 <strcut glyph>.u.cmp.to.
3517
8510724d
JB
35182009-02-11 Juanma Barranquero <lekktu@gmail.com>
3519
3520 * casetab.c (init_casetab_once):
3521 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3522 * font.c (font_update_lface):
3523 * fontset.c (Fnew_fontset):
3524 * ftfont.c (ftfont_drive_otf):
3525 * xfont.c (xfont_open):
3526 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3527
294fa707
SM
35282009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3529
3530 * fileio.c (Fwrite_region): !NILP -> CONSP.
3531
b5bfebec
AS
35322009-02-10 Andreas Schwab <schwab@suse.de>
3533
3534 * process.c (send_process): Properly relocate pointer into data
adab88bd 3535 when using encoded data. (Bug#2272)
b5bfebec 3536
cb84a2be
KH
35372009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3538
3539 * coding.c (detect_coding_charset): Fix previous change.
3540
89e09428
JR
35412009-02-08 Jason Rumney <jasonr@gnu.org>
3542
3543 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3544 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3545
4470a277
AS
35462009-02-07 Andreas Schwab <schwab@suse.de>
3547
3548 * unexelf.c (unexec): Fix error message.
3549
3175b12a
AR
35502009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3551
3552 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3553 when modal window is active. (Bug #2152)
3175b12a
AR
3554 (applicationShouldTerminate:): Remove now-unneeded while loop
3555 around NSRunAlertPanel.
3556
3557 * nsmenu.m (popupSession): New file-global variable.
3558 (pop_down_menu): End the popupSession before closing dialog.
3559 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3560 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3561 don't query NSApp for events (just sleep instead).
3562
8434d0b8
EZ
35632009-02-07 Eli Zaretskii <eliz@gnu.org>
3564
51d861de
SM
3565 * coding.c (syms_of_coding) <translation-table-for-input>:
3566 Modify doc string to discourage use for character code unification.
8434d0b8 3567
aa82edfd
CY
35682009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3569
3570 * atimer.c (run_timers): Update pending_atimers.
3571
2d283c7c
CY
35722009-02-06 Chong Yidong <cyd@stupidchicken.com>
3573
eb306cab
CY
3574 * image.c (svg_load_image): Fix last change.
3575
2d283c7c
CY
3576 * xfns.c (Fx_create_frame): Signal an error if no font is
3577 found (Bug#2147).
3578
4d8e170e
JB
35792009-02-05 Juanma Barranquero <lekktu@gmail.com>
3580
3581 * character.c (syms_of_character) <script-representative-chars>:
3582 Fix typo in docstring.
3583
c96169a0
AR
35842009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3585
3586 * nsmenu.m (pop_down_menu): New function.
3587 (ns_popup_dialog): Call it on unwind.
3588 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3589 call timer_check() (Bug#2154).
3590 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3591 handling_signal is set.
3592 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3593
31fd7c5c 3594 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3595
3596 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3597
3598 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3599
51d861de
SM
3600 * keyboard.c (poll_for_input_1, handle_async_input):
3601 Set handling_signal under HAVE_NS.
c96169a0 3602
aacd8ba1
GM
36032009-02-04 Glenn Morris <rgm@gnu.org>
3604
3605 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3606
4cb75c4b
KH
36072009-02-04 Kenichi Handa <handa@m17n.org>
3608
3609 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3610
3611 * charset.c (Fchar_charset): New optional arg restriction.
3612
3613 * coding.h (coding_system_charset_list): Extern it.
3614
3615 * coding.c (coding_system_charset_list): New function.
3616
3617 * composite.c: Include coding.h and termhooks.h.
3618 (composition_gstring_p): Fix for the terminal case.
3619 (composition_gstring_width): Likewise.
3620 (fill_gstring_body): Likewise.
3621 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3622 the frame.
3623 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3624 is within a composition.
867d4bb3 3625 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3626
3627 * term.c (encode_terminal_code): Fix handling of composition.
3628 (produce_composite_glyph): For static composition, get pixel_width
3629 from struct composition.
3630
826ba17e
AS
36312009-02-02 Andreas Schwab <schwab@suse.de>
3632
3633 * unexelf.c (unexec): Handle unaligned bss offset.
3634
8ad093db
AR
36352009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3636
3637 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3638 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3639
8ad093db
AR
3640 * keyboard.c (handle_interrupt): Don't call
3641 quit_throw_to_read_char() under NS.
d0a76a6e 3642
8ad093db
AR
3643 * blockinput.h: Remove NS-specific code.
3644
4d18a7a2
DN
36452009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3646
db878925
DN
3647 * dispnew.c (window_change_signal): Don't try to get the size of a
3648 suspended tty frame.
3649 * term.c (Fresume_tty): Resize if the size has changed while the
3650 tty was suspended.
3651
4d18a7a2
DN
3652 * alloc.c (mark_stack): Properly conditionalize previous change.
3653
8984df7c
JB
36542009-01-30 Juanma Barranquero <lekktu@gmail.com>
3655
3656 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3657 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3658 Remove; this code is not used on Windows.
3659
75f4f1ac
EZ
36602009-01-30 Eli Zaretskii <eliz@gnu.org>
3661
3662 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3663 EOLs that also has stray ^M characters.
3664
07a1e794
JB
36652009-01-30 Juanma Barranquero <lekktu@gmail.com>
3666
3667 * atimer.c (run_timers, alarm_signal_handler):
3668 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3669 * w32inevt.c (w32_console_read_socket):
3670 * w32term.c (w32_read_socket):
3671 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3672
a8b11cc9
CY
36732009-01-30 Chong Yidong <cyd@stupidchicken.com>
3674
3675 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3676 Initialize it as a relative filename pattern.
3677 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3678 (Fcall_process_region): Simplify temp file creation using
3679 temporary-file-directory.
3680
c279587b
EZ
36812009-01-29 Eli Zaretskii <eliz@gnu.org>
3682
3683 * msdos.c: Rename pending_signals to msdos_pending_signals.
3684 (sig_suspender, sigprocmask): Adjust.
3685
a8fe3242
CY
36862009-01-29 Chong Yidong <cyd@stupidchicken.com>
3687
3688 * keyboard.c (pending_signals): New var.
3689 (poll_for_input, input_available_signal, init_keyboard): Set it.
3690 (process_pending_signals): New function.
3691
3692 * lisp.h (QUIT): Check pending_signals instead of
3693 interrupt_input_pending. Use process_pending_signals.
3694
51d861de 3695 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3696
51d861de 3697 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3698
3699 * sysdep.c (emacs_write): Use process_pending_signals.
3700
3701 * xterm.c (XTread_socket): Update pending_signals.
3702
3703 * w32term.c (w32_read_socket): Update pending_signals.
3704
3705 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3706
6570a1c4
KH
37072009-01-29 Kenichi Handa <handa@m17n.org>
3708
3709 * xftfont.c (xftfont_has_char): New function.
3710 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3711
d72a4afa
AR
37122009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3713
3714 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3715 under GNUstep.
3716 (ns_query_color): New declaration.
3717
3718 * nsterm.m (ns_confirm_quit): New variable.
3719 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3720 (EmacsApp-applicationShouldTerminate:): Use it.
3721 (EmacsPrefsController): Let user set it.
3722 (ns_query_color): New function.
3723 (ns_defined_color): Use it.
3724 (ns_initialize): Drop.
3725 (ns_term_init): Add two lines from ns_initialize(), and set
3726 input_interrupt_mode to nil.
3727
3728 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3729 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3730
9fe78804
KH
37312009-01-28 Kenichi Handa <handa@m17n.org>
3732
3733 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3734 (fontset_get_font_group): Remember that no font-group is specified
3735 for C.
9fe78804 3736
fa57de36
CY
37372009-01-27 Chong Yidong <cyd@stupidchicken.com>
3738
930600e9
CY
3739 * fns.c (concat): Check for string overflow (bug#1787).
3740
fa57de36
CY
3741 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3742 Quadruple undo limits (bug#1501).
3743
7179ce7b
KH
37442009-01-27 Kenichi Handa <handa@m17n.org>
3745
3746 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3747 directly use GT_Get_Char_index.
3748
3749 * xftfont.c (struct xftfont_info): New member `index'.
3750
3751 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3752 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3753
5be8fcc0
CY
37542009-01-26 Kenichi Handa <handa@m17n.org>
3755
3756 * fontset.c (fontset_find_font): Fix handling of non-cons return
3757 value of fontset_get_font_group.
3758 (fontset_font): Revert last change.
3759
19ae3e61
JR
37602009-01-26 Jason Rumney <jasonr@gnu.org>
3761
3762 * w32font.c (w32font_list_internal): Return quickly if registry is
3763 unknown. Simplify final return.
3764 (add_font_entity_to_list): Break complex logic down into more
3765 manageable chunks. Move unknown registry check to
3766 w32font_list_internal.
3767
8612b71a
AR
37682009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3769
3770 Changes to remove Feval calls from GUI under NS.
3771
d8038940
JB
3772 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3773 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3774 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3775
3776 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3777 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3778 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3779 instead of NON_ASCII_KEYSTROKE_EVENT.
3780 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3781 (EmacsApp-applicationShouldTerminate:): Query user.
3782 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3783 instead of Feval.
3784
3785 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3786
3787 * keyboard.c (kbd_buffer_get_event): Check for it.
3788 (keys_of_keyboard): Define lispy keys for
3789 ns-put/unput-working-text.
3790
3791 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3792 versions.
3793 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3794
6288ae55
CY
37952009-01-25 Chong Yidong <cyd@stupidchicken.com>
3796
3797 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3798 setting current_buffer directly. (Bug#2044)
6288ae55 3799
289e7f8f
CY
38002009-01-24 Chong Yidong <cyd@stupidchicken.com>
3801
5ce87308 3802 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3803 any work. (Bug#1952, bug#1990).
5ce87308 3804
64cc3cf6 3805 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3806
b3243e6f
AR
38072009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3808
3809 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3810 (ns_no_defaults): New declaration.
3811 (main): Use it.
e0d2e69a 3812
d900b2af 3813 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3814
d900b2af 3815 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3816
d900b2af
AR
3817 * nsterm.m (ns_no_defaults): New variable.
3818 (ns_initialize): Don't read defaults when ns_no_defaults.
3819 (EmacsView-readSelectionFromPasteboard:)
3820 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3821 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3822 (ns_dumpglyphs_stretch): New function.
3823 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3824 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3825
e0d2e69a
AR
3826 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3827
3ac71f5d
CY
38282009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3829
3830 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3831 call for Sparc64.
3832
3fe53a83
AR
38332009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3834
3835 * nsfns.m:
3836 * nsgui.h:
3837 * nsmenu.m:
3838 * nsselect.m:
3839 * nsterm.h:
3840 * nsterm.m: Remove '23' comments that indicated code added during
3841 update from emacs-20 -> emacs-23.
3842
10f87c6f 38432009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3844
3845 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3846 ns_alternate_modifier. (Bug#1217)
a3b53a85 3847
c7cef62d
AR
3848 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3849 Display all shortcuts, including those w/o super modifier.
3850
575fb8bd
AR
3851 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3852
918b848b
CY
38532009-01-22 Chong Yidong <cyd@stupidchicken.com>
3854
3855 * fileio.c (Vwrite_region_post_annotation_function)
3856 (Vwrite_region_annotation_buffers): New vars.
3857 (build_annotations_unwind): Just reset
3858 Vwrite_region_annotation_buffers.
3859 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3860 Call write-region-post-annotation-function.
3861 (build_annotations): Add to Vwrite_region_annotation_buffers if
3862 buffer changes.
3863
a39e2539
AR
38642009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3865
3866 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3867 Tiger.
51d861de
SM
3868 * nsfns.m (ns_do_applescript):
3869 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3870
35ed44db
AR
38712009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3872
3873 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3874
cbe0b5bf
AR
38752009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3876
3877 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3878
6049d3a0
AR
3879 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3880
3881 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3882 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3883 handle Ctrl-tab. (Bug#1841)
3884 (ns_get_color): Use unsigned long long for scanned hex string value.
3885 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3886 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3887 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3888 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3889 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3890 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3891 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3892
d3810c21 3893 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3894 DPI. (Bug#1316)
d3810c21
AR
3895 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3896 values in onTiger section.
4c7077c3 3897
e301e634
CY
38982009-01-19 Chong Yidong <cyd@stupidchicken.com>
3899
7f82490b
CY
3900 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3901 Check return value of font_spec_from_name.
64cc3cf6 3902 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3903
3904 * font.c (font_spec_from_name): Return Qnil if font name could not
3905 be parsed.
3906 (font_parse_name): Treat a `?' character as part of an XLFD.
3907
e301e634
CY
3908 * fns.c (Fsubstring): Doc fix.
3909
1c0db158
KH
39102009-01-19 Kenichi Handa <handa@m17n.org>
3911
51d861de 3912 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3913 (ftfont_list): Likewise.
3914
acf20901
JB
39152009-01-18 Juanma Barranquero <lekktu@gmail.com>
3916
fff4e459
JB
3917 * dbusbind.c (Fdbus_register_signal):
3918 * process.c (conv_sockaddr_to_lisp):
3919 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3920
acf20901
JB
3921 * callproc.c (Fgetenv_internal): Doc fix.
3922
e7abcdfb
CY
39232009-01-16 Chong Yidong <cyd@stupidchicken.com>
3924
3925 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3926 it is not even used.
3927
b60861e6
GM
39282009-01-16 Glenn Morris <rgm@gnu.org>
3929
3930 * font.c (Ffont_variation_glyphs): Silence compiler.
3931
8db52afe
JB
39322009-01-15 Juanma Barranquero <lekktu@gmail.com>
3933
3934 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3935 Reported by David Robinow <drobinow@gmail.com>.
3936
4cddb209
KH
39372009-01-15 Kenichi Handa <handa@m17n.org>
3938
51d861de 3939 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3940
f247f67b
JR
39412009-01-14 Jason Rumney <jasonr@gnu.org>
3942
3943 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3944 never a fontset. (Bug#1562)
f247f67b 3945
f56a4450
KH
39462009-01-14 Kenichi Handa <handa@m17n.org>
3947
3948 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3949 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3950
4e99855e
CY
39512009-01-13 Chong Yidong <cyd@stupidchicken.com>
3952
3953 * font.c (font_clear_prop): If clearing the family, clear the font
3954 width index too.
3955
fff4e459 3956 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3957
24f01470
JB
39582009-01-12 Juanma Barranquero <lekktu@gmail.com>
3959
3960 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3961 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3962 functions, use sizeof.
3963
a41240a3
MR
39642009-01-12 Martin Rudalics <rudalics@gmx.at>
3965
3966 * keyboard.c (read_char): Fix case where last_nonmenu_event
3967 returned a bad value with submenus. (Bug#447)
3968
944636b8
CY
39692009-01-12 Chong Yidong <cyd@stupidchicken.com>
3970
3971 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3972 family, clear the font width index too.
3973
0dad7c6f
JR
39742009-01-11 Jason Rumney <jasonr@gnu.org>
3975
3976 * keyboard.c (cmd_error_internal): Exit when errors occur before
3977 frame creation and not in daemon mode. (Bug#1836)
3978
7c2363af
CY
39792009-01-10 Chong Yidong <cyd@stupidchicken.com>
3980
3981 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3982 of a display vector, backtrack.
3983 (try_window_reusing_current_matrix): Check glyph type before
3984 referencing charpos member.
3985
97b1b294
EZ
39862009-01-10 Eli Zaretskii <eliz@gnu.org>
3987
3988 Fix Bug #876:
3989
3990 * coding.c (inhibit_null_byte_detection): New variable.
3991 (detect_coding, detect_coding_system): Don't pay attention to null
3992 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3993 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3994 <inhibit-iso-escape-detection>: Doc fix.
3995
4624b6e3
JR
39962009-01-09 Jason Rumney <jasonr@gnu.org>
3997
3998 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3999 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4000 Only report Unicode Plane 2 fonts as unicode-sip.
4001
323b840c
CY
40022009-01-09 Chong Yidong <cyd@stupidchicken.com>
4003
51d861de
SM
4004 * xfaces.c (Fx_font_family_list): Delete function.
4005 Move compatibility version to faces.el.
323b840c 4006
51d861de 4007 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4008
eba7400d
MR
40092009-01-09 Martin Rudalics <rudalics@gmx.at>
4010
4011 * frame.c (x_set_frame_parameters): Remember requested value for
4012 fullscreen before it's reset by the parameter handler.
4013
4b09796d
GM
40142009-01-09 Glenn Morris <rgm@gnu.org>
4015
4016 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4017 (last_command_event): ... and update all users.
4b09796d
GM
4018 (last_input_char): For clarity, rename to...
4019 (last_input_event): ... and update all users.
4020 (last-command-char, last-input-char): Move to subr.el as aliases.
4021 * cmds.c, commands.h: Update for last_command_char rename.
4022
14ccea62
CY
40232009-01-08 Chong Yidong <cyd@stupidchicken.com>
4024
51d861de 4025 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4026
5f004711
JR
40272009-01-08 Jason Rumney <jasonr@gnu.org>
4028
4029 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4030 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4031 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4032 Don't declare.
fff4e459 4033 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4034 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4035
b71f6f73
KH
40362009-01-07 Kenichi Handa <handa@m17n.org>
4037
50b06221 4038 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4039 remember the coding system used for decoding in
50b06221
KH
4040 coding_system (Bug#1039).
4041
b71f6f73 4042 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4043 breaking the loop. (Bug#870)
b71f6f73
KH
4044 (decode_coding_utf_16, decode_coding_emacs_mule)
4045 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4046 (decode_coding_charset): Likewise.
4047
56f668f7
MR
40482009-01-05 Martin Rudalics <rudalics@gmx.at>
4049
4050 * frame.c (x_set_frame_parameters): Make sure height (width) get
4051 applied when fullwidth (fullheight) is set. (Bug#1522)
4052
5da9424d
JB
40532009-01-04 Juanma Barranquero <lekktu@gmail.com>
4054
4055 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4056 (utc_base): Declare as ULONGLONG, not long double.
4057 (convert_time_raw): Delete.
4058 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4059 (initialize_utc_base): New function.
4060 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4061 (convert_from_time_t): Use initialize_utc_base; compute result with
4062 64-bit arithmetic.
4063 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4064
c4605e09
EZ
40652009-01-03 Eli Zaretskii <eliz@gnu.org>
4066
9acef61c 4067 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4068 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4069 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4070 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4071 [!subprocesses]: Define.
4072 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4073 (Flist_system_processes, Fsystem_process_attributes)
4074 [!subprocesses]: Call list_system_processes and
4075 system_process_attributes instead of returning Qnil.
4076
9acef61c
JB
4077 * dosfns.c (system_process_attributes, list_system_processes):
4078 New functions.
c4605e09
EZ
4079
4080 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4081
4082 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4083 Don't use the default (no-op) implementation.
4084
8b7d0a16
JR
40852009-01-03 Jason Rumney <jasonr@gnu.org>
4086
a6d46bc1
JR
4087 * keyboard.c (parse_modifiers_uncached): Wheel events are
4088 clicks (bug#687).
4089
8b7d0a16
JR
4090 * w32term.c (x_query_colors, x_query_color): New functions.
4091
4092 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4093 (svg_load_image): Cast returned pointers from dynamically loaded
4094 functions. Eliminate W32 specific code.
4095
bfe11752
DN
40962009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4097
89e2438a
DN
4098 * nsfns.m (x_set_foreground_color, x_set_background_color)
4099 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4100 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4101 x_ prefix instead of ns_. Update references.
4102 (syms_of_nsfns): Add a FIXME comment.
4103
4104 * nsterm.m (x_set_cursor_type): New prototype.
4105 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4106
bfe11752
DN
4107 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4108 for Solaris instead of incorrectly providing Qutime and Qcutime.
4109
031da700
EZ
41102009-01-02 Eli Zaretskii <eliz@gnu.org>
4111
4112 * w32.c (process_times): Compute sum of utime and stime.
4113 (system_process_attributes): Add Qtime to the alist.
4114
4115 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4116 and add them to the alist.
4117
4118 * process.c (top level) <Qtime, Qctime>: New variables.
4119 (syms_of_process): staticpro them.
4120 (Fsystem_process_attributes): Add their documentation to the doc
4121 string.
4122
4123 * process.h: Declare Qtime and Qctime.
4124
df23bf08
JR
41252009-01-02 Jason Rumney <jasonr@gnu.org>
4126
9acef61c 4127 * image.c (Qgobject): New symbol.
df23bf08
JR
4128 (syms_of_image): Initialize it.
4129 (init_svg_functions): Load some functions from gobject library.
4130
5bbdf7aa
DN
41312009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4132
4133 * frame.c (make_terminal_frame): Remove redundant code and useless
4134 block.
4135
63136da6
AS
41362009-01-01 Andreas Schwab <schwab@suse.de>
4137
4138 * process.c (conv_sockaddr_to_lisp): Add workaround for
4139 getsockname bug on BSD.
4140
9ef69046
CY
41412009-01-01 Chong Yidong <cyd@stupidchicken.com>
4142
d6fafbe0
CY
4143 * xfns.c (x_create_tip_frame): Set border width of the X window.
4144
51d861de 4145 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4146
f9c34147
JR
41472009-01-01 Jason Rumney <jasonr@gnu.org>
4148
9acef61c 4149 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4150 Don't block input, as per earlier xterm.c changes.
4151
f5497e45
AR
41522008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4153
4154 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4155 (ns_appkit_version_int): New function.
4156 (x-server-version): Use ns_appkit_version_int and follow 21+
4157 convention of returning 3 integers.
4158
c19cab20
KH
41592008-12-30 Kenichi Handa <handa@m17n.org>
4160
4161 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4162 (CHAR_SURROGATE_PAIR_P): New macro.
4163
4164 * font.h (struct font_driver): New member get_variation_glyphs.
4165
9acef61c 4166 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4167 (Ffont_variation_glyphs): New function.
4168 (syms_of_font): Defsubr it.
4169
4170 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4171 ftfont_variation_glyphs.
4172 (setup_otf_gstring): New function.
4173 (ftfont_drive_otf): Use it.
4174 (ftfont_shape_by_flt): Handle variation selector.
4175 (ftfont_variation_glyphs): New function.
4176
28cd591f
MR
41772008-12-30 Martin Rudalics <rudalics@gmx.at>
4178
4179 * frame.c (Vemacs_iconified): Remove.
4180
7f714baf
JR
41812008-12-30 Jason Rumney <jasonr@gnu.org>
4182
4183 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4184 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4185
9d2d22ab
CY
41862008-12-30 Chong Yidong <cyd@stupidchicken.com>
4187
4188 * indent.c (Fvertical_motion): Don't advance iterator if we have
4189 reseated to the desired position.
4190
4191 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4192 checking for pos match.
4193
545312c2
KH
41942008-12-30 Kenichi Handa <handa@m17n.org>
4195
1ede3eb6
KH
4196 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4197 just get the low 8-bit of the code.
4198
545312c2
KH
4199 * font.c (font_intern_prop): Validate str as multibyte.
4200
bd7bbf29
DN
42012008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4202
31e0750e
DN
4203 * dispextern.h (struct face): Move lface and hash from the middle
4204 of bitfields.
4205
bd7bbf29
DN
4206 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4207
b5672e7c
DN
42082008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4209
4210 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4211 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4212 instead of intervals.h.
4213
d704470f
AS
42142008-12-26 Andreas Schwab <schwab@suse.de>
4215
4216 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4217 cons.
4218
54b33868
MR
42192008-12-26 Martin Rudalics <rudalics@gmx.at>
4220
4221 * textprop.c (Qminibuffer_prompt): New variable.
4222 (syms_of_textprop): Initialize it.
4223 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4224 in minibuffer-prompt face. (Bug#1662)
4225
40b615d6
JR
42262008-12-25 Jason Rumney <jasonr@gnu.org>
4227
4228 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4229
baae5c2d
JR
42302008-12-24 Jason Rumney <jasonr@gnu.org>
4231
4232 * ralloc.c (r_alloc_reset_variable): New function.
4233
4234 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4235 record of what points where. (Bug#716)
baae5c2d 4236
a9051c88
DN
42372008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4238
4239 * minibuf.c (read_minibuf): Follow the non-interactive case when
4240 running as a daemon, before detaching.
4241
8b146312
AS
42422008-12-22 Andreas Schwab <schwab@suse.de>
4243
4244 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4245 * gtkutil.c (free_widget_value): Use xfree instead of free.
4246
56f2de10
MR
42472008-12-22 Martin Rudalics <rudalics@gmx.at>
4248
4249 * frame.c (delete_frame): New function derived from
4250 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4251 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4252 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4253 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4254 * frame.h: Extern delete_frame.
4255 * window.c (window_loop):
4256 * terminal.c (delete_terminal):
4257 * xterm.c (x_connection_closed):
4258 * xfns.c (Fx_hide_tip):
9acef61c 4259 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4260
1fc200d6
JR
42612008-12-21 Jason Rumney <jasonr@gnu.org>
4262
4263 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4264 when character maps to .notdef character.
4265
5e252df2
SM
42662008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4267
4268 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4269
99b72cc4
JR
42702008-12-20 Jason Rumney <jasonr@gnu.org>
4271
4272 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4273 a graphical frame on Windows. (Bug#1325)
99b72cc4 4274
acc49a52
JD
42752008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4276
4277 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4278
6ea15123
CY
42792008-12-20 Chong Yidong <cyd@stupidchicken.com>
4280
4281 * minibuf.c (Fread_buffer): Doc fix.
4282
b2dab6c8
JR
42832008-12-20 Jason Rumney <jasonr@gnu.org>
4284
54ea0c87 4285 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4286 server name in UNC paths. (Bug#719)
54ea0c87 4287
b2dab6c8 4288 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4289 charbuf. (Bug#1035)
b2dab6c8 4290
6d1921be
DN
42912008-12-19 Daniel Engeler <engeler@gmail.com>
4292
4293 * sysdep.c (serial_configure): Fix typo.
4294
53934c98
DN
42952008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4296
4297 * sysdep.c: Include alloca.h.
f4f634e8
DN
4298 (system_process_attributes): Add implementation for Solaris.
4299
4300 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4301
06e111a6
DN
43022008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4303
4304 Reorganize implementation of Flist_system_processes and
4305 Fsystem_process_attributes. No functional changes.
4306 * process.c: Don't #include pwd.h, grp.h and limits.h.
4307 (Flist_system_processes): Just call list_system_processes.
4308 (Fsystem_process_attributes): Just call system_process_attributes.
4309 (procfs_list_system_processes, time_from_jiffies)
4310 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4311 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4312
4313 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4314 (list_system_processes): Rename from
4315 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4316 Provide a do nothing implementation.
4317 (system_process_attributes): Rename from
4318 procfs_list_system_processes.
4319 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4320 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4321
4322 * w32.c (list_system_processes): Rename from
4323 w32_list_system_processes.
4324 (system_process_attributes): Rename from
4325 w32_system_process_attributes.
4326
4327 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4328
4329 * process.h (w32_list_system_processes)
4330 (w32_system_process_attributes): Remove.
362654a6
JB
4331 (list_system_processes, system_process_attributes):
4332 New prototypes.
06e111a6 4333
6a705b23
KH
43342008-12-19 Kenichi Handa <handa@m17n.org>
4335
4336 * xfont.c (xfont_decode_coding_xlfd): New function.
4337 (xfont_encode_coding_xlfd): New function.
4338 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4339 (xfont_list): Decode and encode XLFD by iso-8859-1.
4340 (xfont_match): Likewise.
4341 (xfont_list_family): Likewise.
4342 (xfont_open): Likewise.
4343
d66c0241 4344 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4345 names are utf-8.
4346
d66c0241 4347 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4348 names are utf-8.
4349
5a130941
JD
43502008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4351
4352 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4353 changed.
bfd20325
JD
4354 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4355 clicked on a detached tool bar button.
5a130941 4356
fd95644b
DN
43572008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4358
4359 * emacs.c (main): Print and error and exit when no data is read
4360 from the pipe.
4361
e6eee6ae
JR
43622008-12-17 Jason Rumney <jasonr@gnu.org>
4363
4364 * w32font.c (w32font_has_char): Always return -1.
4365
a35dd56b
KH
43662008-12-16 Kenichi Handa <handa@m17n.org>
4367
4368 * font.c (font_open_entity): Fix previous change.
4369
0e3635c2
DN
43702008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4371
4372 * process.c: Include <limits.h>.
4373
d4835507 43742008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4375
4376 * font.c (font_update_drivers): Fix mistake in reconstructing the
4377 driver list.
4378
43792008-12-16 Chong Yidong <cyd@stupidchicken.com>
4380
4381 * font.c (font_clear_cache): Fix format of font cache data.
4382
e2cbc401
CY
43832008-12-15 Chong Yidong <cyd@stupidchicken.com>
4384
4385 * xftfont.c (xftfont_open): Free Xft font pattern if
4386 XftFontOpenPattern fails.
4387
4388 * xterm.c (x_free_frame_resources): Remove extraneous call to
4389 free_frame_faces.
4390
b131d535
CY
43912008-12-13 Chong Yidong <cyd@stupidchicken.com>
4392
4393 * xterm.c (x_delete_display): Move xim_close_dpy call to
4394 x_delete_terminal.
4395 (x_delete_terminal): Call xim_close_dpy.
4396
e6df5336
JR
43972008-12-13 Jason Rumney <jasonr@gnu.org>
4398
4399 * w32font.c (intern_font_name): New function.
4400 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4401 (w32font_open_internal, Fx_select_font): Decode font name.
4402 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4403
4404 * w32font.h (intern_font_name): Declare new function.
4405
4406 * w32uniscribe.c (add_opentype_font_name_to_list):
4407 Use intern_font_name.
4408
20d68145
CY
44092008-12-13 Chong Yidong <cyd@stupidchicken.com>
4410
9f2554de
CY
4411 * frame.c (Fdelete_frame): Call free_font_driver_list.
4412
3d9bec9a
CY
4413 * font.c (free_font_driver_list): Implement missing function.
4414
20d68145
CY
4415 * w32term.c (w32_term_init): Don't initialize the image cache
4416 here; it will be done in init_frame_faces.
4417
4418 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4419 (struct x_display_info): Remove unused member null_pixel. New
4420 member xim_callback_data.
4421
4422 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4423 (xim_initialize): Save pointer to callback function data.
4424 (xim_close_dpy): Free callback function data. Call XCloseIM,
4425 reverting 2008-11-04 change by David Smith.
4426 (x_term_init): Don't initialize the image cache here; it will be
4427 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4428 (x_delete_display): Free x_dnd_atoms member.
4429
96f9306b
KH
44302008-12-13 Kenichi Handa <handa@m17n.org>
4431
6dec9044
JB
4432 * font.c (font_rescale_ratio): Moved from xfaces.c.
4433 Argument type changed. Handle a font-spec too.
96f9306b 4434 (font_score): Check Vface_font_rescale_alist.
6dec9044 4435 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4436
4437 * xfaces.c (font_rescale_ratio): Moved to font.c.
4438
8d5b4964
CY
44392008-12-13 Chong Yidong <cyd@stupidchicken.com>
4440
4441 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4442
e6df5336
JR
44432008-12-12 Jason Rumney <jasonr@gnu.org>
4444
4445 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4446 Vwindow_system_version to the real w32 major version.
4447
97c6058a
DN
44482008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4449
4450 * term.c (init_tty): Move setting the terminal name before the
4451 potential user: maybe_fatal.
4452
ec4e88d7
CY
44532008-12-11 Chong Yidong <cyd@stupidchicken.com>
4454
d4835507
JB
4455 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4456 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4457
b4233ec9
JR
44582008-12-11 Jason Rumney <jasonr@gnu.org>
4459
8ec71e23 4460 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4461 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4462
b4233ec9 4463 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4464 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4465
011a0143
JB
44662008-12-11 Juanma Barranquero <lekktu@gmail.com>
4467
4468 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4469
3c309f34
JB
44702008-12-11 Juanma Barranquero <lekktu@gmail.com>
4471
4472 * process.c (Fsystem_process_attributes, syms_of_process):
4473 Fix typo in name of Ssystem_process_attributes.
4474 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4475
fedc6ab5
JB
44762008-12-11 Juanma Barranquero <lekktu@gmail.com>
4477
4478 * syntax.c (Fmodify_syntax_entry): Doc fix.
4479
ba3de0e8
JB
44802008-12-10 Juanma Barranquero <lekktu@gmail.com>
4481
4482 * font.c (Ffont_spec): Move usage to end of docstring.
4483
174f1c74
JR
44842008-12-10 Jason Rumney <jasonr@gnu.org>
4485
4486 * w32font.c (Qcham): New symbol.
4487 (font_supported_scripts): Add cham, and comments for other new
4488 scripts in bitfield from OpenType spec.
9d32f818
JR
4489 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4490 contain characters beyond the bmp.
174f1c74 4491
7b649478
KH
44922008-12-10 Kenichi Handa <handa@m17n.org>
4493
4494 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4495 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4496 Qunicode_sip.
4497
2133e2d1
JB
44982008-12-10 Juanma Barranquero <lekktu@gmail.com>
4499
4500 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4501 (Fcoding_system_put): Use QCdefault_char.
4502 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4503
9af886ee
CY
45042008-12-09 Chong Yidong <cyd@stupidchicken.com>
4505
74d819eb
CY
4506 * xftfont.c (syms_of_xftfont): Fix typo.
4507
4ccfa1c0 4508 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4509
7c19d3ae
DN
45102008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4511
4512 * emacs.c (main): Close daemon_pipe on exec.
4513
567826bb
CY
45142008-12-08 Chong Yidong <cyd@stupidchicken.com>
4515
4516 * termchar.h (struct tty): New members termcap_term_buffer and
4517 termcap_strings_buffer.
4518
4519 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4520 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4521 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4522 All callers changed.
4523 (init_tty): Store termcap data and string buffers in new struct
4524 tty members termcap_term_buffer and termcap_strings_buffer.
4525 (delete_tty): Free them.
4ccfa1c0 4526 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4527
aa96c42b
SZ
45282008-12-07 Seiji Zenitani <zenitani@mac.com>
4529
4530 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4531 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4532
b7e1d896
CY
45332008-12-06 Chong Yidong <cyd@stupidchicken.com>
4534
4535 * coding.c (make_conversion_work_buffer): Disable buffer
4536 modification hooks in the work buffer.
4537
b5ec91a5
EZ
45382008-12-05 Eli Zaretskii <eliz@gnu.org>
4539
4540 * process.c (procfs_system_process_attributes): If `nread' has a
4541 negative value, assign zero to it.
4542
a5d2a52b
CY
45432008-12-05 Chong Yidong <cyd@stupidchicken.com>
4544
68c5540b 4545 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4546
7bf1bb21
KH
45472008-12-05 Kenichi Handa <handa@m17n.org>
4548
4549 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4550 second character is a combining character.
4551
2fdc7d00
EZ
45522008-12-05 Eli Zaretskii <eliz@gnu.org>
4553
4554 * process.c (procfs_system_process_attributes): Don't use cmd,
4555 cmdsize, and q without initializing them first.
4556
bf6bfba8
JR
45572008-12-04 Jason Rumney <jasonr@gnu.org>
4558
4559 * w32font.c (w32font_draw): Initialize orig_clip before getting
4560 it, and delete it when finished.
4561
a3b1a468
DN
45622008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4563
4564 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4565 case when running as a daemon before detaching.
4566
8b8be8eb
JB
45672008-12-03 Juanma Barranquero <lekktu@gmail.com>
4568
805f2638 4569 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4570
b1bde622
KH
45712008-12-03 Kenichi Handa <handa@m17n.org>
4572
e500c47d
KH
4573 * font.c (font_at): Set `multibyte' at first.
4574
ca516334
KH
4575 * coding.c (decode_coding_charset): Check type of an element of
4576 vector VALIDS.
7bf1bb21 4577 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4578
4ccfa1c0 4579 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4580 (font_for_char): Likewise.
4581
1e5ecd37
CY
45822008-12-03 Chong Yidong <cyd@stupidchicken.com>
4583
d5b01609 4584 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4585 (font_update_lface): Handle fonts with corrupted size specs,
4586 i.e. non-int and non-float.
d5b01609 4587
11e3a6e4 4588 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4589 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4590 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4591
ab06788b
CY
4592 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4593
1e5ecd37 4594 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4595 underline_minimum_offset for underline position.
1e5ecd37 4596
63c125ab
DN
45972008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4598
4599 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4600
4601 * character.c (c_string_width): Specify the type for LEN.
4602
3a8406e1
KH
46032008-12-03 Kenichi Handa <handa@m17n.org>
4604
4ccfa1c0 4605 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4606 (decode_coding_utf_8): Likewise.
4ccfa1c0 4607 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4608 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4609
651df7d9
CY
46102008-12-02 Chong Yidong <cyd@stupidchicken.com>
4611
4612 * keyboard.c (make_lispy_position): Only use PT if the selected
4613 window is current.
4614
1f625c6c
AS
46152008-12-02 Andreas Schwab <schwab@suse.de>
4616
f7741ce9
AS
4617 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4618
1f625c6c
AS
4619 * doprnt.c (doprnt1): Fix size of charbuf.
4620
92bc2678
CY
46212008-12-02 Chong Yidong <cyd@stupidchicken.com>
4622
4623 * keyboard.c (timer_check): Revert last change.
4624
93b9e8cc
JB
46252008-12-02 Juanma Barranquero <lekktu@gmail.com>
4626
4627 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4628
fd7a37d5
JB
46292008-12-01 Juanma Barranquero <lekktu@gmail.com>
4630
4631 * makefile.w32-in: Update dependencies.
4632 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4633
c115043b
AS
46342008-12-01 Andreas Schwab <schwab@suse.de>
4635
4636 * font.c (register_font_driver): Use xmalloc.
4637 (font_put_frame_data): Likewise.
4638
f5668d2a
CY
46392008-12-01 Chong Yidong <cyd@stupidchicken.com>
4640
860d96be
CY
4641 * xfaces.c (realize_x_face): Make abort condition clearer.
4642
f5668d2a
CY
4643 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4644
379c17e7
CY
46452008-11-30 Chong Yidong <cyd@stupidchicken.com>
4646
4647 * keyboard.c (timer_check): After a timer runs, ensure that the
4648 selected window's buffer is current.
4649
35f36d65
JB
46502008-11-30 Juanma Barranquero <lekktu@gmail.com>
4651
f952c61c
JB
4652 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4653 It was accidentally restored by the Unicode merge.
4654
35f36d65
JB
4655 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4656
b23077df
JB
46572008-11-29 Juanma Barranquero <lekktu@gmail.com>
4658
4659 * w32proc.c: Include "coding.h".
4660 (Fw32_short_file_name): Encode filename passed to Windows API.
4661 (Fw32_long_file_name): Encode filename passed to Windows API and
4662 decode back the result. (Bug#1433)
4663
b8ebe9dd
KH
46642008-11-29 Kenichi Handa <handa@m17n.org>
4665
8cc53f96
KH
4666 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4667 not before accessing it.
4668
b8ebe9dd
KH
4669 * charset.c (Fdefine_charset_internal): After calculating
4670 min_char, max_char, and fastmap, copy the charset structure again.
4671 (encode_char): Fix the previous change.
4672
59bc82c0
SZ
46732008-11-28 Seiji Zenitani <zenitani@mac.com>
4674
4675 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4676
4677 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4678
4679 * nsterm.m (x_set_frame_alpha): New function.
4680
32247e3d
EZ
46812008-11-27 Eli Zaretskii <eliz@gnu.org>
4682
4683 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4684
b003e5ff
JB
46852008-11-27 Juanma Barranquero <lekktu@gmail.com>
4686
4687 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4688 pointer to check_face_name.
4689
708550f5
KH
46902008-11-27 Kenichi Handa <handa@m17n.org>
4691
4692 * category.h (SET_CATEGORY_SET): Call set_category_set.
4693 (set_category_set): Extern it.
4694
4695 * category.c (hash_get_category_set): New function.
4696 (Fmodify_category_entry): Adjusted for the change of
4697 char_table_ref_and_range. Call hash_get_category_set to get a
4698 category set to store in the table.
4699
4700 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4701 Funify_charset.
4702
2ae37cf0 4703 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4704 (DECODE_CHAR): Check if the decoder vector is ready.
4705 (ENCODE_CHAR): Check if the encoder char-table is ready.
4706 (maybe_unify_char): Extern it.
4707
4708 * charset.c (Vchar_unified_charset_table): Delete it.
4709 (inhibit_load_charset_map): New variable.
4710 (temp_charset_work): New variable.
4711 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4712 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4713 New macros.
4714 (load_charset_map): Meaning of control_flag changed. If
4715 inhibit_load_charset_map is nonzero, setup a table in
4716 temp_charset_work.
4717 (load_charset): New argument control_flag.
4718 (map_charset_for_dump): New function.
4719 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4720 map_charset_for_dump.
4721 (Fdefine_charset_internal): If the charset method is MAP, load
4722 mapping tables by calling load_charset.
4723 (Funify_charset): Don't load a mapping table but directly set
4724 Vchar_unify_table.
4725 (maybe_unify_char): New function.
4726 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4727 Handle the case of inhibit_load_charset_map being nonzero.
4728 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4729 Handle the case of inhibit_load_charset_map being nonzero.
4730 (Fclear_charset_maps): Just free temp_charset_work.
4731 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4732 variable.
4733
4734 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4735 change of char_table_ref_and_range.
4736 (char_table_ref_and_range): Change the meaning of argument FROM
4737 and TO. Now the caller must provide initial values for *FROM
4738 and *TO.
4739
4740 * fontset.c (fontset_add): Adjusted for the change of
4741 char_table_ref_and_range.
4742 (fontset_get_font_group): Likewise.
4743 (Ffontset_info): Likewise.
4744
4745 * keymap.c (describe_vector): Adjusted for the change of
4746 char_table_ref_and_range. For char-table, put boundary between
4747 non-ASCII and 8-bit characters.
4748
4749 * print.c (print_object): For bool-vector, delete unnecessary
4750 check of ASCII_BYTE_P.
4751
9196133b
JR
47522008-11-26 Jason Rumney <jasonr@gnu.org>
4753
4754 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4755 leading in font height. (Bug#879)
9196133b 4756
9f688acf
GM
47572008-11-26 Glenn Morris <rgm@gnu.org>
4758
4759 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4760 redefinition with ifdef. (Bug#1383)
4761
90d19aff
AR
47622008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4763
4764 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4765
4ccfa1c0 47662008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4767
4768 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4769 New EmacsView methods.
4770 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4771 Fixes bug #1048,1357,1414.
4772
47732008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4774
4775 Fix bug #1362.
4776 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4777 is not an indexed color.
4778 * nsterm.m (free_indexed_color): Add argument checking.
4779 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4780
e7d5ecb3
CY
47812008-11-24 Chong Yidong <cyd@stupidchicken.com>
4782
4783 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4784 Document confirm-after-completion value for
4785 minibuffer-completion-confirm.
4786
c285743c
JR
47872008-11-24 Jason Rumney <jasonr@gnu.org>
4788
4789 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4790 warning.
4791
b0857706
JR
47922008-11-23 Jason Rumney <jasonr@gnu.org>
4793
4794 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4795 restored before returning.
4796
4797 * w32font.c (check_face_name): New function.
4798 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4799 fonts. (Bug#642)
b0857706 4800
ee50ff07
MR
48012008-11-22 Martin Rudalics <rudalics@gmx.at>
4802
4803 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4804 confirm-nonexistent-file-or-buffer in doc-string.
4805
b8ff72fa
SM
48062008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4807
4808 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4809 Fix copy/paste typo. Add checks.
4810
cee53ed4
KH
48112008-11-21 Kenichi Handa <handa@m17n.org>
4812
4813 * coding.c (detect_coding_iso_2022): Reject invalid composition
4814 sequence.
4815 (DECODE_COMPOSITION_START): If the current source is the last
4816 block, and the current composition doesn't end, regard this
4817 sequence as invalid.
4818 (decode_coding_iso_2022): Handle invalid composition sequence.
4819
f6ef1e65
MR
48202008-11-20 Martin Rudalics <rudalics@gmx.at>
4821
4822 * window.c (coordinates_in_window): Don't return
4823 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4824 line when the window is not the rightmost one. (Bug#1372)
4825
e08b1705
MR
48262008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4827
4828 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4829
ad98e89f
EZ
48302008-11-15 Eli Zaretskii <eliz@gnu.org>
4831
4832 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4833 and bright_bg if noninteractive is non-zero.
4834
fb098a4b
CY
48352008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4836
4837 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4838 x_draw_glyph_string_background.
4839
4840 * w32term.c (x_draw_glyph_string): Likewise.
4841
ce952b6e
CY
48422008-11-15 Chong Yidong <cyd@stupidchicken.com>
4843
4844 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4845 the next glyph string once past the overhang width.
4846
4847 * nsterm.m (ns_draw_glyph_string): Likewise.
4848
4849 * w32term.c (x_draw_glyph_string): Likewise.
4850
26ea7079
CY
48512008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4852
4853 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4854 double file close.
4855
1c33c906
MR
48562008-11-14 Martin Rudalics <rudalics@gmx.at>
4857
4858 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4859 dedicated status of window before attempting to display another
4860 buffer in it.
4861
8fc29035
JB
48622008-11-14 Juanma Barranquero <lekktu@gmail.com>
4863
4864 * msdos.c (Fmsdos_long_file_names):
4865 (syms_of_msdos) <dos-unsupported-char-glyph>:
4866 * dosfns.c (Fint86): Fix typos in docstrings.
4867
55fb4286
EZ
48682008-11-14 Eli Zaretskii <eliz@gnu.org>
4869
4870 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4871
3fda0315
KY
48722008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4873
4874 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4875
7e849c17
CY
48762008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4877
4878 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4879
4880 * frame.h: Negative alpha means "don't touch".
4881
4882 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4883
4884 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4885
b9fd67bd
DN
48862008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4887
4888 * hftctl.c:
4889 * chpdef.h:
4890 * acldef.h: Remove files used only for systems no longer supported.
4891
4892 * Makefile.in: Fix .o alphabetical ordering.
4893 (hftctl.o): Remove dependency, file removed.
4894 (keymap.o, print.o): Depend on charset.h.
4895
d5998e03
KH
48962008-11-10 Kenichi Handa <handa@m17n.org>
4897
2ae37cf0 4898 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4899
be70e183
CY
49002008-11-08 Chong Yidong <cyd@stupidchicken.com>
4901
4902 * dired.c (file_name_completion): If completion_ignore_case is
4903 enabled, ignore case when checking completion-regexp-list.
4904
7cf94eac
EZ
49052008-11-08 Eli Zaretskii <eliz@gnu.org>
4906
4907 * vm-limit.c (get_lim_data): Fix last change.
4908
ee107a89
KH
49092008-11-08 Kenichi Handa <handa@m17n.org>
4910
4911 * character.c (Fget_byte): New function.
4912 (syms_of_character): Defsubr Fget_byte.
4913
5fd15622
CY
49142008-11-07 Chong Yidong <cyd@stupidchicken.com>
4915
4916 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4917 cursor position is valid after scrolling.
4918
13d62fad
JB
49192008-11-06 Juanma Barranquero <lekktu@gmail.com>
4920
4921 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4922
a1dd2936
GM
49232008-11-06 Glenn Morris <rgm@gnu.org>
4924
4925 * xterm.c (handle_one_xevent): Don't let popup menus cause
4926 mouse-autoselect-window related window switching. (Bug#1261)
4927
860cd236
CY
49282008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4929
4930 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4931
653a3150
AS
49322008-11-04 Andreas Schwab <schwab@suse.de>
4933
4934 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4935
870f5cac
CY
49362008-11-03 Chong Yidong <cyd@stupidchicken.com>
4937
4938 * xfns.c (Fx_wm_set_size_hint): New function.
4939
1e02f3cb
MR
49402008-11-03 Martin Rudalics <rudalics@gmx.at>
4941
4942 * textprop.c (Fprevious_single_char_property_change): Return 0
4943 when there's no change in a string. (Bug#1301)
4944
e630dfc6
MR
49452008-11-02 Martin Rudalics <rudalics@gmx.at>
4946
4947 * frame.c (do_switch_frame): New argument NORECORD passed to
4948 Fselect_window.
4949 (Fselect_frame): New argument NORECORD passed to
4950 do_switch_frame.
4951 (Fset_frame_selected_window): New argument NORECORD passed to
4952 Fselect_frame.
4953 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4954 in call of do_switch_frame.
4955 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4956 Handle NORECORD argument in call of Fselect_frame.
4957 * lisp.h (do_switch_frame, Fselect_frame)
4958 (Fset_frame_selected_window): Adjust declarations.
4959 * window.c (select_frame_norecord): New function.
4960 (run_window_configuration_change_hook): Use it and call
4961 Fselect_frame with NORECORD set.
4962 (Fselect_window): Pass NORECORD to Fselect_frame.
4963 (Fset_window_configuration): Handle NORECORD argument in call of
4964 do_switch_frame.
4965 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4966 Fset_frame_selected_window.
4967 * keyboard.c (command_loop_1): Handle NORECORD in call of
4968 Fselect_frame (currently ifdefd).
4969
9020b223
GM
49702008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4971
4972 * emacs.c (USAGE2): Untabify.
4973
793ffee8
SM
49742008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4975
4976 * composite.c (fill_gstring_header): Fix copy/paste typo.
4977
ab6d1131
MR
49782008-10-31 Martin Rudalics <rudalics@gmx.at>
4979
4980 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4981 (Fother_window): Rename argument and rewrite doc-string.
4982 (select_window_norecord): Fix return value. (Bug#1276)
4983
601a9cf1
JB
49842008-10-30 Juanma Barranquero <lekktu@gmail.com>
4985
4986 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4987 new frames overriding foreground for tooltips. Based on similar patch
4988 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4989
813b0652
CY
49902008-10-29 Chong Yidong <cyd@stupidchicken.com>
4991
4992 * emacs.c (Fdaemon_initialized): Initialize nfd.
4993
4414f58f
MR
49942008-10-29 Martin Rudalics <rudalics@gmx.at>
4995
4996 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4997 (Fwindow_text_height): Clarify doc-strings.
4998 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4999 doc-string of window-scroll-functions.
5000
ecdcaa09
RS
50012008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5002
5003 * category.c (syms_of_category): Fix typo in docstring.
5004
23fe745a
JB
50052008-10-28 Juanma Barranquero <lekktu@gmail.com>
5006
5007 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5008 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5009 Fix typos in docstrings.
5010
ff808935
DN
50112008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5012
5013 * emacs.c (daemon_pipe): Make non-static.
5014 (IS_DAEMON): Move definition ...
5015 * lisp.h (IS_DAEMON): ... here.
5016 (daemon_pipe): Declare.
5017 (is_daemon): Remove.
5018 * dispnew.c (init_display): Use IS_DAEMON.
5019
fc012771
SM
50202008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5021
5022 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5023 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5024
5025 * emacs.c (is_daemon): Remove.
5026 (main): Don't set is_daemon.
5027 (IS_DAEMON): New macro.
5028 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5029 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5030 parent exits.
5031 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5032
d8bdbe6f
CY
50332008-10-27 Chong Yidong <cyd@stupidchicken.com>
5034
d1a072bf
CY
5035 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5036 over-sized glyph, draw it with the default glyph width.
5037
e2e325aa
CY
5038 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5039 glyph, draw it with the default glyph width.
5040
5041 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5042 glyph, draw it with the default glyph width.
5043
d8bdbe6f
CY
5044 * xdisp.c (try_scrolling): When computing the distance from the
5045 scroll margin to PT, try moving some distance past the window
5046 bottom before giving up.
5047
7bfac547
MR
50482008-10-27 Martin Rudalics <rudalics@gmx.at>
5049
5050 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5051 (Fset_window_buffer): Explain in doc-string that a window can be
5052 "strongly" dedicated to its buffer.
5053
4ff029f6
DN
50542008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5055
5056 * emacs.c (daemon_name): New variable.
5057 (main): Deal with --daemon=SERVER_NAME.
5058 (Fdaemonp): Return a name if one was passed to --daemon.
5059
5790ef40
DN
50602008-10-26 Romain Francoise <romain@orebokech.com>
5061
f9bd0df9 5062 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5063 (main): Create a pipe before forking, make the parent exit only after
5064 the child has closed its end of the pipe. Move closing the
5065 descriptors ...
5066 (Fdaemon_initialized): ... here. New function.
5067
f5385255
SM
50682008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5069
4d632321
SM
5070 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5071 the previous unoptimized table.
5072
f5385255
SM
5073 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5074 the distinction between non-nil and non-t value of `dedicated'.
5075
6c56a0f3
CY
50762008-10-25 Chong Yidong <cyd@stupidchicken.com>
5077
5078 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5079 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5080
fec89261
MR
50812008-10-25 Martin Rudalics <rudalics@gmx.at>
5082
5083 * window.c (Fget_buffer_window, Fdelete_windows_on)
5084 (Freplace_buffer_in_windows): Make buffer argument optional and
5085 rename to buffer_or_name.
5086
34fcddd0
CY
50872008-10-24 Chong Yidong <cyd@stupidchicken.com>
5088
f5385255
SM
5089 * xdisp.c (handle_single_display_spec, handle_display_prop):
5090 Undo 2005-05-16 change.
34fcddd0
CY
5091 (handle_stop): Pop iterator if it's loaded with an empty string.
5092 (get_overlay_strings_1): Don't save iterator if it's loaded with
5093 an empty string (bug#1201).
5094
064766f2
KH
50952008-10-24 Kenichi Handa <handa@m17n.org>
5096
5097 * ftfont.c (ftfont_otf_features): Fix previous change.
5098 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5099 calling ftfont_otf_features.
5100
f9bd0df9 51012008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5102
5103 * font.c (font_match_p): Fix for the case that a vector of
5104 characters is in script-representative-chars.
5105
1dae9197
MA
51062008-10-24 Michael Albinus <michael.albinus@gmx.de>
5107
5108 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5109 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5110 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5111 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5112 macro. (Bug#1186).
5113
f9bd0df9 51142008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5115
5116 * s/sol2-10.h: New file.
5117
878a4584
JB
51182008-10-23 Juanma Barranquero <lekktu@gmail.com>
5119
5120 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5121 poor beast has survived 9+ years and the jump from xterm.c!).
5122
cd265ca6
MR
51232008-10-23 Martin Rudalics <rudalics@gmx.at>
5124
5125 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5126 Reword doc-string.
f5385255 5127 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5128
472a4dc9
JB
51292008-10-23 Juanma Barranquero <lekktu@gmail.com>
5130
5131 * character.c (syms_of_character) <script-representative-chars>:
5132 <unicode-category-table>: Doc fixes.
5133
159bd5a2
NF
51342008-10-23 Noah Friedman <friedman@splode.com>
5135
5136 * coding.c (make_conversion_work_buffer): Check that
5137 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5138 Fget_buffer_create.
5139
49f9c344
KH
51402008-10-23 Kenichi Handa <handa@m17n.org>
5141
5142 * font.c (font_add_log): Check the values of extra properties.
5143
12bb3111
MR
51442008-10-22 Martin Rudalics <rudalics@gmx.at>
5145
5146 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5147 Reword doc-string.
5148 (Fset_window_parameter): Use NILP.
5149 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5150 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5151
bbeb4e99
JB
51522008-10-22 Juanma Barranquero <lekktu@gmail.com>
5153
5154 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5155
51562008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5157
5158 * nsfns.m (ns_appkit_version): New function.
5159 (x-server-version): Use it.
5160 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5161 (x-server-vendor): Don't check_ns().
5162
5163 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5164
a9b555d3
JB
51652008-10-22 Juanma Barranquero <lekktu@gmail.com>
5166
5167 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5168 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5169
4626499f
KH
51702008-10-22 Kenichi Handa <handa@m17n.org>
5171
e3681952
KH
5172 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5173 scripts.
5174
4626499f
KH
5175 * category.c (word_boundary_p): Check scripts instead of charset.
5176 Handle nil value in word-separating-categories and
5177 word-combining-categories.
5178 (syms_of_category): Fix docstrings of word-separating-categories
5179 and word-combining-categories.
5180
1560f91a
EZ
51812008-10-21 Eli Zaretskii <eliz@gnu.org>
5182
5183 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5184 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5185
f4668441
MR
51862008-10-21 Martin Rudalics <rudalics@gmx.at>
5187
5188 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5189 Rename arg "buffer" to "buffer_or_name".
5190 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5191 it optional.
5192 (no_switch_window): Remove since the return value is not used.
a9b555d3 5193 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5194 Consider window as dedicated when Fwindow_dedicated_p returns a
5195 non-nil value.
5196 * lisp.h: Remove prototype for no_switch_window.
5197
fd75ddb2
JD
51982008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5199
5200 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5201 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5202
07295713
KH
52032008-10-21 Kenichi Handa <handa@m17n.org>
5204
5205 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5206 check Vlatin_extra_code_table.
5207
712adc82
EZ
52082008-10-20 Eli Zaretskii <eliz@gnu.org>
5209
5210 * fileio.c (Fset_file_modes): Doc fix.
5211
f549eb0b
MA
52122008-10-19 Michael Albinus <michael.albinus@gmx.de>
5213
5214 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5215 in arrays.
5216
aac0c6e3
MR
52172008-10-19 Martin Rudalics <rudalics@gmx.at>
5218
5219 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5220 Mention kill-buffer in doc-string.
5221 (Fset_window_buffer): Reinsert tem check removed in last commit.
5222 (Fenlarge_window, Fshrink_window): Have argument names and
5223 doc-string follow Elisp manual more closely.
5224
52252008-10-18 Eli Zaretskii <eliz@gnu.org>
5226
5227 * fileio.c (Fset_file_modes): Doc fix.
5228
52292008-10-18 Martin Rudalics <rudalics@gmx.at>
5230
5231 * window.c (Fwindow_width, Fset_window_start)
5232 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5233 (Fdelete_windows_on, Freplace_buffer_in_windows):
5234 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5235 (Fwindow_dedicated_p): Make window argument optional.
5236 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5237 (Fset_window_buffer): Respect any non-nil dedicated value for
5238 window. Rename "buffer" argument to "buffer_or_name".
5239
52402008-10-18 Ulrich Mueller <ulm@gentoo.org>
5241
5242 * m/sh3.h: New file, machine description for SuperH.
5243
52442008-10-17 Martin Rudalics <rudalics@gmx.at>
5245
5246 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5247
52482008-10-17 Kenichi Handa <handa@m17n.org>
5249
5250 * ftfont.c (ftfont_otf_features): Fix indexing
5251 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5252
52532008-10-16 Magnus Henoch <mange@freemail.hu>
5254
5255 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5256 (Fdbus_call_method_asynchronously): Ditto.
5257 This change makes C-h f display the argument list.
5258
52592008-10-16 Chong Yidong <cyd@stupidchicken.com>
5260
5261 * fileio.c (Fexpand_file_name): Doc fix.
5262
5263 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5264 of :foreground and :background equivalent to unspecified (20.x
5265 compatibility).
5266
52672008-10-15 Eli Zaretskii <eliz@gnu.org>
5268
5269 * buffer.c (syms_of_buffer): Doc fix.
5270
52712008-10-14 Kenichi Handa <handa@m17n.org>
5272
5273 * font.c (font_clear_prop): When clearing font width, clear the
5274 average width field too.
5275
52762008-10-12 Andreas Schwab <schwab@suse.de>
5277
5278 * ftfont.c (ftfont_shape_by_flt): Make static.
5279 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5280
5281 * font.c: Don't include <m17n-flt.h>.
5282
52832008-10-10 Eli Zaretskii <eliz@gnu.org>
5284
5285 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5286
52872008-10-09 Eli Zaretskii <eliz@gnu.org>
5288
5289 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5290 away code.
5291
52922008-10-09 Chong Yidong <cyd@stupidchicken.com>
5293
5294 * dispnew.c (update_text_area): Avoid looping due to large glyph
5295 overhangs (bug#1070).
5296
52972008-10-09 Kenichi Handa <handa@m17n.org>
5298
5299 * fontset.c (face_for_char): If face->fontset is negative, just
5300 return ascii_face.
5301
f5385255
SM
5302 * font.c (font_delete_unmatched): Fix previous change.
5303 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5304
53052008-10-09 Martin Rudalics <rudalics@gmx.at>
5306
5307 * frame.c (Fraise_frame): On text-only terminals select frame in
5308 order to make it visible. (Bug#1061)
5309
53102008-10-08 Chong Yidong <cyd@stupidchicken.com>
5311
5312 * fontset.c (fontset_find_font): Check frame validity.
5313
53142008-10-07 Chong Yidong <cyd@stupidchicken.com>
5315
a9b555d3 5316 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5317 (xg_display_close): Allow Emacs to close all displays (bug#985).
5318
53192008-10-06 Andreas Schwab <schwab@suse.de>
5320
f5385255 5321 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5322
53232008-10-06 Chong Yidong <cyd@stupidchicken.com>
5324
f5385255 5325 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5326
a9b555d3 5327 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5328
5329 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5330 during initialization.
5331
53322008-10-04 Eli Zaretskii <eliz@gnu.org>
5333
5334 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5335 whole thing on MSDOS frames as well as on a TTY.
5336
5337 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5338 well as for TTY.
5339 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5340 well as on a TTY.
5341
5342 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5343 as well as for TTY.
5344
5345 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5346
5347 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5348 MSDOS frames as well.
5349
53502008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5351
5352 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5353 correct arguments.
b71ac3dd 5354 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5355
53562008-10-03 Glenn Morris <rgm@gnu.org>
5357
5358 * emacs.c (USAGE1): Add --daemon.
5359
53602008-10-02 Eli Zaretskii <eliz@gnu.org>
5361
5362 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5363 100, so it's in percents as advertised.
5364
53652008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5366
5367 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5368 (ns_output.current_cursor, ns_output.desired_cursor)
5369 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5370 (FRAME_NEW_CURSOR_COLOR): Remove.
5371
5372 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5373 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5374 enumeration (HOLLOW_BOX_CURSOR, etc.).
5375
5376 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5377 (draw_window_cursor): Simplify code.
f5385255
SM
5378 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5379 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5380 updates manually.
a9b555d3
JB
5381 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5382 Use core Emacs cursor types.
aac0c6e3 5383
b8ff72fa 5384 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5385
53862008-10-02 Martin Rudalics <rudalics@gmx.at>
5387
5388 * process.c (Faccept_process_output): Fix doc-string.
5389
53902008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5391
5392 * gmalloc.c (__sbrk): Also define for uClibc.
5393
5394 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5395 for uClibc.
5396
53972008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5398
5399 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5400 styles.
5401 (nsfont_open): Reenable the cache.
5402
54032008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5404
5405 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5406 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5407
54082008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5409
5410 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5411 a suspended terminal.
5412
54132008-09-30 Michael Albinus <michael.albinus@gmx.de>
5414
5415 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5416
54172008-09-30 Eli Zaretskii <eliz@gnu.org>
5418
5419 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5420
54212008-09-30 Chong Yidong <cyd@stupidchicken.com>
5422
5423 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5424 in a continued line coincides with a line beginning.
5425
54262008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5427
5428 * nsfont.m (nsfont_trait_distance): Fix bug.
5429 (nsfont_list): Return a list rather than a vector (syncs with Handa
5430 changes of 2008-05-14).
5431 (nsfont_open): Improve logging.
5432
54332008-09-29 Andreas Schwab <schwab@suse.de>
5434
5435 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5436
54372008-09-28 Martin Rudalics <rudalics@gmx.at>
5438
5439 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5440 name as char-resolve-modifiers.
5441 Reported by: Markus Triska <markus.triska@gmx.at>
5442
54432008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5444
5445 * dispnew.c (init_display): Return earlier when running as a daemon.
5446
54472008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5448
5449 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5450
54512008-09-27 Eli Zaretskii <eliz@gnu.org>
5452
5453 * composite.c (Fcomposition_get_gstring)
5454 (Fcompose_region_internal, Fcompose_string_internal)
5455 (Ffind_composition_internal): Doc fix.
5456 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5457 (syms_of_composite) <auto-composition-function>: Doc fix.
5458 (syms_of_composite) <composition-function-table>: Doc fix.
5459
54602008-09-25 Chong Yidong <cyd@stupidchicken.com>
5461
5462 * search.c (wordify): New argument for lax word-ends.
5463 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5464
54652008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5466
5467 * lisp.h (is_daemon): Declare.
5468 * dispnew.c (init_display): Do not try to initialize the terminal
5469 when running as a daemon.
5470
54712008-09-22 Chong Yidong <cyd@stupidchicken.com>
5472
5473 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5474 x_display_pixel_height.
5475
54762008-09-22 Martin Rudalics <rudalics@gmx.at>
5477
5478 * undo.c (record_point): Don't call Fundo_boundary for first
5479 change. (Bug#731)
5480
54812008-09-22 Juanma Barranquero <lekktu@gmail.com>
5482
5483 * emacs.c (Fdaemonp): Doc fix.
5484
54852008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5486
5487 * emacs.c (main): Place #ifdef in the proper place.
5488
54892008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5490
5491 * emacs.c (standard_args): Add --daemon.
5492 (main): Disconnect from the terminal when --daemon is passed.
5493 (is_daemon): New variable.
5494 (Fdaemonp): New function.
5495 (syms_of_emacs): Defsubr it.
5496
54972008-09-20 Chong Yidong <cyd@stupidchicken.com>
5498
5499 * xdisp.c (get_next_display_element): Handle string display
5500 correctly when checking for the end of a box run.
5501
55022008-09-20 Glenn Morris <rgm@gnu.org>
5503
5504 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5505 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5506 (Frename_file): Avoid copying to trash if a rename involves
5507 a delete. (Bug#964).
5508
55092008-09-20 Eli Zaretskii <eliz@gnu.org>
5510
5511 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5512 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5513 frames as well as termcap frames.
5514 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5515 get_named_tty.
5516
55172008-09-19 Eli Zaretskii <eliz@gnu.org>
5518
5519 * process.c (procfs_system_process_attributes): Fix cmdline in
5520 case /proc/PID/cmdline is empty.
5521
5522 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5523 x_display_pixel_height.
5524
55252008-09-19 Juanma Barranquero <lekktu@gmail.com>
5526
5527 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5528
5529 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5530 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5531
55322008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5533
5534 * dispextern.h (struct it): Move line_wrap away from the middle of
5535 bitfields. Move voffset in struct iterator_stack_entry after the
5536 bitfields. Move tab_width near after another short.
5537
55382008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5539
5540 * frame.h (struct frame): Move alpha from the middle of bitfields.
5541
5542 * window.h (struct window): Move frozen_window_start_p after the
5543 rest of the bitfields to reduce padding.
5544
55452008-09-18 Chong Yidong <cyd@stupidchicken.com>
5546
5547 * xterm.h (x_display_info): Remove `height' and `width' members.
5548
5549 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5550
5551 * w32term.h (w32_display_info): Remove `height', `width',
5552 `height_in', and `width_in' members.
5553
b8ff72fa
SM
5554 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5555 New functions.
aac0c6e3
MR
5556 (x_calc_absolute_position): Use them.
5557 (x_term_init): Omit removed `height' and `width' members.
5558
b8ff72fa
SM
5559 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5560 New functions.
aac0c6e3
MR
5561 (w32_read_socket, x_calc_absolute_position): Use them.
5562 (w32_initialize_display_info, w32_term_init): Omit removed members
5563 of w32_display_info.
5564
b8ff72fa
SM
5565 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5566 New functions.
5567 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5568
b8ff72fa
SM
5569 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5570 New functions.
aac0c6e3
MR
5571 (x_calc_absolute_position): Use them.
5572 (x_term_init): Omit removed `height' and `width' members.
5573
5574 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5575 (compute_tip_xy):
5576 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5577 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5578 x_display_pixel_width.
5579
55802008-09-18 Kenichi Handa <handa@m17n.org>
5581
5582 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5583 (composition_compute_stop_pos): Fix handling of static composition.
5584 (Fcomposition_get_gstring): Check FROM and TO at first.
5585
55862008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5587
46e722a9 5588 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5589 mixup (YAILOM).
5590
55912008-09-17 Chong Yidong <cyd@stupidchicken.com>
5592
5593 * indent.c (Fvertical_motion): Use position reported by iterator
5594 instead of PT for determining screen motion (bug#943).
5595
55962008-09-17 Romain Francoise <romain@orebokech.com>
5597
5598 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5599
56002008-09-17 Kenichi Handa <handa@m17n.org>
5601
5602 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5603
5604 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5605 if necessary.
5606
56072008-09-16 Kenichi Handa <handa@m17n.org>
5608
5609 * coding.c (make_conversion_work_buffer): Avoid calling
5610 Fget_buffer_create if it is not necessary.
5611
56122008-09-15 Martin Rudalics <rudalics@gmx.at>
5613
5614 * window.c (Fselect_window): Don't update window_select_count and
5615 use_time when norecord is not nil.
5616
56172008-09-14 Kenichi Handa <handa@m17n.org>
5618
5619 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5620 specpdl_ptr.
5621
56222008-09-12 Kenichi Handa <handa@m17n.org>
5623
5624 * indent.c (scan_for_column): Don't handle automatic composition
5625 if the current buffer is not associated with a window.
5626
5627 * composite.c (composition_reseat_it): If the current buffer is
5628 not associated with a window, ignore the automatic composition.
5629 (find_automatic_composition): Likewise.
5630
56312008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5632
5633 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5634 (Fgpm_mouse_stop): Use it.
5635 * termhooks.h (close_gpm): Declare.
5636 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5637 connection if Gpm_GetEvent fails.
5638
5639 * window.c (set_window_buffer): Always preserve current-buffer.
5640
56412008-09-12 Glenn Morris <rgm@gnu.org>
5642
5643 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5644
56452008-09-11 Glenn Morris <rgm@gnu.org>
5646
5647 * charset.c (charset-map-path): Doc fix.
5648
56492008-09-10 Kenichi Handa <handa@m17n.org>
5650
5651 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5652
5653 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5654 compose a grapheme cluster with the preceding base glyph.
5655
5656 * composite.c (composition_compute_stop_pos): Fix previous change.
5657 Reset cmp_it->id to -1 at first.
5658
56592008-09-10 Glenn Morris <rgm@gnu.org>
5660
5661 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5662
56632008-09-09 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * keyboard.c (read_key_sequence): Reapply translation maps when
5666 switching keyboards.
5667
56682008-09-09 Kenichi Handa <handa@m17n.org>
5669
5670 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5671 characters.
5672
5673 * composite.c (FORWARD_CHAR): Fix calculation
5674 of (POSITION).pos_byte.
5675 (composition_compute_stop_pos): Limit the search of composition to
5676 at most 500 characters ahead. If we reach the limit or find a
5677 newline, set cmp_it->ch to -2 and return 0.
5678 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5679
56802008-09-08 Kenichi Handa <handa@m17n.org>
5681
5682 * indent.c (Fvertical_motion): Be sure to set
5683 it_overshoot_expected if it.cmp_it.id is non-negative.
5684
56852008-09-07 Andreas Schwab <schwab@suse.de>
5686
5687 * callproc.c (Fcall_process): Don't hold references to string data
5688 across garbage collection. Move initialisation of new_argv down
5689 to avoid compiler bug.
5690
56912008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5692
5693 * process.c (Fsystem_process_attributes): Doc fix.
5694
56952008-09-07 Chong Yidong <cyd@stupidchicken.com>
5696
5697 * callproc.c (Fcall_process): Canonicalize current directory name.
5698
5699 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5700 iterator advances to the next line if the current line ends in a
5701 continued tab.
5702
57032008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5704
5705 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5706 member to point to cmp_from.
5707
5708 * xdisp.c: Doc fix for references to gidx data member.
5709
57102008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5711
5712 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5713
57142008-09-07 Kenichi Handa <handa@m17n.org>
5715
5716 * composite.c (FORWARD_CHAR): Check STOP after
5717 incrementing (POSITION).pos.
5718
57192008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5720
5721 * process.c (Fsystem_process_attributes): Doc fix.
5722
57232008-09-06 Chong Yidong <cyd@stupidchicken.com>
5724
5725 * keyboard.c (Ftop_level): Doc fix.
5726
57272008-09-06 Eli Zaretskii <eliz@gnu.org>
5728
5729 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5730 minibuffer, don't let lower part of menu invade the echo area.
5731
5732 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5733 "char *q" to access menu text and advance through it. Revert the
5734 change that displayed ">" instead of ASCII character 0x10.
5735
57362008-09-05 Eli Zaretskii <eliz@gnu.org>
5737
5738 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5739 toggle boxes and radio buttons on MS-DOS as well.
5740
57412008-09-05 Kenichi Handa <handa@m17n.org>
5742
5743 * composite.c (autocmp_chars): Check lookback count.
5744 (composition_compute_stop_pos): Set cmp_it->lookback.
5745 (composition_reseat_it): Check lookback count.
5746 (struct position_record): New struct.
5747 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5748 (find_automatic_composition): New function.
5749 (composition_adjust_point): Use find_automatic_composition.
5750
5751 * dispextern.h (struct composition_it): New member lookback.
5752
57532008-09-02 Chong Yidong <cyd@stupidchicken.com>
5754
5755 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5756 if moving by a single line.
5757
57582008-09-02 Andreas Schwab <schwab@suse.de>
5759
5760 * xterm.c (x_delete_display): Fix merge error.
5761
5762 * fileio.c (Fexpand_file_name): Remove unused variables.
5763
57642008-09-02 Eli Zaretskii <eliz@gnu.org>
5765
5766 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5767 storage on all platforms, not just on DOS_NT.
5768
57692008-09-02 Jason Rumney <jasonr@gnu.org>
5770
b8ff72fa
SM
5771 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5772 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5773
57742008-09-01 Chong Yidong <cyd@stupidchicken.com>
5775
5776 * xfaces.c (Finternal_set_alternative_font_family_alist)
5777 (Finternal_set_alternative_font_registry_alist): Properly copy
5778 entire alist structure.
5779
57802008-09-01 Kenichi Handa <handa@m17n.org>
5781
d66c0241 5782 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5783 representative chars of the script is a vector.
d66c0241
JB
5784 (ftfont_list): Handle the case where the representative chars of
5785 the script is a vector.
aac0c6e3
MR
5786
5787 * character.c (syms_of_character): Docstring of
5788 script-representative-chars fixed.
5789
57902008-08-31 Eli Zaretskii <eliz@gnu.org>
5791
5792 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5793 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5794 the menu. Allocate larger buffer for `text', to account for
5795 possible ^C characters.
5796
57972008-08-31 Martin Rudalics <rudalics@gmx.at>
5798
5799 * xdisp.c (prepare_menu_bars): Don't call
5800 Vwindow_size_change_functions with arg Qt.
5801
58022008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5803
5804 * font.h (font_range):
5805 * fileio.c (report_file_error):
46e722a9
SM
5806 * composite.c (composition_update_it): Yet another int/Lisp_Object
5807 mixup (YAILOM).
aac0c6e3
MR
5808
58092008-08-30 Glenn Morris <rgm@gnu.org>
5810
5811 * data.c (Fmake_variable_frame_local): Doc fix.
5812
5813 * frame.c (Fmodify_frame_parameters): Doc fix.
5814
58152008-08-30 Eli Zaretskii <eliz@gnu.org>
5816
5817 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5818 needed by GetTokenInformation.
5819 (w32_system_process_attributes): Check return values of all system
5820 APIs.
5821
5822 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5823 only when the state changes.
5824 (IT_update_begin, IT_update_end): Add termscript trace.
5825
5826 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5827 clipboard is unavailable. Set dst to NULL if it doesn't point to
5828 malloc'ed data.
5829 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5830 passing random values to xfree.
5831
5832 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5833 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5834
58352008-08-29 Jason Rumney <jasonr@gnu.org>
5836
5837 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5838
58392008-08-29 Eli Zaretskii <eliz@gnu.org>
5840
5841 * composite.c (fill_gstring_body): Avoid compiler warnings.
5842
5843 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5844 LGLYPH_SET_CODE to avoid compiler warnings.
5845
2ae37cf0 5846 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5847
5848 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5849
5850 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5851 LGLYPH_SET_CODE.
5852
58532008-08-29 Kenichi Handa <handa@m17n.org>
5854
5855 * fileio.c (report_file_error): Don't downcase the first character
5856 of errstring if it is still unibyte.
5857
58582008-08-29 Kenichi Handa <handa@m17n.org>
5859
5860 These changes are to re-implement the automatic composition so
5861 that it doesn't use text properties.
5862
5863 * Makefile.in (ftfont.o): Depend on composite.h.
5864 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5865
5866 * character.h (Vunicode_category_table): Extern it.
5867
5868 * character.c (Vunicode_category_table): New variable.
5869 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5870
5871 * chartab.c (optimize_sub_char_table): Perform more greedy
5872 optimization.
5873
b8ff72fa
SM
5874 * composite.h (enum composition_method):
5875 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5876 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5877 (Vcomposition_function_table): Extern it.
5878 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5879 (composition_gstring_put_cache, composition_gstring_from_id)
5880 (composition_gstring_p, composition_gstring_width)
5881 (composition_compute_stop_pos, composition_reseat_it)
5882 (composition_update_it, composition_adjust_point): Extern them.
5883 (Fcomposition_get_gstring): EXFUN it.
5884
d66c0241 5885 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5886 (Vcomposition_function_table)
5887 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5888 (gstring_hash_table, gstring_work, gstring_work_headers):
5889 New variables.
aac0c6e3
MR
5890 (gstring_lookup_cache, composition_gstring_put_cache)
5891 (composition_gstring_from_id, composition_gstring_p)
5892 (composition_gstring_width, fill_gstring_header)
5893 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5894 (composition_reseat_it, composition_update_it)
b8ff72fa 5895 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5896 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5897 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5898 Defsubr compostion_get_gstring.
5899
5900 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5901 cmp_id.
5902 (struct glyph_string): Delete the member gidx. New members
5903 cmp_id, cmp_from, and cmp_to.
5904 (enum it_method): Delete GET_FROM_COMPOSITION.
5905 (struct composition_it): New struct.
5906 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5907 Delete c, len, cmp_id, cmp_len in u.comp.
5908
5909 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5910 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5911 (enum lglyph_indices): Likewise.
b8ff72fa 5912 (font_range): Adjust extern.
aac0c6e3
MR
5913 (font_fill_lglyph_metrics): Extern it.
5914
5915 * font.c (QCf): New variable.
5916 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5917 (font_prepare_composition): Delete this function.
5918 (font_range): Type and arguments changed.
5919 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5920 (font_fill_lglyph_metrics): New function.
b8ff72fa 5921 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5922 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5923 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5924 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5925
5926 * fontset.h (font_for_char): Extern it.
5927
5928 * fontset.c (font_for_char): New function.
5929
5930 * ftfont.c: Include composite.h.
5931 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5932 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5933
5934 * indent.c: Include composite.h and dispextern.h.
5935 (check_composition): Delete this function.
5936 (scan_for_column): Handle composition by
5937 composition_compute_stop_pos, composition_reseat_it, and
5938 composition_update_it.
5939 (compute_motion): Likewise.
5940 (Fvertical_motion): Fix checking of composition.
5941
5942 * keyboard.c (adjust_point_for_property): Check composition by
5943 composition_adjust_point.
5944
b8ff72fa 5945 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5946 struct glyph_string.
5947
b8ff72fa
SM
5948 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5949 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5950 struct glyph.
5951 (produce_composite_glyph): Likewise.
5952
b8ff72fa
SM
5953 * w32term.c (x_draw_composite_glyph_string_foreground):
5954 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5955 (x_draw_glyph_string): Likewise.
5956
5957 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5958 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5959
5960 * xdisp.c: Include font.h.
5961 (it_props): Delete the entry for Qauto_composed.
5962 (init_iterator): Initialize it->cmp_it.id to -1.
5963 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5964 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5965 (handle_auto_composed_prop): Delete it.
5966 (handle_composition_prop): Handle only static composition.
5967 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5968 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5969 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5970 (pop_it): Likewise.
5971 (get_next_element): Delete next_element_from_composition.
5972 (CHAR_COMPOSED_P): New macro.
5973 (get_next_display_element): For automatic composition, get a face
5974 from the font in the glyph-string.
5975 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5976 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5977 (next_element_from_string): Check if the character at the current
5978 position is composed by CHAR_COMPOSED_P.
5979 (next_element_from_buffer): Likewise.
d66c0241
JB
5980 (next_element_from_composition): Adjust for the change of struct it.
5981 Update it->cmp_it.
b8ff72fa
SM
5982 (dump_glyph): Adjust for the change of struct glyph.
5983 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5984 it and struct glyph. Don't handle automatic composition here.
5985 (fill_gstring_glyph_string): New function.
5986 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5987 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5988 (BUILD_GSTRING_GLYPH_STRING): New macro.
5989 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5990 automatic composition.
b8ff72fa 5991 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5992 struct glyph.
b8ff72fa 5993 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5994
b8ff72fa 5995 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5996 the change of struct glyph_string.
5997 (x_draw_glyph_string): Likewise.
5998
59992008-08-29 Glenn Morris <rgm@gnu.org>
6000
6001 * buffer.c (word-wrap): Doc fix.
6002 * xdisp.c (truncate-partial-width-windows): Doc fix.
6003 Increase default to 50.
6004
60052008-08-29 Chong Yidong <cyd@stupidchicken.com>
6006
6007 * xdisp.c (update_tool_bar_unwind): New function.
6008 (update_tool_bar): Temporarily set selected frame before building
6009 tool-bar items.
6010
60112008-08-28 Michael Albinus <michael.albinus@gmx.de>
6012
6013 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6014 snprintf, respectively.
6015 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6016
60172008-08-28 Chong Yidong <cyd@stupidchicken.com>
6018
6019 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6020 LDFLAGS to GNUstep CC invocation.
6021
60222008-08-27 Chong Yidong <cyd@stupidchicken.com>
6023
6024 * indent.c (Fvertical_motion): Revert last change. Handle the
6025 general case where we are moving forward, and PT spans multiple
6026 screen lines.
6027
6028 * eval.c (find_handler_clause): Temporarily increase
6029 max-lisp-eval-depth while printing the backtrace buffer, to
6030 guarantee that help-mode code can run.
6031
60322008-08-27 Eli Zaretskii <eliz@gnu.org>
6033
6034 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6035 colors under -rv.
6036 (IT_set_frame_parameters): Don't swap foreground and background
6037 colors if `(reverse . t)' is present in the frame properties.
6038 (internal_terminal_init): Call init_frame_faces only for the
6039 initial frame.
6040
60412008-08-27 Andreas Schwab <schwab@suse.de>
6042
6043 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6044
60452008-08-27 Andreas Schwab <schwab@suse.de>
6046
6047 * search.c (search_buffer): Set char_base to zero only at the end.
6048
60492008-08-27 Kenichi Handa <handa@m17n.org>
6050
b8ff72fa 6051 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6052
60532008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6054
6055 * xterm.c (x_term_init): Temporarily hide the partially
6056 initialized terminal while calling vendor-specific-keysyms.
6057
60582008-08-26 Eli Zaretskii <eliz@gnu.org>
6059
6060 * msdos.c (internal_terminal_init): Most initializations done only
6061 once, especially initial_screen_colors[] and termscript open.
6062
60632008-08-26 Chong Yidong <cyd@stupidchicken.com>
6064
6065 * eval.c (Fcondition_case): Doc fix.
6066
6067 * widgetprv.h (EmacsFramePart): Change font member to the new font
6068 struct.
6069
6070 * widget.c: Include character.h and font.h for XSETFONT.
6071 (setup_frame_gcs): Compute X font id from font struct, just once.
6072
60732008-08-26 Eli Zaretskii <eliz@gnu.org>
6074
6075 * term.c (get_named_tty): Fix last change.
6076
60772008-08-26 Chong Yidong <cyd@stupidchicken.com>
6078
6079 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6080 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6081
60822008-08-25 Eli Zaretskii <eliz@gnu.org>
6083
6084 * frame.c (do_switch_frame): Mark previously displayed frame as
6085 obscured for FRAME_MSDOS_P frames as well.
6086
60872008-08-24 Eli Zaretskii <eliz@gnu.org>
6088
6089 * frame.c (make_terminal_frame): Initialize f->terminal,
6090 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6091 Set the top frame to newly created frame.
6092 (Fmake_terminal_frame): Reuse the_only_display_info.
6093
6094 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6095 estimating available memory.
6096
b97439ce 60972008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6098
6099 * nsterm.m (ns_draw_window_cursor): Don't call
6100 NSDisableScreenUpdates and NSEnableScreenUpdates on
6101 non-NS_IMPL_COCOA systems.
6102
61032008-08-23 Andreas Schwab <schwab@suse.de>
6104
6105 * process.c (procfs_system_process_attributes): Fix use of
6106 uninitialized variables.
6107
61082008-08-23 Eli Zaretskii <eliz@gnu.org>
6109
6110 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6111
6112 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6113 calling tty-set-up-initial-frame-faces.
6114
b8ff72fa
SM
6115 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6116 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6117
6118 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6119 addition to output_termcap.
6120
6121 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6122
6123 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6124 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6125 highlight.
6126
6127 * process.c [!subprocesses]: Define QCname.
6128 (syms_of_process): Intern and staticpro it.
6129
6130 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6131 Adjust for changes in encoding/decoding routines.
6132 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6133 encode_coding and decode_coding.
6134
b8ff72fa 6135 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6136
6137 * dosfns.c: Include frame.h before termhooks.h.
6138 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6139 variable termscript.
6140
6141 * s/msdos.h (USER_FULL_NAME): Define.
6142 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6143
6144 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6145 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6146 pw->pw_gecos.
6147
6148 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6149 SELECTED_FRAME as additional (1st) argument.
6150 (tty_read_avail_input): Handle output_msdos_raw in
6151 addition to output_termcap.
6152
6153 * msdos.c: Include frame.h before termhooks.h.
6154 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6155 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6156 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6157 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6158 (IT_set_terminal_modes, IT_reset_terminal_modes)
6159 (IT_set_frame_parameters): Use tty->termscript instead of a global
6160 variable termscript.
6161 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6162 global variable terminal_coding. Don't refer to
6163 Vnonascii_translation_table.
6164 (internal_terminal_init): Set Vwindow_system in current_kboard.
6165 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6166 Announce date and time of session start, if termscript is open.
6167 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6168 term.c:init_tty). Open termscript only of not already open.
6169 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6170 here instead of dos_ttraw. Don't initialize display if this is an
6171 initial tty. Don't set FRAME_FONT.
6172 (Vwindow_system_version): Bump to 23.
6173 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6174 is available, set up mouse_position_hook.
6175 (dos_ttraw, IT_set_terminal_modes): If called with initial
6176 terminal, do nothing.
6177 (IT_set_frame_parameters): Handle the Qtty_type frame
6178 parameter by calling internal_terminal_init.
6179 (dos_set_window_size, show_mouse_face)
6180 (clear_mouse_face, IT_note_mode_line_highlight)
6181 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6182 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6183 (initialize_msdos_display): New function.
6184 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6185 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6186 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6187 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6188 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6189 (request_sigio, unrequest_sigio): Don't define, now defined on
6190 sysdep.c.
6191 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6192
6193 * term.c [MSDOS]: Include msdos.h.
6194 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6195 conditional to DOS_NT. Allow only one call to this function in a
6196 session. Don't allocate a new struct tty_display_info; instead,
6197 reuse the_only_display_info. Call get_tty_size to get screen
6198 dimensions. Call init_baud_rate to set bad_rate.
6199 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6200 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6201 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6202 (get_tty_terminal, get_named_tty, Ftty_type)
6203 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6204 output_termcap.
b8ff72fa
SM
6205 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6206 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6207 only when subprocesses are supported.
aac0c6e3
MR
6208
6209 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6210 f->output_data.x.
6211 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6212 terminal devices.
6213
5582fbc7 6214 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6215 x_output.
6216 (FRAME_FONT): Use output_data.tty.
6217 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6218 (struct x_display_info): Rename from display_info. Update all users in
6219 msdos.c.
aac0c6e3 6220 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6221 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6222 (dos_ttraw): Update prototype.
6223
6224 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6225 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6226
62272008-08-23 Jason Rumney <jasonr@gnu.org>
6228
6229 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6230 (fn_TIFFSetDirectory): New library function used.
6231 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6232 (tiff_load): Use :index to select among multiple images. Set count
6233 property when multiple images exist.
6234 (gif_format): Use :index, not :image.
6235
62362008-08-23 Chong Yidong <cyd@stupidchicken.com>
6237
6238 * xdisp.c (try_scrolling): Check INT_MAX instead of
6239 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6240 to obtain INT_MAX.
6241
62422008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6243
6244 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6245
62462008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6247
6248 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6249 GNUstep library location.
6250
62512008-08-21 Chong Yidong <cyd@stupidchicken.com>
6252
6253 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6254 before using it.
6255
6256 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6257
62582008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6259
6260 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6261 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6262 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6263 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6264 (EmacsApp-cursor_blink_handler): Remove declaration.
6265 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6266 match 01 Feb 2008 changes in xterm.c.
6267 (ns_read_socket): Add cast to avoid warning.
6268 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6269 GNUstep.
6270
62712008-08-20 Chong Yidong <cyd@stupidchicken.com>
6272
6273 * xselect.c (x_get_foreign_selection): Return nil if desired
6274 selection could not be obtained, instead of signalling an error.
6275
62762008-08-20 David Reitter <david.reitter@gmail.com>
6277
6278 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6279 * nsterm.m: Remove ns-specific code for cursor blinking.
6280 (ns_draw_window_cursor): Clear cursor properly rather than
6281 redrawing the area. Respect width of bar cursors.
6282 These changes enable the use of generic blink-cursor-mode and
6283 generic cursor types in NS and support smooth cursor movements (do
6284 not blink off after command).
6285 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6286 Nextstep, too.
6287
62882008-08-19 Kenichi Handa <handa@m17n.org>
6289
6290 * font.c (Vfont_log_deferred): New variable.
6291 (font_add_log): Check Vfont_log_deferred.
6292 (font_deferred_log): New function.
6293
6294 * font.h (font_deferred_log): Extern it.
6295
6296 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6297 for sorting.
6298 (face_for_char): Use deferred log.
6299
63002008-08-18 Kenichi Handa <handa@m17n.org>
6301
6302 * fontset.c (face_for_char): Add font log.
6303
6304 * font.c (font_add_log): Add the font properties :script, :lang,
6305 and :otf in the log.
6306
63072008-08-17 Chong Yidong <cyd@stupidchicken.com>
6308
6309 * xdisp.c: Remove dead code.
6310 (handle_invisible_prop, next_overlay_string): Defer call to
6311 setup_for_ellipsis.
6312 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6313
63142008-08-15 Chong Yidong <cyd@stupidchicken.com>
6315
6316 * xfaces.c (lookup_derived_face): Properly handle possible zero
6317 return value of get_lface_attributes.
6318 (merge_faces): Don't tell lookup_derived_face to signal an error
6319 if face is not found.
6320
6321 * dired.c (Fdirectory_files): Doc fix.
6322
6323 * process.c (make_process): Initialize kill_without_query struct
6324 member.
6325
63262008-08-15 Eli Zaretskii <eliz@gnu.org>
6327
6328 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6329 Alternative calculation of totphys for Visual Studio 6.
6330
6331 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6332
6333 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6334 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6335 All users changed.
6336 (stat): Only root directory passed to GetDriveType. Allow RAM
6337 disk as well as local fixed disk when w32-get-true-file-attributes
6338 is set to `local'.
6339 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6340 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6341 (w32_cached_id, w32_add_to_cache): New functions.
6342 (get_name_and_id): Look account names in the cache before calling
6343 lookup_account_sid.
6344 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6345 New initialization flags.
6346 (globals_of_w32): Initialize them to zero.
6347 (w32_system_process_attributes): Use w32_cached_id and
6348 w32_add_to_cache.
6349
63502008-08-14 Lawrence Mitchell <wence@gmx.li>
6351
6352 * lread.c (Fread_char, Fread_char_exclusive): If no character
6353 event is read before timeout is reached, return nil, rather than
6354 converting to a number.
6355
63562008-08-14 Chong Yidong <cyd@stupidchicken.com>
6357
6358 * fns.c (use_dialog_box): Doc fix.
6359
6360 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6361 on OS X.
6362
63632008-08-13 Chong Yidong <cyd@stupidchicken.com>
6364
6365 * frame.c (Qns_parse_geometry): New var.
6366 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6367
63682008-08-11 Chong Yidong <cyd@stupidchicken.com>
6369
6370 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6371 space character in calculating tabs.
6372
63732008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6374
6375 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6376
63772008-08-10 Glenn Morris <rgm@gnu.org>
6378
6379 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6380 silence gcc "limited range of data type" warnings in some
6381 make_fixnum_or_float calls.
6382
63832008-08-09 Eli Zaretskii <eliz@gnu.org>
6384
6385 * w32.c (w32_system_process_attributes): If the process does not
6386 exist, return nil.
6387
6388 * w32.c: Include thelp32.h, psapi.h and coding.h.
6389 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6390 declarations.
6391 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6392 (Process32Next_Proc): New typedefs.
6393 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6394 (g_b_init_process32_next, g_b_init_open_thread_token)
6395 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6396 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6397 (g_b_init_get_process_working_set_size)
6398 (g_b_init_global_memory_status_ex): New static variables.
6399 (globals_of_w32): Initialize them.
6400 (create_toolhelp32_snapshot, process32_first, process32_next)
6401 (open_thread_token, impersonate_self, revert_to_self)
6402 (get_process_memory_info, get_process_working_set_size)
6403 (global_memory_status, global_memory_status_ex): New wrapper
6404 functions.
6405 (w32_list_system_processes, w32_system_process_attributes)
6406 (enable_privilege, restore_privilege, ltime, process_times):
6407 New functions.
6408 (convert_time_raw): New function.
6409 (convert_time): Remove conversion of FILETIME into time in 100
6410 nsec units, call convert_time_raw instead.
6411
6412 * process.h (w32_list_system_processes, w32_system_process_attributes):
6413 Add prototypes.
6414 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6415 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6416 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6417 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6418
6419 * process.c (Fsystem_process_attributes): Doc fix.
6420
64212008-08-08 Chong Yidong <cyd@stupidchicken.com>
6422
6423 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6424 a continued multi-char glyph; if so, advance to the actual glyph.
6425
64262008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6427
6428 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6429
6430 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6431 (.m.o): Use it.
6432 * config.in: Regenerate.
6433
64342008-08-07 Chong Yidong <cyd@stupidchicken.com>
6435
6436 * xdisp.c (redisplay_window): Revert last change.
6437 (try_window): Check bottom scroll margin too.
6438
64392008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6440
6441 * config.in: Regenerate.
6442
6443 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6444 -list-load-path-shadows'.
6445 (nsgui.h): Reduce number of things depending on it.
6446
64472008-08-06 Chong Yidong <cyd@stupidchicken.com>
6448
6449 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6450 instead of window-end which does the wrong thing at eob.
6451 (try_cursor_movement): Minor optimization.
6452 (redisplay_window): If scroll margin is defined, don't assume
6453 window doesn't need scrolling.
6454
64552008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6456
6457 * config.in: Regenerate.
6458
6459 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6460 (mostlyclean): Don't delete *.d under NS.
6461
6462 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6463
64642008-08-06 Kenichi Handa <handa@m17n.org>
6465
6466 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6467
64682008-08-06 Andreas Schwab <schwab@suse.de>
6469
6470 * config.in: Regenerate.
6471
64722008-08-05 Chong Yidong <cyd@stupidchicken.com>
6473
6474 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6475 forcing a window start.
6476
6477 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6478 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6479
64802008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6481
6482 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6483 argument.
6484
64852008-08-05 Juanma Barranquero <lekktu@gmail.com>
6486
6487 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6488 <scroll-down-aggressively, before-change-functions>:
6489 <after-change-functions>: Reflow docstrings.
6490
64912008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6492 Ken Raeburn <raeburn@gnu.org>
6493
6494 Dock menu customization, based on a patch by Ken Raeburn, plus some
6495 other fixes.
6496 * nsmenu.m (dockMenu): New variable.
6497 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6498
6499 * nsterm.h (dockMenu): Declare.
6500
6501 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6502 (ns_term_init): Initialize dockMenu.
6503 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6504 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6505 left.
6506
6507 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6508
65092008-08-04 Chong Yidong <cyd@stupidchicken.com>
6510
6511 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6512
6513 * config.in: Regenerate.
6514
65152008-08-04 Seiji Zenitani <zenitani@mac.com>
6516
6517 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6518
65192008-08-04 Chong Yidong <cyd@stupidchicken.com>
6520
6521 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6522
65232008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6524
6525 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6526
6527 * keyboard.h: Comment an #endif.
6528
6529 * lisp.h (have_menus_p): Adjust comment.
6530
6531 * menu.c (find_and_return_menu_selection): Fix comparison with
6532 client_data.
6533
6534 * nsmenu.m (popup_activated_flag): New variable.
6535 (popup_activated): New function.
6536 (menu-or-popup-active-p): New exported lisp definition.
6537 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6538 when popup done.
6539 (ns_popup_dialog): Set popup_activated_flag.
6540
6541 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6542 version for GNUstep (handled by conditional typedef in nsterm.m).
6543 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6544 in rgb.txt).
6545
6546 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6547
6548 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6549
6550 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6551
6552 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6553 shortcircuit if popup_activated like GTK and X toolkit.
6554
6555 * m/inter386.h: Change DARWIN to DARWIN_OS.
6556
6557 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6558 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6559 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6560 comment on NO_SOCK_SIGIO.
6561
65622008-08-03 Chong Yidong <cyd@stupidchicken.com>
6563
6564 * nsterm.m (windowDidResize): Remove stopModal call.
6565
65662008-08-03 Andreas Schwab <schwab@suse.de>
6567
6568 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6569 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6570
65712008-08-02 Chong Yidong <cyd@stupidchicken.com>
6572
6573 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6574 Don't use uninitialized pointer variable when using getrlimit.
6575
65762008-08-02 Jason Rumney <jasonr@gnu.org>
6577
6578 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6579
65802008-08-02 Eli Zaretskii <eliz@gnu.org>
6581
6582 * alloc.c (NSTATICS): Bump to 0x640.
6583
6584 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6585
6586 * lisp.h: Add prototype for directory_files_internal.
6587
6588 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6589 New functions.
6590 (syms_of_process): Defsubr them. Add initializations for various
6591 Q* symbols used in procfs_system_process_attributes.
6592 (procfs_list_system_processes, procfs_system_process_attributes)
6593 [HAVE_PROCFS]: New functions.
6594 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6595 (procfs_get_total_memory): New functions.
6596
65972008-08-01 Juanma Barranquero <lekktu@gmail.com>
6598
6599 * xfaces.c (Fx_load_color_file): Fix previous change;
6600 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6601
66022008-08-01 Michael Albinus <michael.albinus@gmx.de>
6603
6604 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6605
66062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6607
6608 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6609
66102008-08-01 Chong Yidong <cyd@stupidchicken.com>
6611
6612 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6613
6614 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6615 define NSApplicationDelegateReplySuccess.
6616 (EmacsView -converstationIdentifier): Use long instead of
6617 NSInteger for GNUstep, since it doesn't have NSInteger.
6618
6619 * xmenu.c: Revert last change.
6620
6621 * keyboard.h: Fix last change.
6622
66232008-08-01 Juanma Barranquero <lekktu@gmail.com>
6624
6625 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6626 on Windows.
6627
66282008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6629
6630 Warning clearing and clean-up in NS port.
6631 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6632 Add prototypes.
6633 * nsgui.h (FACE_DEFAULT): Remove, unused.
6634 (XGCValues): Change colors to unsigned long.
6635 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6636 nsterm.m.
6637 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6638 (ns_list_fonts): Remove, unused.
6639 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6640 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6641 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6642 (nsfont_draw): Compare face colors to 0, not nil.
6643 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6644 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6645 (-addSubmenuWithTitle:): Use NSMenuItem class.
6646 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6647 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6648 (ns_clip_to_row): Make gc arg a BOOL.
6649 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6650 ns_clip_to_row() call.
6651 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6652 used). Cast FRAME_FONT assignments.
6653 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6654 (ns_string_to_lispmod): Change arg to const char.
6655 (ns_term_init): Use NSMenuItem class.
6656 (EmacsApp -openFile:): Move to different section of file.
6657 (EmacsApp -application:openFiles:): Don't return a value, call
6658 -replyToOpenOrPrint:.
6659 (EmacsView -keyDown:): Fix up cast.
6660 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6661 (EmacsView -menuDown:): Cast tag in call to
6662 find_and_call_menu_selection().
6663 (ns_list_fonts): Remove, unused.
6664 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6665 (ns_fontname_to_xlfd): Make static.
6666 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6667 Remove prototypes (now in keyboard.h).
6668 (next_menubar_widget_id): Remove, unused.
6669 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6670 Remove prototypes (now in keyboard.h).
6671 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6672
66732008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6674
6675 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6676 (floatfns.o): Depend on syssignal.h.
6677 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6678
6679 * systty.h: Fix previous change that removed BSD_TERMIOS.
6680 Add comments to #ifdefs.
6681
66822008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6683
6684 * w32fns.c (w32-load-color-file): Remove.
6685 (x-open-connection): Use renamed Fx_load_color_file.
6686 * xfaces.c (x-load-color-file): Add.
6687 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6688 Emacs.clr.
6689 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6690
66912008-07-31 Michael Albinus <michael.albinus@gmx.de>
6692
6693 * dbusbind.c (Fdbus_call_method_asynchronously)
6694 (Fdbus_method_error_internal): New defuns.
6695 (xd_read_message): Handle also reply messages.
6696 (Vdbus_registered_functions_table): Extend docstring.
6697
66982008-07-31 Juanma Barranquero <lekktu@gmail.com>
6699
6700 * keyboard.c (gobble_input): Fix previous change.
6701
67022008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6703
6704 * bitmaps/README:
6705 * xfns.c:
6706 * termcap.c:
6707 * term.c:
6708 * syswait.h:
6709 * systty.h:
6710 * systime.h:
6711 * syssignal.h:
6712 * sysdep.c:
6713 * process.h:
6714 * process.c:
6715 * print.c:
6716 * ndir.h:
6717 * lread.c:
6718 * keyboard.c:
6719 * getpagesize.h:
6720 * floatfns.c:
6721 * fileio.c:
6722 * emacs.c:
6723 * doc.c:
6724 * dispnew.c:
6725 * dired.c:
6726 * data.c:
6727 * callproc.c:
6728 * buffer.c:
6729 * README:
6730 * Makefile.in:
6731 * s/template.h:
6732 * s/msdos.h:
6733 * m/vax.h: Remove VMS support.
6734 * s/vms.h:
6735 * vlimit.h:
6736 * uaf.h:
6737 * temacs.opt:
6738 * param.h:
6739 * ioctl.h: Remove file.
6740
67412008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6742
6743 * s/ms-w32.h (MULTI_KBOARD): Remove.
6744 * xterm.c:
6745 * xselect.c:
6746 * xfns.c:
6747 * window.c:
6748 * w32term.c:
6749 * w32fns.c:
6750 * terminal.c:
6751 * termhooks.h:
6752 * term.c:
6753 * sysdep.c:
6754 * keyboard.h:
6755 * keyboard.c:
6756 * frame.h:
6757 * frame.c:
6758 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6759 * config.in: Regenerate.
6760
67612008-07-30 Jason Rumney <jasonr@gnu.org>
6762
6763 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6764
6765 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6766 (w32font_open_internal): Get unicode version of textmetrics.
6767 Don't enable or disable glyph indices here.
6768 (w32font_open): Disable use of glyph indices.
6769
6770 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6771
67722008-07-30 Chong Yidong <cyd@stupidchicken.com>
6773
6774 * minibuf.c (Vread_buffer_function): Doc fix.
6775
67762008-07-30 John Paul Wallington <jpw@pobox.com>
6777
6778 * minibuf.c (read_buffer_completion_ignore_case): New var.
6779 (Fread_buffer): Use it.
6780
67812008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6782
6783 * systty.h (sensemode): Remove empty #if. Remove reference to
6784 BSD_TERMIOS, unused.
6785
6786 * sysdep.c: Remove reference to DGUX.
6787 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6788
6789 * config.in: Regenerate.
6790
67912008-07-30 Jason Rumney <jasonr@gnu.org>
6792
6793 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6794
67952008-07-29 Jason Rumney <jasonr@gnu.org>
6796
6797 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6798 is populated.
6799 (uniscribe_encode_char): Always use uniscribe.
6800 Avoid using context if cache is populated.
6801
68022008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6803
6804 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6805 open menu.
6806
6807 * gtkutil.c (menu_nav_ended): Remove.
6808 (create_menus): Remove signal connect for menu_nav_ended.
6809
68102008-07-28 Chong Yidong <cyd@stupidchicken.com>
6811
6812 * xdisp.c (redisplay_window): Check return value of
6813 compute_window_start_on_continuation_line before forcing a window
6814 start.
6815
68162008-07-28 Jason Rumney <jasonr@gnu.org>
6817
6818 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6819
6820 * w32term.c (w32_enable_unicode_output, cleartype_active):
6821 Remove obsolete display options.
6822 (x_draw_glyph_string_background): Don't use old cleartype_active
6823 workaround.
6824 (w32_initialize): Remove cleartype_active initialization.
6825 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6826
68272008-07-28 Andreas Schwab <schwab@suse.de>
6828
6829 * lisp.h (init_weak_hash_tables, syms_of_font)
6830 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6831 (remove_hash_entry): Don't declare.
6832 * eval.c (maybe_call_debugger): Make static and move before use.
6833 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6834 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6835 * xterm.h (x_set_frame_alpha): Declare.
6836
68372008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6838
6839 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6840 (create_menus): Connect selection-done to menu_nav_ended.
6841
68422008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6843
6844 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6845 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6846 parameter with read of 'alpha' one.
6847 (Qns_frame_parameter): Remove.
5582fbc7 6848 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6849 (next-selection-coding-system, Vselection_coding_system)
6850 (Vnext_selection_coding_system): Drop.
6851
68522008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6853
6854 * nsfns.m (do-applescript, do_applescript): Rename to
6855 ns-do-applescript, ns_do_applescript, and move within file.
6856
68572008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6858
6859 Remove support for Mac Carbon.
6860 * mactoolbox.c:
6861 * macterm.h:
6862 * macterm.c:
6863 * macselect.c:
6864 * macmenu.c:
6865 * macgui.h:
6866 * macfns.c:
6867 * mac.c: Remove file.
6868 * s/darwin.h:
6869 * m/intel386.h:
6870 * xfaces.c:
6871 * xdisp.c:
6872 * window.c:
6873 * tparam.c:
6874 * termhooks.h:
6875 * termcap.c:
6876 * term.c:
6877 * syssignal.h:
6878 * sysselect.h:
6879 * sysdep.c:
6880 * process.c:
6881 * lread.c:
6882 * lisp.h:
6883 * keyboard.c:
6884 * image.c:
6885 * fringe.c:
6886 * frame.h:
6887 * frame.c:
6888 * fontset.c:
6889 * font.h:
6890 * font.c:
6891 * fns.c:
6892 * fileio.c:
6893 * emacs.c:
6894 * dispnew.c:
6895 * dispextern.h:
6896 * config.in:
6897 * atimer.c:
2ae37cf0 6898 * Makefile.in: Remove code for Carbon.
aac0c6e3 6899
f0131492 69002008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6901
6902 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6903
69042008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6905
6906 * macterm.h (kCGBitmapByteOrder32Host): New define for
6907 non-universal SDKs.
6908
6909 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6910 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6911
6912 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6913 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6914
69152008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6916
6917 * w32inevt.c: Include dispextern.h.
6918
69192008-07-26 Andreas Schwab <schwab@suse.de>
6920
6921 * print.c (print_object): Fix off-by-one in last change.
6922
69232008-07-25 Juanma Barranquero <lekktu@gmail.com>
6924
6925 * term.c (syms_of_term): Don't initialize default_orig_pair,
6926 default_set_foreground and default_set_background on Windows.
6927
69282008-07-25 Jason Rumney <jasonr@gnu.org>
6929
6930 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6931 ScriptItemize. Clean up return value checking. Remove unused
6932 variables.
6933 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6934 shaping engine.
6935
6936 * w32font.c (w32font_has_char): Handle the case where we can't
6937 determine the script for a character.
6938
69392008-07-25 Chong Yidong <cyd@stupidchicken.com>
6940
6941 * term.c (syms_of_term): Initialize default_orig_pair,
6942 default_set_foreground, and default_set_background.
6943
6944 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6945 clash (bug#86).
6946 (getloadavg): Callers changed.
6947
6948 * image.c (svg_load_image): Fix last change.
6949 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6950 image size is valid. Use g_object_unref instead of deprecated
6951 rsvg_handle_free to free rsvg handle.
6952 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6953
69542008-07-25 Jason Rumney <jasonr@gnu.org>
6955
6956 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6957 surrogates before looking up glyph index.
6958 (w32font_text_extents): Encode as surrogates if falling back to
6959 functions that need UTF-16 wide chars.
6960
6961 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6962 BMP as surrogates before looking up glyph index.
6963
69642008-07-25 Chong Yidong <cyd@stupidchicken.com>
6965
6966 * image.c (svg_load_image): Check for failure in return value of
6967 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6968
69692008-07-25 Jason Rumney <jasonr@gnu.org>
6970
6971 * w32font.c (Fx_select_font): Reverse sense of second arg.
6972
69732008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6974
6975 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6976 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6977
6978 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6979 (PURESIZE): Use it.
6980
69812008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6982
6983 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6984 * m/alpha.h (TEXT_END):
6985 * m/ibmrs6000.h (TEXT_END):
6986 * m/macppc.h (TEXT_END):
6987 * s/darwin.h (TEXT_END):
6988 * s/msdos.h (TEXT_END): Remove, unused.
6989 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6990 * s/cygwin.h: Remove comment.
6991
6992 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6993 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6994 * m/intel386.h (DOT_GLOBAL_START):
6995 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6996 (USG): Remove, file not used on USG platforms.
6997
6998 * Makefile.in (HAVE_X11): Remove empty #else.
6999
70002008-07-24 Andreas Schwab <schwab@suse.de>
7001
7002 * fileio.c (Finsert_file_contents): Properly adjust undo list
7003 after format conversion.
7004
70052008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7006
7007 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7008 (menu_nav_ended): Remove.
7009 (create_menus): Remove signal connect for menu_nav_ended.
7010 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7011 create_menus.
7012 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7013
70142008-07-23 Jason Rumney <jasonr@gnu.org>
7015
7016 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7017 with opened font.
7018 (w32font_open): Set font type to gdi.
7019
7020 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7021
70222008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7023
7024 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7025 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7026 defines it.
7027 * unexec.c (ADDR_CORRECT): Define unconditionally.
7028
7029 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7030
7031 * unexec.c: Remove code depending on !COFF and USG, the file is
7032 not used for such systems.
7033
7034 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7035 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7036 (LD_SWITCH_SYSTEM_1): Remove, update users.
7037
7038 * s/darwin.h (DATA_END):
7039 * m/intel386.h (DATA_END):
7040 * m/ibmrs6000.h (DATA_END):
7041 * m/alpha.h (DATA_END): Remove, unused.
7042
7043 * config.in: Regenerate.
7044 * s/ms-w32.h (subprocesses): Define unconditionally.
7045 * s/template.h (subprocesses): Update comment.
7046 * s/vms.h (subprocesses):
7047 * s/usg5-4.h (subprocesses):
7048 * s/hpux10-20.h (subprocesses):
7049 * s/gnu-linux.h (subprocesses):
7050 * s/cygwin.h (subprocesses):
7051 * s/bsd-common.h (subprocesses):
7052 * s/aix4-2.h (subprocesses):
7053 * s/darwin.h (subprocesses): Do not define, defined by default now.
7054
7055 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7056 Remove all references.
7057 (temacs): Add GNUstep specific ld flags.
7058
7059 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7060 similarly to what X does.
7061
70622008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7063
7064 * nsfns.m (x-list-fonts): Remove.
7065 (syms_of_nsfns): Drop the x-list-fonts declaration.
7066 * nsterm.m: Get rid of remaining "//" comments.
7067
70682008-07-22 Chong Yidong <cyd@stupidchicken.com>
7069
7070 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7071
7072 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7073 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7074 (Fns_own_selection_internal, Fx_disown_selection_internal)
7075 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7076
7077 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7078 ... */' style of docstrings. Doc fixes.
7079
70802008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7081
7082 * terminfo.c (UP, BC, PC): Undo previous change.
7083
7084 * nsfns.m: Rename ns prefixed functions/variables to the
7085 corresponding x versions. Update references.
7086
70872008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7088
7089 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7090
70912008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7092
7093 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7094 Remove forwarding functions.
7095 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7096 non-static.
7097 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7098 non-static.
7099 (ns_frame_parm_handlers): Use the new names.
7100 (syms_of_nsfns): Move to the end of file.
7101
7102 * nsterm.m (syms_of_nsterm): Move to the end of file.
7103
7104 * dispnew.c (init_display): Remove code for X10.
7105
71062008-07-22 Jason Rumney <jasonr@gnu.org>
7107
7108 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7109 bare drive.
7110
71112008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7112
7113 * nsterm.m (syms_of_nsterm): Remove debugging println.
7114
71152008-07-22 David Reitter <david.reitter@gmail.com>
7116
7117 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7118 Carbon implementation of the same functionality: execute arbitrary
7119 AppleScript code.
7120
71212008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7122
7123 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7124 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7125 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7126 (Fx_display_mm_height, Fx_display_mm_width)
7127 (Fx_display_backing_store, Fx_display_visual_class)
7128 (Fx_display_save_under, Fx_open_connection)
7129 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7130 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7131 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7132 (Fx_display_pixel_width, Fx_display_pixel_height)
7133 (Fx_display_usable_bounds, Fx_display_planes)
7134 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7135 ... */' style of docstrings.
7136
71372008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7138
7139 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7140 on this platform.
7141 (mips):
7142 * m/iris4d.h (mips): Do not define.
7143 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7144
7145 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7146
7147 * image.c:
7148 * nsfns.m:
7149 * nsselect.m:
7150 * nsterm.h:
7151 * nsterm.m: Rename ns prefixed functions/variables to the
7152 corresponding x versions. Update references.
7153
7154 * m/ibms390x.h (NO_REMAP): Do not undefine.
7155
7156 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7157
71582008-07-21 Chong Yidong <cyd@stupidchicken.com>
7159
7160 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7161 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7162 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7163 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7164 (Fns_display_mm_height, Fns_display_mm_width)
7165 (Fns_display_backing_store, Fns_display_visual_class)
7166 (Fns_display_save_under, Fns_open_connection)
7167 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7168 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7169 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7170 (Fns_display_pixel_width, Fns_display_pixel_height)
7171 (Fns_display_usable_bounds, Fx_display_planes)
7172 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7173
71742008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7175
7176 * print.c (print_object): Check print_depth before searching for
7177 circularities.
7178
71792008-07-21 Michael Albinus <michael.albinus@gmx.de>
7180
7181 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7182 only sprintf.
7183
71842008-07-21 Kenichi Handa <handa@m17n.org>
7185
7186 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7187
71882008-07-20 Andreas Schwab <schwab@suse.de>
7189
7190 * syntax.c (find_start_pos, find_start_value)
7191 (find_start_value_byte, find_start_begv, find_defun_start)
7192 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7193
71942008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7195
7196 * s/sol2-3.h: Insert contents of s/sol2.h.
7197 (LD_SWITCH_SYSTEM): Remove redundant definition.
7198 * s/sol2.h: Remove, unused.
7199
72002008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7201
7202 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7203
72042008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7205
7206 * Makefile.in (ns_appdir): Fix typo in find command.
7207
72082008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7209
7210 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7211
7212 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7213 added not supported anymore.
7214
7215 * s/usg5-4-2.h (LIBS_SYSTEM):
7216 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7217
7218 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7219 * s/lynxos.h (GETPGRP_NO_ARG):
7220 * s/hpux10-20.h (NO_SIOCTL_H):
7221 * s/gnu.h (GETPGRP_NO_ARG):
7222 * s/gnu-linux.h (NO_SIOCTL_H):
7223 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7224 * s/cygwin.h (GETPGRP_NO_ARG):
7225 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7226 (C_DEBUG_SWITCH): Remove duplicate definition.
7227
7228 * m/ibms390.h: Remove boilerplate comments.
7229
7230 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7231
7232 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7233 (wait_reading_process_output): Remove code for SunOS, platform not
7234 supported anymore. Use SOLARIS2 instead of sun.
7235
72362008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7237
7238 * font.c (font_open_by_name): Under NS, default lface height to zero.
7239 (font_open_for_lface): Under NS, set size based on frame fontsize.
7240 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7241 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7242
72432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7244
7245 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7246 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7247 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7248 YES/NO.
7249 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7250 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7251 * Makefile.in (clean): Clear out build destination dir.
7252
72532008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7254
7255 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7256 xterm, xselect.
7257 * lisp.h: Remove declaration of hash_remove.
7258 * nsgui.h: Remove redefinitions of hash_remove.
7259 * fns.c (hash_remove): Rename to hash_remove_from_table.
7260
72612008-07-19 Seiji Zenitani <zenitani@mac.com>
7262
7263 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7264 strdup() the family UTF8String before modifying it.
7265
72662008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7267
7268 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7269 NS_FACE_BACKGROUND with 0 instead of nil.
7270 * nsfont.m (nsfont_draw): Same.
7271
72722008-07-19 Chong Yidong <cyd@stupidchicken.com>
7273
7274 * nsfns.m (ns_set_background_color): Fix crash.
7275
72762008-07-18 Chong Yidong <cyd@stupidchicken.com>
7277
7278 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7279
72802008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7281
7282 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7283
72842008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7285
7286 * gtkutil.c: Include <config.h> instead of "config.h".
7287
7288 * lisp.h (Foverlay_buffer): Add EXFUN.
7289
7290 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7291 child process to complete child_setup. Undo 2005-09-21 change.
7292
7293 * s/darwin.h: Mention setsid after vfork.
7294
72952008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7296
7297 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7298 Depend on macgui.h.
7299
7300 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7301 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7302
7303 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7304 and f19.
7305 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7306
7307 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7308 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7309 Remove enumerators.
7310
7311 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7312 Check if FACE_FROM_ID returns NULL.
7313
73142008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7315
7316 * w32inevt.c (change_frame_size): Remove extern declaration.
7317 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7318 change_frame_size.
7319
73202008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7321
7322 * getloadavg.c: Revert last change (2008-07-15).
7323
73242008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7325
7326 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7327 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7328 from configure.
7329
73302008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7331
7332 * s/sol2.h:
7333 * s/sol2-4.h: Reorganize conditionals.
7334
7335 * ecrt0.c: Remove code depending on m68000, not used anymore.
7336
7337 * fns.c (hash_remove): Make static.
7338 * lisp.h (hash_remove): Don't prototype.
7339
7340 * m/ibmrs6000.h:
7341 * m/ibms390x.h:
7342 * m/macppc.h: Remove boilerplate comments.
7343
7344 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7345 Solaris, which does not need them.
7346
7347 * m/vax.h: Remove comments about unsupported systems.
7348
7349 * s/darwin.h: Reorganize ifdefs.
7350
73512008-07-17 Andreas Schwab <schwab@suse.de>
7352
7353 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7354
73552008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7356
7357 Use SDATA. Follow coding convention of placing operators at
7358 beginning of next line rather than end of previous line, and placing
7359 spaces around infix operators.
7360
7361 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7362 in case it was defined already.
7363 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7364 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7365 ns_default.
7366 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7367 Lisp_Objects.
7368 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7369 (ns_defined_color, ns_color_to_lisp): Declare.
7370 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7371 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7372 it's accepted even with USE_LISP_UNION_TYPE.
7373 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7374 (update_frame_tool_bar): Remove apparently obsolete tests for
7375 non-integerness of f->tool_bar_lines.
7376 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7377 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7378 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7379 (nsfont_open): Don't confuse NULL for Qnil.
7380 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7381 * menu.h (find_and_call_menu_selection):
7382 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7383 (find_and_return_menu_selection): Always return something.
7384 * frame.h: Include dispextern.h for Display_Info.
7385 (display_x_get_resource): Declare.
7386
73872008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7388
7389 * syntax.c: Remove stdio.h include accidentally introduced in
7390 Emacs.app commit.
7391 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7392 NS_IMPL_COCOA.
7393 * keyboard.c (handle_async_input, input_available_signal): Remove
7394 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7395
73962008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7397
7398 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7399 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7400 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7401 Use SDATA.
7402
7403 * keymap.c: Remove all NS-specific code.
7404 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7405 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7406 where_is_preferred_modifier, return a different value depending on how
7407 preferred is the binding.
7408 (where_is_internal): Adjust accordingly.
7409 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7410 Adjust to new preferred_sequence_p.
7411 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7412 * keyboard.c (parse_solitary_modifier): Not static any more.
7413 * keyboard.h (parse_solitary_modifier): Declare.
7414
74152008-07-16 Andreas Schwab <schwab@suse.de>
7416
7417 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7418 of easymenu.
7419
74202008-07-16 Chong Yidong <cyd@stupidchicken.com>
7421
7422 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7423 that we don't move off the line.
7424
74252008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7426
7427 * keyboard.c (Qsuper): Remove.
7428 (parse_menu_item): Don't call where_is_internal specially for NS.
7429
74302008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7431
7432 * s/gnu-linux.h: Remove boilerplate comments.
7433
7434 * m/alpha.h (__ELF__): Consolidate conditions.
7435
7436 * m/m68k.h (linux): Use GNU_LINUX instead.
7437 Remove boilerplate comments.
7438
7439 * m/intel386.h: Undo refactoring from previous change.
7440 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7441 too, remove dead code.
7442 (linux): Use GNU_LINUX instead.
7443
74442008-07-16 Jason Rumney <jasonr@gnu.org>
7445
7446 * w32gui.h: Repeat 26 June changes lost by last change.
7447
74482008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7449
7450 * systty.h: Remove code for Aix on 386, unsupported platform.
7451
7452 * s/ms-w32.h: Remove boilerplate comments.
7453 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7454
7455 * s/gnu-linux.h (TERM): Remove support.
7456 (HAVE_SYSVIPC): Remove, unused.
7457 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7458 for this system.
7459
7460 * process.c: Remove support for IRIS, unused.
7461 Remove support for TERM, not relevant anymore.
7462
7463 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7464 used with the definition.
7465
7466 * s/aix4-2.h (static): Do not undef.
7467
7468 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7469 only used on Aix.
7470 (HAVE_SYSVIPC): Remove, unused.
7471
7472 * m/hp800.h (CANNOT_DUMP): Do not undef.
7473
7474 * m/alpha.h: Fix comment.
7475
7476 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7477 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7478 used by this configuration.
7479 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7480 * unexec.c: Remove code depending on HPUX and
7481 USG_SHARED_LIBRARIES, not used with this file. Remove code
7482 depending on IRIS, unused. Remove if 0-ed code.
7483
7484 * s/template.h: Remove comments about static.
7485
7486 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7487 Remove if 0-ed code.
7488 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7489 were the same as the default.
7490 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7491 Remove boilerplate comments.
7492 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7493 (HAVE_SYSVIPC): Remove, unused.
7494 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7495
7496 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7497 Remove boilerplate comments.
7498 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7499 Remove boilerplate comments.
7500 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7501 Remove boilerplate comments.
7502 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7503
7504 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7505 USG systems which do not use DATA_SEG_BITS.
7506 Refactor code. Remove boilerplate comments.
7507
7508 * m/ibms390.h:
7509 * m/m68k.h:
7510 * s/bsd-common.h:
7511 * s/cygwin.h:
7512 * s/darwin.h:
7513 * s/freebsd.h:
7514 * s/gnu.h:
7515 * s/msdos.h: Remove boilerplate comments.
7516
7517 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7518 do not use this file.
aac0c6e3
MR
7519 (IRIS_4D): Remove, unused.
7520
7521 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7522 do not use this file.
aac0c6e3
MR
7523 (SIGN_EXTEND_CHAR):
7524 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7525 * unexmips.c: Remove file, unused.
7526
7527 * editfns.c (Fuser_full_name): Replace the only use of
7528 USER_FULL_NAME with its value.
7529 * config.in: Regenerate.
7530
75312008-07-16 David Reitter <david.reitter@gmail.com>
7532
7533 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7534 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7535
75362008-07-16 Glenn Morris <rgm@gnu.org>
7537
7538 * emacs.c (system-type): Doc fix.
7539
75402008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7541
7542 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7543 If the cache doesn't work, let's fix it, rather than work around it.
7544
75452008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7546
7547 * Makefile.in: Correct additions for nsfont.o in last commit.
7548 * nsfont.m: New file (forgot last commit).
7549
75502008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7551
7552 * callproc.c (set_initial_environment): Initialize
7553 Vprocess_environment under CANNOT_DUMP (fixes crash when
7554 batch-compiling for bootstrap).
7555
75562008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7557 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7558
7559 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7560 fix crash due to different init order.
7561
75622008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7563
7564 Changes and additions for NeXTstep windowing system (Cocoa and
7565 GNUstep) support.
7566
7567 * Makefile.in:
7568 * config.in: Support defines and build commands for NS port.
7569 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7570 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7571 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7572 windowing.
7573 (struct face): Add synth_ital field.
7574 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7575 (init_display): Initialize Vinitial_window_system to "ns" when so
7576 compiled.
7577 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7578 (display_arg): Use under NS.
7579 (main): Under NS, allocate autorelease pool and handle command line
7580 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7581 (standard_args): Add NS-specific args.
7582 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7583 * font.c (DEFAULT_ENCODING): New variable.
7584 (font_find_for_lface): Use it.
7585 (syms_of_font): Load syms_of_nsfont under NS.
7586 * font.h: Declare nsfont_driver when compiled under NS.
7587 * fontset.c: When compiling under NS, include nsterm.h.
7588 (fontset_from_font): Autoconstruct fontset under NS.
7589 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7590 symbol, document and use it.
7591 (do_switch_frame): When for_deletion under Cocoa, add
7592 Fraise_frame(Qnil).
7593 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7594 (x_get_arg): Allow "yes" and "no" as boolean values.
7595 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7596 Qright under Cocoa.
7597 (focus-follows-mouse): Default to 0 under NS.
7598 * frame.h (enum output_method): Add output_ns.
7599 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7600 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7601 (FRAME_WINDOW_P): NS-specific definition.
7602 * fringe.c (max_used_fringe_bitmap): Make public.
7603 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7604 (getloadavg): Use NeXT code under descendant OS's.
7605 * image.c (includes and header section, x_create_bitmap_from_data)
7606 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7607 (image_background_transparent, x_clear_image_1)
7608 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7609 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7610 (x_to_xcolors, x_from_xcolors, x_disable_image)
7611 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7612 other GUIs, including XPM support using code originally written for
7613 Carbon GUI.
7614 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7615 using NS API.
7616 (image_ascent): Use font metrics macros instead of direct struct field
7617 access.
7618 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7619 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7620 Also, handle NS as GTK for menu bar purposes.
7621 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7622 toolkit where they differ.
7623 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7624 use cachelist, still needed under NS.
7625 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7626 (struct widget_value): Define it here for menu.c.
7627 * keymap.c (includes): Include modifier internals.
7628 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7629 NS.
7630 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7631 support for preferring sequences using certain modifiers, specified by
7632 the FIRSTONLY argument.
7633 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7634 under NS GNUstep implementation.
7635 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7636 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7637 * menu.c: Include nsterm.h under NS.
7638 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7639 (free_menubar_widget_tree_value, update_submenu_strings)
7640 (find_and_call_menu_selection): Treat NS as X and NT.
7641 (find_and_return_menu_selection): New function, used for popup menus.
7642 * nsgui.h:
7643 * nsterm.h:
7644 * nsfns.m:
7645 * nsimage.m:
7646 * nsmenu.m:
7647 * nsselect.m:
7648 * nsterm.m: New files.
7649 * process.c (wait_reading_process_output): Under NS, call ns_select()
7650 instead of plain select().
7651 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7652 beginning of buffer.
7653 * sysselect.h (init_process): Rename when compiling under Cocoa to
7654 avoid name conflict.
7655 * termhooks.h (display_info): Add ns_display_info to union.
7656 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7657 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7658 COCOA environment.
7659 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7660 unexec() signature. (Note, this will dump, but the resulting file
7661 crashes; unexosx is used instead; keeping around for reference and
7662 possible aid in getting dump working under GNUstep.)
7663 * w32gui.h (button_type, widget_value): Remove definitions (now in
7664 keyboard.h).
7665 * window.c: Include nsterm.h when compiling under NS.
7666 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7667 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7668 other GUI windowing systems.
7669 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7670 GTK.
7671 (x_consider_frame_title): Under NS, set icon type and frame
7672 modified-state indicator; use ns_set_name_as_filename() when using
7673 formatted title.
7674 (update_window_cursor): Make public when compiling under NS.
7675 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7676 (hourglass_atimer, Vhourglass_delay
7677 * xfaces.c (header section, init_frame_faces, clear_font_table)
7678 (defined_color, unload_color, x_face_list_fonts)
7679 (prepare_face_for_display): Add NS support parallel to other GUIs.
7680 Emulate GCs like other non-X GUIs.
7681 (split_font_name): Don't lowercase font name under NS.
7682 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7683 under NS.
7684 * s/darwin.h: Add support for compilation under NS.
7685
76862008-07-15 Jason Rumney <jasonr@gnu.org>
7687
7688 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7689 (w32_show_hourglass): Rename from show_hourglass.
7690 (w32_hide_hourglass): Rename from hide_hourglass.
7691 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7692 (Vhourglass_delay): Declare extern.
7693 (hourglass_started): Remove.
7694
7695 * xdisp.c (Vhourglass_delay): Remove static.
7696 (hourglass_started, start_hourglass, cancel_hourglass):
7697 Don't include these versions on WINDOWSNT.
7698
76992008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7700
7701 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7702 variables (formerly in xfns.c).
7703 (show_hourglass, hide_hourglass): New prototypes (same).
7704 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7705 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7706 in xfns.c).
7707 (syms_of_xdisp): Declare/initialize display-hourglass,
7708 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7709 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7710 formerly in xfns.c.
7711 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7712 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7713 (start_hourglass, cancel_hourglass): Remove.
7714 (show_hourglass, hide_hourglass): Remove prototypes and static
7715 modifiers.
7716 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7717 hourglass_atimer, hourglass_shown_p declaration/initialization.
7718 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7719 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7720 (start_hourglass, cancel_hourglass): Remove.
7721 (show_hourglass, hide_hourglass): Remove prototypes and static
7722 modifiers.
7723 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7724 hourglass_atimer, hourglass_shown_p declaration/initialization.
7725 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7726 (DEFAULT_HOURGLASS_DELAY): Remove.
7727 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7728 hourglass_shown_p declaration/initialization.
7729
77302008-07-14 Jason Rumney <jasonr@gnu.org>
7731
7732 * w32fns.c (w32_get_arg): Remove wrapper function.
7733 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7734 directly.
7735 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7736
77372008-07-14 Kenichi Handa <handa@m17n.org>
7738
7739 * xfont.c (xfont_open): Add workaround for X's bug.
7740
77412008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7742
7743 * fontset.c: Include <stdio.h> unconditionally.
7744
77452008-07-13 Michael Albinus <michael.albinus@gmx.de>
7746
7747 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7748 for filtering.
7749
77502008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7751
7752 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7753
7754 * m/macppc.h:
7755 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7756
7757 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7758 (SPECIAL_EMACS_INT):
7759 * m/ia64.h (SPECIAL_EMACS_INT):
7760 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7761 * s/gnu.h (NLIST_STRUCT):
7762 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7763 * s/gnu-linux.h (LINUX):
7764 * s/msdos.h (HAVE_FACES):
7765 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7766
7767 * systty.h:
7768 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7769 anymore.
7770
77712008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7772
7773 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7774 always defined as int.
7775
7776 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7777 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7778 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7779 * s/freebsd.h (HAVE_WAIT_HEADER):
7780 * s/bsd-common.h (HAVE_UNION_WAIT):
7781 * s/aix4-2.h (HAVE_WAIT_HEADER):
7782 * m/mips.h (HAVE_UNION_WAIT):
7783 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7784 (COFF, static): Do not define, they are undefined later in the file.
7785
7786 * process.c (update_status): Don't use a union.
7787 (status_convert):
7788 (sigchld_handler): Use int instead of WAITTYPE.
7789
77902008-07-12 Chong Yidong <cyd@stupidchicken.com>
7791
7792 * indent.c (Fvertical_motion): Restore hscroll before moving to
7793 goal column.
7794
77952008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7796
7797 * lisp.h: Remove left over code.
7798
77992008-07-11 Andreas Schwab <schwab@suse.de>
7800
7801 * lisp.h: Fix logic in last change.
7802
7803 * menu.h: New file.
7804 * menu.c: Include it.
7805 * xmenu.c: Likewise.
7806 * Makefile.in: Update dependencies.
7807
78082008-07-11 Kenichi Handa <handa@m17n.org>
7809
7810 * fontset.c (fontset_from_font): Cancel the previous change.
7811
78122008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7813
7814 * lisp.h:
7815 * w32heap.c:
7816 * emacs.c:
7817 * alloc.c: Replace all references of NO_UNION_TYPE with
7818 USE_LISP_UNION_TYPE.
7819
7820 * m/xtensa.h (NO_UNION_TYPE):
7821 * m/vax.h (NO_UNION_TYPE):
7822 * m/template.h (NO_UNION_TYPE):
7823 * m/sparc.h (NO_UNION_TYPE):
7824 * m/mips.h (NO_UNION_TYPE):
7825 * m/macppc.h (NO_UNION_TYPE):
7826 * m/m68k.h (NO_UNION_TYPE):
7827 * m/iris4d.h (NO_UNION_TYPE):
7828 * m/intel386.h (NO_UNION_TYPE):
7829 * m/ibms390x.h (NO_UNION_TYPE):
7830 * m/ibms390.h (NO_UNION_TYPE):
7831 * m/ibmrs6000.h (NO_UNION_TYPE):
7832 * m/ia64.h (NO_UNION_TYPE):
7833 * m/hp800.h (NO_UNION_TYPE):
7834 * m/arm.h (NO_UNION_TYPE):
7835 * m/amdx86-64.h (NO_UNION_TYPE):
7836 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7837 defining it the same.
7838
78392008-07-10 Chong Yidong <cyd@stupidchicken.com>
7840
7841 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7842
78432008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7844
7845 * fileio.c:
7846 * sysdep.c
7847 * systty.h:
7848 * m/ibmrs6000.h:
7849 * m/iris4d.h:
7850 * s/aix4-2.h:
7851 * s/freebsd.h:
7852 * s/gnu-linux.h:
7853 * s/hpux10-20.h:
7854 * s/hpux11.h:
7855 * s/netbsd.h:
7856 * s/sol2-3.h:
7857 * s/sol2-4.h:
7858 * s/sol2.h:
7859 * s/usg5-4.h:
7860 * s/vms.h: Remove references to unused variables.
7861
78622008-07-10 Andreas Schwab <schwab@suse.de>
7863
7864 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7865 pattern before matching the generic family.
7866
78672008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7868
7869 * unexec.c:
7870 * s/vms.h:
7871 * s/usg5-4-2.h:
7872 * s/sol2-5.h:
7873 * s/freebsd.h:
7874 * s/darwin.h: Remove dead code.
7875
7876 * m/template.h:
7877 * m/sparc.h:
7878 * m/mips.h:
7879 * m/m68k.h:
7880 * m/iris4d.h:
7881 * m/intel386.h:
7882 * m/ibms390x.h:
7883 * m/ibms390.h:
7884 * m/ia64.h:
7885 * m/hp800.h:
7886 * m/arm.h:
7887 * m/amdx86-64.h: Remove dead code and references to unused
7888 and compiler defined symbols.
7889
7890 * unexmips.c:
7891 * unexelf.c: Remove references to desupported systems.
7892
7893 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7894
7895 * m/powermac.h: Remove boilerplate comments.
7896 (NO_REMAP): Remove unused definition.
7897
7898 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7899 define them.
7900
79012008-07-10 Kenichi Handa <handa@m17n.org>
7902
7903 * xfont.c (xfont_open): Log the reason of failure.
7904
79052008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7906
7907 * fontset.c (fontset_get_font_group):
7908 * font.c (font_check_otf): Specify argument types.
7909
79102008-07-09 Kenichi Handa <handa@m17n.org>
7911
7912 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7913 non-ASCII char is found.
7914
7915 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7916 (reorder_font_vector): Change the arg preferred_family to font.
7917 Prefer the spec matching with font.
7918 (fontset_get_font_group): New function.
7919 (fontset_find_font): Change the format of an element of a realized
7920 fontset. Use fontset_get_font_group.
7921 (fontset_font): Try the current fontset, the default fontset, the
7922 fallbacks of the current fontset, and the fallbacks of the default
7923 fontset in this order.
7924 (face_for_char): Delete the shortcut to use the current font.
7925 (fontset_from_font): Don't set fonts for Latin in the fontset.
7926
7927 * font.h (font_make_object, font_match_p): Adjust prototypes.
7928
7929 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7930
7931 * font.c (font_make_object): New arg entity and pixelsize.
7932 (font_check_otf_features, font_check_otf): New functions.
7933 (font_match_p): Check :lang, :script, and :otf properties.
7934
7935 * xfont.c (xfont_open): Adjust it for the change of
7936 font_make_object.
7937 (xfont_text_extents): Fix initial setting of metrics.
7938
7939 * ftfont.c (struct ftfont_info): New member index, delete member
7940 fc_charset_idx. Make the member order compatible with struct
7941 xftfont_info.
7942 (fc_charset_table): Change charset names to registry names.
7943 (ftfont_pattern_entity): Delete the args registry and
7944 fc_charset_idx. Change the value of :font-entity property
7945 to (FONTNAME . INDEX). Always set :registry property to
7946 `iso10646-1'.
7947 (struct ftfont_cache_data): New struct.
7948 (ftfont_lookup_cache): New arg for_face.
7949 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7950 (ftfont_driver): Set the member otf_capability.
7951 (ftfont_get_charset): Adjust it for the change of
7952 fc_charset_table.
7953 (OTF_TAG_SYM): New macro.
7954 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7955 for the change of fc_charset_table.
7956 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7957 ftfont_pattern_entity. Add FC_INDEX to objset.
7958 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7959 and ftfont_pattern_entity.
7960 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7961 font_make_object, struct ftfont_info.
7962 (ftfont_has_char): Use ftfont_get_fc_charset.
7963 (ftfont_otf_features, ftfont_otf_capability): New functions.
7964 (ftfont_shape): Use ftfont_get_otf.
7965 (ftfont_text_extents): Fix initial setting of metrics.
7966
7967 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7968 member order compatible with struct ftfont_info.
7969 (xftfont_open): Add FC_CHARSET to the pattern. Set
7970 xftfont_info->ft_size. Don't unlock the face. Check BDF
7971 properties if appropriate.
7972 (xftfont_close): Unlock the face.
7973 (xftfont_anchor_point, xftfont_shape): Deleted.
7974 (syms_of_xftfont): Don't set members anchor_point and shape of
7975 xftfont_driver.
7976
7977 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7978 font_make_object.
7979
7980 * w32font.c (w32font_open): Adjust it for the change of
7981 font_make_object.
7982 (w32font_open_internal): Don't set properties of font_object here.
7983
79842008-07-08 Chong Yidong <cyd@stupidchicken.com>
7985
7986 * macfns.c (x_create_tip_frame):
7987 * w32fns.c (x_create_tip_frame):
7988 * xfns.c (x_create_tip_frame): Pass parameter argument to
7989 face-set-after-frame-default.
7990
7991 * xfaces.c (Finternal_merge_in_global_face): Save merged
7992 attributes for the default face back into the face vector.
7993
79942008-07-08 Andreas Schwab <schwab@suse.de>
7995
7996 * fontset.h: Declare fontset_from_font. Don't declare
7997 new_fontset_from_font and fontset_from_font_name.
7998 * xterm.c: Include "fontset.h".
7999 * Makefile.in (xterm.o): Update dependencies.
8000
80012008-07-08 Glenn Morris <rgm@gnu.org>
8002
8003 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8004 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8005
80062008-07-07 Chong Yidong <cyd@stupidchicken.com>
8007
8008 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8009 (x_set_frame_parameters): Don't bind it.
8010
80112008-07-07 Juanma Barranquero <lekktu@gmail.com>
8012
8013 * w32fns.c (map_w32_filename): Declare extern.
8014
80152008-07-07 Jason Rumney <jasonr@gnu.org>
8016
8017 * w32term.c (WS_EX_LAYERED): Define if not already.
8018
80192008-07-06 Chong Yidong <cyd@stupidchicken.com>
8020
8021 * xfaces.c (set_font_frame_param): Don't try to set the font
8022 parameter if it is still unspecified in the lface.
8023
80242008-07-05 Chong Yidong <cyd@stupidchicken.com>
8025
8026 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8027 face if it didn't already exist.
8028
8029 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8030
80312008-07-05 Andreas Schwab <schwab@suse.de>
8032
8033 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8034
80352008-07-05 Chong Yidong <cyd@stupidchicken.com>
8036
8037 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8038 word-wrapping.
8039 (IT_DISPLAYING_WHITESPACE): New macro.
8040 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8041 when word-wrapping. Simplify word-wrapping logic. Use correct
8042 pixel positions when saving copies of the iterator.
8043 (display_line): Use proper wrap point if the last character on a
8044 line was preceded by whitespace.
8045
80462008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8047
8048 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8049
80502008-07-04 Kenichi Handa <handa@m17n.org>
8051
8052 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8053
8054 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8055
80562008-07-02 Jason Rumney <jasonr@gnu.org>
8057
8058 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8059 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8060
8061 * xdisp.c (next_element_from_display_vector): Move assignment out
8062 of if statement.
8063
80642008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8065
8066 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8067
8068 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8069 (syms_of_fileio): Initialize and export them.
8070 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8071
8072 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8073 (Fsystem_move_file_to_trash): New function.
8074 (syms_of_w32fns): Export it to lisp.
8075
80762008-07-01 Jason Rumney <jasonr@gnu.org>
8077
8078 * w32font.c (w32font_text_extents): Don't count overhang as part
8079 of width.
8080
80812008-06-30 Miles Bader <miles@gnu.org>
8082
8083 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8084 Add `avoid_cursor_p' field.
8085
8086 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8087 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8088 (append_glyph, append_composite_glyph, produce_image_glyph)
8089 (append_stretch_glyph): Initialize avoid_cursor_p.
8090 (get_it_property): Rename from `get_line_height_property'.
8091 (x_produce_glyphs): Use get_it_property.
8092 (handle_line_prefix, push_display_prop): New functions.
8093 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8094 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8095 New variables.
8096 (syms_of_xdisp): Initialize them.
8097
80982008-06-30 Kenichi Handa <handa@m17n.org>
8099
8100 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8101 XftDefaultSubstitute (they are called in XftFontMatch).
8102 (xftfont_open): Fix args to ftfont_font_format.
8103
8104 * ftfont.c (fc_charset_table): New member lang.
8105 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8106 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8107 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8108 (ftfont_open): Fix args to ftfont_font_format.
8109 (ftfont_font_format): New arg filename.
8110
81112008-06-30 Chong Yidong <cyd@stupidchicken.com>
8112
8113 * xfaces.c (Finternal_merge_in_global_face): If default face was
8114 modified, realize it again. Update the font face attribute.
8115
81162008-06-29 Jason Rumney <jasonr@gnu.org>
8117
8118 * w32term.c (x_set_frame_alpha): Fix logic.
8119
81202008-06-29 Kenichi Handa <handa@m17n.org>
8121
8122 * fontset.c (Finternal_char_font): Return font-object instead of
8123 font-name.
8124
8125 * composite.c (get_composition_id): Fix the width calculation for TAB.
8126
81272008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8128
8129 * indent.c (Fvertical_motion): Properly handle float column arg.
8130
81312008-06-28 Jason Rumney <jasonr@gnu.org>
8132
8133 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8134 (pfnSetLayeredWindowAttributes): New function pointer.
8135 (w32_initialize): Initialize it when supported.
8136 (x_set_frame_alpha): New function.
8137
8138 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8139 (w32_frame_parm_handlers): Set alpha handler.
8140
8141 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8142
81432008-06-27 Jason Rumney <jasonr@gnu.org>
8144
8145 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8146 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8147 (w32_to_x_charset, x_to_w32_charset)
8148 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8149 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8150 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8151 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8152 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8153 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8154 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8155 (Qw32_charset_unicode): Remove.
8156 (syms_of_w32fns): Update for above changes.
8157
8158 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8159 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8160 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8161 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8162 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8163 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8164 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8165 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8166 (syms_of_w32font): Update for above changes.
8167
81682008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8169
8170 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8171 removed #if.
8172 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8173
81742008-06-26 Juanma Barranquero <lekktu@gmail.com>
8175 Eli Zaretskii <eliz@gnu.org>
8176
8177 * makefile.w32-in (LOCAL_FLAGS):
8178 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8179
8180 * sysdep.c (_spawnlp, _getpid):
8181 Declare with explicit _cdecl instead of _CRTAPI1.
8182
8183 * editfns.c (Fget_internal_run_time):
8184 Check for WINDOWSNT with #ifdef, not #if.
8185
81862008-06-26 Jason Rumney <jasonr@gnu.org>
8187
8188 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8189
8190 * w32term.c (x_draw_glyph_string_foreground)
8191 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8192 Use FONT_HANDLE macro.
8193 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8194
8195 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8196 (uniscribe_encode_char): Use FONT_HANDLE macro.
8197
8198 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8199 (w32font_text_extents): Use precast w32_font.
8200 (w32font_close): Free cached metrics.
8201 (w32font_open_internal): Allocate space for name on stack.
8202
82032008-06-26 Chong Yidong <cyd@stupidchicken.com>
8204
8205 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8206
82072008-06-26 Jason Rumney <jasonr@gnu.org>
8208
8209 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8210 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8211
82122008-06-26 Juanma Barranquero <lekktu@gmail.com>
8213
8214 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8215
82162008-06-26 Jason Rumney <jasonr@gnu.org>
8217
8218 * w32bdf.c, w32bdf.h: Remove obsolete files.
8219
8220 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8221
8222 * w32gui.h: Don't include w32bdf.h.
8223 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8224 Remove obsolete font support.
8225
8226 * w32font.h (struct w32font_info): Remove compat_w32_font.
8227 Add hfont member.
8228 (FONT_COMPAT): Remove obsolete macro.
8229
8230 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8231 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8232 (w32font_open_internal): Remove compat code. Set new hfont member.
8233 (Fx_select_font): Use new hfont member.
8234
8235 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8236 (uniscribe_encode_char): Use new hfont member.
8237
8238 * w32term.c (x_draw_glyph_string_foreground)
8239 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8240 (x_draw_glyph_string): Use metrics in w32font_info.
8241
82422008-06-26 Kenichi Handa <handa@m17n.org>
8243
8244 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8245
82462008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8247
8248 * unexnext.c:
8249 * m/ews4800.h:
8250 * m/hp9000s300.h:
8251 * m/ibm370aix.h:
8252 * m/mips-siemens.h:
8253 * m/ncr386.h:
8254 * m/next.h:
8255 * m/pmax.h:
8256 * m/powerpcle.h:
8257 * m/tandem-s2.h:
8258 * s/386bsd.h:
8259 * s/bsd386.h:
8260 * s/bsd4-1.h:
8261 * s/bsd4-2.h:
8262 * s/bsdos2-1.h:
8263 * s/bsdos2.h:
8264 * s/bsdos3.h:
8265 * s/bsdos4.h:
8266 * s/nextstep.h:
8267 * s/ultrix4-3.h:
8268 * s/usg5-0.h:
8269 * s/usg5-2-2.h:
8270 * s/usg5-2.h:
8271 * s/usg5-4-3.h:
8272 * s/ux4800.h:
8273 * s/uxpds.h:
8274 * s/uxpv.h: Remove support for obsolete systems.
8275 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8276 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8277 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8278 Remove, insert contents in s/aix4-2.h.
8279 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8280 * s/bsd4-3.h: Rename to ...
8281 * s/bsd-common.h: ... this.
8282 * data.c:
8283 * doc.c:
8284 * ecrt0.c:
8285 * emacs.c:
8286 * fileio.c:
8287 * floatfns.c:
8288 * keyboard.c:
8289 * mem-limits.h:
8290 * print.c:
8291 * process.c:
8292 * sysdep.c:
8293 * syssignal.h:
8294 * systty.h:
8295 * syswait.h:
8296 * term.c:
8297 * unexec.c:
8298 * unexelf.c:
8299 * unexhp9k800.c:
8300 * m/hp800.h:
8301 * m/ibmrs6000.h:
8302 * m/mips.h:
8303 * m/vax.h:
8304 * s/darwin.h:
8305 * s/freebsd.h:
8306 * s/gnu.h:
8307 * s/ms-w32.h:
8308 * s/msdos.h:
8309 * s/netbsd.h:
8310 * s/template.h: Remove references to obsolete variables.
8311
8312 * Makefile.in: Add dependencies for all unexec files.
8313 (admindir): Remove unused variable.
8314 (UNEXEC_SRC): Remove references.
8315
83162008-06-25 Chong Yidong <cyd@stupidchicken.com>
8317
8318 * xfns.c (x_default_font_parameter): If Xft is available, first
8319 try Monospace-12 for the default font.
8320
83212008-06-25 Jason Rumney <jasonr@gnu.org>
8322
8323 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8324
83252008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8326
8327 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8328
8329 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8330
83312008-06-25 Juanma Barranquero <lekktu@gmail.com>
8332
8333 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8334 <scroll-conservatively>: Fix typo in docstring.
8335
8336 * xselect.c (Fx_send_client_event): Doc fix.
8337
83382008-06-25 Kenichi Handa <handa@m17n.org>
8339
8340 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8341
8342 * font.c (font_parse_fcname): Remove unused variables.
8343 (font_sort_entites): Delete the arg SPEC. Caller changed.
8344 Fix for the case of ! best_only.
8345 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8346
8347 * lisp.h (Fstring_to_unibyte): EXFUN it.
8348
8349 * character.h (str_to_unibyte): Extern it.
8350
8351 * character.c (str_to_unibyte): New function.
8352
8353 * fns.c (Fstring_to_unibyte): New function.
8354 (syms_of_fns): Defsubr it.
8355
83562008-06-24 Kenichi Handa <handa@m17n.org>
8357
8358 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8359 DPI too.
8360 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8361
83622008-06-24 Andreas Schwab <schwab@suse.de>
8363
8364 * Makefile.in (${lispsource}loaddefs.el): Rename from
8365 ../lisp/loaddefs.el.
8366 (bootstrap-clean): Do what distclean does but don't remove
8367 Makefile.
8368 (distclean): Depend on bootstrap-clean and remove Makefile.
8369
83702008-06-24 Chong Yidong <cyd@stupidchicken.com>
8371
8372 * buffer.h (struct buffer): New member word_wrap.
8373
8374 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8375 word-wrap.
8376 (init_buffer_once): Initialize them.
8377
8378 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8379 line_wrap enum possessing three possible values.
8380
8381 * termopts.h: Replace truncate_partial_width_windows with
8382 Vtruncate_partial_width_windows.
8383
8384 * dispnew.c (direct_output_for_insert): Avoid direct output when
8385 inserting a space with word wrap on.
8386
8387 * indent.c (compute_motion): Obey integer values of
8388 truncate-partial-width-windows.
8389
8390 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8391 replacing truncate_partial_width_windows.
8392 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8393 truncate only if the window width is below that integer.
8394 (start_display, resize_mini_window, produce_stretch_glyph)
8395 (display_string, move_it_in_display_line_to): Use line_wrap.
8396 (back_to_previous_visible_line_start, reseat_1): Reset
8397 string_from_display_prop_p.
8398 (display_line): Extend default face to end of line when wrapping.
8399
84002008-06-24 Kim F. Storm <storm@cua.dk>
8401
8402 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8403 to wrap continued lines at word boundaries.
8404
84052008-06-24 Jason Rumney <jasonr@gnu.org>
8406
8407 * font.c (Ffont_face_attributes): Multiply pixel size before point
8408 conversion to avoid multiplying rounding error.
8409
84102008-06-23 Jason Rumney <jasonr@gnu.org>
8411
8412 * w32term.c (x_draw_glyph_string_background)
8413 (x_draw_glyph_string): Remove old bdf font code.
8414
8415 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8416
84172008-06-22 Kenichi Handa <handa@m17n.org>
8418
8419 * font.c (font_find_for_lface): Try the adstyle specified in
8420 the property of LFACE_FONT of LFACE (if any).
8421
84222008-06-21 Seiji Zenitani <zenitani@mac.com>
8423 Ryo Yoshitake <ryo@shiftmode.net>
8424
8425 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8426
84272008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8428
8429 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8430 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8431 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8432 (witness-emacs): Remove.
8433 (lisp, shortlisp): Move loaddefs.el earlier.
8434 (mostlyclean): Forget about witness-emacs.
8435
84362008-06-22 Glenn Morris <rgm@gnu.org>
8437
8438 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8439 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8440
84412008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8442
8443 * Makefile.in (PRECOMP): Remove.
8444 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8445 (witness-emacs): Run `compile-first'.
8446 (.el.elc): Use the new compile-onefile target.
8447
84482008-06-21 Kenichi Handa <handa@m17n.org>
8449
8450 * xftfont.c (xftfont_open): Handle QCembolden only when
8451 FC_EMBOLDEN is defined.
8452
84532008-06-21 Andreas Schwab <schwab@suse.de>
8454
8455 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8456 (.el.elc): Likewise.
8457
84582008-06-21 Miles Bader <miles@gnu.org>
8459
8460 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8461 build dir, not the lisp source dir.
8462
84632008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8464
8465 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8466 (bootstrapclean): Remove.
8467 (.el.elc): New rule.
8468 (PRECOMP): New var.
8469 (../lisp/subdirs.el): Remove.
8470 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8471 (witness-emacs): New target.
8472 (mostlyclean): Remove witness-emacs as well.
8473 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8474 Add witness-emacs dependency.
8475
84762008-06-20 Chong Yidong <cyd@stupidchicken.com>
8477
8478 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8479 defined by the font.
8480
84812008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8482
8483 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8484 (bootstrap-clean): New target that keeps TAGS around.
8485 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8486 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8487
84882008-06-20 Jason Rumney <jasonr@gnu.org>
8489
8490 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8491 Remove obsolete font code.
8492
8493 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8494 to determine language support.
8495
84962008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8497
8498 * sysdep.c (cfsetspeed): New fun extracted from the code.
8499 (cfmakeraw): Move before first use.
8500
85012008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8502
8503 * sysdep.c (cfmakeraw): Provide fallback implementation.
8504 (serial_configure): Provide fallback implementation of cfsetspeed.
8505
85062008-06-20 Kenichi Handa <handa@m17n.org>
8507
8508 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8509 the pattern.
8510
8511 * fontset.c (fontset_from_font): Copy font_spec before changing
8512 the elements.
8513
8514 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8515
85162008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8517
8518 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8519 for explicit `font' parameters.
8520
8521 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8522
85232008-06-19 Kenichi Handa <handa@m17n.org>
8524
8525 * frame.c: Include <ctype.h>.
8526 (x_set_font_backend): Allow spacing characters in the X resource
8527 for FontBackend.
8528
85292008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8530
8531 * w32fns.c, xfns.c (Qfont_param): New var.
8532 (syms_of_w32fns): Initialize it.
8533 (x_default_font_parameter): Record explicit `font' into
8534 `font-parameter'.
8535
85362008-06-18 Kenichi Handa <handa@m17n.org>
8537
8538 * font.c (font_parse_xlfd): Fix previous change.
8539 (font_parse_fcname): Don't use :fc-unknown-spec.
8540 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8541 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8542 (font_add_log): Prepend the driver name to the resulting fonts.
8543
8544 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8545 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8546 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8547
8548 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8549 (QCembolden): New variables.
8550 (syms_of_xftfont): DEFSYM them.
8551 (xftfont_open): Call XftFontMatch. Don't trust the result of
8552 XftTextExtents8 if the pixel_size is less than 5.
8553
85542008-06-18 Andreas Schwab <schwab@suse.de>
8555
8556 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8557 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8558
85592008-06-18 Jason Rumney <jasonr@gnu.org>
8560
8561 * w32font.c (w32font_list, w32font_match): Add logging.
8562
8563 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8564
85652008-06-17 Chong Yidong <cyd@stupidchicken.com>
8566
8567 * font.c (font_parse_fcname): Store divider characters for
8568 unknown-spec list. For known key symbols, intern using correct
8569 symbol name.
8570
85712008-06-17 Kenichi Handa <handa@m17n.org>
8572
8573 * xfaces.c (realize_default_face): If the frame is not on window
8574 system, set the fontset of face to nil.
8575
85762008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8577
8578 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8579
85802008-06-16 Juanma Barranquero <lekktu@gmail.com>
8581
8582 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8583 (build_font_name_from_vector): Delete externs.
8584
8585 * xfaces.c (struct font_name): Don't declare.
8586
85872008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8588
8589 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8590
85912008-06-16 Chong Yidong <cyd@stupidchicken.com>
8592
8593 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8594
85952008-06-16 Juanma Barranquero <lekktu@gmail.com>
8596
8597 * font.c (Ffont_spec): Fix usage in docstring.
8598 (Ffont_face_attributes): Doc fix.
8599
86002008-06-16 Andreas Schwab <schwab@suse.de>
8601
8602 * font.c (Ffont_face_attributes): Fix definition.
8603
86042008-06-16 Jason Rumney <jasonr@gnu.org>
8605
8606 * font.h (font_style_symbolic_from_value): Remove.
8607
8608 * font.c (font_style_symbolic_from_value): Remove.
8609 (font_style_symbolic): Revert to pre 2008-06-13 version.
8610
8611 * w32font.c (w32_to_fc_weight): New function.
8612 (w32font_full_name, logfont_to_fcname): Use it.
8613
86142008-06-16 Kenichi Handa <handa@m17n.org>
8615
8616 * font.c (font_check_object): Delete it.
8617 (font_clear_cache): Check if a font-object is alive.
8618 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8619 font-object to nil.
8620 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8621 (font_at): Don't call font_check_object.
8622 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8623
86242008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8625
8626 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8627
86282008-06-16 Chong Yidong <cyd@stupidchicken.com>
8629
8630 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8631
86322008-06-15 Chong Yidong <cyd@stupidchicken.com>
8633
8634 * font.c (font_parse_fcname): Only one decimal point.
8635 (font_unparse_fcname): Handle data in family and foundry indices
8636 as symbols, not strings.
8637 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8638
8639 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8640
8641 * font.h (font_unparse_gtkname): Add prototype.
8642
86432008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8644
8645 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8646
86472008-06-15 Andreas Schwab <schwab@suse.de>
8648
8649 * font.c (font_update_drivers): Fix crash when no drivers match.
8650
86512008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8652
8653 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8654 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8655
86562008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8657
8658 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8659
86602008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8661
8662 * process.c (Fserial_process_configure, Fprocess_send_eof):
8663 Use EQ to compare Lisp_Objects.
8664
86652008-06-13 Jason Rumney <jasonr@gnu.org>
8666
8667 * w32fns.c (Fw32_select_font): Remove old font API function.
8668
8669 * w32font.c (logfont_to_fcname): New function.
8670 (Fx_select_font): New font dialog function compatible with
8671 GTK/fontconfig version.
8672
8673 * font.c (font_style_symbolic_from_value): New function.
8674 (font_style_symbolic): Use it.
8675
8676 * font.h (font_style_symbolic_from_value): Declare new function.
8677
86782008-06-13 Juanma Barranquero <lekktu@gmail.com>
8679
8680 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8681 <font-width-table>: Fix typos in docstrings.
8682
86832008-06-13 Daniel Engeler <engeler@gmail.com>
8684
8685 These changes add serial port access.
8686 * process.c: Add HAVE_SERIAL.
8687 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8688 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8689 (list_processes_1, select_wrapper, Fstop_process)
8690 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8691 (status_notify): Modify to handle serial processes.
8692 [HAVE_SERIAL] (Fserial_process_configure)
8693 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8694 New functions.
8695 * process.h (struct Lisp_Process): Add `type'.
8696 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8697 New functions.
8698 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8699 serial ports.
b71ac3dd 8700 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8701 * w32.h: Add FILE_SERIAL.
8702 (struct _child_process): Add ovl_read, ovl_write.
8703
87042008-06-13 Kenichi Handa <handa@m17n.org>
8705
8706 * dispextern.h (enum lface_attribute_index): New member
8707 LFACE_FOUNDRY_INDEX.
8708
8709 * font.c (font_score): Delete arg alternate_families. Check only
8710 weight, slant, width, and size. Ignore the difference of alias
8711 style symbols.
8712 (font_sort_entites): Adjust for the above change. Reflect the
8713 order of font-driver to scores.
8714 (font_list_entities): Don't check alternate_familes here.
8715 (font_clear_prop): Handle foundry.
8716 (font_update_lface): Don't parse "foundry-family" form here.
8717 Handle FONT_FOUNDRY_INDEX.
8718 (font_find_for_lface): Likewise. Handle alternate families here.
8719 If registry is nil, try iso8859-1 and ascii-0.
8720 (font_open_for_lface): Pay attention to size in ENTITY.
8721 (font_open_by_name): Simplify by calling font_load_for_lface.
8722 (free_font_driver_list): Delete it.
8723 (font_update_drivers): Preserve the order of backends.
8724 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8725 of font_score and font_sort_entites.
8726 (font_update_sort_order): Likewise.
8727
8728 * xfaces.c (LFACE_FOUNDRY): New macro.
8729 (check_lface_attrs): Check foundry.
8730 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8731 (merge_face_vectors): Check foundry.
8732 (merge_face_ref): Likewise.
8733 (Finternal_set_lisp_face_attribute): Likewise.
8734 (x_update_menu_appearance): Likewise.
8735 (Finternal_get_lisp_face_attribute): Likewise.
8736 (lface_hash): Likewise.
8737 (lface_same_font_attributes_p): Likewise.
8738 (x_supports_face_attributes_p): Likewise.
8739 (tty_supports_face_attributes_p): Likewise.
8740 (Finternal_set_alternative_font_family_alist): Intern strings.
8741 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8742 (realize_default_face): Set LFACE_FOUNDRY (lface).
8743
8744 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8745 font-driver at first.
8746
8747 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8748
87492008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8750
8751 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8752
87532008-06-12 Jim Meyering <meyering@redhat.com>
8754
8755 Make unexec_free handle NULL the same way free does.
8756 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8757
87582008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8759
8760 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8761 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8762 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8763 (WEAK_ALIAS): Simplify.
8764 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8765 when searching a unibyte buffer.
8766
87672008-06-12 Chong Yidong <cyd@stupidchicken.com>
8768
8769 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8770
87712008-06-12 Juanma Barranquero <lekktu@gmail.com>
8772
8773 * w32font.c: Include ctype.h.
8774
87752008-06-11 Jason Rumney <jasonr@gnu.org>
8776
8777 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8778 misreported as space.
8779 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8780 as aliases for registry iso10646-1.
8781
87822008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8783
8784 * buffer.c (clone_per_buffer_values): Skip `name'.
8785
87862008-06-11 Chong Yidong <cyd@stupidchicken.com>
8787
8788 * font.c (font_parse_fcname): Fix last change; accept decimal
8789 points in font size.
8790
87912008-06-10 Jason Rumney <jasonr@gnu.org>
8792
8793 * w32uniscribe.c (add_opentype_font_name_to_list):
8794 Skip non unicode fonts.
8795
87962008-06-10 Chong Yidong <cyd@stupidchicken.com>
8797
8798 * xfns.c (Fx_font_dialog): New function.
8799
8800 * gtkutil.c (xg_dialog_response_cb): Rename from
8801 xg_file_response_callback.
8802 (pop_down_dialog): Rename from pop_down_file_dialog.
8803 (xg_get_file_name): Callers changed.
8804 (xg_get_font_name): New function.
8805
8806 * gtkutil.h (xg_get_font_name): Insert prototype.
8807
88082008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8809
8810 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8811 x_underline_minimum_display_offset.
8812 (syms_of_xdisp): Declare it here rather than in xterm.c.
8813 * dispextern.h (underline_minimum_offset): Declare it.
8814 * w32term.c (x_draw_glyph_string): Use it.
8815 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8816 (syms_of_xterm): Don't declare it any more.
8817 (x_draw_glyph_string): Adjust to the new name.
8818
88192008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8820
8821 * xterm.c (x_underline_minimum_display_offset): New var.
8822 (x_draw_glyph_string): Use it.
8823 (syms_of_xterm): Declare it.
8824
88252008-06-10 Chong Yidong <cyd@stupidchicken.com>
8826
8827 * font.c (font_parse_fcname): Accept GTK-style font names too.
8828
88292008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8830
8831 * dired.c (file_name_completion): Don't return t if the match is exact
8832 but with different capitalization.
8833 * minibuf.c (Ftry_completion): Simplify.
8834
8835 * window.c (Vwindow_point_insertion_type): New var.
8836 (set_window_buffer): Use it.
8837 (syms_of_window): Init and export it to Lisp.
8838
88392008-06-10 Kenichi Handa <handa@m17n.org>
8840
8841 * font.h (font_intern_prop): Prototype adjusted.
8842
8843 * font.c (font_intern_prop): New arg force_symbol.
8844 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8845 Adjust for the change of font_intern_prop.
8846
8847 * ftfont.c (ftfont_pattern_entity):
8848 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8849 (w32_registry):
8850 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8851 the change of font_intern_prop.
8852
88532008-06-09 Juanma Barranquero <lekktu@gmail.com>
8854
8855 * w32menu.c (digest_single_submenu): Declare extern.
8856
88572008-06-09 Jason Rumney <jasonr@gnu.org>
8858
8859 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8860
8861 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8862 (parse_single_submenu): Remove.
8863 (digest_single_submenu): Remove.
8864 (syms_of_w32menu): Don't initialise variables that have moved
8865 to menu.c.
8866 (set_frame_menubar): Sync with version in xmenu.c.
8867 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8868
8869 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8870 Make static again.
8871
88722008-06-09 Jason Rumney <jasonr@gnu.org>
8873
8874 Changes to w32 files related to the move of common menu code
8875 to menu.c on 2008-06-08 by Chong Yidong.
8876
8877 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8878 defs to w32gui.h.
8879 (single_keymap_panes, push_menu_item, push_menu_pane):
8880 Make globally visible.
8881
8882 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8883 (local_free, malloc_widget_value, free_widget_value)
8884 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8885 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8886 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8887 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8888 (menu_items, menu_items_allocated, menu_items_used)
8889 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8890 (init_menu_items, finish_menu_items, discard_menu_items)
8891 (grow_menu_items, push_submenu_start, push_submenu_end)
8892 (push_left_right_boundary, push_menu_pane, push_menu_item)
8893 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8894 (free_menubar_widget_tree_value, parse_single_submenu)
8895 (update_submenu_strings): Remove functions.
8896 (xmalloc_widget_value): Remove and declare extern.
8897
8898 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8899 (OBJ1): Build it.
8900
8901 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8902 (local_heap, local_alloc, local_free, malloc_widget_value)
8903 (free_widget_value): Define here.
8904
89052008-06-09 Kenichi Handa <handa@m17n.org>
8906
8907 * font.h (Qascii_0): Extern it.
8908
8909 * font.c (Qascii_0): New variable.
8910 (syms_of_font): DEFSYM it.
8911 (font_open_by_name): If the registry "iso8859-1" fails, try also
8912 "ascii-0".
8913
8914 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8915
89162008-06-08 Kenichi Handa <handa@m17n.org>
8917
8918 * .gdbinit (xfont): New command.
8919
89202008-06-08 Andreas Schwab <schwab@suse.de>
8921
8922 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8923 * Makefile.in (menu.o): Update dependencies.
8924
8925 * Makefile.in (obj): Always add menu.o.
8926 * emacs.c (main): Always call syms_of_menu.
8927 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8928
89292008-06-08 Chong Yidong <cyd@stupidchicken.com>
8930
8931 * Makefile.in: Compile menu.c.
8932
8933 * lisp.h: Declare syms_of_menu.
8934
8935 * emacs.c (main): Call syms_of_menu.
8936
8937 * keyboard.h: Relocate platform-independent menu definitions from
8938 xmenu.c.
8939
8940 * menu.c: New file. Relocate platform-independent menu
8941 definitions from xmenu.c. Suggested by Adrian Robert.
8942
8943 * xmenu.c: Remove platform-independent menu definitions.
8944 (menu_items menu_items_inuse, menu_items_allocated)
8945 (menu_items_used, menu_items_n_panes)
8946 (menu_items_submenu_depth): Move to keyboard.h.
8947 (init_menu_items, finish_menu_items, unuse_menu_items)
8948 (discard_menu_items, restore_menu_items, save_menu_items)
8949 (grow_menu_items, push_submenu_start, push_submenu_end)
8950 (push_left_right_boundary, push_menu_pane, push_menu_item)
8951 (keymap_panes, single_keymap_panes, single_menu_item)
8952 (list_of_panes, list_of_items, find_and_call_menu_selection)
8953 (xmalloc_widget_value, free_menubar_widget_value_tree)
8954 (parse_single_submenu, digest_single_submenu)
8955 (update_submenu_strings): Move to menu.c.
8956
89572008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8958
8959 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8960
89612008-06-06 Miles Bader <miles@gnu.org>
8962
8963 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8964 face, not frame default.
8965
89662008-06-05 Martin Rudalics <rudalics@gmx.at>
8967
8968 * window.c (pop_up_windows, pop_up_frames)
8969 (display_buffer_reuse_frames, Vpop_up_frame_function)
8970 (Vdisplay_buffer_function, Veven_window_heights)
8971 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8972 (Vspecial_display_function, Vsame_window_buffer_names)
8973 (Vsame_window_regexps, split_height_threshold)
8974 (Vsplit_window_preferred_function): Move those vars to window.el.
8975 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8976 (Fdisplay_buffer): Move those functions to window.el.
8977 (syms_of_window): Remove corresponding declarations.
8978 (display_buffer): New function.
8979 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8980 * dispnew.c (Flast_nonminibuf_frame): New function.
8981 * buffer.c (Fpop_to_buffer): Move to window.el.
8982
89832008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8984
8985 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8986
89872008-06-05 Kenichi Handa <handa@m17n.org>
8988
8989 * coding.c (detect_coding): Fix previous change.
8990 (detect_coding_system): Likewise.
8991
89922008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8993
8994 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8995
8996 * keymap.c (Vminibuffer_local_filename_must_match_map):
8997 Rename from Vminibuffer_local_must_match_filename_map.
8998 (syms_of_keymap):
8999 * minibuf.c (Fcompleting_read): Adjust accordingly.
9000 * commands.h: Rename declaration as well.
9001
90022008-06-05 Kenichi Handa <handa@m17n.org>
9003
9004 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9005 family name.
9006 (Ffont_put): Likewise.
9007
9008 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9009 current font-spec.
9010
9011 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9012 is unspecified.
9013
9014 * xfaces.c (realize_x_face): If the font-related face attributes
9015 are the same as those of default face, realize a new fontset from
9016 default->fontset.
9017 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9018
90192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9020
9021 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9022 (move_it_in_display_line): New wrapper.
9023
9024 * window.c (window_scroll_pixel_based_preserve_x)
9025 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9026 (window_scroll_pixel_based, window_scroll_line_based):
9027 Use them to preserve column positions.
9028 (syms_of_window): Initialize them.
9029
9030 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9031 (HPOS . VPOS) pair.
9032
9033 * dispextern.h (move_it_in_display_line): Declare.
9034
90352008-06-05 Juanma Barranquero <lekktu@gmail.com>
9036
9037 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9038 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9039 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9040
90412008-06-04 Juanma Barranquero <lekktu@gmail.com>
9042
9043 * window.c (Fset_window_parameter): Doc fix.
9044 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9045
90462008-06-04 Joakim Verona <joakim@verona.se>
9047
9048 * window.h (struct window): Add new member window_parameters.
9049
9050 * window.c (Fwindow_parameters, Fwindow_parameter)
9051 (Fset_window_parameter): New defuns.
9052 (syms_of_window): Defsubr the new defuns.
9053 (make_window): Initialize window_parameters to nil.
9054
90552008-06-04 John Paul Wallington <jpw@pobox.com>
9056
9057 * eval.c (Fdefmacro): Doc fix.
9058
90592008-06-04 Kenichi Handa <handa@m17n.org>
9060
9061 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9062 Be sure to call setup_coding_system when we find a proper coding system.
9063 (detect_coding_system): Fix handling of coding->head_ascii.
9064
90652008-06-03 Andreas Schwab <schwab@suse.de>
9066
9067 * font.c (font_prop_validate_spacing): Fix last change.
9068
90692008-06-03 Kenichi Handa <handa@m17n.org>
9070
9071 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9072 (font_parse_fcname): Fix handling of unknown key.
9073
9074 * xfont.c (xfont_list): Try an alias.
9075
9076 * charset.c (char_charset): Return NULL if the arg charset_list is
9077 specified and C doesn't belong to any of them.
9078
90792008-06-02 Chip Coldwell <coldwell@redhat.com>
9080
9081 * font.c (font_pixel_size): Don't take cdr of an integer.
9082
90832008-06-02 Jim Meyering <meyering@redhat.com>
9084
9085 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9086 * alloc.c (xfree): Return right away for a NULL arg.
9087 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9088 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9089 * mac.c (create_apple_event_from_event_ref): Likewise.
9090 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9091 Likewise.
9092 * doprnt.c (doprnt1): Likewise.
9093 * frame.c (frame): Likewise.
9094 * keyboard.c (wipe_kboard): Likewise.
9095 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9096 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9097 * term.c (tty_default_color_capabilities, maybe_fatal)
9098 (delete_tty): Likewise.
9099 * w16select.c (string): Likewise.
9100 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9101 * w32bdf.c (w32_free_bdf_font): Likewise.
9102 * w32fns.c (w32_unload_font): Likewise.
9103 * w32font.c (w32font_close): Likewise.
9104 * window.c (size_window): Likewise.
9105 * xselect.c (receive_incremental_selection): Likewise.
9106 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9107 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9108 * w32.c (stat): Likewise.
9109
9110 Remove useless if-before-free tests.
9111 * editfns.c (Fset_time_zone_rule): Likewise.
9112 * lread.c (nosuffix): Likewise.
9113 * ralloc.c (get_bloc): Likewise.
9114 * regex.c (reg_free): Likewise.
9115 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9116 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9117 * xsmfns.c (smc_save_yourself_CB): Likewise.
9118
91192008-06-02 Kenichi Handa <handa@m17n.org>
9120
9121 * font.c (font_find_for_lface): Handle float font size.
9122 (font_open_for_lface): Likewise.
9123
9124 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9125 comparing the properties.
9126
91272008-06-01 Jason Rumney <jasonr@gnu.org>
9128
9129 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9130 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9131 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9132 Don't add empty script list.
9133 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9134
91352008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9136
9137 * Makefile.in (dot, dotdot): Remove, update users.
9138 ".." has been used elsewhere in the file for a long time.
9139 (LIBXT_STATIC): Remove conditional based on unused variable.
9140
91412008-06-01 Miles Bader <miles@gnu.org>
9142
9143 * xfaces.c (Vface_remapping_alist): New variable.
9144 (syms_of_xfaces): Initialize it.
9145 (enum named_merge_point_kind): New type.
9146 (struct named_merge_point): Add `named_merge_point_kind' field.
9147 (push_named_merge_point): Make cycle detection respect different
9148 named-merge-point kinds.
9149 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9150 Remove face-name alias resolution.
9151 (lface_from_face_name): New definition using
9152 `lface_from_face_name_no_resolve'.
9153 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9154 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9155 (get_lface_attributes): New definition that layers face-remapping on
9156 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9157 (lookup_basic_face): New function.
9158 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9159 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9160 `get_lface_attributes'.
9161 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9162 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9163 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9164
9165 * xdisp.c (init_iterator): Pass base_face_id through
9166 `lookup_basic_face' when we actually use it as a face-id.
9167 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9168 DEFAULT_FACE_ID.
9169
9170 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9171 lookup the initial face-id.
9172
9173 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9174
91752008-06-01 Juanma Barranquero <lekktu@gmail.com>
9176
9177 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9178 (Fremove_text_properties): Fix typos in docstrings.
9179
91802008-05-31 Kenichi Handa <handa@m17n.org>
9181
9182 * font.c (font_list_entities): Fix the car part of data to be
9183 stored in the cache.
9184
9185 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9186
91872008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9188
9189 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9190 Add a `test' argument so another predicate than `equal' can be used.
9191 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9192 (map_char_table): Remove unused vars `c' and `i'.
9193 * lisp.h (Foptimize_char_table): Adjust declaration.
9194 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9195
91962008-05-30 Kenichi Handa <handa@m17n.org>
9197
9198 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9199 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9200 defined.
9201
92022008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9203
9204 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9205 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9206 frame-local settings for the same variable.
9207
92082008-05-30 Kenichi Handa <handa@m17n.org>
9209
9210 * fontset.c (Ffont_info): Move to font.c.
9211 (syms_of_fontset): Delete defsubr of Sfont_info.
9212
9213 * font.c (font_style_to_value, font_score): Delete casting of the
9214 args to xstcasecmp.
9215 (register_font_driver): Increment num_font_drivers only when
9216 registering the driver globally.
9217 (Ffont_info): Move from fontset.c. Handle a font object too.
9218 (syms_of_font): Defsubr Sfont_info.
9219
92202008-05-29 Kenichi Handa <handa@m17n.org>
9221
9222 * coding.h (enum define_coding_utf8_arg_index): New enum.
9223 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9224 coding_attr_utf_bom.
9225 (enum utf_bom_type): Rename from utf_16_bom_type.
9226 (struct utf_16_spec): Adjust for the above change.
9227 (struct coding_system): Add utf_8_bom in `spec' union.
9228
9229 * coding.c (CODING_UTF_8_BOM): New macro.
9230 (enum coding_category): Delete coding_category_utf_8, add
9231 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9232 coding_category_utf_8_sig.
9233 (CATEGORY_MASK_UTF_8): Delete it.
9234 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9235 (CATEGORY_MASK_UTF_8_SIG): New macros.
9236 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9237 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9238 CATEGORY_MASK_UTF_8_SIG.
9239 (CATEGORY_MASK_UTF_8): New macro.
9240 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9241 (detect_coding_utf_8): Check BOM.
9242 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9243 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9244 (encode_coding_utf_16): Likewise.
9245 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9246 (detect_coding, detect_coding_system): Handle utf-8-auto.
9247 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9248 (syms_of_coding): Fix setting up of Vcoding_category_table.
9249
92502008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9251
9252 * process.c (Faccept_process_output): If `millisec' is non-nil,
9253 `seconds' default to 0.
9254 (wait_reading_process_output): Also return non-nil if we read output
9255 from a non-running process.
9256
92572008-05-29 Jason Rumney <jasonr@gnu.org>
9258
9259 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9260 `raster' specified.
9261 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9262 in the uniscribe backend, but disallow any font that has no
9263 unicode subrange support.
9264
92652008-05-29 Juanma Barranquero <lekktu@gmail.com>
9266
9267 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9268 Fix typos in docstrings.
9269
92702008-05-29 Kenichi Handa <handa@m17n.org>
9271
9272 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9273 (Fx_family_fonts): Set frame correctly.
9274
92752008-05-28 Jason Rumney <jasonr@gnu.org>
9276
9277 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9278
92792008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9280
9281 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9282 calling build_annotations.
9283
92842008-05-28 Juanma Barranquero <lekktu@gmail.com>
9285
9286 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9287 (Fencode_coding_string):
9288 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9289 <latin-extra-code-table>: Fix typos in docstrings.
9290 (syms_of_coding) <coding-system-alist>: Doc fix.
9291 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9292
92932008-05-28 Kenichi Handa <handa@m17n.org>
9294
9295 * fontset.c (Ffont_info): Don't call font_close_object.
9296
9297 * font.c (font_parse_family_registry): Use Ffont_put to validate
9298 foundry and family.
9299 (font_delete_unmatched): Don't check spacing.
9300 (font_list_entities): Add spacing to the spec to list fonts.
9301
9302 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9303 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9304
9305 * coding.c (encode_coding_raw_text): Fix previous change.
9306 (encode_coding_object): When the dst_object is a buffer and is
9307 different from src_object, move gap to PT.
9308
93092008-05-27 Chong Yidong <cyd@stupidchicken.com>
9310
9311 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9312
93132008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9314
9315 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9316 all branches. Compute it differently.
9317
9318 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9319
93202008-05-27 Juanma Barranquero <lekktu@gmail.com>
9321
9322 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9323 into "else if () ... else ...".
9324
93252008-05-27 Jason Rumney <jasonr@gnu.org>
9326
9327 * w32font.c (w32font_open_internal): Determine if glyph indices
9328 are likely to work here.
9329
93302008-05-27 Chong Yidong <cyd@stupidchicken.com>
9331
9332 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9333 draw overlap glyphs with appropriate highlighting.
9334
93352008-05-27 Kenichi Handa <handa@m17n.org>
9336
9337 * xfont.c (xfont_open): Fix calculation of font->average_width.
9338
93392008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9340
9341 * casefiddle.c (casify_object): Try to guess better whether the
9342 argument is a byte or a char.
9343
93442008-05-26 Andreas Schwab <schwab@suse.de>
9345
9346 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9347 Always send multiples of format size.
9348
9349 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9350
93512008-05-26 Jason Rumney <jasonr@gnu.org>
9352
9353 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9354 (compute_metrics): Don't set failure if we just cleared the cache.
9355 (w32_weight_table): Remove unused variable.
9356 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9357 backwards compatibility.
9358
93592008-05-25 Kenichi Handa <handa@m17n.org>
9360
9361 * w32term.c (x_draw_glyph_string):
9362 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9363
9364 * xfaces.c: Delete unused function prototypes.
9365 (xstrlwr, font_frame): Delete them.
9366 (clear_face_cache): Delete unused variable.
9367
9368 * xftfont.c (xftfont_open): Delete unused variable.
9369 If underline_thickness is not 1, adjust underline_position.
9370
9371 * ftxfont.c (ftxfont_open): Delete unused variable.
9372
9373 * fontset.c (face_for_char): Optimize for the case of no charset
9374 property.
9375
9376 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9377 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9378 (otf_open, font_otf_capability, generate_otf_features)
9379 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9380 Comment out by surrounding "#if 0" and "#endif" for the moment.
9381 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9382 (syms_of_font): Codes for accessing above commented out.
9383
93842008-05-24 Eli Zaretskii <eliz@gnu.org>
9385
9386 * w32proc.c: Include dispextern.h.
9387
9388 * w32.c: Include dispextern.h.
9389
93902008-05-23 Juanma Barranquero <lekktu@gmail.com>
9391
9392 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9393 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9394 Fix typos in docstrings.
9395
93962008-05-23 Jason Rumney <jasonr@gnu.org>
9397
9398 * xsmfns.c: Remove includes that are already included by config.h.
9399
94002008-05-23 Kenichi Handa <handa@m17n.org>
9401
9402 * charset.c (Qemacs, charset_emacs): New variables.
9403 (char_charset): Fix for non-Unicode characters.
9404 (syms_of_charset): Define charset_emacs.
9405
9406 * w32term.c (x_draw_glyph_string): Be sure to update
9407 s->underline_thickness and s->underline_position. Be sure to draw
9408 underline within the current line area.
9409
9410 * xterm.c (x_draw_glyph_string): Be sure to update
9411 s->underline_thickness and s->underline_position. Be sure to draw
9412 underline within the current line area.
9413
9414 * fontset.c: Delete unused variables and add casting for char *
9415 throughout the file.
9416 (fontset_font): Try the fallback fonts of the current fontset
9417 before consulting the default fontset.
9418
9419 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9420
9421 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9422
94232008-05-22 Jason Rumney <jasonr@gnu.org>
9424
9425 * font.c: Don't include strings.h.
9426
9427 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9428
9429 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9430 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9431 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9432 to call xstrcasecmp.
9433
9434 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9435
9436 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9437
9438 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9439
9440 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9441
94422008-05-22 Kenichi Handa <handa@m17n.org>
9443
9444 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9445
9446 * font.c (font_prop_validate_style): Adjust for the format
9447 change of font_style_table.
9448
9449 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9450 two args.
9451
9452 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9453 two args.
9454
94552008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9456
9457 * minibuf.c (keys_of_minibuf): Delete.
9458 * lisp.h (keys_of_minibuf): Delete.
9459 * emacs.c (main): Don't call keys_of_minibuf.
9460
94612008-05-22 Kenichi Handa <handa@m17n.org>
9462
9463 * ftfont.c (ftfont_resolve_generic_family): Rename from
9464 ftfont_list_generic_family. Return a single family for each
9465 generic family.
9466 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9467 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9468 Call font_add_log.
9469 (ftfont_match): Call font_add_log.
9470
9471 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9472 (FONT_DEBUG): Define it.
9473 (font_add_log): Extern it.
9474 (font_assert): Rename from xassert.
9475
9476 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9477 (xfont_list_family): Call font_add_log.
9478 (xfont_match): Likewise.
9479 (memq_no_quit): Delete.
9480
9481 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9482 call of Ffont_xlfd_name.
9483
9484 * xfaces.c (struct table_entry, slant_table, weight_table)
9485 (swidth_table): Move to font.c.
9486
9487 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9488 xassert are changed to font_assert. Delete many unused variables.
9489 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9490 New variables.
9491 (struct table_entry): Move from xfaces.c and modified.
9492 (weight_table, slant_table, width_table): Move from xfaces.c and
9493 contents adjusted for the change of struct table_entry.
9494 (font_style_to_value, font_style_symbolic): Adjust for the
9495 format change of font_style_table.
9496 (font_parse_family_registry): Don't overwrite existing foundry and
9497 family of font_spec.
9498 (font_score): Fix calculation of diff for sizes.
9499 (font_sort_entites): Call font_add_log.
9500 (font_delete_unmatched): Return a newly created list.
9501 (font_list_entities): Fix previous change. Call font_add_log.
9502 (font_matching_entity, font_open_entity, font_close_entity):
9503 Call font_add_log.
9504 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9505 (Finternal_set_font_style_table): Delete.
9506 (BUILD_STYLE_TABLE): New macro.
9507 (build_style_table): New function.
9508 (Vfont_log, font_log_env_checked): New variables.
9509 (font_add_log): New function.
9510 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9511 Declare Lisp variables "font-weight-table", "font-slant-table",
9512 "font-width-table", and "font-log". Initialize font_style_table.
9513
95142008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9515
9516 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9517
95182008-05-21 Seiji Zenitani <zenitani@mac.com>
9519 Ryo Yoshitake <ryo@shiftmode.net>
9520
9521 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9522 (Vframe_alpha_lower_limit): New variable.
9523 (x_set_alpha): New function.
9524
9525 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9526
9527 * xfns.c (x-create-frame, Qalpha):
9528 Initialize the frame parameter `alpha'.
9529 * xterm.c (OPAQUE, OPACITY): New.
9530 (x_set_frame_alpha): New function.
9531 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9532
9533 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9534 * w32fns.c (w32_frame_parm_handlers): Likewise.
9535
95362008-05-20 Jason Rumney <jasonr@gnu.org>
9537
9538 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9539 truetype fonts to opentype list.
9540
95412008-05-20 Juanma Barranquero <lekktu@gmail.com>
9542
9543 * fontset.c (Ffontset_info): Doc fix.
9544 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9545 <ignore-relative-composition>: Fix typos in docstrings.
9546
9547 * font.c (syms-of-font) <font-encoding-alist>:
9548 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9549 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9550 (Ffont_otf_alternates): Doc fixes.
9551
95522008-05-20 Kenichi Handa <handa@m17n.org>
9553
9554 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9555 font.h through out the file.
9556 (FONT_DRIVERS): Rename from FONTOBJ.
9557 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9558 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9559
9560 * emacs.c (main): Call syms_of_font unconditionally.
9561
9562 * font.h (find_font_encoding): Extern it.
9563
9564 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9565 fontset.c.
9566 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9567 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9568 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9569 only when HAVE_WINDOW_SYSTEM is defined.
9570 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9571 when HAVE_WINDOW_SYSTEM is defined.
9572
9573 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9574 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9575
9576 * xfaces.c: Include font.h unconditionally.
9577 (merge_face_ref, merge_face_vectors)
9578 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9579
95802008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9581
9582 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9583 indirect_variable.
9584 * eval.c (lisp_indirect_variable): New fun.
9585 (Fuser_variable_p): Use it.
9586
95872008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9588
9589 * lisp.h (indirect_variable):
9590 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9591 Use Lisp_Symbol pointers rather than Lisp_Object.
9592 Adjust callers.
9593 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9594 To this end, change calling-convention.
9595
9596 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9597 if some non-hidden buffers are selected by string&pred.
9598
95992008-05-19 Chong Yidong <cyd@stupidchicken.com>
9600
9601 * process.c (wait_reading_process_output): Always check status
9602 when in batch mode.
9603
96042008-05-19 Kenichi Handa <handa@m17n.org>
9605
9606 * font.c (font_list_entities): Fix handling of cache.
9607 (font_matching_entity): Likewise.
9608
9609 * ftfont.c (cs_iso8859_1): Delete.
9610 (ft_face_cache): New variable.
9611 (struct ftfont_info): New member fc_charset_idx.
9612 (ftfont_build_basic_charsets): Delete.
9613 (fc_charset_table): New variable.
9614 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9615 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9616 Callers changed.
9617 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9618 (ftfont_spec_pattern): New argument fc_charset_idx.
9619 Check registry more rigidly. Change callers.
9620 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9621 change of :font-entity property of the font.
9622
9623 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9624 property of the font.
9625
96262008-05-18 Juanma Barranquero <lekktu@gmail.com>
9627
9628 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9629 (Funencodable_char_position, Fcheck_coding_systems_region)
9630 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9631 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9632 (Ffind_operation_coding_system, Fset_coding_system_priority)
9633 (Fcoding_system_eol_type): Doc fixes.
9634
96352008-05-17 Glenn Morris <rgm@gnu.org>
9636
9637 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9638
96392008-05-16 Eli Zaretskii <eliz@gnu.org>
9640
9641 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9642 and st_gid.
9643
9644 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9645 HAVE_WINDOW_SYSTEM is not defined.
9646
9647 * xfaces.c (merge_face_ref, merge_face_vectors)
9648 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9649 HAVE_WINDOW_SYSTEM is defined.
9650 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9651
96522008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9653
9654 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9655
96562008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9657
9658 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9659
96602008-05-15 Kenichi Handa <handa@m17n.org>
9661
9662 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9663 preference.
9664
96652008-05-15 Glenn Morris <rgm@gnu.org>
9666
9667 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9668
96692008-05-15 Chong Yidong <cyd@stupidchicken.com>
9670
9671 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9672 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9673
9674 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9675
96762008-05-15 Kenichi Handa <handa@m17n.org>
9677
9678 * ftfont.c (ftfont_list): Downcase family name to check generic
9679 families.
9680
9681 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9682 font-spec for QCfont value.
9683
9684 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9685 buffer. Check the return value of it.
9686
96872008-05-14 Jason Rumney <jasonr@gnu.org>
9688
9689 * w32term.c (w32_get_glyph_overhangs): Remove.
9690 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9691
96922008-05-14 Kenichi Handa <handa@m17n.org>
9693
9694 * font.c (font_prop_validate): Make nil a valid value.
9695 (font_clear_cache): Check if the cached vector of entities is nil
9696 or not.
9697
96982008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9699
9700 * emacs.c (main_thread): Conditionalize on
9701 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9702 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9703
9704 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9705 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9706 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9707
97082008-05-14 Kenichi Handa <handa@m17n.org>
9709
9710 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9711 has no corresponding coding system.
9712
97132008-05-14 Jason Rumney <jasonr@gnu.org>
9714
9715 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9716
9717 * w32font.h (w32font_open_internal): Update declaration.
9718
9719 * w32font.c (w32font_open_internal): Change last argument from
9720 w32font_info struct to font object. Fill in font object from
9721 font_entity. Get Outline metrics if possible. Use them to
9722 calculate underline position and thickness. Use xlfd name as name
9723 property. Don't set codepage.
9724 (w32font_open): Pass font_object to w32font_open_internal. Don't
9725 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9726 (w32font_draw): Use s->font.
9727 (clear_cached_metrics): Don't clear non-existent blocks.
9728
9729 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9730 font was not found.
9731 (x_draw_glyph_string): Use underline position and thickness from font.
9732
9733 * w32uniscribe.c (uniscribe_open): Pass font_object to
9734 w32font_open_internal.
9735
97362008-05-14 Kenichi Handa <handa@m17n.org>
9737
9738 These changes are to delete all legacy font-handling codes, and
9739 make Emacs use only font-backends.
9740
9741 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9742 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9743
9744 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9745
9746 * charset.h (Vcharset_non_preferred_head)
9747 (Vcurrent_iso639_language): Extern them.
9748
9749 * charset.c (Vcharset_non_preferred_head): New variable.
9750 (Vcurrent_iso639_language): New variable.
9751 (syms_of_charset): Declare it as a Lisp variable.
9752 (char_charset): Don't check non preferred charsets. As a last
9753 resort, return charset_unicode.
9754 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9755
9756 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9757 conditionals. Don't check enable_font_backend. Delete all codes
9758 used only when USE_FONT_BACKEND is not defined.
9759
9760 * dispextern.h (struct glyph_string): Change type of `font' to
9761 `struct font *'.
9762 (struct glyph_string): New member underline_position and
9763 underline_thickness.
9764 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9765 (struct face): Change type of `font' to `struct font *'. Remove
9766 members `font_name', `font_info_id'.
9767 (per_char_metric, encode_char): Delete externs.
9768 (calc_pixel_width_or_height): Adjust the prototype.
9769
9770 * emacs.c (enable_font_backend): Delete extern.
9771 (main): Don't set enable_font_backend. Don't check the command
9772 line argument "-disable-font-backend".
9773
9774 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9775 (enum font_property_index): New members FONT_DPI_INDEX,
9776 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9777 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9778 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9779 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9780 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9781 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9782 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9783 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9784 (struct font_spec, struct font_entity): New structs.
9785 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9786 (struct font): Many members from old "struct font_info" moved to
9787 here. Members font and entity deleted.
9788 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9789 the new font-related objects.
9790 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9791 (CHECK_FONT_GET_OBJECT): Likewise.
9792 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9793 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9794 (struct font_driver): New members case_sensitive anc check. Type
9795 of the member list and open changed.
9796 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9797 (font_symbolic_width, font_find_object, font_get_spec)
9798 (font_set_lface_from_name): Delete extern.
9799 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9800
9801 * font.c: Include <strings.h>.
9802 (enable_font_backend): Delete it.
9803 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9804 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9805 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9806 (null_string): Delete it.
9807 (null_vector): Make it static.
9808 (font_family_alist): Delete it.
9809 (Qnormal): Extern it.
9810 (QCextra, QClanguage): Delete it.
9811 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9812 (font_make_spec, font_make_entity, font_make_object)
9813 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9814 the string. Callers changed.
9815 (font_pixel_size): Adjusted for the format change of font-related
9816 objects.
9817 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9818 (font_style_to_value, font_style_symbolic): New function.
9819 (build_font_family_alist): Delete it.
9820 (font_registry_charsets): Use Fassoc_string instead of
9821 assq_no_quit.
9822 (font_prop_validate_symbol): Don't return null_string.
9823 (font_prop_validate_style): Adjusted for the change of
9824 style-related values in a font vector.
9825 (font_property_table): Delete entries for QClanguage and
9826 QCantialias, add entries for QCavgwidth.
9827 (get_font_prop_index): Delete the 2nd argument FROM.
9828 (font_prop_validate): Arguments changed.
9829 (font_put_extra): Adjusted for the change of font-related objects.
9830 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9831 (font_parse_fcname, font_unparse_fcname)
9832 (font_prepare_composition): Likewise.
9833 (font_parse_family_registry): Renamed from font_merge_old_spec.
9834 (otf_open): Delete the 1st arg entity.
9835 (font_otf_capability): Adjusted for the above change.
9836 (font_score): New arg alternate_families. Adjusted for the change
9837 of font-related objects.
9838 (font_sort_entites): New arg best_only.
9839 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9840 Delete them.
9841 (font_match_p): Check alternate families.
9842 (font_find_object): Delete it.
9843 (font_check_object): New function.
9844 (font_clear_cache): Adjusted for the change of font-related objects.
9845 (font_delete_unmatched): New arg.
9846 (font_list_entities): Call font_driver->list with a spec that
9847 doesn't specify style-related properties.
9848 (font_matching_entity): Arguments changed. Caller changed.
9849 (font_open_entity): Adjusted for the change of font-related objects.
9850 (font_close_object, font_has_char, font_encode_char)
9851 (font_get_name, font_get_spec): Likewise.
9852 (font_spec_from_name, font_clear_prop, font_update_lface):
9853 New functions.
9854 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9855 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9856 (font_at): Adjusted for the change of font-related objects.
9857 (font_range): New function.
9858 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9859 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9860 (Fcopy_font_spec, Fmerge_font_spec): New function.
9861 (Ffont_family_list): Renamed from list-families.
9862 (Finternal_set_font_style_table): Arguments changed.
9863 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9864 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9865 change of font-related objects.
9866 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9867
9868 * fontset.h (struct font_info): Delete it. Most members go to
9869 struct font.
9870 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9871 (enum FONT_SPEC_INDEX): Delete it.
9872 (font_info, list_fonts_func, load_font_func, query_font_func)
9873 (set_frame_fontset_func, find_ccl_program_func)
9874 (get_font_repertory_func, new_fontset_from_font_name): Delete
9875 externs.
9876 (fontset_from_font_name): Extern it.
9877 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9878 (FONT_INFO_FROM_FACE): Deleted.
9879 (face_for_font): Adjust prototype.
9880
9881 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9882 conditionals. Don't check enable_font_backend. Delete all codes
9883 used only when USE_FONT_BACKEND is not defined.
9884 (get_font_info_func, list_font_func, load_font_func)
9885 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9886 (get_font_repertory_func): Delete them.
9887 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9888 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9889 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9890 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9891 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9892 (fontset_compare_rfontdef): New function.
9893 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9894 rfont-defs by qsort. Adjusted for the change of font-group vector.
9895 (load_font_get_repertory): Deleted.
9896 (fontset_find_font): Use new macros to ref/set elements of
9897 font-def and rfont-def.
9898 (fontset_font): Fix the timing of remembering that no font for C.
9899 (free_face_fontset): Do nothing if the face has no fontset.
9900 (face_suitable_for_char_p): Use new macros to ref/set elements of
9901 rfont-def.
9902 (face_for_char): Likewise. Call face_for_char with font_object.
9903 (fs_load_font): Delete. Delete #pragma surrounding it.
9904 (fs_query_fontset): Use strcasecmp instead of strcmp.
9905 (generate_ascii_font_name): Adjusted for the format change of
9906 font-spec.
9907 (Fset_fontset_font): Likewise. Use new macros to set elements of
9908 font-def.
9909 (Fnew_fontset): Use font_unparse_xlfd to generate
9910 FONTSET_ASCII (fontset).
9911 (new_fontset_from_font_name): Deleted.
9912 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9913 a fontset is already created for the font. FIx updating of
9914 Vfontset_alias_alist.
9915 (fontset_ascii_font): Deleted.
9916 (Ffont_info): Adjusted for the format change of font-spec.
9917 (Finternal_char_font): Likewise.
9918 (Ffontset_info): Likewise.
9919 (syms_of_fontset): Don't check load_font_func.
9920
9921 * fns.c (internal_equal): Handle PREV_FONT.
9922
9923 * frame.h: Delete USE_FONT_BACKEND conditional.
9924
9925 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9926 conditionals. Don't check enable_font_backend. Delete all codes
9927 used only when USE_FONT_BACKEND is not defined.
9928 (x_set_font): Call x_new_font, not x_new_fontset2.
9929 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9930 already set for the frame.
9931
9932 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9933 a font-entity by font_make_entity. Use font_intern_prop instead
9934 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9935 font property. If a font is scalable, set avgwidth property to 0.
9936 Set font-entity property by font_put_extra.
9937 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9938 (ffont_driver): Adjusted for the change of struct font_driver.
9939 (ftfont_spec_pattern): New function.
9940 (ftfont_list): Return a list, not vector.
9941 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9942 (ftfont_list_family): Don't downcase names.
9943 (ftfont_free_entity): Deleted.
9944 (ftfont_open): Return a font-object. Adjusted for the change of
9945 struct font. Get underline_thickness and underline_position from
9946 font property. Don't update dpyinfo->smallest_font_height and
9947 dpyinfo->smallest_char_width.
9948 (ftfont_close): Don't free `struct font'.
9949 (ftfont_has_char): Adjusted for the format change of font-entity.
9950 (ftfont_encode_char, ftfont_text_extents): Likewise.
9951
9952 * ftxfont.c (ftxfont_list): Return a list, not vector.
9953 (ftxfont_open): Return a font-object. Adjusted for the change of
9954 struct font. Get underline_thickness and underline_position from
9955 font property. Don't update dpyinfo->smallest_font_height and
9956 dpyinfo->smallest_char_width.
9957 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9958 (ftxfont_draw): Adjusted for the change of struct font.
9959
9960 * image.c (image_ascent): Don't include "charset.h". Include
9961 "character.h" and "font.h".
9962
9963 * lisp.h (enum pvec_type): New member PREV_FONT.
9964 (Fassoc_string): EXFUN it.
9965
9966 * print.c: Include font.h.
9967 (print_object): Handle font-related objects.
9968
9969 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9970 conditionals. Don't check enable_font_backend. Delete all codes
9971 used only when USE_FONT_BACKEND is not defined.
9972 (handle_auto_composed_prop): Do nothing if it->f is not on a
9973 window system. Check how many following characters can be
9974 displayed by the same font.
9975 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9976 'struct font *'.
9977 (get_char_face_and_encoding): Assign the whole encoding task to
9978 the `encode-char' method of a font driver.
9979 (fill_composite_glyph_string): Adjusted for the change of `struct
9980 face' and `struct glyph_string'.
9981 (fill_glyph_string): Likewise.
9982 (get_per_char_metric): Arguments changed.
9983 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9984 and `struct glyph_string'.
9985 (produce_stretch_glyph, calc_line_height_property)
9986 (x_produce_glyphs): Likewise.
9987
9988 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9989 conditionals. Don't check enable_font_backend. Delete all codes
9990 used only when USE_FONT_BACKEND is not defined. Use
9991 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9992 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9993 (Qp): Extern them.
9994 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9995 Deleted.
9996 (struct font_name): Deleted.
9997 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9998 (compare_fonts_by_sort_order): New function.
9999 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10000 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10001 Deleted.
10002 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10003 compare_fonts_by_sort_order.
10004 (Fx_font_family_list): Call Ffont_family_list.
10005 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10006 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10007 (face_symbolic_slant, face_symbolic_swidth)
10008 (split_font_name_into_vector, build_font_name_from_vector)
10009 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10010 (font_rescale_ratio, split_font_name, build_font_name)
10011 (free_font_names, sort_fonts, x_face_list_fonts)
10012 (face_font_available_p, sorted_font_list, cmp_font_names)
10013 (font_list_1, concat_font_list, font_list, remove_duplicates):
10014 Deleted.
10015 (Fx_list_fonts): Use Ffont_list.
10016 (LFACE_AVGWIDTH): Deleted.
10017 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10018 by FONTP.
10019 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10020 (set_lface_from_font_name): Delete it.
10021 (set_lface_from_font): Renamed from
10022 set_lface_from_font_and_fontset. Caller changed. Don't set
10023 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10024 for face.
10025 (merge_face_vectors): Copy font-spec if necessary.
10026 Clear properties of the font-spec if necessary.
10027 (merge_face_ref): Clear properties of the font-spec if necessary.
10028 (Finternal_set_lisp_face_attribute): Likewise.
10029 (set_font_frame_param): Use font_load_for_lface to load a
10030 font-object, and call Fmodify_frame_parameters with it.
10031 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10032 font name by Ffont_xlfd_name.
10033 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10034 QCslant, and QCwidth.
10035 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10036 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10037 Compare fonts by EQ.
10038 (lookup_non_ascii_face): Deleted.
10039 (face_for_font): The 2nd argument changed.
10040 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10041 Check atomic font properties by case insensitive.
10042 (realize_non_ascii_face): Set face->overstrike correctly.
10043 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10044 (dump_realized_face): Get font name from
10045 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10046
10047 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10048 conditionals. Don't check enable_font_backend. Delete all codes
10049 used only when USE_FONT_BACKEND is not defined.
10050 (xic_create_xfontset): Original code deleted and renamed from
10051 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10052 (x_make_gc): Don't set GCFont in GCs.
10053 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10054 opened by "fixed".
10055 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10056 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10057 get_font_repertory_func.
10058
10059 * xfont.c: Include <stdlib.h> and "ccl.h".
10060 (struct xfont_info): New structure.
10061 (xfont_query_font): Deleted.
10062 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10063 moved from xterm.c.
10064 (xfont_driver): Adjusted for the change of struct font_driver.
10065 (compare_font_names): New function.
10066 (xfont_list_pattern): Sort font names case insensitively. Make
10067 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10068 (xfont_list): Return a list, not vector.
10069 (xfont_match): If the font doesn't have QCname property, generate
10070 a name from the other font properties.
10071 (xfont_open): Return a font-object. Adjusted for the change of
10072 struct font. Get underline_thickness and underline_position from
10073 font property. Don't update dpyinfo->smallest_font_height and
10074 dpyinfo->smallest_char_width.
10075 (xfont_close): Don't free struct font.
10076 (xfont_prepare_face): Adjusted for the change of struct font.
10077 (xfont_done_face): Deleted.
10078 (xfont_has_char): Adjusted for the change of struct font.
10079 (xfont_encode_char, xfont_draw): Likewise.
10080 (xfont_check): New function.
10081
10082 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10083 callback function.
10084 (xftfont_match): Adjusted for the format change of font-entity.
10085 (xftfont_open): Adjusted for the format change of font-entity and
10086 font-object. Adjusted for the change of struct font. Return a
10087 font-object. Don't update dpyinfo->smallest_font_height and
10088 dpyinfo->smallest_char_width.
10089 (xftfont_close): Block input while calling XftFontClose.
10090 (xftfont_prepare_face): Don't block input while calling
10091 xftfont_get_colors. Adjusted for the change of struct font.
10092 (xftfont_shape): Return value of error case fixed.
10093
10094 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10095
10096 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10097 conditionals.
10098 (FONT_WIDTH): Return (f)->max_width.
10099 (struct x_display_info): Delete member `font'.
10100 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10101 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10102 (struct x_output): Change type of `font' to `struct font *'.
10103
10104 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10105 conditionals. Don't check enable_font_backend. Delete all codes
10106 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10107 (x_per_char_metric, x_encode_char): Deleted.
10108 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10109 (x_compute_glyph_string_overhangs): Adjusted for the change of
10110 `struct face'.
10111 (x_draw_glyph_string_foreground)
10112 (x_draw_composite_glyph_string_foreground): Likewise.
10113 (x_draw_glyph_string): Likewise. Use font->underline_position and
10114 font->underline_thickness.
10115 (x_new_font): Renamed from x_new_fontset2.
10116 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10117 (x_check_font): Call `check' method of a font driver.
10118 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10119 (x_query_font, x_get_font_repertory): Deleted.
10120 (x_find_ccl_program): Renamed and moved to xfont.c.
10121 (x_redisplay_interface): Adjusted for the change of `struct
10122 redisplay_interface'.
10123
10124 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10125 conditionals. Don't check enable_font_backend. Delete all codes
10126 used only when USE_FONT_BACKEND is not defined. Surround non-used
10127 code by "#ifdef OLD_FONT" and "endif".
10128 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10129
10130 * w32font.h (struct w32font_info): New member.
10131 (FONT_COMPAT): New macro.
10132 (w32font_open_internal): Prototype adjusted.
10133
10134 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10135 OLD_FONT" and "endif".
10136
10137 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10138 conditionals. Don't check enable_font_backend. Delete all codes
10139 used only when USE_FONT_BACKEND is not defined.
10140 (w32font_open): Return a font-object. Make a font-object by
10141 font_make_object. Adjusted for the change of struct w32font_info.
10142 (w32font_close): Don't free struct font. Adjusted for the change
10143 of struct w32font_info.
10144 (w32font_encode_char, w32font_text_extents, w32font_draw):
10145 Adjusted for the change of struct w32font_info.
10146 (w32font_draw): Likewise.
10147 (w32font_list_internal): Return a list, not vector.
10148 (w32font_open_internal): Change the 4th arg to font-object.
10149 Adjusted for the change of struct w32font_info and font-object format.
10150 (add_font_name_to_list): Don't downcase names.
10151 (w32_enumfont_pattern_entity): Make a font-entity by
10152 font_make_entity. Adjusted for the format change of font-entity.
10153 Use FONT_SET_STYLE to set a style-related font property. If a
10154 font is scalable, set avgwidth property to 0. Set font-entity
10155 property by font_put_extra.
10156 (font_matches_spec): Adjusted for the format change of font-entity.
10157 (w32_weight_table, w32_decode_weight): New variables.
10158 (w32_encode_weight): New function.
10159 (fill_in_logfont): Adjusted for the format change of font-spec.
10160 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10161 weight value.
10162 (w32font_driver): Adjusted for the change of struct font_driver.
10163
10164 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10165 conditionals. Don't check enable_font_backend. Surround non-used
10166 code by "#ifdef OLD_FONT" and "endif".
10167 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10168 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10169
10170 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10171 conditionals. Don't check enable_font_backend. Delete all codes
10172 used only when USE_FONT_BACKEND is not defined. Surround non-used
10173 code by "#ifdef OLD_FONT" and "endif".
10174
10175 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10176 (uniscribe_open): Return value changed to font-object.
10177 Adjusted for the format change of font-object.
10178 (uniscribe_otf_capability): Adjusted for the change of struct font.
10179 (add_opentype_font_name_to_list): Don't downcase names.
10180 (uniscribe_font_driver): Adjusted for the change of struct
10181 font_driver.
10182
101832008-05-13 Chong Yidong <cyd@stupidchicken.com>
10184
10185 * dispnew.c (update_frame_1): Check if tty output is still valid
10186 before flushing it.
10187
101882008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10189
10190 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10191 to Gtk+ menus.
10192
101932008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10194
10195 * dired.c (file_name_completion): Tweak the code so as to always do it
10196 in a single pass. Tighten the scope of some variables.
10197
10198 * dired.c (Qdefault_directory): New var.
10199 (file_name_completion): Use it instead of Fexpand_file_name.
10200 (syms_of_dired): Initialize it.
10201
102022008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10203
10204 * fileio.c (double_dollars): Remove dead code.
10205
102062008-05-10 Eli Zaretskii <eliz@gnu.org>
10207
10208 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10209 Mention w32-get-true-file-attributes in doc string.
10210
10211 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10212
102132008-05-09 Glenn Morris <rgm@gnu.org>
10214
10215 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10216 2008-04-23.
10217
102182008-05-09 Eli Zaretskii <eliz@gnu.org>
10219
10220 Support for reporting owner and group of each file on MS-Windows:
10221 * dired.c (stat_uname, stat_gname): New functions, with special
10222 implementation for w32.
10223 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10224
10225 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10226 (dflt_group_name): New static variable.
10227 (dflt_group): Rename from the_group.
10228 (init_user_info): Init dflt_group fields. Get user's group name
10229 from LookupAccountSid.
10230 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10231 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10232 New initialization states.
10233 (globals_of_w32): Initialize them to zero. Initialize the default
10234 group name to "None".
10235 (GetFileSecurity_Name): New global var, the name of the function
10236 to call for GetFileSecurity.
10237 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10238 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10239 (get_file_security, get_security_descriptor_owner)
10240 (get_security_descriptor_group, is_valid_sid)
10241 (get_file_security_desc, get_rid, get_name_and_id)
10242 (get_file_owner_and_group): New functions.
10243 (stat): Use get_file_security_desc and get_file_owner_and_group to
10244 report the owner and primary group of each file. Don't ignore the
10245 high 32 bits of file's size, now that st_size is 64-bit wide.
10246 Fix test when to get true file attributes.
10247 (init_user_info): Use get_rid instead of equivalent inline code.
10248 (fstat): Don't ignore the high 32 bits of file's size.
10249
102502008-05-09 Chong Yidong <cyd@stupidchicken.com>
10251
10252 * image.c (png_load): Use correct bit-depth for setting background
10253 color.
10254
102552008-05-08 Eli Zaretskii <eliz@gnu.org>
10256
10257 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10258 epa-hook.elc.
10259
102602008-05-08 Juanma Barranquero <lekktu@gmail.com>
10261
10262 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10263
102642008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10265
10266 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10267 because the original parameters are in pure storage now.
10268 (mac_window): Remove unused params. Update callers.
10269
102702008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10271
10272 * lread.c (substitute_object_recurse): Use lower-level primitives.
10273 Don't signal errors when traversing sub-char-tables.
10274 Don't loop over all the possible characters when traversing char-tables.
10275
10276 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10277 just like we do in print.c.
10278
102792008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10280
10281 * minibuf.c (Ftry_completion): Remove code left over from when we used
10282 scmp instead of Fcompare_strings.
10283
102842008-05-04 Juanma Barranquero <lekktu@gmail.com>
10285
10286 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10287
102882008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10289
10290 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10291 Create bitmap context in native byte order.
10292
10293 * macterm.c (XDrawLine)
10294 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10295 context in native byte order.
10296
102972008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10298
10299 * config.in: Regenerate.
10300
10301 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10302 New definitions for Image I/O support.
10303 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10304 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10305 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10306 (mac_data_provider_release_data, image_load_image_io)
10307 [USE_MAC_IMAGE_IO]: New functions.
10308 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10309 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10310 (init_image_func_pointer) [MAC_OSX]: Remove function.
10311 (image_load_quartz2d) [MAC_OSX]: Check availability of
10312 CGImageCreateWithPNGDataProvider at compile time.
10313 Use lowercase `false' for boolean constant.
10314 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10315 Use image_load_image_io.
10316 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10317 Don't check MyCGImageCreateWithPNGDataProvider.
10318 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10319 Don't call init_image_func_pointer.
10320
10321 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10322
10323 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10324 Make variable non-static.
10325 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10326 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10327
10328 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10329 (RED_FROM_ULONG): Mask off higher bits.
10330 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10331
10332 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10333 Include AvailabilityMacros.h.
10334 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10335 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10336
103372008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10338
10339 * chartab.c (Fset_char_table_range): If range is t, really set all
10340 chars to that value.
10341
103422008-05-03 Eli Zaretskii <eliz@gnu.org>
10343
10344 * dired.c (Ffile_attributes): Don't allow the device number become
10345 negative.
10346
103472008-05-02 Daiki Ueno <ueno@unixuser.org>
10348
10349 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10350
103512008-05-02 Juri Linkov <juri@jurta.org>
10352
10353 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10354 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10355 DEFAULT argument as a list of default values in docstrings.
10356
103572008-05-01 Chong Yidong <cyd@stupidchicken.com>
10358
10359 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10360
103612008-05-01 Martin Rudalics <rudalics@gmx.at>
10362
10363 * dispnew.c (change_frame_size_1): Preserve small windows when
10364 shrinking frames by calling set_window_height|width with third
10365 arg 2.
10366
10367 * window.h (struct window): Replace field too_small_ok by field
10368 resize_proportionally.
10369
10370 * window.c (make_window): Initialize resize_proportionally.
10371 (enlarge_window): Temporarily set resize_proportionally to make
10372 sure that shrink_windows does scale the window proportionally.
10373 (shrink_windows): When window has resize_proportionally set try
10374 to shrink it proportionally by stealing from other windows.
10375 (struct saved_window, Fset_window_configuration)
10376 (compare_window_configurations): Handle resize_proportionally.
10377 (WINDOW_TOTAL_SIZE): New macro.
10378 (window_min_size, shrink_windows, size_window): Use it.
10379 (check_min_window_sizes): Remove. Invalid values of
10380 window-min-height|width are handled by window_min_size_2 now.
10381 (size_window, Fsplit_window, enlarge_window)
10382 (adjust_window_trailing_edge, grow_mini_window): Don't call
10383 check_min_window_sizes.
10384 (window_min_size_2, window_min_size_1, window_min_size):
10385 New argument safe_p for retrieving "safe" minimum sizes.
10386 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10387 (adjust_window_trailing_edge, grow_mini_window):
10388 Adjust arguments of window_min_size... functions.
10389 (shrink_windows): Argument min_size removed. New argument
10390 safe_p allows shrinking windows to their safe minimum sizes.
10391 Calculate minimum size and decide whether a window shall be
10392 deleted for each window individually.
10393 (size_window): When nodelete_p equals 2, tell shrink_windows to
10394 delete windows only if their new minimum size is no more safe.
10395 (shrink_window_lowest_first): Call window_min_size_1 to make
10396 sure to preserve modeline of bottom-most window when resizing
10397 the minibuffer.
10398 (Fset_window_configuration, Fcurrent_window_configuration)
10399 (compare_window_configurations): Do not handle
10400 window-min-height|width any more.
10401 (syms_of_window): Clarify window-min-height|width doc-strings.
10402
104032008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10404
10405 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10406 some more. Copy some of the code from Ftry_completions.
10407 Remove special case code that dates back to initial revision when the
10408 slash was only added when necessary and that can't trigger nowadays.
10409
104102008-04-27 Kenichi Handa <handa@m17n.org>
10411
10412 * font.c (font_prop_validate): Signal `error' instead of `font'.
10413
104142008-04-29 Jason Rumney <jasonr@gnu.org>
10415
10416 * w32fns.c (Fw32_battery_status): New defun.
10417 (syms_of_w32fns): Defsubr it.
10418
104192008-04-28 Andreas Schwab <schwab@suse.de>
10420
10421 * dired.c (file_name_completion): Fix another mixing of encoded
10422 and decoded names.
10423
104242008-04-28 Juanma Barranquero <lekktu@gmail.com>
10425
10426 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10427
104282008-04-27 Juanma Barranquero <lekktu@gmail.com>
10429
10430 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10431
104322008-04-27 Andreas Schwab <schwab@suse.de>
10433
10434 * dired.c (file_name_completion): Fix inappropriate mixing of
10435 encoded and decoded names.
10436
10437 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10438
10439 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10440
104412008-04-26 Eli Zaretskii <eliz@gnu.org>
10442
10443 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10444 2008-03-31, it's not needed anymore with `struct stat' definition
10445 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10446 for the same reasons.
10447
104482008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10449
10450 * m/sparc.h: Additional redefinitions for GNU/Linux.
10451
104522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10453
10454 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10455 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10456 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10457 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10458 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10459 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10460 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10461 Likewise.
10462
10463 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10464 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10465 (mac_ax_number_of_characters): Add externs.
10466 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10467 [USE_MAC_TSM]: Likewise.
10468 (mac_handle_text_input_event) [MAC_OSX]:
10469 Handle kEventTextInputOffsetToPos for no active input area case.
10470 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10471 (mac_handle_document_access_event)
10472 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10473 (install_application_handler) [MAC_OSX]: Register handlers for
10474 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10475 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10476 Register mac_handle_document_access_event.
10477
10478 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10479 Make functions non-static.
10480
104812008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10482
10483 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10484 (read_file_name_completion_ignore_case, insert_default_directory)
10485 (Qdefault_directory): Move to minibuffer.el.
10486 (Fread_file_name): Call the new `read-file-name' instead.
10487
104882008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10489
10490 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10491 Make function non-static.
10492 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10493 Remove function.
10494 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10495 Move to mactoolbox.c.
10496 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10497
10498 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10499 (mac_rect_make): New macro.
10500
10501 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10502 instead of float.
10503 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10504 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10505 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10506 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10507 CGRectMake.
10508 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10509 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10510 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10511 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10512 instead of WindowRef in argument type.
10513 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10514 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10515 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10516 instead of DISPLAY. All uses changed.
10517 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10518 (x_calc_absolute_position): Simplify so as not to use
10519 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10520
10521 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10522 instead of WindowRef in argument type.
10523 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10524 [TARGET_API_MAC_CARBON]: Remove externs.
10525 (create_apple_event, mac_event_parameters_to_lisp)
10526 [TARGET_API_MAC_CARBON]: Add externs.
10527
10528 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10529 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10530 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10531 is clicked.
10532 (x_activate_menubar): Remove extern for saved_menu_event_location.
10533 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10534 Move from mac.c.
10535
105362008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10537
10538 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10539 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10540
105412008-04-23 Jason Rumney <jasonr@gnu.org>
10542
10543 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10544 attributes only for local files.
10545
10546 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10547 default to Qlocal.
10548
105492008-04-22 Juri Linkov <juri@jurta.org>
10550
10551 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10552 read-buffer-to-switch instead of using the letter "B".
10553
105542008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10555
10556 * fileio.c (Qdefault_directory): New variable.
10557 (Fread_file_name): Use it to pass `dir' to the completion functions.
10558
105592008-04-20 Chong Yidong <cyd@stupidchicken.com>
10560
10561 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10562
105632008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10564
10565 * keyboard.c (Vpre_help_message): Remove.
10566 (show_help_echo): Remove default C code.
10567
10568 * dired.c (directory_files_internal, file_name_completion):
10569 Only call ENCODE_FILE if the string is indeed decoded.
10570
105712008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10572
10573 * Makefile.in (TOOLKIT_DEFINES): Remove.
10574 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10575
105762008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10577
10578 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10579 (mactoolbox.o): New target.
10580
10581 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10582 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10583
10584 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10585 Use mac_set_frame_window_background instead of XSetWindowBackground.
10586 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10587 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10588 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10589 instead of SetWindowTitleWithCFString.
10590 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10591 Move function to mactoolbox.c.
10592 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10593 Use mac_set_window_modified instead of SetWindowModified.
10594 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10595 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10596 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10597 FrontNonFloatingWindow. Use mac_activate_window instead of
10598 ActivateWindow. Use mac_active_non_floating_window instead of
10599 ActiveNonFloatingWindow.
10600 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10601 Use mac_show_hourglass and mac_hide_hourglass.
10602 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10603 instead of GetGlobalMouse.
10604 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10605 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10606 Use mac_bring_window_to_front instead of BringToFront.
10607 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10608 mactoolbox.c.
10609 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10610 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10611 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10612 mactoolbox.c.
10613
10614 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10615 (XtPointer): Move typedef from macmenu.c.
10616 (enum button_type): Move enum from macmenu.c.
10617 (widget_value): Move typedef from macmenu.c.
10618 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10619 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10620 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10621 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10622 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10623 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10624 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10625 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10626 (Selection): Move typedef from macselect.c.
10627 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10628 macterm.c.
10629 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10630 (mac_is_window_collapsed, mac_bring_window_to_front)
10631 (mac_send_window_behind, mac_hide_window, mac_show_window)
10632 (mac_collapse_window, mac_front_non_floating_window)
10633 (mac_active_non_floating_window, mac_activate_window)
10634 (mac_move_window_structure, mac_move_window, mac_size_window)
10635 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10636
10637 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10638 (enum mac_menu_kind): Move enum to mactoolbox.c.
10639 (min_menu_id): Move variable to mactoolbox.c.
10640 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10641 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10642 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10643 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10644 [TARGET_API_MAC_CARBON]: Likewise.
10645 (XtPointer): Move typedef to macgui.h.
10646 (enum button_type): Move enum to macgui.h.
10647 (widget_value): Move typedef to macgui.h.
10648 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10649 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10650 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10651 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10652 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10653 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10654 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10655 (popup_activated_flag): Make variable non-static.
10656 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10657 (add_menu_item, fill_menu, dispose_menus):
10658 Move functions to mactoolbox.c.
10659 (restore_show_help_function, menu_target_item_handler)
10660 (install_menu_target_item_handler, mac_handle_dialog_event)
10661 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10662 [TARGET_API_MAC_CARBON]: Likewise.
10663 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10664 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10665 (find_and_call_menu_selection, name_is_separator): Make function
10666 non-static.
10667 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10668 to mactoolbox.c.
10669 (set_frame_menubar): Don't call install_menu_quit_handler.
10670 (menu_item_selection): New variable.
10671 (mac_menu_show): Use create_and_show_popup_menu.
10672 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10673 selection but set variable menu_item_selection. All uses changed.
10674 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10675 Call install_menu_quit_handler. Move to mactoolbox.c.
10676
10677 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10678 (Selection): Move typedef to macgui.h.
10679 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10680 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10681 Make variables non-static.
10682 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10683 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10684 Make functions non-static.
10685 (Vmac_service_selection) [MAC_OSX]: Likewise.
10686 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10687 (mac_valid_selection_target_p, mac_clear_selection)
10688 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10689 (mac_put_selection_value, mac_selection_has_target_p)
10690 (mac_get_selection_value, mac_get_selection_target_list)
10691 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10692 Move functions to mactoolbox.c.
10693 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10694 Likewise.
10695 (copy_scrap_flavor_data, mac_handle_service_event)
10696 (install_service_handler) [MAC_OSX]: Likewise.
10697 (syms_of_macselect) <Vmac_dnd_known_types>:
10698 Use mac_dnd_default_known_types.
10699
10700 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10701 Move to mactoolbox.c.
10702 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10703 (Fx_selection_owner_p): Add EXFUN.
10704 (install_window_handler, remove_window_handler, XSetWindowBackground):
10705 Remove externs.
10706 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10707 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10708 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10709 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10710 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10711 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10712 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10713 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10714 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10715 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10716 (mac_valid_selection_target_p, mac_clear_selection)
10717 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10718 (mac_put_selection_value, mac_selection_has_target_p)
10719 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10720 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10721 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10722 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10723 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10724 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10725 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10726 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10727 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10728
10729 * mactoolbox.c: New file.
10730
107312008-04-18 Jason Rumney <jasonr@gnu.org>
10732
10733 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10734
107352008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10736
10737 * character.c (Fmultibyte_char_to_unibyte):
10738 Return latin1 chars unchanged.
10739
10740 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10741 relocated if it points to `name'.
10742
107432008-04-17 Kenichi Handa <handa@m17n.org>
10744
10745 * data.c (Faset): Allow setting a multibyte character in an
10746 ASCII-only unibyte string.
10747
10748 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10749
107502008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10751
10752 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10753 done in config.h.
10754
107552008-04-16 Juanma Barranquero <lekktu@gmail.com>
10756
10757 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10758 (Fchar_direction): Add usage in the docstring.
10759
107602008-04-15 Chong Yidong <cyd@stupidchicken.com>
10761
10762 * keyboard.c (read_key_sequence): Remove always-true checks.
10763
107642008-04-14 Jason Rumney <jasonr@gnu.org>
10765
10766 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10767 compatibility struct, for better underline positioning.
10768
107692008-04-13 David Hansen <david.hansen@gmx.net>
10770
10771 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10772 string.
10773
107742008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10775
10776 * m/hp800.h (XUINT, XSET): Remove.
10777
107782008-04-12 Juanma Barranquero <lekktu@gmail.com>
10779
10780 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10781 previous change.
10782
107832008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10784
10785 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10786 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10787
107882008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10789
10790 * keymap.h (map_keymap_canonical): Declare.
10791 * xmenu.c (single_keymap_panes): Use it.
10792
107932008-04-11 Glenn Morris <rgm@gnu.org>
10794
10795 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10796 set the target's value to that of the alias.
10797
107982008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10799
10800 * term.c (set_tty_color_mode): Left over typo.
10801
108022008-04-10 Michael Albinus <michael.albinus@gmx.de>
10803
10804 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10805 only after check for file name handler functions. Signal, when
10806 native functionality is not supported.
10807 (syms_of_fileio): Declare it unconditionally.
10808
108092008-04-10 Jason Rumney <jasonr@gnu.org>
10810
10811 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10812 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10813
10814 * w32.c (logon_network_drive): Also logon to remote drives that
10815 are mapped to drive letters.
10816
108172008-04-10 Glenn Morris <rgm@gnu.org>
10818
10819 * xdisp.c (truncate-partial-width-windows): Doc fix.
10820
108212008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10822
10823 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10824 Move functions to minibuffer.el.
10825 (syms_of_fileio): Don't declare them.
10826
108272008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10828
10829 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10830 (syms_of_minibuf): Remove its initialization.
10831
10832 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10833
108342008-04-09 Juanma Barranquero <lekktu@gmail.com>
10835
10836 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10837
108382008-04-09 Jason Rumney <jasonr@gnu.org>
10839
10840 * makefile.w32-in (distclean): Delete makefile too.
10841 (maintainer-clean): New target.
10842
10843 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10844
10845 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10846 for new font backend and composite cases.
10847
108482008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10849
10850 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10851 Most of the code moved to run_timers.
10852 (do_pending_atimers): Call run_timers.
10853 (run_timers): New function.
10854
10855 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10856 run atimers.
10857
10858 * process.c (wait_reading_process_output): The same as above.
10859
108602008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10861
10862 * minibuf.c (last_exact_completion): Remove variable.
10863 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10864 (complete_and_exit_1, complete_and_exit_2)
10865 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10866 (Fdisplay_completion_list, display_completion_list_1)
10867 (Fminibuffer_completion_help, Fself_insert_and_exit)
10868 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10869 minibuffer.el.
10870 (syms_of_minibuf): Remove corresponding initializations.
10871
10872 * keyboard.c (Qdeactivate_mark): New var.
10873 (command_loop_1): Use it to call `deactivate-mark'.
10874 (syms_of_keyboard): Initialize it.
10875
10876 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10877 to another frame.
10878 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10879 Don't call set_tty_color_mode.
10880 (store_frame_param): Reset previous_frame rather than call
10881 set_tty_color_mode.
10882 * term.c (set_tty_color_mode): Rewrite.
10883 * dispextern.h (set_tty_color_mode): New type.
10884 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10885
108862008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10887
10888 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10889 for generic chars, which do not exist any more in emacs-unicode.
10890
108912008-04-08 Michael Albinus <michael.albinus@gmx.de>
10892
10893 * coding.c (detect_coding_emacs_mule)
10894 (Ffind_operation_coding_system): Fix typo.
10895
108962008-04-08 Jason Rumney <jasonr@gnu.org>
10897
10898 * w32uniscribe.c (SNAME): Extract only symbol name.
10899
10900 * w32font.h (struct w32_metric_cache): New struct.
10901 (w32font_info): Use it.
10902 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10903 (CACHE_BLOCKSIZE): New constants.
10904
10905 * w32font.c (Qja, Qko, Qzh): New symbols.
10906 (syms_of_w32font): Initialise them.
10907 (font_matches_spec): Use them to filter by language.
10908 (recompute_cached_metrics): Remove function.
10909 (compute_metrics, clear_cached_metrics): New functions.
10910 (w32font_encode_char): Use them to manage metric cache.
10911 (w32font_text_extents): Cache metrics for all glyphs on demand.
10912 Delay converting glyph indices to WORD until needed.
10913 (w32font_open_internal): Initialize metric cache to empty.
10914 (registry_to_w32_charset): Charset should always be a symbol.
10915 (fill_in_logfont, list_all_matching_fonts): Family should
10916 always be a symbol.
10917
109182008-04-06 Jason Rumney <jasonr@gnu.org>
10919
10920 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10921 Give up if glyph indices not supported. Use uniscribe obtained
10922 ABC widths for individual metrics. Map glyph clusters back to
10923 characters using fClusterStart flag. Return number of glyphs
10924 produced, not chars processed.
10925 (uniscribe_shape): Map char at FROM to current glyph.
10926
109272008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10928
10929 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10930 Use SetMenuItemHierarchicalMenu.
10931
109322008-04-05 Jason Rumney <jasonr@gnu.org>
10933
10934 * image.c (pbm_load): Allow color values up to 65535.
10935 Throw an error if max_color_idx is outside the supported range.
10936 Report an error when image size is invalid.
10937 Read two bytes at a time when raw images have max_color_idx above 255.
10938
109392008-04-05 Eli Zaretskii <eliz@gnu.org>
10940
10941 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10942 cFileName a file name that includes `?' characters, use the 8+3
10943 alias in cAlternateFileName instead.
10944
109452008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10946
10947 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10948 append "CCL: Quitted" when the CCL program is quitted.
10949 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10950
10951 * ccl.h (struct ccl_program): New member quit_silently.
10952
109532008-04-05 Chong Yidong <cyd@stupidchicken.com>
10954
10955 * search.c (compile_pattern_1): Treat non-nil and non-string of
10956 search-spaces-regexp as nil.
10957
10958 * minibuf.c (Fassoc_string): Tweak docstring.
10959
109602008-04-05 Eli Zaretskii <eliz@gnu.org>
10961
10962 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10963 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10964 2008-03-14 to force inode be positive.
10965
10966 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10967 _S_* ones, since we now use our own sys/stat.h.
10968 (stat, fstat): Don't mangle the inode number.
10969 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10970
109712008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10972
10973 * frame.h (struct frame): Give one more bit to `visible' since we use
10974 values larger than 1 to indicate obscured frames on ttys.
10975
10976 * keymap.c (Qkeymap_canonicalize): New var.
10977 (Fmap_keymap_internal): New fun.
10978 (describe_map): Use keymap-canonicalize.
10979
10980 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10981 (Fundo_boundary): Set them.
10982 (syms_of_undo): Initialize them.
10983 (record_point): Use them instead of last_point_position*.
10984 (last_undo_buffer): Change type.
10985
109862008-04-04 Jason Rumney <jasonr@gnu.org>
10987
10988 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10989 (recompute_cached_metrics): Don't set ascent and descent per char.
10990
10991 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10992 (uniscribe_check_otf): Add GC protection before consing.
10993 Rearrange loop for counting features.
10994
109952008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10996
10997 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10998 buffer with byte-size of source buffer.
10999
110002008-04-03 Chong Yidong <cyd@stupidchicken.com>
11001
11002 * callint.c (Fcall_interactively): Handle temporary region even
11003 when shift-select-mode is off.
11004
110052008-04-03 Jason Rumney <jasonr@gnu.org>
11006
11007 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11008
110092008-04-03 Kenichi Handa <handa@m17n.org>
11010
11011 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11012 (CATEGORY_MASK_UTF_16): Likewise.
11013 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11014 binary file.
11015 (detect_coding): Add null-byte detection for a binary file.
11016 (detect_coding_system): Likewise.
11017
110182008-04-03 Jason Rumney <jasonr@gnu.org>
11019
11020 * w32uniscribe.c: New file.
11021
11022 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11023
11024 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11025
11026 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11027 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11028 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11029 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11030 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11031 (Qphonetic): New symbols.
11032 (syms_of_w32font): Initialize them.
11033 (font_supported_scripts): Use them.
11034 (w32font_list_family): List all charsets.
11035 (w32font_text_extents, recompute_cached_metrics): Fix metric
11036 calculations.
11037 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11038 Give opentype fonts their own format.
11039 (font_matches_spec): New arguments backend and logfont.
11040 Handle :otf spec for uniscribe backend.
11041 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11042 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11043
11044 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11045 font backend.
11046 (globals_of_w32fns): Initialize uniscribe font backend.
11047
11048 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11049 dependencies.
11050 (w32uniscribe.$(O)): New file to build.
11051 (FONT_OBJ): Include w32uniscribe.$(O).
11052 (LIBS): Add uniscribe libraries.
11053
11054 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11055
110562008-04-02 Chong Yidong <cyd@stupidchicken.com>
11057
11058 * callint.c (Vshift_select_mode): New var.
11059 (Finteractive): Document new ^ spec.
11060 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11061 is present.
11062
11063 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11064 (command_loop_1): Avoid running the direct display versions of
11065 forward-char and backward-char if shift-selection may occur.
11066 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11067 shift-translation takes place.
11068
11069 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11070 avoid clobbering by define-minor-mode.
11071
11072 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11073 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11074
11075 * syntax.c (Fforward_word): Add ^ interactive spec.
11076
11077 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11078 (Fscroll_right): Add ^ interactive spec.
11079
110802008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11081
11082 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11083
11084 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11085
11086 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11087
110882008-03-31 Juri Linkov <juri@jurta.org>
11089
11090 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11091
110922008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11093
11094 * gtkutil.c (xg_set_geometry): Fix indentation.
11095 (xg_resize_outer_widget): Remove.
11096 (x_wm_size_hint_off): Fix indentation.
11097 (xg_frame_set_char_size): Call flush_and_sync after
11098 gtk_window_resize.
11099 (x_wm_set_size_hint): Pass NULL as geometry window to
11100 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11101 Add menu bar and tool bar height to base height.
11102 (xg_update_frame_menubar, free_frame_menubar)
11103 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11104 (update_frame_tool_bar, free_frame_tool_bar):
11105 Change xg_resize_outer_widget to xg_frame_set_char_size.
11106
111072008-03-30 Michael Albinus <michael.albinus@gmx.de>
11108
11109 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11110 (Fdbus_call_method): New parameter TIMEOUT.
11111 (dbus-send-signal): Optimize UNGCPRO call.
11112
111132008-03-29 Juri Linkov <juri@jurta.org>
11114
11115 * window.c (Fdisplay_buffer): Move call to
11116 Vsplit_window_preferred_function out of conditions that check
11117 if window is eligible for vertical splitting.
11118 When Vsplit_window_preferred_function is non-nil, call it and use
11119 its non-nil return value as window. Otherwise, continue doing
11120 vertical splitting using Fsplit_window with arg horflag=nil.
11121 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11122 default value from `split-window' to nil.
11123
111242008-03-29 Juri Linkov <juri@jurta.org>
11125
11126 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11127 for interactive code letters 'b' and 'B'.
11128
111292008-03-29 Eli Zaretskii <eliz@gnu.org>
11130
11131 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11132 multibyte string.
11133
111342008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11135
11136 * keyboard.c (pending_funcalls): New var.
11137 (timer_check): Run it.
11138 (syms_of_keyboard): Initialize it.
11139 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11140 (Vdelete_terminal_functions): New vars.
11141 (syms_of_terminal): Initialize them.
11142 (Fdelete_terminal): Run delete-terminal-functions.
11143 * xdisp.c (safe_eval): Rewrite.
11144 (safe_call2): New fun.
11145 * frame.c (Qdelete_frame_functions): New var.
11146 (syms_of_frame): Initialize it.
11147 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11148 * lisp.h (safe_call2, pending_funcalls): Declare.
11149
111502008-03-28 Andreas Schwab <schwab@suse.de>
11151
11152 * indent.c (Fmove_to_column): Move declaration before statements.
11153
111542008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11155
11156 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11157 (struct frame): Use bit fields for boolean vars.
11158
11159 * process.c (server_accept_connection): Simplify naming.
11160 (emacs_get_tty_pgrp): Use SDATA.
11161
11162 * coding.c (decode_coding_object): Fix last change.
11163
111642008-03-27 Jason Rumney <jasonr@gnu.org>
11165
11166 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11167
111682008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11169
11170 * charset.c (Fdefine_charset_internal): Change the way of
11171 registering charsets in Vcharset_order_list.
11172 (syms_of_charset): Make the charset `eight-bit' supplementary.
11173
111742008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11175
11176 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11177 operations, to avoid having the difference between pointers
11178 overflow.
11179
111802008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11181
11182 * indent.c (check_display_width): New fun.
11183 (scan_for_column): Use it.
11184
11185 * data.c (syms_of_data): Mark most-positive-fixnum and
11186 most-negative-fixnum as constants.
11187
11188 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11189
11190 * indent.c (scan_for_column): Extract from current_column_1.
11191 Merge with the same code from Fmove_to_column.
11192 (current_column_1, Fmove_to_column): Use it.
11193
111942008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11195
11196 * keymap.c (map_keymap_internal): New fun.
11197 (map_keymap): Use it.
11198 (Fmap_keymap_internal): New fun.
11199 (Fmap_keymap): Remove left-out test from before make_save_value.
11200
11201 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11202
11203 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11204 Use XCAR/XCDR.
11205
11206 * process.h (struct Lisp_Process): Remove filter_multibyte.
11207 * process.c (QCfilter_multibyte): Remove.
11208 (setup_process_coding_systems): Don't use filter_multibyte.
11209 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11210 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11211 (Fset_process_filter_multibyte): Change the coding-system to
11212 approximate the previous behavior.
11213 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11214 coding-system.
11215
11216 * coding.c (decode_coding_object): When not decoding into a buffer,
11217 obey the coding system's preference of (uni|multi)byte.
11218
112192008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11220
11221 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11222 every char is changed and has a different byte-length.
11223 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11224 Fix int -> EMACS_INT.
11225
112262008-03-23 David Hansen <david.hansen@gmx.net>
11227
11228 * dbusbind.c (xd_read_message): Remove extra copying of message
11229 strings. Check for NULL `interface' or `member'.
11230
112312008-03-22 Eli Zaretskii <eliz@gnu.org>
11232
11233 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11234 cFileName a file name that includes `?' characters, use the 8+3
11235 alias in cAlternateFileName instead.
11236
112372008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11238
11239 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11240
112412008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11242
11243 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11244 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11245 work on current_buffer only instead (that was already the case
11246 for some of the code anyway).
11247 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11248 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11249 (SET_PT, SET_PT_BOTH): Adjust.
11250 * intervals.h (set_point, temp_set_point, set_point_both)
11251 (temp_set_point_both): Remove redundant declarations.
11252
112532008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11254
11255 * fileio.c (Finsert_file_contents):
11256 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11257 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11258 when buffer != current_buffer anyway.
11259
112602008-03-20 Andreas Schwab <schwab@suse.de>
11261
11262 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11263 as default.
11264
112652008-03-19 Jason Rumney <jasonr@gnu.org>
11266
11267 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11268 (syms_of_w32fns): Initialize them.
11269 (HOURGLASS_ID): New constant.
11270 (x_window_to_frame): Don't check hourglass_window.
11271 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11272 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11273 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11274 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11275 Only change the cursor if hourglass is not active.
11276 (Fx_create_frame): Initialize frame's current_cursor.
11277 (hourglass_atimer): Remove.
11278 (hourglass_started): New function.
11279 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11280 (show_hourglass): Adapt to w32, changing argument to frame.
11281
11282 * w32term.h (struct w32_output): Remove hourglass_window.
11283 Add current_cursor.
11284
11285 * eval.c (call_debugger, Fsignal):
11286 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11287 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11288 (Fexecute_extended_command, cancel_hourglass_unwind):
11289 * minibuf.c (read_minibuf):
11290 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11291
112922008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11293
11294 * window.c (run_funs): New fun.
11295 (run_window_configuration_change_hook): Use it to run the buffer-local
11296 and the global part of the hook.
11297
11298 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11299 (unwind_format_mode_line): Restore selected window.
11300 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11301
113022008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11303
11304 * editfns.c (Fchar_equal): Check they are valid characters.
11305
11306 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11307
113082008-03-17 Andreas Schwab <schwab@suse.de>
11309
11310 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11311 against a charset.
11312
11313 * lisp.h (Fbuffer_list): Declare.
11314
113152008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11316
aac0c6e3
MR
11317 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11318 handlebox_widget is != 0.
11319
113202008-03-16 Juri Linkov <juri@jurta.org>
11321
11322 * callint.c (Fcall_interactively): For interactive code letters
11323 'b' and 'B' put the buffer list into the list of default "future"
11324 values of the minibuffer.
11325
113262008-03-16 Andreas Schwab <schwab@suse.de>
11327
11328 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11329 modifiers.
11330
11331 * regex.c (re_match_2_internal): Correct matching of a charset
11332 against latin-1 characters.
11333
113342008-03-16 Kenichi Handa <handa@m17n.org>
11335
11336 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11337 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11338 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11339 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11340 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11341 CHAR_STRING_ADVANCE.
11342 (produce_chars): Fix for the case that the source and the
11343 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11344 instead of CHAR_STRING_ADVANCE.
11345 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11346 STRING_CHAR_ADVANCE.
11347
113482008-03-15 Andreas Schwab <schwab@suse.de>
11349
11350 * regex.c (re_match_2_internal): Correct matching of eight bit
11351 characters in unibyte strings.
11352
113532008-03-15 Martin Rudalics <rudalics@gmx.at>
11354
11355 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11356 at end of range when it coincides with the end of the buffer.
11357
113582008-03-14 Eli Zaretskii <eliz@gnu.org>
11359
11360 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11361
11362 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11363
113642008-03-14 Jason Rumney <jasonr@gnu.org>
11365
11366 * editfns.c (initial_tz): New variable.
11367 (syms_of_editfns): Initialize it.
11368 (Fset_time_zone_rule): Set it when first called.
11369 Use it when TZSTRING is nil.
11370
11371 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11372 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11373 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11374 (globals_of_w32fns): Initialize them.
11375 (compute_tip_xy): Use them to position tooltips.
11376
113772008-03-14 Glenn Morris <rgm@gnu.org>
11378
11379 * emacs.c (main): Revert previous change.
11380 (standard_args): Revert -internal-script back to -scriptload,
11381 and remove the long-option form.
11382
113832008-03-13 Glenn Morris <rgm@gnu.org>
11384
11385 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11386 Remove option -enable-font-backend.
11387
113882008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11389
11390 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11391
113922008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11393
11394 * xterm.c (x_connection_closed): For GTK: If this is the last
11395 terminal just exit without closing the display.
11396
113972008-03-11 Jason Rumney <jasonr@gnu.org>
11398
11399 * w32font.c (w32font_full_name): Use floor to round.
11400
f0131492 114012008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11402
11403 * sound.c (alsa_configure): Declare vol at beginning of block.
11404
11405 * fontset.c (Ffontset_info): Remove extra semicolon.
11406
114072008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11408
11409 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11410 size of resulting string.
11411
114122008-03-10 Jason Rumney <jasonr@gnu.org>
11413
11414 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11415
114162008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11417
11418 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11419 Don't pretend as if characters with display property haven't been
11420 consumed for string-replacing-string case.
11421
114222008-03-08 Kim F. Storm <storm@cua.dk>
11423
11424 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11425 (get_next_display_element, next_element_from_string)
11426 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11427
114282008-03-08 Andreas Schwab <schwab@suse.de>
11429
11430 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11431
114322008-03-06 Jason Rumney <jasonr@gnu.org>
11433
11434 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11435 when charset not specified. Only translate ANSI to unicode when
11436 font_type is truetype.
11437 (w32font_coverage_ok): New function.
11438 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11439
114402008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11441
11442 * lread.c (Fread_char): Resolve modifiers.
11443 (Fread_char_exclusive): Likewise.
11444
11445 * character.c (char_resolve_modifier_mask): New function.
11446 (char_string): Use char_resolve_modifier_mask.
11447 (Fchar_resolve_modifiers): New function.
11448 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11449 function.
11450
114512008-03-04 Jason Rumney <jasonr@gnu.org>
11452
11453 * makefile.w32-in: Always include w32font.c in the build.
11454 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11455
114562008-03-04 Andreas Schwab <schwab@suse.de>
11457
11458 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11459 (versionclean): Likewise.
11460
114612008-03-04 Juanma Barranquero <lekktu@gmail.com>
11462
11463 * .cvsignore: Add oo.
11464
114652008-03-03 Andreas Schwab <schwab@suse.de>
11466
11467 * coding.c (decode_coding_object): Inhibit gap shrinking while
11468 decoding in place.
11469
114702008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11471
11472 * w32term.c: Remove unused include "gnu.h".
11473 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11474
11475 * gnu.h: Rename to ...
11476 * emacs-icon.h: ... this.
11477 * xterm.c: Use emacs-icon.h instead of gnu.h.
11478 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11479
114802008-03-03 Juanma Barranquero <lekktu@gmail.com>
11481
11482 * w32font.c: Include math.h.
11483
114842008-03-03 Jason Rumney <jasonr@gnu.org>
11485
11486 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11487 Compute options separately.
11488 (w32font_open_internal): Set glyph_idx before caching metrics.
11489
11490 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11491 Define if system headers don't.
11492 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11493 (w32font_encode_char): Don't declare here.
11494
11495 * w32font.c (Quniscribe, QCformat): New symbols.
11496 (syms_of_w32font): Define them.
11497 (w32font_has_char): Indicate uncertainty.
11498 (w32font_encode_char): Encode as glyph point. Make static.
11499 (recompute_cached_metrics): New function.
11500 (w32font_open_internal): Use it. Set font to use glyph points
11501 initially. Set format based on type of font.
11502 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11503 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11504 on it. Set format based on information available here.
11505 (add_font_entity_to_list): Identify backend based on opentype_only.
11506
115072008-03-02 Andreas Schwab <schwab@suse.de>
11508
11509 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11510
11511 * coding.c (decode_coding_big5, produce_chars):
11512 Fix typos in last change.
11513
115142008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11515
11516 * gnu.h: New icon.
11517
115182008-03-02 Kenichi Handa <handa@m17n.org>
11519
11520 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11521 `dos', don't decode '\r' if that is the last in the source.
11522 (decode_coding_utf_16, decode_coding_emacs_mule)
11523 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11524 (decode_coding_raw_text, decode_coding_charset): Likewise.
11525 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11526
115272008-03-01 Jason Rumney <jasonr@gnu.org>
11528
11529 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11530
115312008-03-01 Kim F. Storm <storm@cua.dk>
11532
11533 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11534
115352008-03-01 Jason Rumney <jasonr@gnu.org>
11536
11537 * w32font.c (w32font_full_name): New function.
11538 (w32font_open_internal): Use it.
11539
115402008-03-01 Kim F. Storm <storm@cua.dk>
11541
11542 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11543
115442008-03-01 Jason Rumney <jasonr@gnu.org>
11545
11546 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11547
115482008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11549
11550 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11551 xg_frame_resized when the event is for the edit widget.
11552
11553 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11554
11555 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11556 set_char_size.
11557 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11558 operations on widgets here. Just set frame size if needed.
11559 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11560 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11561 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11562 the whole frame.
11563 (xg_create_tool_bar): Move attachment of the tool bar to
11564 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11565 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11566
115672008-03-01 Jason Rumney <jasonr@gnu.org>
11568
11569 * w32fns.c (w32_msg_pump): Disable debug code.
11570
115712008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11572
11573 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11574
115752008-02-29 Chong Yidong <cyd@stupidchicken.com>
11576
11577 * xdisp.c (next_overlay_string): Don't set
11578 overlay_strings_at_end_processed_p if we're currently reading from
11579 a display string.
11580
115812008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11582
11583 * xdisp.c (get_overlay_strings_1): Fix typo.
11584
115852008-02-29 Chong Yidong <cyd@stupidchicken.com>
11586
11587 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11588
115892008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11590
11591 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11592
11593 * xdisp.c (display_mode_element): Cancel the previous change.
11594 (decode_mode_spec): Likewise.
11595 (handle_auto_composed_prop): Don't make composition if it->string
11596 is a string.
11597
115982008-02-27 Kim F. Storm <storm@cua.dk>
11599
11600 * lisp.h (GLYPH): Change type from int to struct with separate char
11601 and face_id members.
11602 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11603 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11604 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11605 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11606 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11607 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11608 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11609 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11610 handle new Lisp glyph code encoding, either an integer or a cons.
11611
11612 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11613 (GLYPH_ALIAS): Delete.
11614 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11615 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11616 (GLYPH_FROM_CHAR): Replace macro by ...
11617 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11618
11619 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11620 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11621 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11622 (GLYPH_INVALID_P): New macro.
11623 (spec_glyph_lookup_face): Update prototype.
11624
11625 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11626 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11627 new glyph code encoding.
11628 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11629 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11630
11631 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11632 Adapt to new glyph type and new glyph code encoding.
11633
11634 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11635
11636 * indent.c (current_column, current_column_1, Fmove_to_column)
11637 (compute_motion): Adapt to new glyph code encoding.
11638
11639 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11640
116412008-02-27 Chong Yidong <cyd@stupidchicken.com>
11642
11643 * process.c (wait_reading_process_output): Check for window
11644 changes caused by timers.
11645 Suggested by Johan Bockgård.
11646
116472008-02-27 Glenn Morris <rgm@gnu.org>
11648
11649 * emacs.c (USAGE1): Add `--disable-font-backend'.
11650
116512008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11652
11653 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11654 is made to the buffer.
11655
116562008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11657
11658 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11659 (face_at_string_position):
11660 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11661 (face_at_string_position):
11662 * xdisp.c (display_string, next_overlay_change):
11663 * buffer.h (overlays_at):
11664 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11665 Update callers.
11666
116672008-02-26 Chong Yidong <cyd@stupidchicken.com>
11668
11669 * editfns.c (Fformat): Doc fix.
11670
116712008-02-26 Juanma Barranquero <lekktu@gmail.com>
11672
11673 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11674 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11675 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11676
116772008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11678
11679 * buffer.c (Fbuffer_swap_text): New function.
11680 (syms_of_buffer): Defsubr it.
11681
116822008-02-25 Chong Yidong <cyd@stupidchicken.com>
11683
11684 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11685
116862008-02-25 Jason Rumney <jasonr@gnu.org>
11687
11688 * w32font.c (w32font_draw): Draw one character at a time when padding.
11689
116902008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11691
11692 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11693 Handle a nil arg. Use run_window_configuration_change_hook.
11694 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11695 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11696 Use run_window_configuration_change_hook.
11697
116982008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11699
11700 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11701 1-pixel width.
11702
117032008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11704
11705 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11706 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11707 if the glyph in the font is zero pixel with.
11708
11709 * dispextern.h (struct glyph_string): New member padding_p.
11710
11711 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11712
11713 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11714
11715 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11716
11717 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11718
11719 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11720
117212008-02-25 Jason Rumney <jasonr@gnu.org>
11722
11723 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11724
117252008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11726
11727 Allow fine-grained image-cache flushing.
11728 * dispextern.h (struct image): Add `dependencies' field.
11729 (clear_image_caches): Change arg to Lisp_Object.
11730 * image.c (make_image): Initialize `dependencies' field.
11731 (clear_image_cache): Change arg to allow fine-grained flushing.
11732 Perform the flush even if image-cache-eviction-delay is nil.
11733 (clear_image_caches): Change arg to Lisp_Object.
11734 (Fclear_image_cache): Expand meaning of the argument.
11735 (mark_image): Mark `dependencies' field.
11736 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11737 (lface_hash): Use XHASH rather than XFASTINT.
11738 (face_at_buffer_position): Fix int -> EMACS_INT position.
11739 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11740 (select_frame_for_redisplay): Remove code duplication.
11741 (redisplay_internal): Adapt arg to call to clear_image_caches.
11742
117432008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11744
11745 * s/vms4-0.h:
11746 * s/vms4-2.h:
11747 * s/vms4-4.h:
11748 * s/vms5-5.h: Remove, unused.
11749
11750 * s/irix5-2.h:
11751 * s/irix6-0.h:
11752 * s/riscos5.h:
11753 * s/mach-bsd4-3.h:
11754 * m/mips4.h: Remove files for obsolete systems.
11755
11756 * Makefile.in:
11757 * filelock.c:
11758 * unexmips.c:
11759 * m/hp9000s300.h:
11760 * m/iris4d.h:
11761 * s/aix3-1.h:
11762 * s/hpux.h:
11763 * s/msdos.h:
11764 * s/usg5-0.h:
11765 * s/usg5-2-2.h:
11766 * s/usg5-2.h:
11767 * s/usg5-3.h: Remove references to obsolete variables.
11768
11769 * s/irix5-0.h: Remove, move all the contents ...
11770 * s/irix6-5.h: ... here. Simplify.
11771 * config.in: Regenerate.
11772
117732008-02-24 Jason Rumney <jasonr@gnu.org>
11774
11775 * w32term.c (x_draw_glyph_string_background): Clear the background
11776 manually when cleartype is in use.
11777 (x_draw_glyph_string_foreground): Draw text transparently when
11778 cleartype is in use.
11779
11780 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11781 a font into it unless we have to.
11782
117832008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11784
11785 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11786 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11787
aac0c6e3
MR
117882008-02-18 Jason Rumney <jasonr@gnu.org>
11789
11790 * w32fns.c (Fw32_shell_execute): Encode parameters.
11791
117922008-02-09 Eli Zaretskii <eliz@gnu.org>
11793
11794 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11795
117962008-02-05 Juanma Barranquero <lekktu@gmail.com>
11797
11798 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11799
118002008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11801
11802 * xterm.c (x_set_offset): Don't change the gravity if
11803 CHANGE_GRAVITY is -1.
11804
118052008-02-23 Chong Yidong <cyd@stupidchicken.com>
11806
11807 * fileio.c (auto_save_error_occurred): New var.
11808 (auto_save_error): Set it.
11809 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11810 error occurred.
11811
118122008-02-23 Eli Zaretskii <eliz@gnu.org>
11813
11814 * w32.c (globals_of_w32): Add initializations for
11815 g_b_init_get_sid_sub_authority and
11816 g_b_init_get_sid_sub_authority_count.
11817
118182008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11819
11820 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11821 (font_parse_xlfd): Use them for sanity check.
11822 (Finternal_set_font_style_table): Make sure the table is bijective.
11823
11824 Consolidate the image_cache to the terminal struct.
11825 * termhooks.h (P_): Remove redundant def.
11826 (struct terminal): New field `image_cache'.
11827 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11828 of FRAME_X_IMAGE_CACHE.
11829 * xterm.h (struct x_display_info): Remove image_cache field.
11830 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11831 * w32term.h (struct w32_display_info): Remove image_cache field.
11832 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11833 * macterm.h (struct mac_display_info): Remove image_cache field.
11834 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11835 * xterm.c (x_term_init):
11836 * w32term.c (w32_term_init):
11837 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11838 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11839 Remove declarations.
11840 (clear_image_caches, mark_image_cache): New declarations.
11841 * xfaces.c (clear_face_cache):
11842 * xdisp.c (redisplay_internal): Use clear_image_caches.
11843 * image.c (clear_image_cache): Don't check that a frame is on
11844 a window-system before checking if it shares the same cache.
11845 (clear_image_caches): New function.
11846 (Fclear_image_cache): Use it.
11847 (mark_image): Move from allo.c.
11848 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11849 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11850 (mark_object): Don't call mark_image_cache for frames.
11851 (mark_terminals): Call mark_image_cache.
11852
11853 * lisp.h (Fdelete_terminal): Declare.
11854
11855 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11856 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11857 wrong_type_argument.
11858
118592008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11860
11861 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11862 malayalam.el, and tamil.el. Add sinhala.el.
11863
118642008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11865
11866 * xterm.c (x_connection_closed): Consolidate identical tests.
11867 (x_delete_terminal): Don't crash if called via x_connection_closed.
11868
118692008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11870
11871 * xdisp.c (decode_mode_spec): New arg string.
11872 (display_mode_element): Adjust for the above change.
11873
118742008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11875
11876 * callint.c (Fcall_interactively): Use AREF.
11877
118782008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11879
11880 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11881
118822008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11883
11884 * xfns.c (Fx_show_tip): Set string to " " if empty.
11885
118862008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11887
11888 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11889 with Qt.
11890
118912008-02-17 Kenichi Handa <handa@m17n.org>
11892
11893 * ftfont.c (ftfont_shape): Return Lispy number.
11894
11895 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11896 for GCs.
11897 (Finternal_set_font_selection_order): Call font_update_sort_order
11898 only when enable_font_backend is set.
11899 (realize_x_face): Set face->font_info to that of default face only
11900 when enable_font_backend is set.
11901
11902 * xdisp.c (handle_composition_prop): Set it->c to the fist
11903 character of the composed region.
11904 (fill_composite_glyph_string): Set base_face->font_info to
11905 s->font_info. Get a face for ascii from base_face->ascii_face.
11906 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11907 with a face already decided.
11908 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11909 non-negative.
11910 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11911 call font_prepare_composition unconditionally.
11912
11913 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11914
11915 * xterm.h (struct x_display_info): New member font.
11916
11917 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11918 (x_set_mouse_face_gc, x_new_font): Likewise.
11919 (x_term_init): Setup display_info->font.
11920 (x_delete_terminal): Free display_info->font.
11921
11922 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11923
11924 * ftxfont.c (ftxfont_default_fid): Delete it.
11925 (ftxfont_open): Set xfont->fid to 0.
11926 (ftxfont_end_for_frame): Clear data specific to the frame and the
11927 font-driver.
11928
11929 * xftfont.c (xftfont_default_fid): Delete it.
11930 (xftfont_open): Set xfont->fid to 0.
11931
11932 * fontset.c (FONTSET_OBJLIST): New macro.
11933 (fontset_find_font): Update font-object list of the fontset.
11934 (free_realized_fontset): New function.
11935 (free_face_fontset): Call free_realized_fontset.
11936 (Ffont_info): Call font_close_object only when enable_font_backend
11937 is set.
11938
11939 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11940 [HAVE_NTGUI]: Include w32term.h.
11941 [MAC_OS]: Include macterm.ch.
11942 (font_otf_ValueRecord): Use make_number.
11943 (font_finish_cache): Fix handling of reference count.
11944 (font_clear_cache): Update num_fonts.
11945 (font_open_entity): Update smallest_char_width and
11946 smallest_font_height of the frame.
11947 (font_close_object): Update num_fonts.
11948 (Fclear_font_cache): Fix finding the target cache data.
11949
119502008-02-16 Glenn Morris <rgm@gnu.org>
11951
11952 * fontset.c (Finternal_char_font): Fix compilation warning.
11953
119542008-02-16 Eli Zaretskii <eliz@gnu.org>
11955
11956 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11957 instead of char arrays. Enlarge the size of array passed to
11958 get_token_information.
11959
11960 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11961 warnings.
11962
119632008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11964
11965 * .gdbinit: Don't set `args', it breaks gdb --args.
11966
119672008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11968
11969 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11970 within a narrowed buffer.
11971
119722008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11973
11974 * coding.c (decode_coding_object, encode_coding_object):
11975 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11976
119772008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11978
11979 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11980 hardcoding 1.
11981 (detect_coding_system):
11982 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11983 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11984 * insdel.c (insert_from_gap):
11985 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11986 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11987 (string_to_multibyte):
11988 * character.c (chars_in_text, multibyte_chars_in_text):
11989 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11990
11991 * character.h (FETCH_STRING_CHAR_ADVANCE)
11992 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11993 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11994 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11995
11996 * casefiddle.c (casify_region): Only call after-change and composition
11997 functions on the part of the region that was changed.
11998
11999 * keyboard.c (read_avail_input):
12000 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12001
120022008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12003
12004 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12005 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12006
120072008-02-11 Juanma Barranquero <lekktu@gmail.com>
12008
12009 * w32menu.c (push_submenu_start, push_submenu_end)
12010 (push_left_right_boundary, push_menu_pane, push_menu_item):
12011 * keyboard.c (read_key_sequence): Don't pass args with side effects
12012 to AREF, it fails when compiling with -DENABLE_CHECKING.
12013
120142008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12015
12016 * Makefile.in (${lispsource}international/charprop.el):
12017 Delete this target.
12018
12019 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12020 emacs-unicode-2.
12021
120222008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12023
12024 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12025
120262008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12027
12028 * frame.c (Qnoelisp): New symbol.
12029 (syms_of_frame): Initialize it.
12030 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12031 harmless Elisp code, from a strong `force' from x_connection_closed.
12032 * frame.h (Qnoelisp): Declare.
12033 * xterm.c (x_connection_closed): Pass `noelisp'.
12034
12035 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12036 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12037 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12038 rather than `int' for the type of `type'.
12039
120402008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12041
12042 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12043
12044 * Makefile.in (GNUC): Remove support for gcc-1.x.
12045
120462008-02-10 Richard Stallman <rms@gnu.org>
12047
12048 * lisp.h (ASET): Use AREF, not ASLOT.
12049
120502008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12051
12052 * lisp.h (ASET): Check bounds.
12053
120542008-02-10 Glenn Morris <rgm@gnu.org>
12055
12056 * buffer.c (mode-name): Doc fix.
12057
120582008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12059
12060 * Makefile.in:
12061 * emacs.c:
12062 * gmalloc.c:
12063 * keyboard.c:
12064 * lisp.h:
12065 * m/ibm370aix.h:
12066 * process.c:
12067 * regex.c:
12068 * s/hpux.h:
12069 * sysdep.c:
12070 * sysselect.h:
12071 * systty.h:
12072 * unexec.c:
12073 * w32term.c:
12074 * xsmfns.c:
12075 * xterm.c: Remove code that deals with obsolete variables.
12076
12077 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12078
12079 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12080 nothing else needs it anymore.
12081
120822008-02-09 Eli Zaretskii <eliz@gnu.org>
12083
12084 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12085 instead of unibyte_char_to_multibyte.
12086
120872008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12088
12089 * s/gnu-linux.h: Remove commented out code.
12090
12091 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12092
12093 * Makefile.in: Update what RMS says about using autoconf.
12094 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12095 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12096 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12097 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12098
120992008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12100
12101 * keymap.c (Fkey_description): Move side effect outside of macro call.
12102
12103 * xfaces.c (Finternal_make_lisp_face):
12104 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12105
12106 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12107 (syms_of_fontset): Use ASET.
12108
12109 * fns.c (concat): Move side effect outside of macro call.
12110 (hash_clear): Use ASET.
12111
121122008-02-08 Richard Stallman <rms@gnu.org>
12113
12114 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12115 If FORCE, and frame has a surrogate minibuffer for another frame,
12116 delete the other frame first.
12117
121182008-02-07 Timo Savola <timo.savola@iki.fi>
12119
12120 * xterm.c (x_detect_focus_change): Handle embed client message.
12121 (handle_one_xevent): Ditto.
12122 (handle_one_xevent): If embedded and we get a button press/release,
12123 request focus.
12124 (xembed_set_info, xembed_send_message): New functions.
12125 (x_make_frame_visible): Call xembed_set_info if embedded.
12126 (x_make_frame_invisible): Call xembed_set_info if embedded.
12127 (x_term_init): Initialize Xatom_XEMBED.
12128 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12129 (x_iconify_frame): Ditto.
12130
12131 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12132 (enum xembed_info, enum xembed_message, enum xembed_focus)
12133 (enum xembed_modifier, enum xembed_accelerator): New.
12134 (xembed_set_info, xembed_send_message): Declare.
12135 (FRAME_X_EMBEDDED_P): New.
12136
12137 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12138 gtk_plug_new.
12139
12140 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12141 window ID of a frame.
12142 (x_window): Reparent frame if embedded.
12143 (Fx_create_frame): Don't set border width if embedded.
12144
12145 * emacs.c (USAGE3): Add --parent-id.
12146 (standard_args): Ditto.
12147
121482008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12149
12150 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12151
121522008-02-07 Jim Meyering <meyering@redhat.com>
12153
12154 Use "do...while (0)", not "if (1)...else" in macro definitions.
12155 The latter provokes a warning from gcc about the empty else, when
12156 followed by ";". Also, without that trailing semicolon, it would
12157 silently swallow up any following statement.
12158 * syntax.h (SETUP_SYNTAX_TABLE)
12159 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12160 * buffer.h (DECODE_POSITION): Likewise.
12161 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12162 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12163 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12164 (FETCH_CHAR_ADVANCE): Likewise.
12165 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12166
121672008-02-07 Jim Meyering <meyering@redhat.com>
12168
12169 * lread.c [lint]: Don't include <sys/inode.h>.
12170
121712008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12172
12173 * xselect.c (x_handle_dnd_message):
12174 * xmenu.c (digest_single_submenu, xmenu_show):
12175 * xdisp.c (with_echo_area_buffer_unwind_data)
12176 (format_mode_line_unwind_data, unwind_format_mode_line)
12177 (display_menu_bar):
12178 * eval.c (Ffetch_bytecode):
12179 * doc.c (store_function_docstring):
12180 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12181 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12182 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12183
121842008-02-07 Kenichi Handa <handa@m17n.org>
12185
12186 * ftxfont.c (ftxfont_open): Don't set
12187 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12188
12189 * ftfont.c (ftfont_open): Fix previous change.
12190
121912008-02-06 Jason Rumney <jasonr@gnu.org>
12192
12193 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12194 Use cached metrics for ASCII characters.
12195 (w32font_open_internal): Don't set font's owning_frame.
12196 Cache metrics for ASCII characters.
12197
12198 * w32font.h (struct w32font_info): Add ascii_metrics.
12199 Remove owning_frame.
12200
122012008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12202
12203 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12204 to negative value.
12205
12206 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12207
12208 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12209
12210 * charset.c (syms_of_charset): Set QCtest and Qeq.
12211
122122008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12213
12214 * process.c (Fstart_process):
12215 * callproc.c (Fcall_process): Handle the case where
12216 Funhandled_file_name_directory returns nil.
12217
12218 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12219 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12220 * font.c (check_gstring): Use them and AREF to access the vector before
12221 we know it's really a gstring.
12222 (Ffont_shape_text): Fix typo.
46e722a9 12223 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12224
12225 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12226 Declare.
12227
12228 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12229
122302008-02-05 Jason Rumney <jasonr@gnu.org>
12231
12232 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12233 Set smallest_font_height and smallest_char_width in display info.
12234
122352008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12236
12237 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12238
122392008-02-05 Miles Bader <miles@gnu.org>
12240
12241 * xfaces.c (get_lface_attributes, merge_named_face)
12242 (lookup_named_face, lookup_derived_face, realize_named_face):
12243 Revert 2008-02-01 change by cyd@stupidchicken.com.
12244
122452008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12246
12247 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12248 fallback fonts.
12249 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12250
122512008-02-04 Jason Rumney <jasonr@gnu.org>
12252
12253 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12254 set full_name.
12255 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12256
122572008-02-03 Jason Rumney <jasonr@gnu.org>
12258
12259 * makefile.w32-in (OBJ1): Include font.o here.
12260 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12261
122622008-02-02 Jason Rumney <jasonr@gnu.org>
12263
12264 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12265
122662008-02-01 Jason Rumney <jasonr@gnu.org>
12267
12268 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12269
12270 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12271
122722008-02-01 Andreas Schwab <schwab@suse.de>
12273
12274 * Makefile.in (shortlisp, lisp): Update for rename of
12275 ../lisp/language/myanmar.el.
12276
122772008-02-01 Chong Yidong <cyd@stupidchicken.com>
12278
12279 * xfaces.c (get_lface_attributes): Delete function.
12280 (merge_named_face, lookup_named_face, lookup_derived_face)
12281 (realize_named_face): Call lface_from_face_name directly, and use
12282 the fact that merge_face_vectors does not alter its FROM argument.
12283
122842008-02-01 Jason Rumney <jasonr@gnu.org>
12285
12286 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12287 input in the default locale. Handle non-Unicode multibyte input.
12288
122892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12290
12291 * fontset.c (reorder_font_vector): Exclude nil elements from the
12292 font group. Don't try multiple fonts.
12293 (fontset_font): Adjust for the above change.
12294 (Finternal_char_font): Return nil if the found font doesn't
12295 contain the character ch.
12296
12297 * Makefile.in (lisp, shortlisp): Add cham.el.
12298
122992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12300
12301 * font.h (FONTP): Make it return 1 also for a font-object.
12302
12303 * .gdbinit (xfontset): New function.
12304
12305 * font.c (font_find_for_lface): Check if the character C is
12306 supported or not only for the first font.
12307
12308 * fontset.c (reorder_font_vector): Fix typo.
12309 (fontset_find_font): Don't add a font-spec specifying a script.
12310 Use 0 (not Qt) for the indication of empty font-group. Change the
12311 format of RFONT-DEF. Return Qt if no font in the font-group
12312 support the character.
12313 (fontset_font): Adjust for the above change. If no font was
12314 found the character, remember that.
12315 (face_for_char): Adjust for the change of RFONT-DEF.
12316 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12317 no font for the target.
12318 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12319
123202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12321
12322 * font.c (font_load_for_face): Handle the case that the font in
12323 face->lface is a string.
12324
123252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12326
12327 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12328
123292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12330
12331 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12332 Fix previous change. If the frame is not on a window system,
12333 signal an error.
12334
123352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12336
12337 * coding.c (decode_coding_object, encode_coding_object): Adjust
12338 marker positions after conversion.
12339
12340 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12341
123422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12343
12344 * font.c (font_find_for_lface): Fix the handling of the return
12345 value of font_has_char.
12346 (Ffont_shape_text): Fix previous change.
12347
12348 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12349 (fontset_ref_and_range): Delete it.
12350 (fontset_find_font): Call char_table_ref_and_range instead of
12351 FONTSET_REF_AND_RANGE.
12352 (make_fontset): Don't setup font groups of Latin here.
12353 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12354 (new_fontset_from_font): Make the specified font the default for
12355 all Latin characters.
12356
123572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12358
12359 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12360 is on a window system before accessing the fontset of the frame.
12361
123622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12363
12364 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12365
12366 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12367 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12368
12369 * font.c (Ffont_shape_text): If the font driver doesn't have a
12370 shaper function, make zero-width glyphs to have at least one-pixel
12371 width. Fix setting of `to' field of glyphs.
12372
123732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12374
12375 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12376 glyphs.
12377
12378 * font.h (struct font_driver): Improve docstring of member `shape'.
12379
123802008-02-01 Kenichi Handa <handa@m17n.org>
12381
12382 * composite.c (syms_of_composite): Fix docstring of
12383 auto-composition-function.
12384
12385 * font.h (LGLYPH_SIZE): New macro.
12386
12387 * font.c (Ffont_fill_gstring): Stop filling when a character not
12388 supported by the font is found.
12389 (Ffont_shape_text): When a shape callback function returns nil,
12390 try at most two more times with larger gstring.
12391 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12392
12393 * xdisp.c (handle_auto_composed_prop): Change the argument to
12394 auto-composition-function.
12395
12396 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12397 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12398 Lispy glyph and store it in the lgstring.
12399
12400 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12401
12402 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12403
124042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12405
12406 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12407
12408 * fontset.c (Vfont_encoding_charset_alist): New variable.
12409 (syms_of_fontset): DEFVAR it.
12410 (reorder_font_vector, fontset_find_font): Optimize for the case of
12411 no need of reordering.
12412 (face_for_char): Map the charset property by
12413 Vfont_encoding_charset_alist.
12414
124152008-02-01 Jason Rumney <jasonr@gnu.org>
12416
12417 * w32font.c (logfonts_match): Don't check adstyle here.
12418 (font_matches_spec): Check here against physical font instead.
12419 (add_font_entity_to_list): Avoid some substitutions.
12420
12421 * font.c (font_parse_fcname): Default weight and slant to normal.
12422 (font_score): Prefer normal fonts if weight or slant unspecified.
12423 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12424 match freetype scores.
12425
124262008-02-01 Jason Rumney <jasonr@gnu.org>
12427
12428 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12429 font, as it may have been deleted.
12430 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12431 most common hyphenless variation.
12432 (logfonts_match): Check generic family.
12433 (font_matches_spec): Don't check generic family here.
12434 (fill_in_logfont): Set generic family based on adstyle.
12435
12436 * w32font.h (w32font_get_cache): Update declaration.
12437
124382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12439
12440 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12441
12442 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12443 If none of the new drivers are available, call font_update_drivers
12444 with the old drivers.
12445
12446 * w32font.c (w32font_get_cache): Adjust the argument type.
12447
12448 * xfont.c (xfont_get_cache): Adjust the argument type.
12449
12450 * font.h (struct font_driver): Change argument type of get_cache.
12451
12452 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12453
12454 * font.c (Ffont_get): Fix arguments to Fassoc.
12455 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12456 (font_clear_cache): New function.
12457 (font_list_entities, font_matching_entity): Use font_get_cache.
12458 (font_update_drivers): Call font_clear_cache when finishing a driver.
12459
12460 * fontset.c (fontset_find_font): Fix previous change.
12461
124622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12463
12464 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12465 dpyinfo->font_table.
12466 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12467 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12468
12469 * font.c (font_at): Handle the case that the arg C is negative.
12470 Handle the unibyte case.
12471 (Ffont_at): Call font_at with the arg C -1.
12472
12473 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12474 the position here, and call font_at with the arg C -1.
12475 Don't check the range of the existing composition at the point.
12476
124772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12478
12479 * fontset.c (fontset_add): New args charset_id and family.
12480 Change caller.
12481 (load_font_get_repertory, fontset_find_font): Assume that
12482 font_spec is always a font-spec object.
12483 (Fset_fontset_font): Always store a font-spec object in a fontset.
12484
12485 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12486 instead of get_property_and_range.
12487
124882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12489
12490 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12491 (xftfont_open): Don't keep locking face.
12492 (xftfont_close): Don't unlock face.
12493 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12494
12495 * fontset.c (fontset_find_font): Don't prefer a font of
12496 supplementary charset.
12497
124982008-02-01 Kenichi Handa <handa@m17n.org>
12499
12500 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12501 script, langsys_tag to langsys, new member script.
12502 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12503 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12504 listing to the script specified in that property. Fix arg to
12505 OTF_check_features.
12506
125072008-02-01 Jason Rumney <jasonr@gnu.org>
12508
12509 * w32font.h: New file.
12510
12511 * w32font.c: Include it.
12512 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12513 (w32font_open): Set owning_frame.
12514 (w32font_text_extents): Use owning_frame.
12515 (struct font_callback_data): Add opentype_only field.
12516 (add_font_entity_to_list): Use it to filter fonts.
12517 Don't check against full name.
12518 (w32font_list_internal): New function.
12519 (w32font_list): Use it.
12520 (w32font_match_internal): New function.
12521 (w32font_match): Use it.
12522 (w32font_open_internal): New function.
12523 (w32font_open): Use it.
12524 (w32font_get_cache, w32font_close, w32font_has_char)
12525 (w32font_encode_char, w32font_text_extents, w32font_draw):
12526 Make non-static.
12527
12528 * makefile.w32-in (w32font.o): Depend on w32font.h.
12529
125302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12531
12532 * charset.c (Fdefine_charset_internal): Record a supplementary
12533 charset at the tail of Vcharset_order_list.
12534
12535 * font.c (Ffont_shape_text): Fix the return value.
12536
12537 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12538
12539 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12540
125412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12542
12543 * ftfont.c (struct OpenTypeSpec): New struct.
12544 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12545 (ftfont_get_open_type_spec): New function.
12546 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12547
12548 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12549
125502008-02-01 Jason Rumney <jasonr@gnu.org>
12551
12552 * w32font.c (add_font_entity_to_list): Compare only the beginning
12553 of full name.
12554
125552008-02-01 Kenichi Handa <handa@m17n.org>
12556
12557 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12558 Never return HANDLED_RECOMPUTE_PROPS.
12559
125602008-02-01 Kenichi Handa <handa@m17n.org>
12561
12562 * font.c (font_gstring_produce): Delete it.
12563
12564 * composite.h (COMPOSITION_METHOD):
12565 Handle COMPOSITION_WITH_GLYPH_STRING.
12566
125672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12568
12569 * xfont.c (Qx): Delete.
12570 (syms_of_xfont): Don't initialize Qx.
12571
12572 * composite.h (enum composition_method):
12573 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12574
125752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12576
12577 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12578 (choose_face_font): Accept new form of font-spec.
12579
12580 * frame.h (font_driver_list): Declare it unconditionally.
12581 (struct frame): Define members font_driver_list and font_data_list
12582 unconditionally.
12583
12584 * fontset.c: Include "font.h" unconditionally.
12585 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12586 (Fset_fontset_font): Accept a font-spec object.
12587
12588 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12589 PIXEL_SIZE part a wild card.
12590
12591 * dispextern.h (struct glyph_string): Define members clip and
12592 num_clips unconditionally.
12593 (struct face): Define members font_info and extra unconditionally.
12594
12595 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12596 ftfont_info only when HAVE_LIBOTF is defined.
12597
125982008-02-01 Andreas Schwab <schwab@suse.de>
12599
12600 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12601 and end.
12602
126032008-02-01 Jason Rumney <jasonr@gnu.org>
12604
12605 * w32font.c (w32font_driver): Add new fields.
12606
126072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12608
12609 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12610 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12611 (LIBES): Add @M17N_FLT_CFLAGS@.
12612
12613 * composite.c (compose_text): Don't treat the new style
12614 composition specially.
12615
12616 * emacs.c (main): Call syms_of_font unconditionally.
12617
12618 * font.h (FONT_ENTITY_NOT_LOADABLE)
12619 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12620 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12621 (struct font_driver): New member shape.
12622 (font_registry_charsets): Extern it.
12623 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12624 (font_otf_capability, font_drive_otf): Delete their externs.
12625
12626 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12627 (font_charset_alist, font_registry_charsets): Move from xfont.c
12628 and rename.
12629 (font_prop_validate_otf): New function.
12630 (font_property_table): Register it for QCotf.
12631 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12632 (font_drive_otf): Delete.
12633 (font_prepare_composition): New arg F. Adjust for the change of
12634 lispy gstring.
12635 (font_find_for_lface): New arg C.
12636 (font_load_for_face): Adjust for the change of font_find_for_lface.
12637 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12638 lispy gstring.
12639 (Ffont_shape_text): New function.
12640 (Fopen_font): If the font size is not given, use 12-pixel.
12641 (Ffont_at): New arg STRING.
12642 (syms_of_font): Initalize font_charset_alist.
12643 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12644 conditionally.
12645
12646 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12647 fonts of the same font-spec. Change the format of RFONT-DEF.
12648 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12649 Adjust for the change of RFONT-DEF.
12650 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12651
12652 * ftfont.h: New file.
12653
12654 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12655 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12656 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12657 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12658 font_otf_capability and font_drive_otf, set ftfont_shape.
12659 (ftfont_list): Adjust for the change of :otf property value.
12660 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12661 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12662 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12663 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12664 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12665 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12666
12667 * w32term.c (x_draw_composite_glyph_string_foreground):
12668 Adjust for the change of lispy gstring.
12669
12670 * xdisp.c (handle_composition_prop): Adjust for the change of
12671 lispy gstring. Call a function for auto-composition with the
12672 third arg it->window.
12673 (fill_composite_glyph_string): Adjust for the change of lispy string.
12674 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12675
12676 * xfaces.c (set_font_frame_param): Adjust for the change of
12677 font_find_for_lface.
12678
12679 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12680 (xfont_registry_charsets): Likewise. Change caller.
12681 (syms_of_xfont): Don't handle x_font_charset_alist.
12682
12683 * xftfont.c: Include "ftfont.h".
12684 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12685 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12686 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12687 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12688 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12689 Set xftfont_driver.shape to xftfont_shape.
12690
12691 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12692 the change of lispy gstring.
12693
126942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12695
12696 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12697
126982008-02-01 Jason Rumney <jasonr@gnu.org>
12699
12700 * w32font.c (w32font_draw): Fill background manually.
12701
127022008-02-01 Jason Rumney <jasonr@gnu.org>
12703
12704 * font.c (Qfontp): Remove unused symbol.
12705 (QCantialias): New symbol.
12706 (syms_of_font): Define it.
12707 (font_property_table): Set a validator for QCantialias.
12708
12709 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12710 Define if not already.
12711 (QCfamily): Share with xfaces.c.
12712 (Qstandard, Qsubpixel, Qnatural): New symbols.
12713 (syms_of_w32font): Define them. Don't define QCfamily here.
12714 (w32_antialias_type, lispy_antialias_type): New functions.
12715 (w32_enumfont_pattern_entity): New arg requested_font.
12716 Set antialias parameter if non-default was requested.
12717 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12718
127192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12720
12721 * lread.c (read1): Undo the previous change.
12722
127232008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12724
12725 * frame.c (Fdelete_frame): Call font_update_drivers only when
12726 USE_FONT_BACKEND is defined.
12727
127282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12729
12730 * font.h (struct font_bitmap): New member bits_per_pixel.
12731 (struct font_driver): New members start_for_frame and end_for_frame.
12732 (struct font_data_list): New struct.
12733 (font_put_frame_data, font_get_frame_data): Extern them.
12734
12735 * frame.h (struct frame): New member font_data_list.
12736
12737 * font.c (font_update_drivers): Call driver->start_for_frame and
12738 driver->end_for_frame at proper timings.
12739 (font_put_frame_data, font_get_frame_data): New functions.
12740 (Ffont_spec): Add usage in the docstring.
12741
12742 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12743 (Fdelete_frame): Call font_update_drivers.
12744
12745 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12746 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12747 (xftfont_get_xft_draw): New function.
12748 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12749 (xftfont_end_for_frame): New function.
12750 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12751
12752 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12753 Change argument. Cache GCs in the per-frame data.
12754 (struct ftxfont_frame_data): New struct.
12755 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12756 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12757 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12758 (ftxfont_end_for_frame): New function.
12759 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12760
12761 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12762
127632008-02-01 Kenichi Handa <handa@m17n.org>
12764
12765 * xselect.c (Vselection_coding_system)
12766 (Vnext_selection_coding_system): Delete them.
12767 (syms_of_xselect): Don't declare selection-coding-system and
12768 next-selection-coding-system. They are declared in select.el.
12769
127702008-02-01 Jason Rumney <jasonr@gnu.org>
12771
12772 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12773
12774 * w32fns.c: Include imm.h.
12775 (get_composition_string_fn, get_ime_context_fn): New optional
12776 system functions.
12777 (globals_of_w32fns): Load them from imm32.dll.
12778 (ignore_ime_char): New flag.
12779 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12780 WM_IME_ENDCOMPOSITION messages.
12781
12782 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12783 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12784
127852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12786
12787 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12788 (READCHAR_REPORT_MULTIBYTE): New macro.
12789 (readchar): New 2nd arg MULTIBYTE.
12790 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12791 Make symbol's name multibyte according to the multibyteness of the
12792 source.
12793
127942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12795
12796 * xfaces.c (face_for_overlay_string): Call lookup_face with
12797 correct arguments (fix of synching with the trunk).
12798
127992008-02-01 Kenichi Handa <handa@m17n.org>
12800
12801 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12802 (font_prop_validate_non_neg, font_prop_validate_spacing):
12803 Delete argument prop_index.
12804 (font_property_table): Change arguments to validater. Change Callers.
12805 (font_lispy_object): Delete.
12806 (font_at): Use font_find_object instead fo font_lispy_object.
12807
128082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12809
12810 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12811 and file names.
12812
128132008-02-01 Jason Rumney <jasonr@gnu.org>
12814
12815 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12816 (font_matches_spec): Remove debug output.
12817 (add_font_entity_to_list): Avoid using substituted fonts.
12818
128192008-02-01 Jason Rumney <jasonr@gnu.org>
12820
12821 * doc.c (Fsnarf_documentation):
12822 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12823
128242008-02-01 Miles Bader <miles@gnu.org>
12825
12826 * dispextern.h (struct glyph_row): Only define "clip" field if
12827 HAVE_WINDOW_SYSTEM is defined.
12828
128292008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12830
12831 Fix up multi-tty merge.
12832
12833 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12834 and indentation.
12835
12836 * xfaces.c (free_realized_face, clear_face_gcs):
12837 Include font_done_for_face in the input_blocked section, just in case.
12838
12839 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12840 (get_char_face_and_encoding): Undo last change and remove the *other*
12841 duplicate definition (i.e. keep the one that's better scoped and that
12842 includes code for the font-backend).
12843
12844 * terminal.c (create_terminal): Default keyboard_coding to
12845 `no-conversion' and terminal_coding to `undecided'.
12846
12847 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12848
12849 * fontset.c (free_realized_fontsets): Check that the table entry does
12850 contain a fontset before trying to compare it to `base'.
12851
12852 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12853 syms_of_charset, and syms_of_coding earlier because init_window_once
12854 now needs Vcoding_system_hash_table to be setup.
12855
12856 * coding.h (default_buffer_file_coding): Remove.
12857
12858 * coding.c (default_buffer_file_coding): Remove.
12859 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12860 than ->symbol, and use the terminal-local coding system.
12861 (syms_of_coding): Don't setup the coding-systems that are not
12862 terminal-local.
12863 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12864
12865 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12866 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12867
12868 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12869 in chartab.c and were re-added here by mistake.
12870 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12871
12872 * doc.c (Fsnarf_documentation):
12873 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12874 src to etc.
12875
12876 * ChangeLog.10: Add mistakenly removed entry.
12877
128782008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12879
12880 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12881
128822008-02-01 Miles Bader <miles@gnu.org>
12883
12884 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12885 Add extra args to FACE_FOR_CHAR.
12886
128872008-02-01 Kenichi Handa <handa@m17n.org>
12888
12889 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12890 in sequence.
12891
12892 * chartab.c (map_sub_char_table, map_char_table): If the range
12893 contains just one character, call the function with that character
12894 even if the depth is not 3.
12895
128962008-02-01 Jason Rumney <jasonr@gnu.org>
12897
12898 * w32font.c (w32font_text_extents): Calculate metrics for the
12899 whole string.
12900
129012008-02-01 Jason Rumney <jasonr@gnu.org>
12902
12903 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12904
129052008-02-01 Jason Rumney <jasonr@gnu.org>
12906
12907 * w32term.c (x_set_glyph_string_clipping): Use
12908 get_glyph_string_clip_rects.
12909 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12910 Adjust for the change of struct glyph_string.
12911
12912 * w32font.c (w32font_draw): Do clipping here.
12913
129142008-02-01 Kenichi Handa <handa@m17n.org>
12915
12916 * xftfont.c (xftfont_draw): Adjust for the change of struct
12917 glyph_string.
12918
12919 * xterm.c (x_set_glyph_string_clipping): Use
12920 get_glyph_string_clip_rects.
12921 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12922 Adjust for the change of struct glyph_string.
12923
12924 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12925 the resulting clip(s}.
12926 (expose_overlaps): Add arg r. Change callers. Set it to
12927 row->clip temporarily.
12928 (expose_window): Redraw rows overlapping the exposed area.
12929
12930 * dispextern.h (struct glyph_row): New member clip.
12931 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12932 clip_height, new member clip, and num_clips.
12933
129342008-02-01 Kenichi Handa <handa@m17n.org>
12935
12936 * data.c (Fchar_or_string_p): Fix docstring.
12937
129382008-02-01 Kenichi Handa <handa@m17n.org>
12939
12940 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12941 create a temporary XftDraw object.
12942
129432008-02-01 Kenichi Handa <handa@m17n.org>
12944
12945 * font.c (Ffontp): Fix docstring.
12946
12947 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12948 strong evidence of ISO-2022.
12949
129502008-02-01 Kenichi Handa <handa@m17n.org>
12951
12952 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12953 SYNTAX_ENTRY_FOLLOW_PARENT.
12954
129552008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12956
12957 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12958 its type.
12959 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12960 Update to the new type of weak_hash_tables and next_weak.
12961
12962 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12963 a plain C pointer to Lisp_Hash_Table.
12964
12965 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12966 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12967 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12968 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12969 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12970 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12971 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12972 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12973 (GC_EQ): Remove since they've been identical to their non-GC_
12974 alter-egos ever since the markbit was eradicated.
12975
12976 * alloc.c:
12977 * buffer.c:
12978 * buffer.h:
12979 * data.c:
12980 * fileio.c:
12981 * filelock.c:
12982 * fns.c:
12983 * frame.h:
12984 * lisp.h:
12985 * macterm.c:
12986 * print.c:
12987 * process.c:
12988 * w32fns.c:
12989 * w32menu.c:
12990 * w32term.c:
12991 * xfns.c:
12992 * xmenu.c:
12993 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12994
129952008-02-01 Kenichi Handa <handa@m17n.org>
12996
12997 * chartab.c (map_sub_char_table): Make it work for the top-level
12998 char-table. Fix handling of parent char-table.
12999 (map_char_table): Adjust for the above change.
13000
130012008-02-01 Jason Rumney <jasonr@gnu.org>
13002
13003 * w32font.c (Qgdi): Rename from Qw32.
13004
130052008-02-01 Jason Rumney <jasonr@gnu.org>
13006
13007 * w32bdf.c (get_quoted_string): Make function static.
13008
130092008-02-01 Kenichi Handa <handa@m17n.org>
13010
13011 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13012 bigger ascent and descent than those of the font, use them as
13013 font's ascent and descent.
13014
130152008-02-01 Kenichi Handa <handa@m17n.org>
13016
13017 * Makefile.in (${lispsource}international/charprop.el): Move this
13018 target within "#ifdef HAVE_UNIDATA" and "#endif".
13019
130202008-02-01 Kenichi Handa <handa@m17n.org>
13021
13022 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13023 (shortlisp): Add ../lisp/language/tai-viet.el.
13024
130252008-02-01 Ulrich Mueller <ulm@gentoo.org>
13026
13027 * Makefile.in (${lispsource}international/charprop.el): Depend on
13028 temacs${EXEEXT}.
13029
130302008-02-01 Jason Rumney <jasonr@gnu.org>
13031
13032 * w32font.c (w32font_close): Delete the GDI font object.
13033
13034 * w32menu.c: Include character.h.
13035
13036 * w32proc.c: Likewise.
13037
13038 * w32select.c: Likewise.
13039
13040 * makefile.w32-in (w32proc.o): Depend on character.h.
13041
130422008-02-01 Jason Rumney <jasonr@gnu.org>
13043
13044 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13045
13046 * w32menu.c (syms_of_w32menu): Likewise.
13047
13048 * w32proc.c (syms_of_ntproc): Likewise.
13049
13050 * w32select.c (syms_of_w32select): Likewise.
13051
13052 * w32term.c (syms_of_w32term): Likewise.
13053
130542008-02-01 Jason Rumney <jasonr@gnu.org>
13055
13056 * w32font.c (w32font_draw): Delete brush after using it.
13057
130582008-02-01 Jason Rumney <jasonr@gnu.org>
13059
13060 * w32font.c (w32font_open): Don't set font_idx.
13061 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13062 to font settings.
13063 (w32font_draw): Fill background explicitly.
13064
130652008-02-01 Jason Rumney <jasonr@gnu.org>
13066
13067 * w32term.c (w32_initialize): Don't call w32font_initialize.
13068
13069 * w32font.c (w32font_info): Remove subranges.
13070 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13071 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13072 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13073 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13074 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13075 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13076 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13077 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13078 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13079 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13080 New symbols.
13081 (font_callback_data): New struct.
13082 (w32font_list, w32font_match): Use it.
13083 (w32font_open): Don't populate subranges.
13084 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13085 (w32font_encode_char): Always return unicode code-point as-is.
13086 (w32font_text_extents): Supply a transformation matrix to
13087 GetGlyphOutline. Never look up by glyph index. Avoid looping
13088 twice. Use unicode version of GetTexExtentPoint32 instead of
13089 glyph index version.
13090 (set_fonts_frame): Remove.
13091 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13092 set frame parameter. Use backward compatible fake foundries.
13093 Save generic family in extra slot under QCfamily. Make width slot
13094 constant. Save QCspacing value. Save list of scripts instead of
13095 binary subranges.
13096 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13097 (add_font_entity_to_list): Use font_callback_data struct. Filter
13098 unwanted fonts.
13099 (add_one_font_entity_to_list): Use font_callback_data struct.
13100 (w32_registry): Default to iso10646_1.
13101 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13102 string font registries. Don't fill in font name if it is a generic
13103 family name, fill family instead. Use spacing, family and script
13104 extra info to fill pitch, family and charset fields.
13105 (list_all_matching_fonts): Use font_callback_data struct.
13106 (unicode_range_for_char): Remove.
13107 (font_supported_scripts): New function.
13108 (w32font_initialize): Remove.
13109 (syms_of_w32font): Update which symbols are defined.
13110
131112008-02-01 Jason Rumney <jasonr@gnu.org>
13112
13113 * font.c (font_pixel_size): Reverse assq_no_quit args.
13114
13115 * w32term.h (FONT_WIDTH): Report max width, not average.
13116 (FONT_MAX_WIDTH): Remove.
13117 (FONT_AVG_WIDTH): New macro.
13118
13119 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13120 redefinition of FONT_WIDTH.
13121
13122 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13123 (w32_cache_char_metrics): Use FONT_WIDTH.
13124
13125 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13126
131272008-02-01 Jason Rumney <jasonr@gnu.org>
13128
13129 * w32font.c (w32font_open): Make lfHeight negative.
13130
13131 * w32fns.c (x_default_font_parameter): Use new style font name.
13132 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13133
131342008-02-01 Jason Rumney <jasonr@gnu.org>
13135
13136 * w32font.c (QCsubranges): New symbol.
13137 (w32font_open, w32font_has_char): Get subranges from subproperty
13138 of extra.
13139 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13140 (syms_of_w32font): Define :subranges symbol.
13141
13142 * font.c (font_put_extra): Expose externally.
13143
13144 * font.h (font_put_extra): Move declaration from font.c.
13145
13146 * font.c (Ffont_get): Use font driver to determine otf capability.
13147 (adjust_anchor): Check if driver defines anchor_point before using.
13148
13149 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13150 (w32font_draw): Use options.
13151 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13152 Fix detection of truetype fonts.
13153 (registry_to_w32_charset): Handle charsets other than iso8859-1
13154 expressed as lisp symbols.
13155 (w32_registry): Express charset as lisp symbol.
13156 (fill_in_logfont): Reverse pixel and point height logic.
13157 Don't set width here. Set quality to default.
13158
13159 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13160 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13161
13162 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13163 Remove redundant loop and allocation.
13164
13165 * makefile.w32-in (font.o, w32font.o): New objects.
13166 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13167 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13168
13169 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13170 STORE_XCHARB a valid l-value.
13171
13172 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13173 calculations for non-Truetype fonts.
13174 (x_draw_glyph_string): Sync with xterm.c.
13175 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13176 Remove redundant code.
13177 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13178
13179 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13180 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13181
13182 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13183 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13184
13185 * w32font.c: New file for w32 font backend.
13186
131872008-02-01 Kenichi Handa <handa@m17n.org>
13188
13189 * term.c: Don't include "buffer.h" twice.
13190
131912008-02-01 Kenichi Handa <handa@m17n.org>
13192
13193 * character.c (Funibyte_string): New function.
13194 (syms_of_character): Defsubr it.
13195
131962008-02-01 Jason Rumney <jasonr@gnu.org>
13197
13198 * w32term.c [USE_FONT_BACKEND]:
13199 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13200 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13201 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13202 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13203 (x_free_frame_resources): Sync with xterm.c.
13204
132052008-02-01 Andreas Schwab <schwab@suse.de>
13206
13207 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13208 char-table size.
13209
132102008-02-01 Kenichi Handa <handa@m17n.org>
13211
13212 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13213
132142008-02-01 Kenichi Handa <handa@m17n.org>
13215
13216 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13217 font_otf_gpos, add font_drive_otf.
13218
13219 * fontset.c (fontset_find_font): Pay attention to font size
13220 specified for a font.
13221 (reorder_font_vector): Check contents of font_def.
13222
13223 * font.c (struct otf_list): Delete it.
13224 (otf_list): Make it a lisp variable.
13225 (otf_open): Use lispy otf_list.
13226 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13227 (check_otf_features): New function.
13228 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13229 New functions.
13230 (font_drive_otf): New function merging font_otf_gsub and
13231 font_otf_gpos.
13232 (font_open_for_lface): New arg spec. Change argument order.
13233 (font_load_for_face): Adjust for the change of font_open_for_lface.
13234 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13235 Ffont_otf_gpos.
13236 (syms_of_font): Staticpro otf_list. Delete defsubr of
13237 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13238
13239 * xfaces.c (set_font_frame_param): Adjust for the change of
13240 font_open_for_lface.
13241
13242 * font.h (font_open_for_lface): Adjust prototype.
13243 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13244 member otf_drive.
13245 (font_otf_gsub, font_otf_gpos): Delete externs.
13246 (font_drive_otf): Extern it.
13247
132482008-02-01 Kenichi Handa <handa@m17n.org>
13249
13250 * font.c (font_at): If the window W is not on a window system,
13251 return Qnil.
13252
13253 * coding.c (produce_chars, encode_coding): Don't call
13254 insert_from_gap if no characters to produce.
13255
132562008-02-01 Kenichi Handa <handa@m17n.org>
13257
13258 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13259 Fclear_face_cache.
13260
13261 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13262
132632008-02-01 Miles Bader <miles@gnu.org>
13264
13265 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13266 Parse "--disable-font-backend" option.
13267 (standard_args): Add "--disable-font-backend" option.
13268
132692008-02-01 Kenichi Handa <handa@m17n.org>
13270
13271 * fontset.c (fontset_find_font): New function.
13272 (fontset_font): Use fontset_find_font.
13273 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13274 Register the specified font for all Latin characters.
13275 (new_fontset_from_font): Register the specified font for all Latin
13276 characters.
13277 (dump_fontset): For a realized fontset, include the base fontset
13278 name in the returned vector.
13279
132802008-02-01 Kenichi Handa <handa@m17n.org>
13281
13282 * character.h (CHAR_STRING): Cast C to unsigned on calling
13283 char_string.
13284
13285 * character.c (char_string): Type of arg C changed to unsigned.
13286 Signal an error if C is an invalid character code.
13287
13288 * editfns.c (general_insert_function, Fchar_to_string):
13289 Use CHARACTERP, not INTEGERP.
13290
132912008-02-01 Kenichi Handa <handa@m17n.org>
13292
13293 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13294 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13295
13296 * regex.c (analyse_first): Fix for multibyte characters in "case
13297 charset:" and "case categoryspec:".
13298
132992008-02-01 Andreas Schwab <schwab@suse.de>
13300
13301 * Makefile.in (LIBES): Move standard libraries to the end.
13302
133032008-02-01 Kenichi Handa <handa@m17n.org>
13304
13305 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13306 nonzero, don't shrink the buffer nextb.
13307
13308 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13309
13310 * coding.c (coding_alloc_by_making_gap): New arg offset.
13311 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13312 offset.
13313 (decode_coding_iso_2022): Update coding->safe_charsets.
13314 (decode_coding_gap): Temporarily set
13315 current_buffer->text->inhibit_shrinking to 1.
13316
133172008-02-01 Kenichi Handa <handa@m17n.org>
13318
13319 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13320 indexing into elements of s->cmp and s->char2b.
13321
133222008-02-01 Juanma Barranquero <lekktu@gmail.com>
13323
13324 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13325
133262008-02-01 Kenichi Handa <handa@m17n.org>
13327
13328 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13329 target_multibyte instead of multibyte.
13330 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13331 (bcmp_translate): Change the argument name from multibyte to
13332 target_multibyte.
13333
133342008-02-01 Kenichi Handa <handa@m17n.org>
13335
13336 These changes are to compile a regexp into a pattern that can be
13337 used both for multibyte and unibyte targets.
13338
13339 * Makefile.in (search.o): Depend on charset.h.
13340
13341 * character.c (multibyte_char_to_unibyte_safe): New function.
13342
13343 * search.c: Include "charset.h".
13344 (compile_pattern_1): Delete argument multibyte. Don't set
13345 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13346 (compile_pattern): Don't compare cp->buf.target_multibyte.
13347 Compare cp->buf.charset_unibyte.
13348 (compile_pattern): Set cp->buf.target_multibyte.
13349
13350 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13351
13352 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13353
13354 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13355 multibyte. Change callers.
13356 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13357 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13358 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13359 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13360 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13361 (regex_compile): Make the compiled pattern usable both for
13362 multibyte and unibyte targets.
13363 (analyse_first): Make the fastmap usable both for multibyte and
13364 unibyte targets.
13365 (TRANSLATE_VIA_MULTIBYTE): Delete.
13366 (re_match_2_internal): Pay attention to the case that the
13367 multibyteness of bufp and target may be different.
13368
133692008-02-01 Kenichi Handa <handa@m17n.org>
13370
13371 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13372 empty box occupy at least one column width.
13373
133742008-02-01 Miles Bader <miles@gnu.org>
13375
13376 * Makefile.in: Remove redundant HAVE_XFT clause.
13377
133782008-02-01 Kenichi Handa <handa@m17n.org>
13379
13380 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13381
133822008-02-01 Kenichi Handa <handa@m17n.org>
13383
13384 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13385 being nil.
13386
133872008-02-01 Kenichi Handa <handa@m17n.org>
13388
13389 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13390
133912008-02-01 Kenichi Handa <handa@m17n.org>
13392
13393 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13394
133952008-02-01 Kenichi Handa <handa@m17n.org>
13396
13397 * search.c (simple_search): Fix previous change.
13398
133992008-02-01 Kenichi Handa <handa@m17n.org>
13400
13401 * xftfont.c (ftfont_font_format): Extern declaration.
13402
13403 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13404
13405 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13406 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13407
13408 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13409 (ftfont_font_format): Fix previous change.
13410
13411 * font.h (Ffont_xlfd_name): EXFUN it.
13412
13413 * font.c (font_parse_xlfd): Fix the array size of `f'.
13414 (register_font_driver): Use EQ to compare driver->type.
13415
13416 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13417 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13418 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13419
134202008-02-01 Kenichi Handa <handa@m17n.org>
13421
13422 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13423 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13424
134252008-02-01 Kenichi Handa <handa@m17n.org>
13426
13427 * xfont.c (xfont_open): Set font->format.
13428
13429 * xftfont.c (xftfont_open): Set font->format.
13430
13431 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13432 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13433 (ftfont_open): Set font->format.
13434 (ftfont_font_format): New function.
13435
13436 * font.h (struct font): New member format.
13437
13438 * font.c (Qopentype): New variable.
13439 (syms_of_font): Defsym it.
13440 (Fquery_font): Change the format of the last element of the return
13441 value.
13442
134432008-02-01 Kenichi Handa <handa@m17n.org>
13444
13445 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13446 last resort.
13447
134482008-02-01 Kenichi Handa <handa@m17n.org>
13449
13450 * coding.c (detect_coding_charset): Fix detection of multi-byte
13451 charset.
13452
134532008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13454
13455 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13456
134572008-02-01 Kenichi Handa <handa@m17n.org>
13458
13459 * xdisp.c (get_next_display_element): Set it->face_id for the
13460 first component of a composition.
13461 (x_produce_glyphs): Check if the font is changed or not for composition.
13462
134632008-02-01 Kenichi Handa <handa@m17n.org>
13464
13465 * fontset.c (Qlatin): New variable.
13466 (syms_of_fontset): Define it as a lisp symbol.
13467 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13468
134692008-02-01 Kenichi Handa <handa@m17n.org>
13470
13471 * font.c (font_unparse_fcname): Pay attention to the case that
13472 some of font property is a null string.
13473
134742008-02-01 Kenichi Handa <handa@m17n.org>
13475
13476 * term.c: Include "composite.h".
13477 (encode_terminal_code): Output all components of composition.
13478 Check the size of encode_terminal_src.
13479 (produce_glyphs): For composition, call produce_composite_glyph.
13480 (append_composite_glyph, produce_composite_glyph): New functions.
13481
13482 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13483 is not found, get font_info from the current ascii face.
13484
134852008-02-01 Kenichi Handa <handa@m17n.org>
13486
13487 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13488 buffer-file-name to Qnil before calling insert_from_buffer.
13489
13490 * font.c (font_unparse_fcname): Pay attention to the case that
13491 foundry is a null string.
13492
134932008-02-01 Kenichi Handa <handa@m17n.org>
13494
13495 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13496
13497 * font.c (Qunicode_sip): New variable.
13498 (syms_of_font): Declare it as a Lisp symbol.
13499
13500 * font.h (Qunicode_sip): Extern it.
13501
135022008-02-01 Kenichi Handa <handa@m17n.org>
13503
13504 * composite.c (get_composition_id): Pay attention to TAB component.
13505
13506 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13507 TAB. Adjust for the change of s->char2b which always points to
13508 the first element of allocated memory.
13509
13510 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13511
13512 * xdisp.c (handle_composition_prop): Set it->c to the first
13513 non-TAB component.
13514 (fill_composite_glyph_string): Change argument.
13515 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13516 (x_produce_glyphs): Fix handling of left/right padding.
13517
135182008-02-01 Kenichi Handa <handa@m17n.org>
13519
13520 * coding.c (detect_coding_system): Fix for handling off
13521 inhibit_iso_escape_detection. Fix for the case that no coding
13522 system is defined for a specific coding category.
13523
135242008-02-01 Kenichi Handa <handa@m17n.org>
13525
13526 * font.c (font_matching_entity): Delete unused local var.
13527
13528 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13529 opening a font.
13530
13531 * fileio.c (Finsert_file_contents): On recovering a file, assume
13532 Unix-like eol.
13533 (choose_write_coding_system): On auto-saving a file, force
13534 Unix-like eol.
13535
13536 * coding.c (setup_coding_system): Fix setting of
13537 coding->common_flags based on eol_type.
13538 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13539 inherit from it.
13540
135412008-02-01 Kenichi Handa <handa@m17n.org>
13542
13543 * alloc.c (NSTATICS): Increas to 0x600.
13544
135452008-02-01 Kenichi Handa <handa@m17n.org>
13546
13547 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13548 (ftfont_list): Don't check :name property.
13549 (ftfont_match): New function.
13550 (ftfont_pattern_entity): If the pattern doesn't contain
13551 FC_SPACING, don't assume FC_MONO.
13552
13553 * font.h (struct font_driver): New member `match'.
13554 (font_update_drivers): Adjust prototype.
13555
13556 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13557 property of FONT.
13558 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13559 them unconditionally.
13560 (font_matching_entity): New function.
13561 (font_open_by_name): Try font_matching_entity if exact match is
13562 not found.
13563 (font_update_drivers): Delete the arg FONT. Return a list of
13564 actually used backends. Don't free faces, font caches here.
13565 Don't store data in frame parameters. Don't call x_set_font.
13566 (Ffont_spec): Store :name property as is.
13567 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13568 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13569 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13570 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13571 Call font->driver->otf_gsub instead of font_otf_gsub.
13572
13573 * frame.c (x_set_font_backend): Do more works that were done in
13574 font_update_drivers before.
13575
13576 * xfont.c (xfont_match): New function.
13577 (xfont_driver): Set xfont_driver.match to xfont_match.
13578 (xfont_draw): Set font in GC if necessary.
13579
13580 * ftxfont.c (ftxfont_match): New function.
13581 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13582
13583 * xftfont.c (xftfont_match): New function.
13584 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13585
135862008-02-01 Kenichi Handa <handa@m17n.org>
13587
13588 * font.h (struct font): New member scalable.
13589 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13590 (font_otf_gsub): Adjust prototype.
13591
13592 * font.c (font_otf_capability): Fix handling of the default langsys.
13593 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13594 Check the contents of SPEC.
13595 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13596 (check_gstring): New function.
13597 (REPLACEMENT_CHARACTER): New macro.
13598 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13599 glyph codes of GSTRING.
13600 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13601 (font_prepare_composition): Set cmp->glyph_len.
13602 (font_open_entity): Set font->scalable.
13603 (Ffont_get): Handle :otf property.
13604 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13605 functions.
13606 (Fquery_font): Use font->font.full_name.
13607 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13608 Sfont_otf_alternates.
13609
13610 * ftfont.c (ftfont_open): Set font->font.full_name and
13611 font->font.name properly. Fix calculation of font->font.height
13612 and font->min_width.
13613
13614 * ftxfont.c (ftxfont_create_gcs): New function.
13615 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13616 (ftxfont_draw_backgrond): Fix filling region.
13617 (ftxfont_default_fid): New function.
13618 (ftxfont_open): Set xfont->fid to the return value of
13619 ftxfont_default_fid.
13620 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13621 (ftxfont_done_face): Free only GCs that are created by
13622 ftxfont_create_gcs.
13623 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13624
13625 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13626 Clip to src->width, etc (not src->clip_XXX).
13627
13628 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13629 FontBackend frame parameter.
13630
136312008-02-01 Kenichi Handa <handa@m17n.org>
13632
13633 * font.h (struct font_driver_list): New member `on'.
13634 (Fclear_font_cache): EXFUN it.
13635 (font_update_drivers): Extern it.
13636
13637 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13638 (font_list_entities): Check driver_list->on.
13639 (register_font_driver): Initalize `on' member to 0.
13640 (font_update_drivers): New function.
13641 (Fclear_font_cache): Check driver_list->on.
13642
13643 * frame.h (Qfont_backend): Extern it.
13644 (x_set_font_backend): Extern it.
13645
13646 * frame.c (Qfont_backend): New variable.
13647 (frame_parms): New element for font-backend.
13648 (x_set_font_backend): New function.
13649
13650 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13651 FontBackend frame parameter.
13652 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13653 x_set_font_backend.
13654
13655 * xfont.c (xfont_list): Don't try listing by :name property if the
13656 name is not for XLFD.
13657
136582008-02-01 Kenichi Handa <handa@m17n.org>
13659
13660 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13661 (LGLYPH_SET_TO): New macros.
13662 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13663 element of G is vector or not.
13664 (font_at): Extern it.
13665
13666 * font.c: Include window.h.
13667 (font_lispy_object): New function.
13668 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13669 end of valid glyph.
13670 (font_close_object): Fix getting (struct font *).
13671 (font_at): New function.
13672 (Ffont_get): If FONT is a font-object, get entity from it.
13673 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13674 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13675 range check.
13676 (Ffont_at): New function.
13677 (syms_of_font): Defsubr Sfont_at.
13678
13679 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13680 before the entry for Qcomposition.
13681 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13682 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13683 the font in gstring.
13684 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13685 LGLYPH_FORM (g) to detect the end of valid glyph.
13686 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13687 we are composing with gstring.
13688
13689 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13690 Check if adjustment is vector or not.
13691
13692 * Makefile.in (font.o): Make it depends on window.h.
13693
136942008-02-01 Kenichi Handa <handa@m17n.org>
13695
13696 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13697 adjustment is vector or not.
13698
136992008-02-01 Miles Bader <miles@gnu.org>
13700
13701 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13702
137032008-02-01 Kenichi Handa <handa@m17n.org>
13704
13705 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13706 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13707 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13708
13709 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13710 (DEVICE_DELTA): Fix typo.
13711 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13712 LGLYPH format.
13713
13714 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13715 the change of LGLYPH format.
13716
137172008-02-01 Kenichi Handa <handa@m17n.org>
13718
13719 * ftfont.c (ftfont_list): Fix typo.
13720 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13721
137222008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13723
13724 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13725
13726 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13727 xftface_info is non-NULL.
13728
137292008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13730
13731 * ftfont.c (ftfont_list): Move misplaced #endif.
13732
137332008-02-01 Kenichi Handa <handa@m17n.org>
13734
13735 * ftfont.c (ftfont_list): Pay attention to the case that
13736 FC_CAPABILITY is not defined.
13737
137382008-02-01 Kenichi Handa <handa@m17n.org>
13739
13740 * xftfont.c (xftfont_open): Set charset related members to -1.
13741
13742 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13743 QCname.
13744 (ftfont_open): Set charset related members to -1.
13745
13746 * fontset.c (Votf_script_alist): New variable.
13747 (syms_of_fontset): Initialize it.
13748 (fontset_font): Delete unused variable.
13749
13750 * fontset.h (Votf_script_alist): Extern it.
13751
13752 * font.c (font_find_for_lface): Optimize code.
13753
13754 * font.h (font_close_object, font_merge_old_spec): Extern them.
13755
137562008-02-01 Kenichi Handa <handa@m17n.org>
13757
13758 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13759 (syms_of_font): Initialize them.
13760 (font_pixel_size): Allow float value in dpi.
13761 (font_prop_validate_type): Delete.
13762 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13763 Change caller.
13764 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13765 (font_prop_validate_extra): Delete.
13766 (font_prop_validate_spacing): New function.
13767 (font_property_table): Add elements for all known properties.
13768 (get_font_prop_index): Rename from check_font_prop_name. New
13769 argument FROM. Change caller.
13770 (font_prop_validate): Validate all known properties.
13771 (font_put_extra): Delete argument force. Change caller.
13772 (font_expand_wildcards): Make it static. Fix the way of shrinking
13773 the possible range.
13774 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13775 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13776 Change caller.
13777 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13778 (font_parse_fcname): Delete argument merge. Fix parsing of point
13779 size. Don't validate properties values here. Change caller.
13780 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13781 (font_open_by_name): Delete unused variable.
13782 (Ffont_spec): Likewise. Validate property values.
13783 (Ffont_match_p): New function.
13784
13785 * font.h (QCscalable): Extern it.
13786 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13787
13788 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13789
13790 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13791 (xfont_list_pattern): New function.
13792 (xfont_list): Use xfont_list_pattern.
13793
137942008-02-01 Kenichi Handa <handa@m17n.org>
13795
13796 * font.h (Flist_fonts): EXFUN it.
13797
137982008-02-01 Jason Rumney <jasonr@gnu.org>
13799
13800 * w32term.c (w32_initialize): Add back smoothing_type and
13801 smoothing_enabled definitions.
13802
138032008-02-01 Kenichi Handa <handa@m17n.org>
13804
13805 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13806 s->face->font on determining underline position.
13807
138082008-02-01 Kenichi Handa <handa@m17n.org>
13809
13810 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13811 (font_has_char): Accept font-object too.
13812 (font_find_for_lface): Try at first with a size specified in face.
13813
138142008-02-01 Kenichi Handa <handa@m17n.org>
13815
13816 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13817 font_open_by_name.
13818
138192008-02-01 Kenichi Handa <handa@m17n.org>
13820
13821 * font.h (QCspacing, QCdpi): Extern them.
13822 (enum font_spacing): New enum.
13823 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13824
13825 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13826 (QCspacing, QCdpi): New variables.
13827 (syms_of_font): Initialize them.
13828 (font_pixel_size): New function.
13829 (font_put_extra): New function.
13830 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13831 in FONT_EXTRA.
13832 (font_parse_fcname): Handle enumerated values (e.g. bold).
13833 Fix handling font size. Add QCname property that contains only
13834 unknown properties.
13835 (font_score): Change argument. Change caller. Pay attention to
13836 FONT_PIXEL_SIZE_QUANTUM.
13837 (font_sort_entites, font_list_entities, font_find_for_lface)
13838 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13839 (Ffont_spec): Add QCname property that contains only unknown properties.
13840
13841 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13842 include weight in listing pattern, instead check weight of each
13843 listed font. Don't include scalable in pattern. Pay attention to
13844 FONT_PIXEL_SIZE_QUANTUM.
13845
138462008-02-01 Kenichi Handa <handa@m17n.org>
13847
13848 * font.c (font_parse_fcname): Fix parsing of point-size.
13849 (font_unparse_fcname): Produce symbolic names for style properties.
13850 (font_list_entities): Handle float size correctly.
13851 (font_open_by_name): Prefer `normal' property values if the name
13852 doesn't specify them.
13853
13854 * fontset.c (Finternal_char_font): Use font_get_name, not
13855 Ffont_xlfd_name.
13856
13857 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13858 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13859 pattern. Don't force scalable.
13860
13861 * xftfont.c (xftfont_open): For generating a name, start from
13862 96-byte buffer.
13863
138642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13865
13866 * frame.h (x_new_fontset2): Fix prototype.
13867
138682008-02-01 Kenichi Handa <handa@m17n.org>
13869
13870 * font.h (struct font_driver): Delete member parse_name.
13871 (font_match_p, font_get_spec, font_parse_fcname)
13872 (font_unparse_fcname): Extern them.
13873 (font_get_name): Adjust prototype.
13874
13875 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13876 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13877 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13878 unnecessary checks for weight, slant, and swidth.
13879 (font_parse_fcname): New function.
13880 (font_unparse_fcname): New function.
13881 (font_parse_name): New function.
13882 (font_match_p): New function.
13883 (font_get_name): Change return value to Lisp string.
13884 (font_get_spec): New function.
13885 (Qunspecified, Qignore_defface): Don't extern them.
13886 (font_find_for_lface): Assume that LFACE is fully specified.
13887 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13888 object, use it for FACE.
13889 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13890 driver->parse_name.
13891 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13892
13893 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13894 prototype.
13895
13896 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13897 argument F. Don't call Fnew_fontset. Instead, directly call
13898 make_fontset.
13899
13900 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13901
13902 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13903 of x_new_fontset2.
13904
13905 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13906 (Qsans__serif): New variables.
13907 (ftfont_generic_family_list): New variable.
13908 (syms_of_ftfont): Initialize the above variables.
13909 (ftfont_pattern_entity): Delete argument NAME.
13910 (ftfont_list_generic_family): New function.
13911 (ftfont_parse_name): Delete this function.
13912 (ftfont_list): Try generic family only when FcFontList found no font.
13913 (ftfont_list_family): Fix args to FcObjectSetBuild.
13914
13915 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13916 object in attrs[LFACE_FONT_INDEX].
13917 (set_lface_from_font_name): Cancel all changes for font-backend.
13918 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13919 function.
13920 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13921 font object in QCfont attribute.
13922 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13923 (realize_default_face) [USE_FONT_BACKEND]: Call
13924 set_lface_from_font_and_fontset.
13925
13926 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13927 "fixed", and signal error here if no suitable font was found.
13928
13929 * xfont.c (xfont_parse_name): Delete this function.
13930
13931 * xftfont.c (xftfont_open): Change coding style of error
13932 handling. Generate fontconfig's fontname pattern.
13933
13934 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13935 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13936
13937 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13938 Both args FONTSET and FONT_OBJECT must be existing ones.
13939
139402008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13941
13942 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13943
139442008-02-01 Kenichi Handa <handa@m17n.org>
13945
13946 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13947
13948 * font.h (struct font): Fix typo.
13949
13950 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13951 XLFD_XXX_INDEX.
13952 (enum xlfd_field_mask): New enum.
13953 (intern_font_field): Changed argument. Change caller. If digits
13954 are followed by non-digits, return a symbol.
13955 (font_expand_wildcards): New function.
13956 (font_parse_xlfd): Fix wildcard handling.
13957 (Ffont_spec): If :name is specified, reflect the info in the other
13958 properties.
13959
13960 * ftfont.c (ftfont_pattern_entity): Fix typo.
13961 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13962 locale.
13963
139642008-02-01 Kenichi Handa <handa@m17n.org>
13965
13966 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13967
13968 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13969 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13970 registry doesn't specify encoding part.
13971 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13972 (font_open_by_name): At first try parsing the name.
13973 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13974 as Lisp symbols.
13975
13976 * fontset.c (reorder_font_vector): Pay attention to the case that
13977 the 3rd element of font_def is nil.
13978 (fontset_font): For the default fontset, append one more fontset
13979 elements for a script-based font specification. Don't add script
13980 attribute on finding a font.
13981 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13982 font name.
13983 (fontset_ascii_font): If a font can't be opened, return nil.
13984
13985 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13986 (ftfont_pattern_entity): New function.
13987 (ftfont_get_cache): Assume that freetype_font_cache is already
13988 initialized.
13989 (ftfont_list): Handle the case that a file is specified in font
13990 name. Use ftfont_pattern_entity to generate entities.
13991 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13992 (syms_of_ftfont): Initialize freetype_font_cache.
13993
13994 * xftfont.c (xftfont_open): Make the font name fontconfig's
13995 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13996 (xftfont_close): Free font->font.name if not NULL.
13997
13998 * xfont.c (xfont_list): If script is specified for a font, return
13999 null_vector.
14000 (xfont_list_family): Declare argument type.
14001
14002 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14003 name, set LFACE_FONT (lface) to nil.
14004
14005 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14006 return Qnil.
14007
140082008-02-01 Kenichi Handa <handa@m17n.org>
14009
14010 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14011 (standard_args): Add "-enable-font-backend".
14012
140132008-02-01 Kenichi Handa <handa@m17n.org>
14014
14015 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14016 (struct xftdraw_list, xftdraw_list): Delete them.
14017 (register_xftdraw, check_xftdraw): Delete them.
14018 (xftfont_prepare_face): Don't call register_xftdraw.
14019 (xftfont_done_face): Don't call check_xftdraw.
14020 (xftfont_draw): Get background color only when with_background is
14021 nonzero.
14022
14023 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14024
140252008-02-01 Kenichi Handa <handa@m17n.org>
14026
14027 These changes are for the new font handling codes.
14028
14029 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14030 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14031 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14032 (FONTSRC, FONTOBJ): New variables.
14033 (obj): Add $(FONTOBJ).
14034 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14035 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14036 @LIBOTF_LIBS@.
14037 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14038 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14039
14040 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14041
14042 * character.h (Vscript_representative_chars): Extern it.
14043
14044 * character.c (Vscript_representative_chars): New variable.
14045 (syms_of_character): Declare it as a Lisp variable.
14046
14047 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14048 enable_font_backend is nonzero, accept the composition method
14049 COMPOSITION_WITH_GLYPH_STRING.
14050
14051 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14052 enumeration COMPOSITION_WITH_GLYPH_STRING.
14053
14054 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14055 members clip_x, clip_y, clip_width, and clip_height.
14056 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14057
14058 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14059 --enable-font-backend. Call syms_of_font.
14060
14061 * fns.c (assoc_no_quit): New function.
14062
14063 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14064 (face_for_font, new_fontset_from_font)
14065 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14066
14067 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14068 (fontset_font, fontset_ascii, face_for_char)
14069 (make_fontset_for_ascii_face, Ffont_info)
14070 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14071 is nonzero, use font-backend mechanism.
14072 (find_font_encoding): Make it non-static.
14073 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14074 New functions.
14075
14076 * frame.h (struct frame): New members resx and resy.
14077 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14078 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14079
14080 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14081 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14082
14083 * lisp.h (assoc_no_quit): Extern it.
14084
14085 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14086 Through out the file, use FONT_INFO_FROM_FACE instead of
14087 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14088 rif->per_char_metric.
14089 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14090 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14091 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14092 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14093 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14094 nonzero, use font-backend mechanism.
14095 (get_per_char_metric): New function.
14096
14097 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14098 (set_lface_from_font_name)
14099 (set_font_frame_param, free_realized_face)
14100 (prepare_face_for_display, clear_face_gcs)
14101 (Finternal_set_font_selection_order, realize_x_face)
14102 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14103 font-backend mechanism.
14104 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14105 (load_face_font) [USE_FONT_BACKEND]: Abort.
14106 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14107 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14108
14109 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14110 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14111 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14112 nonzero, register all available font drivers. Call
14113 x_default_font_parameter for deciding a font.
14114 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14115
14116 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14117 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14118 (x_set_glyph_string_clipping_exactly)
14119 (x_compute_glyph_string_overhangs)
14120 (x_draw_glyph_string_foreground)
14121 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14122 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14123 enable_font_backend is nonzero, use font-backend mechanism.
14124 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14125
141262008-02-01 Kenichi Handa <handa@m17n.org>
14127
14128 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14129 system_eol_type.
14130 (syms_of_coding): Initialize system_eol_type.
14131
14132 * process.c (Fset_process_coding_system): Inherit system's eol
14133 format if necessary.
14134
141352008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14136
14137 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14138
141392008-02-01 Kenichi Handa <handa@m17n.org>
14140
14141 * coding.c (decode_eol): Pay attention to buffer relocation in
14142 del_range_2.
14143 (decode_coding): Call decode_eol before restoring undo_list.
14144
141452008-02-01 Kenichi Handa <handa@m17n.org>
14146
14147 * charset.c (Fdefine_charset_internal): Fix setting of
14148 emacs_mule_bytes.
14149
141502008-02-01 Kenichi Handa <handa@m17n.org>
14151
14152 * keyboard.c (read_char): Check if C is a character or not before
14153 looking up Vkeyboard_translate_table.
14154
141552008-02-01 Kenichi Handa <handa@m17n.org>
14156
14157 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14158 condition to terminate the loop.
14159
141602008-02-01 Kenichi Handa <handa@m17n.org>
14161
14162 * coding.c (produce_composition): Compare charbuf[i] instead of
14163 args[i] against 0.
14164 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14165
141662008-02-01 Kenichi Handa <handa@m17n.org>
14167
14168 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14169 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14170 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14171 detect_coding.
14172 (emacs_mule_char): Handle old style (Emacs 20) component character
14173 of a composition.
14174 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14175 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14176 composition rule.
14177 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * coding.c (encode_coding_ccl): Allocate destination dynamically
14182 when necessary.
14183
141842008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14187 the loop. When quitted, show a proper error message.
14188
141892008-02-01 Kenichi Handa <handa@m17n.org>
14190
14191 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14192 src->clip_head and src->clip_tail temporarily instead of src->hl.
14193
14194 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14195 character sequence.
14196 (Fccl_execute_on_string): Use ASET, not XSET.
14197
141982008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14201
142022008-02-01 Kenichi Handa <handa@m17n.org>
14203
14204 * coding.c (decode_coding): Fix the condition of terminating the
14205 decoding loop.
14206
142072008-02-01 Kenichi Handa <handa@m17n.org>
14208
14209 * data.c (Faset): On setting a character bigger than 255 in a
14210 unibyte string, signal an error instead of make the string multibyte.
14211
142122008-02-01 Kenichi Handa <handa@m17n.org>
14213
14214 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14215 made by a mapping table.
14216
142172008-02-01 Kenichi Handa <handa@m17n.org>
14218
14219 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14220 not.
14221 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14222 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14223
14224 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14225 s->face is NULL or not.
14226
142272008-02-01 Kenichi Handa <handa@m17n.org>
14228
14229 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14230 (x_draw_glyph_string): Fix drawing of right_overhang and
14231 left_overhang around/on cursor.
14232
14233 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14234
142352008-02-01 Kenichi Handa <handa@m17n.org>
14236
14237 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14238
142392008-02-01 Kenichi Handa <handa@m17n.org>
14240
14241 * coding.c (Fdefine_coding_system_internal)
14242 (Fdefine_coding_system_alias): Avoid a duplicated element in
14243 Vcoding_system_alist.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14248
14249 * coding.c (Qcoding_system_define_form): New variable.
14250 (syms_of_coding): Intern and staticpro it.
14251 (Fcoding_system_p): Check Qcoding_system_define_form.
14252 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14253
14254 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14255 Fcoding_system_p.
14256 (CHECK_CODING_SYSTEM): If ID is not available, call
14257 Fcheck_coding_system.
14258 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14259 Try also Fcheck_coding_system.
14260
142612008-02-01 Kenichi Handa <handa@m17n.org>
14262
14263 * coding.c (code_conversion_restore): GCPRO arg.
14264
142652008-02-01 Kenichi Handa <handa@m17n.org>
14266
14267 * character.c (lisp_string_width): Check multibyteness of STRING.
14268
142692008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14270
14271 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14272 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14273 (decode_mac_font_name): Use decode_coding_c_string instead of
14274 decode_coding.
14275 (x_load_font): Initialize fontp->fontset to -1. Set
14276 fontp->encoding_type.
14277
142782008-02-01 Kenichi Handa <handa@m17n.org>
14279
14280 * search.c (search_buffer): Give up BM search on case-fold-search
14281 if one of a target character has a case-equivalence of different
14282 byte length even if that target charcter is an ASCII.
14283 (simple_search): Fix calculation of byte length of matched text.
14284 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14285
142862008-02-01 Kenichi Handa <handa@m17n.org>
14287
14288 * coding.c (decode_coding): Fix handling of invalid bytes.
14289
142902008-02-01 Kenichi Handa <handa@m17n.org>
14291
14292 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14293 Unicode characters.
14294
142952008-02-01 Kenichi Handa <handa@m17n.org>
14296
14297 * coding.c (encode_coding_object): If a pre-write-conversion
14298 function makes a new buffer, kill it.
14299
143002008-02-01 Kenichi Handa <handa@m17n.org>
14301
14302 * coding.c (QCascii_compatible_p): New variable.
14303 (syms_of_coding): Initialize it.
14304 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14305 calling string_char.
14306 (record_conversion_result): Add `default:' case.
14307 (coding_charset_list): Delete unused variable `coding_type'.
14308 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14309 property in the plist of the coding system.
14310 (Fcoding_system_put): Check QCascii_compatible_p.
14311
143122008-02-01 Miles Bader <miles@gnu.org>
14313
14314 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14315 removed calculation of frame `f', as it's now used.
14316
143172008-02-01 Kenichi Handa <handa@m17n.org>
14318
14319 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14320 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14321 (UNIDATA): New variable.
14322 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14323 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14324 $(RUN_TEMACS) unconditionally.
14325
143262008-02-01 Kenichi Handa <handa@m17n.org>
14327
14328 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14329 (admindir): New variable.
14330 ($(lispsource)international/charprop.el): New target.
14331
143322008-02-01 Miles Bader <miles@gnu.org>
14333
14334 * character.c (chars-in-region): Remove obsolete function.
14335 (syms_of_character): Remove its initialization.
14336
143372008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14338
14339 * w32select.c (validate_coding_system)
14340 (setup_windows_coding_system): New functions.
14341 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14342 setup_windows_coding_system.
14343 (setup_config, Fw32_get_clipboard_data): Use
14344 validate_coding_system.
14345 (Fx_selection_exists): Move call to setup_config to a place
14346 where signals are allowed.
14347
14348 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14349 (Fcheck_coding_system): Add declarations.
14350
143512008-02-01 Kenichi Handa <handa@m17n.org>
14352
14353 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14354
143552008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14356
14357 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14358 string as the second argument for x_new_fontset.
14359
143602008-02-01 Kenichi Handa <handa@m17n.org>
14361
14362 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14363 (encode_coding_object): Use safe_call instead of call2.
14364
143652008-02-01 Kenichi Handa <handa@m17n.org>
14366
14367 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14368
14369 * Makefile.in (lisp): Include charprop.el.
14370
143712008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14372
14373 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14374 Not sure if it's unnecessary.
14375
143762008-02-01 Steven Tamm <steventamm@mac.com>
14377
14378 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14379 some possibly unnecessary fontset checking code that crashed
14380 when creating a new frame.
14381
143822008-02-01 Kenichi Handa <handa@m17n.org>
14383
14384 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14385 lookup_face.
14386
14387 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14388
14389 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14390
143912008-02-01 Kenichi Handa <handa@m17n.org>
14392
14393 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14394 (coding_charset_list): New function.
14395
14396 * coding.h (coding_charset_list): Extern it.
14397
143982008-02-01 Kenichi Handa <handa@m17n.org>
14399
14400 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14401 concatenation of family and registry.
14402
144032008-02-01 Kenichi Handa <handa@m17n.org>
14404
14405 * character.h (BYTE8_STRING): Fix typo.
14406
14407 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14408 string to multibyte (sync to HEAD).
14409
14410 * casefiddle.c (casify_region): Handle changes in byte-length
14411 using replace_range_2 (sync to HEAD).
14412
144132008-02-01 Andreas Schwab <schwab@suse.de>
14414
14415 * chartab.c (map_char_table): GCPRO table and arg.
14416
144172008-02-01 Kenichi Handa <handa@m17n.org>
14418
14419 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14420 already at limit.
14421
144222008-02-01 Kenichi Handa <handa@m17n.org>
14423
14424 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14425 instead of fast_c_string_match_ignore_case.
14426 (find_font_encoding): Change argument to Lisp_Object. Use
14427 fast_string_match_ignore_case instead of
14428 fast_c_string_match_ignore_case. Change caller.
14429
144302008-02-01 Kenichi Handa <handa@m17n.org>
14431
14432 * xdisp.c (get_next_display_element): In unibyte case, decide to
14433 display in octal form by checking a character by
14434 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14435
14436 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14437
14438 * character.c (unibyte_has_multibyte_table): New variable.
14439
14440 * character.h (unibyte_has_multibyte_table): Extern it.
14441 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14442
144432008-02-01 Kenichi Handa <handa@m17n.org>
14444
14445 * coding.c (encode_coding_iso_2022): Fix handling of charset
14446 annotation.
14447
144482008-02-01 Kenichi Handa <handa@m17n.org>
14449
14450 * coding.c (setup_coding_system): If coding_system is nil, use
14451 Qundecided.
14452 (Fterminal_coding_system): Return nil if terminal coding system is
14453 `undecided'.
14454 (syms_of_coding): Define coding-system `undecided' here. Setup
14455 terminal_coding as `undecided'.
14456
144572008-02-01 Kenichi Handa <handa@m17n.org>
14458
14459 * xdisp.c (message_dolog, set_message_1): Call
14460 unibyte_char_to_multibyte with arg type int.
14461
14462 * lread.c (read1): Fix reading of a char-table.
14463
14464 * print.c (print_object): Include sub char-table in circularities
14465 detection.
14466
144672008-02-01 Kenichi Handa <handa@m17n.org>
14468
14469 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14470 Append the found sequences in car of ARGS instead of prepending.
14471
144722008-02-01 Kenichi Handa <handa@m17n.org>
14473
14474 * fileio.c (report_file_error): Make a unibyte string from
14475 strerror (errorno).
14476 (Fsubstitute_in_file_name): Fix the arg to
14477 unibyte_char_to_multibyte. It is evaluated twice.
14478
144792008-02-01 Kenichi Handa <handa@m17n.org>
14480
14481 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14486 BOM is not found.
14487 (detect_coding, detect_coding_system): Optimization for ISO-2022
14488 when no 8-bit data is found.
14489
144902008-02-01 Jason Rumney <jasonr@gnu.org>
14491
14492 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14493
144942008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14497 CHARS.
14498
144992008-02-01 Steven Tamm <steventamm@mac.com>
14500
14501 * macterm.c (mac_encode_char): Add charset argument and update
14502 to use encoding_type.
14503 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14504 switch to pure fontset.
14505 (decode_mac_font_name): Temporarily remove decoding.
14506 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14507 (x_load_font): Temporarily remove encoding.
14508
145092008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * xfaces.c (Fface_font): If frame is not on a window system,
14512 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14513 refer to face->font.
14514 (split_font_name_into_vector, build_font_name_from_vector)
14515 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14516 when HAVE_WINDOW_SYSTEM is defined.
14517
145182008-02-01 Kenichi Handa <handa@m17n.org>
14519
14520 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14521 (x_produce_glyphs): Fix setting of members of cmp in case
14522 cmp->glyph_len is zero.
14523
14524 * fontset.c (Fset_fontset_font): Fix docstring.
14525 (Ffontset_info): Make it backward compatible. New arg ALL.
14526
145272008-02-01 Kim F. Storm <storm@cua.dk>
14528
14529 * process.c (read_process_output): Grow decoding_buf when needed;
14530 this could cause a crash in allocate_string and compact_small_strings.
14531
145322008-02-01 Kenichi Handa <handa@m17n.org>
14533
14534 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14535
145362008-02-01 Kenichi Handa <handa@m17n.org>
14537
14538 * coding.c (setup_coding_system): Set coding->common_flags
14539 correctly for raw-text.
14540 (consume_chars): On encoding unibyte text by raw-text, don't check
14541 multibyte form.
14542 (encode_coding): On encoding by raw-text, never use translation tables.
14543
14544 * fileio.c (e_write): Short cut for the case of no encoding.
14545
145462008-02-01 Kenichi Handa <handa@m17n.org>
14547
14548 * coding.c (detect_coding, detect_coding_system): Delete unused
14549 variables.
14550
145512008-02-01 Kenichi Handa <handa@m17n.org>
14552
14553 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14554 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14555
145562008-02-01 Kenichi Handa <handa@m17n.org>
14557
14558 * coding.c (Ffind_coding_systems_region_internal): Include
14559 raw-text and no-conversion in the result.
14560
145612008-02-01 Kenichi Handa <handa@m17n.org>
14562
14563 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14564 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14565 FONT_DEF.
14566 (font_def_arg, add_arg, from_arg, to_arg): New args.
14567 (set_fontset_font): Change argument.
14568 (Fset_fontset_font): Fix for the case that TARGET is a script
14569 name and charset name.
14570 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14571
145722008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * fontset.c (fontset_font): Rename from fontset_face. Change return
14575 value.
14576 (face_suitable_for_char_p, face_for_char): Adjust for the change
14577 of fontset_font.
14578 (make_fontset_for_ascii_face): Fix setting of the fontset element
14579 for ASCII.
14580 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14581 to get a font name.
14582 (Ffontset_info): Adjust for the change of fontset_font.
14583
14584 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14585
14586 * character.h (LEADING_CODE_LATIN_1_MIN)
14587 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14588
145892008-02-01 Kenichi Handa <handa@m17n.org>
14590
14591 * editfns.c (check_translation): New function.
14592 (Ftranslate_region_internal): Handle M:N mapping.
14593
145942008-02-01 Kenichi Handa <handa@m17n.org>
14595
14596 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14597
145982008-02-01 Kenichi Handa <handa@m17n.org>
14599
14600 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14601 goto invalid_code.
14602 (decode_coding_iso_2022): Fix handling of invalid designation.
14603
14604 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14605 after calling code_conversion_save.
14606
146072008-02-01 Kenichi Handa <handa@m17n.org>
14608
14609 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14610
14611 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14612
14613 * fontset.c: Include "intervals.h".
14614 (fontset_face): Fix comparing of Lisp_Objects.
14615 (free_face_fontset, new_fontset_from_font_name): Fix
14616 Lisp_Object/int mixup.
14617
14618 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14619
14620 * coding.c: Add many prototypes for static functions.
14621 (get_translation_table): Allow max_lookup to be NULL.
14622 (decode_coding, Ffind_coding_systems_region_internal)
14623 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14624 get_translation_table with max_lookup NULL.
14625
146262008-02-01 Kenichi Handa <handa@m17n.org>
14627
14628 * coding.c (get_translation_table): Declare it as Lisp_Object.
14629 (LOOKUP_TRANSLATION_TABLE): New macro.
14630 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14631 instead of CHAR_TABLE_REF.
14632
146332008-02-01 Kenichi Handa <handa@m17n.org>
14634
14635 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14636 annotation data format.
14637 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14638 Change arguments FROM and TO to single argument NCHARS. Change caller.
14639 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14640 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14641 (decode_coding_ccl, decode_coding_charset): Pay attention to
14642 coding->charbuf_used.
14643 (get_translation): New function.
14644 (produce_chars): New arguments translation_table and last_block.
14645 Translate characters here. Return number of carryover chars.
14646 Change caller.
14647 (produce_composition): New argument pos. Change caller.
14648 Adjust for the change of annotation data format.
14649 (produce_charset, produce_annotation): Likewise.
14650 (decode_coding, encode_coding): Don't call translate_chars.
14651 (consume_chars): New arg translation_table. Change caller.
14652 (translate_chars): Delete.
14653 (syms_of_coding): Make translation-table's number of extra slots 2.
14654
146552008-02-01 Kenichi Handa <handa@m17n.org>
14656
14657 * search.c (simple_search): Fix setting this_pos_byte in backward
14658 search.
14659
14660 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14661 byte sequence.
14662 (detect_coding_ccl): Fix setting of the variable valids.
14663
146642008-02-01 Kenichi Handa <handa@m17n.org>
14665
14666 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14667
14668 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14669
14670 * editfns.c (Ftranslate_region_internal): Rename from
14671 Ftranslate_region. Accept a char-table in TABLE.
14672 (syms_of_editfns): Defsubr Stranslate_region_internal.
14673
14674 * xfaces.c (set_lface_from_font_name): If a font is specified for
14675 a frame, generate a fontset from the font.
14676 (build_scalable_font_name): If the scalable font is requested for
14677 a specific size, don't change that size.
14678 (try_font_list): Try a scalable font also in the case that a
14679 pattern string is specified.
14680
146812008-02-01 Kenichi Handa <handa@m17n.org>
14682
14683 * xfaces.c (Fface_font): New optional arg CHARACTER.
14684
146852008-02-01 Kenichi Handa <handa@m17n.org>
14686
14687 * charset.h (CHARSET_OFFSET): New macro.
14688
146892008-02-01 Kenichi Handa <handa@m17n.org>
14690
14691 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14692
14693 * fontset.c (fontset_face): Handle the case that repertory is a
14694 char-table.
14695 (find_font_encoding): Return nil for unknown encoding.
14696 (Fset_fontset_font): Ignore a font of unknown encoding.
14697
146982008-02-01 Kenichi Handa <handa@m17n.org>
14699
14700 * keymap.c (describe_vector): Handle default value of a char table.
14701
14702 * fontset.c (fontset_face): Handle fallback fonts correctly.
14703 (Ffontset_info): Return infomation about fallback fonts.
14704
147052008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * fontset.c (FONTSET_DEFAULT): New macro.
14708 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14709 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14710 the case that it is nil.
14711 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14712 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14713
14714 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14715 subset or superset.
14716
147172008-02-01 Kenichi Handa <handa@m17n.org>
14718
14719 * emacs.c (main): Call init_charset after syms_of_XXX.
14720
14721 * charset.c (Vcharset_map_directory): Delete.
14722 (Vcharset_map_path): New variable.
14723 (load_charset_map_from_file): Use Vcharset_map_path instead.
14724 (init_charset): Initialize Vcharset_map_path.
14725 (syms_of_charset): Delete declaration of "charset-map-directory",
14726 add declaration of "charset-map-path".
14727
147282008-02-01 Kenichi Handa <handa@m17n.org>
14729
14730 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14731 ASCII only string.
14732
14733 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14734
14735 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14736 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14737
147382008-02-01 Kenichi Handa <handa@m17n.org>
14739
14740 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14741
14742 * coding.c (QCmnemonic, QCdefalut_char)
14743 (QCdecode_translation_table, QCencode_translation_table)
14744 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14745 (get_translation_table): Return a list of translation tables if
14746 necessary.
14747 (decode_coding): Call get_translation_table with ENCODEP 0.
14748 (char_encodable_p): If translation_table is non-nil, always call
14749 translate_char.
14750 (Fdefine_coding_system_internal): Accept list of translation
14751 tables as :encode-translation-table and :decode-translation-table.
14752 (Fcoding_system_put): New function.
14753 (syms_of_coding): Declare new symbols. Defsubr
14754 Scoding_system_put.
14755 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14756 typically JISX0212.
14757
14758 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14759 when the charset is superset type.
14760
14761 * character.c (translate_char): Accept list of translation tables.
14762
147632008-02-01 Kenichi Handa <handa@m17n.org>
14764
14765 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14766 (CODING_ATTR_TRANS_TBL): New macro.
14767
14768 * coding.c (get_translation_table): New function.
14769 (translate_chars): Fix the bug of skipping annotation data.
14770 (decode_coding, encode_coding): Utilize get_translation_table.
14771 (char_encodable_p, Funencodable_char_position): Translate char if
14772 necessary.
14773 (Ffind_coding_systems_region_internal)
14774 (Fcheck_coding_systems_region): Setup translation table for encode
14775 in a coding system attribute vector in advance.
14776 (Fdefine_coding_system_internal): Allow a symbol as translation
14777 table. For shift-jis type coding system, allow 4th charset.
14778
147792008-02-01 Kenichi Handa <handa@m17n.org>
14780
14781 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14782
14783 * xdisp.c (get_next_display_element): Pass -1 as POS to
14784 FACE_FOR_CHAR if displaying a C-string.
14785
147862008-02-01 Kenichi Handa <handa@m17n.org>
14787
14788 * composite.c (get_composition_id): Handle xoff and yoff in a
14789 composition rule.
14790
14791 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14792 (struct composition): New member lbearing and rbearing.
14793
14794 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14795 (x_get_glyph_overhangs): Handle a composition glyph.
14796 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14797
14798 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14799 composition glyph.
14800
148012008-02-01 Kenichi Handa <handa@m17n.org>
14802
14803 * print.c: Include charset.h.
14804 (Vprint_charset_text_property): New variable.
14805 (Qdefault): Extern it.
14806 (PRINT_STRING_NON_CHARSET_FOUND)
14807 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14808 (print_check_string_result): New variable.
14809 (print_check_string_charset_prop): New function.
14810 (print_prune_charset_plist): New variable.
14811 (print_prune_string_charset): New function.
14812 (print_object): Call print_prune_string_charset if
14813 Vprint_charset_text_property is not t.
14814 (print_interval): Print nothing if interval->plist is nil.
14815 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14816 variable. Init and staticpro print_prune_charset_plist.
14817
148182008-02-01 Kenichi Handa <handa@m17n.org>
14819
14820 * fontset.c (new_fontset_from_font_name): Use the specified font
14821 for all characters in the new fontset.
14822
14823 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14824 OBJECT args.
14825
14826 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14827 OBJECT args for composition too.
14828
14829 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14830 OBJECT args.
14831
148322008-02-01 Kenichi Handa <handa@m17n.org>
14833
14834 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14835
14836 * fontset.c (reorder_font_vector): Adjust for the change of
14837 FONT_DEF format.
14838 (fontset_face): New arg id. Change caller.
14839 (face_for_char): New args pos and object.
14840 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14841 (fs_query_fontset): Check NAME by Fassoc too.
14842 (Fset_fontset_font): Allow non-XLFD font name.
14843 (Ffontset_info): Adjust for the change of FONT_DEF format.
14844
14845 * fontset.h (face_for_char): Adjust prototype.
14846
14847 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14848 (append_space, extend_face_to_end_of_line)
14849 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14850 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14851
14852 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14853 POS and OBJECT args.
14854
14855 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14856 POS and OBJECT args.
14857
148582008-02-01 Jason Rumney <jasonr@gnu.org>
14859
14860 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14861 of GlobalAlloc'ed memory.
14862
148632008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14866
14867 * charset.h (charset_table_used): Delete extern.
14868
14869 * charset.c (charset_table_used): Make it static.
14870 (map_charset_chars): Fix args to c_function with.
14871
14872 * chartab.c (map_sub_char_table_for_charset): Fix args to
14873 c_function with.
14874
14875 * coding.h (enum coding_result_code): Delete
14876 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14877
14878 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14879 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14880 (Vlast_code_conversion_error): New variables.
14881 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14882 (ONE_MORE_BYTE): Record error if any instead of signaling an
14883 error. If non-ASCII multibyte char is found, return the negative
14884 value of the code. All callers changed to check it.
14885 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14886 (record_conversion_result): New function. Change all codes setting
14887 coding->result to call this function.
14888 (detect_coding_utf_8, decode_coding_utf_8)
14889 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14890 Don't use the local variable incomplete.
14891 (emacs_mule_char): Change the second arg to `const'.
14892 (decode_coding): Fix of flushing out unprocessed data.
14893 (make_conversion_work_buffer): Fix making of a work buffer.
14894 (decode_coding_object): Return coding->dst_object.
14895
14896 * fontset.c (set_fontset_font): Fix args.
14897
14898 * lisp.h (CHARACTERBITS): Define as 22.
14899
14900 * process.c (send_process): Be sure to set coding->src_multibyte.
14901
14902 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14903
149042008-02-01 Kenichi Handa <handa@m17n.org>
14905
14906 * xdisp.c (handle_auto_composed_prop): Give limit to
14907 Fnext_single_char_property_change.
14908
149092008-02-01 Kenichi Handa <handa@m17n.org>
14910
14911 * composite.c (syms_of_composite): Don't make the composition hash
14912 table weak.
14913
14914 * fontset.c (Fset_fontset_font): Fix docstring.
14915
14916 * lisp.h (detect_coding_system): Adjust prototype.
14917
14918 * fileio.c (kill_workbuf_unwind): Delete this function.
14919 (Finsert_file_contents): Adjust the call of detect_coding_system.
14920 Get conversion_buffer by code_conversion_save. Use the macro
14921 CODING_MAY_REQUIRE_DECODING. After decoding, update
14922 coding_system.
14923
14924 * coding.h (make_conversion_work_buffer): Delete extern.
14925 (code_conversion_save): Extern it.
14926
14927 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14928 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14929 (decode_coding_utf_8): Don't do eol converion.
14930 (detect_coding_utf_16): Check coding->src_chars, not
14931 coding->src_bytes. Add heuristics for those that have no signature.
14932 (decode_coding_emacs_mule, decode_coding_iso_2022)
14933 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14934 Don't do eol converion.
14935 (adjust_coding_eol_type): Return a new coding system.
14936 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14937 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14938 each change.
14939 (decode_coding): Pay attention to undo_list. Do eol conversion for
14940 all types of coding-systems (if necessary).
14941 (Vcode_conversion_work_buf_list): Delete it.
14942 (Vcode_conversion_reused_workbuf): Rename from
14943 Vcode_conversion_reused_work_buf.
14944 (Vcode_conversion_workbuf_name): New variable.
14945 (reused_workbuf_in_use): New variable.
14946 (make_conversion_work_buffer): Delete the arg DEPTH.
14947 (code_conversion_restore): Change argument to cons.
14948 (code_conversion_save): Delete the argument BUFFER. Change callers.
14949 (detect_coding_system): New argument src_chars. Change callers.
14950 Fix for utf-16 detection.
14951 (init_coding_once): Don't use ISO_carriage_return.
14952 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14953 reused_workbuf_in_use.
14954
149552008-02-01 Kenichi Handa <handa@m17n.org>
14956
14957 * keymap.c (store_in_keymap): Pay attention to the case that idx
14958 is a cons specifying a character range.
14959
149602008-02-01 Kenichi Handa <handa@m17n.org>
14961
14962 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14963 HANDLED_RECOMPUTE_PROPS.
14964
14965 * coding.c (Fdefine_coding_system_internal): Fix checking of
14966 ascii compatibility.
14967
149682008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * charset.c (find_charsets_in_text): Delete unused locale variable.
14971 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14972
14973 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14974 Resync charset_list to Vemacs_mule_charset_list.
14975
14976 * keymap.c (store_in_keymap): Pay attention to the case that idx
14977 is a cons specifying a character range.
14978
149792008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * composite.c (update_compositions): Bind inhibit-read-only, etc
14982 to t before calling remove-list-of-text-properties.
14983
14984 * print.c (print_object): Always print ASCII chars as is.
14985
149862008-02-01 Kenichi Handa <handa@m17n.org>
14987
14988 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14989
14990 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14991 is a char table.
14992
149932008-02-01 Kenichi Handa <handa@m17n.org>
14994
14995 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * xfaces.c (set_lface_from_font_name): Fix for the case that
15000 FONTNAME is not fontset name.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * fns.c (base64_encode_1): Fix previous change.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * fontset.c (set_fontset_font): New function.
15009 (Fset_fontset_font): If a font is specified for a charset, use
15010 map_charset_chars to store the font spec in a fontset.
15011
150122008-02-01 Kenichi Handa <handa@m17n.org>
15013
15014 * fontset.c (fontset_face): Create a fallback fontset on demand.
15015 (make_fontset): Don't create a fallback fontset here.
15016 (free_face_fontset): Free a fallback fontset (if any) too.
15017 (n_auto_fontsets): Delete this variable.
15018 (auto_fontset_alist): New variable.
15019 (new_fontset_from_font_name): Check auto_fontset_alist.
15020 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15021 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15022 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15023 Defsubr Sfontset_list_all.
15024
150252008-02-01 Kenichi Handa <handa@m17n.org>
15026
15027 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15028
150292008-02-01 Kenichi Handa <handa@m17n.org>
15030
15031 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15032
150332008-02-01 Kenichi Handa <handa@m17n.org>
15034
15035 * editfns.c (Fgoto_char): Fix docstring.
15036
150372008-02-01 Kenichi Handa <handa@m17n.org>
15038
15039 * insdel.c (insert_from_gap): Adjust intervals correctly.
15040
150412008-02-01 Jason Rumney <jasonr@gnu.org>
15042
15043 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15044 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15045 (w32_initialize): Try to load it.
15046 (x_get_font_repertory): Use it if available.
15047 (w32_encode_char): Add shortcut for unicode output.
15048
15049 * w32fns.c (w32_load_system_font): Default charset to -1.
15050 (x_to_w32_charset): Match all fonts for unicode.
15051 (w32_to_x_charset): New parameter matching. Don't return partial
15052 or wildcard charsets.
15053 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15054 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15055 (w32_to_x_font): Match charset to real charset.
15056 (enum_font_cb2): Always list unicode versions.
15057
15058 * makefile.w32-in (temacs): Increase EMHEAP.
15059
150602008-02-01 Jason Rumney <jasonr@gnu.org>
15061
15062 * w32term.c (w32_encode_char): New charset parameter.
15063 font_info.encoding becomes encoding_type.
15064 (x_get_font_repertory): New function. Warning: stub only!
15065 (x_new_font): Return quickly if font already set.
15066 (x_new_fontset): fontsetname parameter is Lisp_Object.
15067 Use new fs_query_fontset. Try new_fontset_from_font_name.
15068 Use fontset_name for return value.
15069
15070 * w32term.h: Declare x_get_font_repertory.
15071
15072 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15073 place of find_charset_in_text. Use encode_coding_object in place
15074 of encode_coding.
15075 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15076 decode_coding.
15077
15078 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15079 of x_new_fontset.
15080 (w32_load_system_font): Initialize charset as unicode.
15081 font_info.encoding becomes encoding_type.
15082 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15083 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15084 (syms_of_w32fns): Set get_font_repertory_func.
15085
15086 * w32console.c: Include character.h. Use terminal_encode_buffer
15087 from term.c.
15088 (write_glyphs): Use new version of encode_terminal_code. Use
15089 encode_coding_object in place of encode_coding.
15090
15091 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15092 encoding becomes encoding_type.
15093
15094 * term.c (terminal_encode_buffer): Make externally visible.
15095
15096 * makefile.w32-in: Add character.h dependancies.
15097 (character.o, chartab.o): New targets.
15098
150992008-02-01 Kenichi Handa <handa@m17n.org>
15100
15101 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15102 CODING_ID_EOL_TYPE.
15103
151042008-02-01 Andreas Schwab <schwab@suse.de>
15105
15106 * coding.c (produce_chars): Revert last change.
15107
151082008-02-01 Kenichi Handa <handa@m17n.org>
15109
15110 * charset.h (charset_unicode): Extern it.
15111
15112 * charset.c (string_xstring_p): Check by (C >= 0x100).
15113 (find_charsets_in_text): Change format of the arc CHARSETS. New
15114 arg MULTIBYTE.
15115 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15116 change of find_charsets_in_text.
15117 (Fsplit_char): Fix doc. Never return unknown.
15118
15119 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15120
15121 * coding.c (Fdefine_coding_system_alias): Update
15122 Vcoding_system_list.
15123
15124 * fontset.c (load_font_get_repertory): Pay attention to the case
15125 that ENCODING of a font is specified by a char-table.
15126
15127 * xterm.c (x_get_font_repertory): Handle the case that the
15128 encoding of font is other than Unicode.
15129
151302008-02-01 Kenichi Handa <handa@m17n.org>
15131
15132 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15133 if a character is encodable by the terminal coding system. If
15134 not, produces proper number of `?'s. Update
15135 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15136 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15137
151382008-02-01 Kenichi Handa <handa@m17n.org>
15139
15140 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15141 variables.
15142 (encode_terminal_code): Change argument. Encode multiple
15143 characters at once. Store the result of encoding in
15144 terminal_encode_buffer.
15145 (write_glyphs, insert_glyphs): Adjust for the change of
15146 encode_terminal_code.
15147 (term_init): Initialize terminal_encode_buffer and
15148 terminal_encode_buf_size.
15149
15150 * coding.c (consume_chars): If coding->src_object is nil, don't
15151 check annotation.
15152
151532008-02-01 Kenichi Handa <handa@m17n.org>
15154
15155 * character.c (char_string): Use ASCII_CHAR_P instead of
15156 SINGLE_BYTE_CHAR_P.
15157
151582008-02-01 Kenichi Handa <handa@m17n.org>
15159
15160 * xdisp.c (handle_auto_composed_prop): Check if the last
15161 characters of auto-composed region is newly composed with the
15162 following characters.
15163 (handle_composition_prop): Fix checking of point being inside
15164 composition.
15165
151662008-02-01 Kenichi Handa <handa@m17n.org>
15167
15168 * fns.c (concat): Don't change multibyteness of the result by
15169 concatenating an 8-bit character.
15170
15171 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15172 multibyteness of the result when newelt is an 8-bit character.
15173
151742008-02-01 Dave Love <fx@gnu.org>
15175
15176 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15177 EMACS_INT.
15178
15179 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15180
15181 * xfaces.c (face_numeric_value): Declare dim size_t.
15182 (Finternal_lisp_face_equal_p): Remove unused f.
15183
15184 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15185 (MATRIX_ROW): Remove unused vars.
15186 (draw_glyphs, x_insert_glyphs, fast_find_position)
15187 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15188 byte/char counts.
15189
15190 * regex.c (regex_compile): Remove unused var.
15191
15192 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15193
15194 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15195 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15196
15197 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15198
15199 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15200
15201 * fileio.c (Fwrite_region): Remove unused var.
15202
15203 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15204 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15205
15206 * composite.c (Fremove_list_of_text_properties): Declare.
15207
15208 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15209 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15210 (coding_inherit_eol_type): Remove unused attrs.
15211 (detect_coding): Cast arg of detect_eol.
15212
15213 * charset.c (syms_of_charset): Remove unused var p.
15214 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15215 byte/char counts.
15216
15217 * casetab.c (set_case_table): Remove unused var.
15218
15219 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15220 unused vars.
15221
152222008-02-01 Dave Love <fx@gnu.org>
15223
15224 * xterm.c (x_bitmap_mask): Declare.
15225
152262008-02-01 Dave Love <fx@gnu.org>
15227
15228 * xterm.c (x_term_init): Fix type error.
15229
15230 * lisp.h: Add Funibyte_char_to_multibyte.
15231
15232 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15233 (Fset_coding_system_priority): Doc fix.
15234
15235 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15236
15237 * indent.c (check_composition): Make start and end EMACS_INT.
15238
15239 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15240
15241 * xdisp.c (handle_composition_prop, check_point_in_composition):
15242 Make buffer positions EMACS_INT.
15243
15244 * composite.c (find_composition, run_composition_function)
15245 (update_compositions, Ffind_composition_internal): Make buffer
15246 positions EMACS_INT.
15247
15248 * composite.h (find_composition, update_compositions): Make
15249 position args EMACS_INT.
15250
15251 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15252
15253 * intervals.c (get_property_and_range):
15254 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15255
15256 * unexalpha.c: Don't include varargs.h.
15257
152582008-02-01 Dave Love <fx@gnu.org>
15259
15260 * coding.h (ENCODE_UTF_8): New.
15261
15262 * Makefile.in (gtkutil.o): Depend on coding.h.
15263
15264 * coding.c (Fset_coding_system_priority): Doc fix.
15265
152662008-02-01 Kenichi Handa <handa@m17n.org>
15267
15268 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15269 the case of auto saving.
15270
152712008-02-01 Andreas Schwab <schwab@suse.de>
15272
15273 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15274 `range' from GC.
15275
152762008-02-01 Kenichi Handa <handa@m17n.org>
15277
15278 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15279
152802008-02-01 Kenichi Handa <handa@m17n.org>
15281
15282 * fileio.c (choose_write_coding_system): Return a decided coding system.
15283 (Fwrite_region): Set Vlast_coding_system_used to the return value
15284 of choose_write_coding_system.
15285
152862008-02-01 Kenichi Handa <handa@m17n.org>
15287
15288 * charset.c (Fset_charset_priority): Pay attention to duplicated
15289 arguments.
15290
15291 * coding.c (QCcategory): New variable.
15292 (syms_of_coding): Defsym it. Set all elements of
15293 Vcoding_category_table and their symbol values.
15294 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15295 coding-category-XXX, and coding-category-list.
15296 (Fdefine_coding_system_internal): Add category in the plist.
15297
152982008-02-01 Kenichi Handa <handa@m17n.org>
15299
15300 * callproc.c (Fcall_process): Handle carryover correctly.
15301
15302 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15303 (raw_text_coding_system): Check NILP (coding_system).
15304 (coding_inherit_eol_type): Check NILP (coding_system) and
15305 NILP (parent).
15306 (consume_chars): Fix for the case of raw-text.
15307
15308 * process.c (read_process_output): Handle carryover correctly.
15309
153102008-02-01 Dave Love <fx@gnu.org>
15311
15312 * regex.c (re_search_2): Fix last change.
15313
153142008-02-01 Kenichi Handa <handa@m17n.org>
15315
15316 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15317 target_multibyte. Even in a unibyte case, return a converted
15318 multibyte char.
15319 (GET_CHAR_AFTER): New macro.
15320 (PATFETCH): Translate via multibyte char.
15321 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15322 (SETUP_MULTIBYTE_RANGE): New macro.
15323 (regex_compile): Setup compiled code so that its multibyteness
15324 matches that of a target. Fix the handling of "[X-YZ]" using
15325 SETUP_MULTIBYTE_RANGE.
15326 (analyse_first) <charset>: For filling fastmap for all multibyte
15327 characters, don't check by BASE_LEADING_CODE_P.
15328 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15329 the same as RE_MULTIBYTE_P (bufp) now.
15330 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15331 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15332 (TRANSLATE_VIA_MULTIBYTE): New macro.
15333 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15334 It is the same as RE_MULTIBYTE_P (bufp) now.
15335 <exactn>: Translate via multibyte.
15336 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15337 translate it.
15338 <charset, charset_not>: Fetch a character by
15339 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15340 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15341 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15342 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15343 by GET_CHAR_AFTER.
15344 (bcmp_translate): Likewise.
15345
15346 * search.c (compile_pattern): Check the member target_multibyte,
15347 not the member multibyte of buf.
15348
15349 * lread.c (read1): While reading a string, set force_singlebyte
15350 and force_multibyte correctly.
15351
15352 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15353 up of unibyte_to_multibyte_table.
15354
153552008-02-01 Kenichi Handa <handa@m17n.org>
15356
15357 * coding.c (setup_coding_system): If coding has
15358 post-read-conversion or pre-write-conversion, set
15359 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15360 respectively.
15361 (decode_coding_gap): Run post-read-conversion if any.
15362
15363 * fileio.c (Finsert_file_contents): Even if we read into a
15364 unibyte buffer, check if we must decode the result or not.
15365
153662008-02-01 Kenichi Handa <handa@m17n.org>
15367
15368 * coding.c (make_conversion_work_buffer): Change the work buffer
15369 name to the same one as that of Emacs 21.
15370
153712008-02-01 Kenichi Handa <handa@m17n.org>
15372
15373 * coding.h (make_conversion_work_buffer): Adjust prototype.
15374 (code_conversion_restore): Don't extern it.
15375
15376 * coding.c (detected_mask): Delete unused variable.
15377 (decode_coding_iso_2022): Pay attention to the byte sequence of
15378 CTEXT extended segment, and retain those bytes as is.
15379 (decode_coding_ccl): Delete unused variable `valids'.
15380 (setup_coding_system): Delete unused variable `category'.
15381 (consume_chars): Delete unused variable `category'. Make it work
15382 for non-multibyte case.
15383 (make_conversion_work_buffer): Change argument.
15384 (saved_coding): Delete unused variable.
15385 (code_conversion_restore): Don't check saved_coding->destination.
15386 (code_conversion_save): New function.
15387 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15388 instead of record_unwind_protect.
15389 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15390 (detect_coding_system): Delete unused variable `mask'.
15391 (Fdefine_coding_system_internal): Delete unused variable id.
15392
15393 * fileio.c (kill_workbuf_unwind): New function.
15394 (Finsert_file_contents): On replacing, call
15395 make_conversion_work_buffer with correct args, and call
15396 record_unwind_protect with the first arg kill_workbuf_unwind.
15397
15398 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15399
154002008-02-01 Kenichi Handa <handa@m17n.org>
15401
15402 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15403 (fontset_add): Fix for the case that TO is less than TO1.
15404 (Ffontset_info): Don't use fallback fontset on checking the
15405 default fontset.
15406 (dump_fontset): New function for debugging.
15407
15408 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15409 coding_type is Qcharset.
15410
154112008-02-01 Kenichi Handa <handa@m17n.org>
15412
15413 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15414 (map_char_table): Don't inherit the value from the parent on
15415 initializing VAL. Adjust for the above change.
15416
154172008-02-01 Kenichi Handa <handa@m17n.org>
15418
15419 * coding.c (Qsignature, Qendian): Delete these variables.
15420 (syms_of_coding): Don't initialize them.
15421 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15422 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15423 detect_info->found.
15424 (decode_coding_utf_16): Don't detect BOM here.
15425 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15426 is NOT utf_16_without_bom.
15427 (setup_coding_system): For a coding system of type utf-16, check
15428 if the attribute :endian is Qbig or not (not nil or not), and set
15429 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15430 (detect_coding): If coding type is utf-16 and BOM detection is
15431 required, detect it.
15432 (Fdefine_coding_system_internal): For a coding system of type
15433 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15434
154352008-02-01 Kenichi Handa <handa@m17n.org>
15436
15437 * coding.c (coding_set_source): Fix for the case that the current
15438 buffer is different from coding->src_object.
15439 (decode_coding_object): Don't use the conversion work buffer if
15440 DST_OBJECT is a buffer.
15441
154422008-02-01 Dave Love <fx@gnu.org>
15443
15444 * lread.c (read_emacs_mule_char) [len==2]: Index
15445 emacs_mule_charset correctly.
15446
154472008-02-01 Dave Love <fx@gnu.org>
15448
15449 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15450 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15451 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15452 treated specially.)
15453 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15454 (detected_mask): Remove Big5 bits.
15455
154562008-02-01 Kenichi Handa <handa@m17n.org>
15457
15458 The following changes are to make the font rescaling facility
15459 compatible with Emacs 21.
15460
15461 * xfaces.c (Vface_font_rescale_alist): Rename from
15462 Vface_resizing_fonts.
15463 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15464 (font_rescale_ratio): Rename from font_resizing_ratio.
15465 (split_font_name): Set font->rescale_ratio.
15466 (better_font_p): Pay attention to font->rescale_ratio.
15467 (build_scalable_font_name): Likewise. Change RESX, and RESY
15468 fields.
15469 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15470
154712008-02-01 Kenichi Handa <handa@m17n.org>
15472
15473 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15474 (Qutf_16_le): Remove these variables.
15475 (syms_of_coding): Don't DEFSYM them.
15476 (decode_coding_utf_16): Fix handling of BOM.
15477 (encode_coding_utf_16): Fix handling of BOM.
15478
154792008-02-01 Kenichi Handa <handa@m17n.org>
15480
15481 * fileio.c (Finsert_file_contents): On replacing, before decoding
15482 the file into the work buffer, set point of the work buffer to the end.
15483
154842008-02-01 Dave Love <fx@gnu.org>
15485
15486 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15487
154882008-02-01 Dave Love <fx@gnu.org>
15489
15490 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15491 and fix C types.
15492
154932008-02-01 Kenichi Handa <handa@m17n.org>
15494
15495 * xdisp.c (SKIP_GLYPHS): New macro.
15496 (set_cursor_from_row): Pay attention to string display properties.
15497
15498 * category.c (copy_category_entry): Fix for the case that RANGE
15499 is an integer.
15500
15501 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15502
15503 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15504
155052008-02-01 Kenichi Handa <handa@m17n.org>
15506
15507 * charset.c (Fcharset_id_internal): New function.
15508 (syms_of_charset): Defsubr it.
15509
15510 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15511 with the last arg charset_list acquired from coding.
15512 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15513 the attribute coding_attr_ccl_valids.
15514
15515 * coding.h (enum define_coding_ccl_arg_index): Set the first
15516 member coding_arg_ccl_decoder to coding_arg_max.
15517
15518 * ccl.h (ccl_driver): Adjust prototype.
15519
15520 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15521 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15522 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15523 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15524 last arg Qnil.
15525
155262008-02-01 Kenichi Handa <handa@m17n.org>
15527
15528 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15529 call encode_char.
15530
15531 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15532
155332008-02-01 Dave Love <fx@gnu.org>
15534
15535 * composite.c (syms_of_composite): Make composition_hash_table weak.
15536
155372008-02-01 Kenichi Handa <handa@m17n.org>
15538
15539 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15540 (font_name_registry): Don't extern them.
15541 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15542
15543 * fontset.h (Qfontset): Don't extern it.
15544 (new_fontset_from_font_name): Extern it.
15545
15546 * fontset.c: Give 8 extra slots to fontset objects.
15547 (Qfontset_info): New variable.
15548 (syms_of_fontset): Defsym it.
15549 (FONTSET_FALLBACK): New macro.
15550 (fontset_face): Try also the default fontset.
15551 (make_fontset): Realize a fallback fontset from the default fontset.
15552 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15553 using split_font_name_into_vector and build_font_name_from_vector.
15554 (Fset_fontset_font): Access the elements of font_spec by enum
15555 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15556 name by using split_font_name_into_vector.
15557 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15558 generate a proper font name from the fontset name. Update
15559 Vfontset_alias_alist.
15560 (n_auto_fontsets): New variable.
15561 (new_fontset_from_font_name): New function.
15562 (Ffont_info): Store the information about fonts generated from the
15563 default fontset in the first extra slot of the returned char-table.
15564
15565 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15566 (font_name_registry): Delete function.
15567 (split_font_name_into_vector): New function.
15568 (build_font_name_from_vector): New function.
15569 (font_list): The argument REGISTRY is now a list of registry names.
15570 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15571 specifies an explicit font name, return the name as is. Make a
15572 list of registy names.
15573
15574 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15575 of x_new_fontset.
15576 (Fx_create_frame): Don't call x_new_fontset here. Just use
15577 x_list_fonts to check the existence of fonts.
15578
15579 * xterm.h (x_new_fontset): Adjust prototype.
15580
15581 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15582 string. Use new_fontset_from_font_name to create a fontset from a
15583 font name.
15584
155852008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 * syntax.c (Vfind_word_boundary_function_table): New name for
15588 Vnext_word_boundary_function_table.
15589 (find-word-boundary-function-table): New name for
15590 next-word-boundary-function-table.
15591
155922008-02-01 Dave Love <fx@gnu.org>
15593
15594 * Makefile.in: Fix some dependencies.
15595
15596 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15597 set it to nil before returning.
15598
15599 * composite.c (update_compositions): Fix type error.
15600
15601 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15602
156032008-02-01 Kenichi Handa <handa@m17n.org>
15604
15605 * xterm.c (x_new_font): Optimize for the case that the font is
15606 already set for the frame.
15607
156082008-02-01 Kenichi Handa <handa@m17n.org>
15609
15610 * chartab.c (char_table_ascii): Check if the char table contents
15611 is sub-char-table or not.
15612 (char_table_set, char_table_set_range): Fix argument to
15613 char_table_ascii.
15614
15615 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15616 (detect_coding_utf_8, detect_coding_utf_16)
15617 (detect_coding_emacs_mule, detect_coding_iso_2022)
15618 (detect_coding_sjis, detect_coding_big5)
15619 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15620 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15621 sequence is valid in this coding system. Change callers.
15622 (MAX_ANNOTATION_LENGTH): New macro.
15623 (ADD_ANNOTATION_DATA): New macro.
15624 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15625 ADD_ANNOTATION_DATA. Change the format of annotation data.
15626 (ADD_CHARSET_DATA): New macro.
15627 (emacs_mule_char): New argument ID. Change callers.
15628 (decode_coding_emacs_mule, decode_coding_iso_2022)
15629 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15630 Produce charset annotation data in coding->charbuf.
15631 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15632 to charset annotation data in coding->charbuf.
15633 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15634 coding->common_flags if the coding system is iso-2022 based and
15635 uses designation.
15636 (produce_composition): Adjust for the new annotation data format.
15637 (produce_charset): New function.
15638 (produce_annotation): Handle charset annotation.
15639 (handle_composition_annotation, handle_charset_annotation): New
15640 functions.
15641 (consume_chars): Handle charset annotation. Utilize the above two
15642 functions.
15643 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15644 buffer, get the deleted text as a string and set
15645 coding->src_object to that string.
15646 (detect_coding, detect_coding_system): Use the new struct
15647 coding_detection_info.
15648
15649 * coding.h (struct coding_detection_info): New structure.
15650 (struct coding_system): Adjust prototype of the member `detector'.
15651 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15652
156532008-02-01 Kenichi Handa <handa@m17n.org>
15654
15655 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15656
156572008-02-01 Dave Love <fx@gnu.org>
15658
15659 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15660 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15661 to new local and nullify apropos_accumulate before returning.
15662 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15663
156642008-02-01 Kenichi Handa <handa@m17n.org>
15665
15666 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15667 correctly.
e3eea1fc 15668
aac0c6e3
MR
156692008-02-01 Dave Love <fx@gnu.org>
15670
15671 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15672
156732008-02-01 Kenichi Handa <handa@m17n.org>
15674
15675 The following changes are to make character composition happen
15676 automatically on displaying.
15677
15678 * Makefile.in (lisp, shortlisp): Add composite.elc.
15679
15680 * composite.h (Qauto_composed, Vauto_composition_function)
15681 (Qauto_composition_function): Extern them.
15682
15683 * composite.c (Vcomposition_function_table)
15684 (Qcomposition_function_table): Delete variables.
15685 (Qauto_composed, Vauto_composition_function)
15686 (Qauto_composition_function): New variables.
15687 (run_composition_function): Don't call
15688 compose-chars-after-function.
15689 (update_compositions): Clear `auto-composed' text property.
15690 (compose_chars_in_text): Delete this function.
15691 (syms_of_composite): Staticpro Qauto_composed and
15692 Qauto_composition_function. Declare Vauto_composition_function as
15693 a Lisp variable.
15694
15695 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15696
15697 * xdisp.c (it_props): Add an entry for Qauto_composed.
15698 (handle_auto_composed_prop): New function.
15699
15700 * xselect.c (selection_data_to_lisp_data): Don't call
15701 compose_chars_in_text.
15702
157032008-02-01 Dave Love <fx@gnu.org>
15704
15705 * keyboard.c (read_char): Modify checking around use of
15706 Vkeyboard_translate_table.
15707
15708 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15709 and fix C types.
15710
157112008-02-01 Kenichi Handa <handa@m17n.org>
15712
15713 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15714 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15715 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15716 the case that the last byte is '\r' correctly.
15717 (decode_coding): Flush out the unprocessed data correctly.
15718 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15719
157202008-02-01 Dave Love <fx@gnu.org>
15721
15722 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15723 Add XK_ISO... case.
15724 (xaw_scroll_callback): Revert last change.
15725
157262008-02-01 Kenichi Handa <handa@m17n.org>
15727
15728 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15729
157302008-02-01 Kenichi Handa <handa@m17n.org>
15731
15732 * xfaces.c (Vface_resizing_fonts): New variable.
15733 (struct font_name): New member `resizing_ratio'.
15734 (font_resizing_ratio): New function.
15735 (split_font_name): Set font->resizing_ratio.
15736 (better_font_p): Pay attention to font->resizing_ratio.
15737 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15738 RESX, and RESY fields.
15739 (try_alternative_families): Try scalable fonts if
15740 Vscalable_fonts_allowed is not Qt.
15741 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15742
157432008-02-01 Dave Love <fx@gnu.org>
15744
15745 * xterm.c (xaw_scroll_callback): Cast correctly.
15746
157472008-02-01 Dave Love <fx@gnu.org>
15748
15749 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15750 (lispy_kana_keys): Comment out.
15751 (make_lispy_event) [XK_kana_A]: Comment out.
15752
15753 * xterm.c (xaw_scroll_callback): Cast call_data.
15754 (XTread_socket): Deal with ASCII keysyms.
15755 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15756
157572008-02-01 Dave Love <fx@gnu.org>
15758
15759 * xterm.c (Vx_keysym_table): New.
15760 (syms_of_xterm): Initialize it.
15761 (XTread_socket): Use it.
15762 From head: Eliminate incorrect optimization that tried to avoid
15763 decoding the output of X*LookupString.
15764 (x_get_font_repertory): Delete charset declaration.
15765
157662008-02-01 Kenichi Handa <handa@m17n.org>
15767
15768 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15769 return 0.
15770 (Fdefine_coding_system_internal): Setup
15771 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15772
157732008-02-01 Dave Love <fx@gnu.org>
15774
15775 * coding.c (Fcheck_coding_system): Doc fix.
15776
15777 * editfns.c (Finsert_byte): Return a proper value.
15778
157792008-02-01 Kenichi Handa <handa@m17n.org>
15780
15781 * coding.c (decode_coding): Fix args to translate_chars. Pay
15782 attention to Vstandard_translation_table_for_decode.
15783 (encode_coding): Fix args to translate_chars. Pay attention to
15784 Vstandard_translation_table_for_encode.
15785
15786 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15787 SINGLE_BYTE_CHAR_P.
15788
15789 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15790 not by SINGLE_BYTE_CHAR_P.
15791
15792 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15793 SINGLE_BYTE_CHAR_P.
15794
15795 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15796 SINGLE_BYTE_CHAR_P.
15797
15798 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15799 by SINGLE_BYTE_CHAR_P.
15800
15801 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15802 SINGLE_BYTE_CHAR_P.
15803
158042008-02-01 Dave Love <fx@gnu.org>
15805
15806 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15807
158082008-02-01 Dave Love <fx@gnu.org>
15809
15810 * fns.c (Flanginfo): Fix typo.
15811
15812 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15813
158142008-02-01 Kenichi Handa <handa@m17n.org>
15815
15816 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15817 (detect_coding_emacs_mule, detect_coding_iso_2022)
15818 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15819 incomplete byte sequence. Don't update *mask when correctly detected.
15820 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15821 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15822 (detect_coding, detect_coding_system): Adjust for the changes above.
15823
158242008-02-01 Kenichi Handa <handa@m17n.org>
15825
15826 * character.c (char_string): Rename from
15827 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15828 (string_char): Rename from string_char.
15829
15830 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15831 if C is greater than MAX_3_BYTE_CHAR.
15832 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15833 string_char instead of string_char_with_unification.
15834
158352008-02-01 Dave Love <fx@gnu.org>
15836
15837 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15838
158392008-02-01 Kenichi Handa <handa@m17n.org>
15840
15841 * keymap.c (push_key_description): Pay attention to force_multibyte.
15842
15843 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15844
158452008-02-01 Dave Love <fx@gnu.org>
15846
15847 * charset.c (define_charset_internal): Rename `supprementary'.
15848
15849 * Makefile.in (lisp, shortlisp): Remove latin-N.
15850
158512008-02-01 Dave Love <fx@gnu.org>
15852
15853 * xfns.c (x_window, x_window): Use use_xim.
15854
15855 * xterm.c (use_xim): Initialize.
15856 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15857 (x_term_init): Maybe set use_xim.
15858
15859 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15860
158612008-02-01 Kenichi Handa <handa@m17n.org>
15862
15863 * search.c (search_buffer): Fix case-fold-search of multibyte
15864 characters.
15865 (boyer_moore): Rename the last argument to char_high_bits.
15866
158672008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * xdisp.c (display_string): Fix for the case of zero width glyph.
15870
15871 * xfns.c (x_set_font): Change the error message of the case that
15872 x_new_fontset returns Qt.
15873
15874 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15875 (Finternal_set_lisp_face_attribute): Use signal_error for the
15876 error of invalid fontset.
15877
15878 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15879 fontset, return Qt.
15880
158812008-02-01 Dave Love <fx@gnu.org>
15882
15883 * unexelf.c (unexec): Make .got handling not SGI-specific.
15884
15885 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15886
15887 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15888
15889 * keyboard.c (read_key_sequence): Fix type error.
15890
15891 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15892 type error.
15893
15894 * fontset.c (fontset_add): Return Lisp_Object.
15895
158962008-02-01 Dave Love <fx@gnu.org>
15897
15898 * charset.h (charset_ordered_list_tick): Declare extern.
15899
159002008-02-01 Kenichi Handa <handa@m17n.org>
15901
15902 The following changes (and some of 2008-02-01 changes of mine) are
15903 for handling syntax, category, and case conversion for unibyte
15904 characters by converting them to multibyte on the fly. With these
15905 changes, we don't have to setup syntax and case tables for unibyte
15906 characters in each language environment.
15907
15908 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15909 multibyte if necessary.
15910
15911 * bytecode.c (Fbyte_code): Likewise.
15912
15913 * character.h (LEADING_CODE_LATIN_1_MIN)
15914 (LEADING_CODE_LATIN_1_MAX): New macros.
15915 (unibyte_to_multibyte_table): Extern it.
15916 (unibyte_char_to_multibyte): New macro.
15917 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15918 (CHAR_LEADING_CODE): New macro.
15919 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15920
15921 * character.c (unibyte_to_multibyte_table): New variable.
15922 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15923 (multibyte_char_to_unibyte): If C is an eight-bit character,
15924 convert it to the corresponding byte value.
15925
15926 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15927 not 1, signals an error. Update the elements of
15928 unibyte_to_multibyte_table.
15929 (init_charset_once): Initialize unibyte_to_multibyte_table.
15930 (syms_of_charset): Define the charset `iso-8859-1'.
15931
15932 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15933 as is without converting it to unibyte. In a unibyte buffer,
15934 convert C to multibyte before checking the syntax.
15935
15936 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15937
15938 * minibuf.c (Fminibuffer_complete_word): Use the macro
15939 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15940
15941 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15942
15943 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15944 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15945 that is zero, convert an eight-bit char to multibyte.
15946 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15947 non-emacs case.
15948 (PATFETCH): Convert an eight-bit char to multibyte.
15949 (HANDLE_UNIBYTE_RANGE): New macro.
15950 (regex_compile): Setup the compiled pattern for multibyte chars
15951 even if the given regex string is unibyte. Use PATFETCH_RAW
15952 instead of PATFETCH in many places. To handle `charset'
15953 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15954 only for ASCII chars.
15955 (analyse_first) <exactn>: Simplify because the compiled pattern
15956 is multibyte.
15957 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15958 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15959 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15960 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15961 multibyte always 1.
15962 (re_search_2): In emacs, set the locale variable multibyte to 1,
15963 otherwise to 0. New local variable target_multibyte. Check it
15964 to decide the multibyteness of STR1 and STR2. If
15965 target_multibyte is zero, convert unibyte chars to multibyte
15966 before translating and checking fastmap.
15967 (TARGET_CHAR_AND_LENGTH): New macro.
15968 (re_match_2_internal): In emacs, set the locale variable multibyte
15969 to 1, otherwise to 0. New local variable target_multibyte. Check
15970 it to decide the multibyteness of STR1 and STR2. Use
15971 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15972 <charset, charset_not>: If multibyte is nonzero, check fastmap
15973 only for ASCII chars. Call bcmp_translate with
15974 target_multibyte, not with multibyte.
15975 <begline>: Declare the local variable C as `unsigned'.
15976 (bcmp_translate): Change the last arg name to target_multibyte.
15977
15978 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15979 the regexp pattern and the matching target. Set cp->buf.multibyte
15980 to the multibyteness of the regexp pattern. Set
15981 cp->but.target_multibyte to the multibyteness of the matching target.
15982 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15983 FETCH_STRING_CHAR_ADVANCE.
15984 (Freplace_match): Convert unibyte chars to multibyte.
15985
15986 * syntax.c (char_quoted, back_comment, scan_words)
15987 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15988 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15989 unibyte chars to multibyte.
15990 (skip_chars): Delete the arg syntaxp, and move the code for
15991 handling syntaxes to skip_syntaxes. Change callers.
15992 Fix the case that the multibyteness of STRING and the current
15993 buffer doesn't match.
15994 (skip_syntaxes): New function.
15995 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15996 SINGLE_BYTE_CHAR_P.
15997
159982008-02-01 Kenichi Handa <handa@m17n.org>
15999
16000 * xfaces.c (QCfontset): New variable.
16001 (LFACE_FONTSET): New macro.
16002 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16003 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16004 (Finternal_set_lisp_face_attribute)
16005 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16006 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16007 check also LFACE_FONTSET_INDEX.
16008 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16009 attrs[LFACE_FONT_INDEX].
16010 (syms_of_xfaces): Intern and staticpro QCfontset.
16011
16012 * dispextern.h (enum lface_attribute_index): New member
16013 LFACE_FONTSET_INDEX.
16014
16015 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16016
160172008-02-01 Kenichi Handa <handa@m17n.org>
16018
16019 * coding.c (coding_set_destination): Fix coding->destination for
16020 the case converting a region.
16021 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16022 (encode_coding_object): Fix coding->dst_pos and
16023 coding->dst_pos_byte for the case converting a region.
16024
16025 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16026
16027 * character.h (BYTE8_STRING): New macro.
16028
16029 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16030
160312008-02-01 Kenichi Handa <handa@m17n.org>
16032
16033 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16034 characters by octal form.
16035
16036 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16037
16038 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16039 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16040 _fetch_multibyte_char_len.
16041 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16042
16043 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16044
16045 * casefiddle.c (casify_object): Simplify. Handle the case that
16046 the case conversion change the byte length.
16047 (casify_region): Likewise.
16048
16049 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16050
16051 * character.c (_fetch_multibyte_char_len): Delete this variable.
16052 (syms_of_character): Setup Vprintable_chars.
16053
16054 * editfns.c (Fchar_equal): Fix for the unibyte case.
16055 (Finsert_byte): New function.
16056 (syms_of_editfns): Defsubr it.
16057
16058 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16059 of direct code 0x3ffff.
16060
16061 * search.c (Freplace_match): Fix for the unibyte case.
16062
160632008-02-01 Kenichi Handa <handa@m17n.org>
16064
16065 * lread.c (safe_to_load_p): Fix the logic.
16066
16067 * syntax.c (scan_words): Don't treat characters belonging to
16068 different scripts as constituting a word.
16069
16070 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16071
16072 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16073
16074 * emacs.c (main): In the case of --unibyte, instead of aborting on
16075 finding non-empty buffer, make it unibyte.
16076
160772008-02-01 Kenichi Handa <handa@m17n.org>
16078
16079 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16080 to create a fontset.
16081
160822008-02-01 Dave Love <fx@gnu.org>
16083
16084 * character.c (Funibyte_char_to_multibyte): Doc fix.
16085
16086 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16087
160882008-02-01 Kenichi Handa <handa@m17n.org>
16089
16090 * fontset.c (fontset_add): Make the type `int'.
16091 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16092
16093 * character.c (unibyte_char_to_multibyte)
16094 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16095 charset_unibyte, not charset_primary.
16096
16097 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16098
16099 * charset.c (charset_unibyte): Rename from charset_primary.
16100 (Funibyte_charset): Rename from Fprimary_charset.
16101 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16102 (syms_of_charset): Adjust for the above changes.
16103
16104 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16105 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16106 it->multibyte_p is zero.
16107
16108 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16109 Delete extern.
16110
161112008-02-01 Kenichi Handa <handa@m17n.org>
16112
16113 * coding.c (Fdefine_coding_system_internal): Fix category setting
16114 for a coding system of type iso-2022.
16115
161162008-02-01 Kenichi Handa <handa@m17n.org>
16117
16118 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16119
161202008-02-01 Kenichi Handa <handa@m17n.org>
16121
16122 * syntax.c (Vnext_word_boundary_function_table): New variable.
16123 (next-word-boundary-function-table): Declare it as a Lisp variable
16124 in syms_of_syntax.
16125 (scan_words): Call functions in Vnext_word_boundary_function_table
16126 if any.
16127
16128 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16129
16130 * fontset.c (fs_load_font): If fontp->charset is not negative,
16131 return fontp without setting its members.
16132
161332008-02-01 Dave Love <fx@gnu.org>
16134
16135 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16136
16137 * m/sparc.h (HAVE_ALLOCA): Delete.
16138
16139 * s/irix6-5.h: Don't include strings.h.
16140 (bcopy, bzero, bcmp): Don't undef.
16141
16142 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16143
16144 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16145 (TIOCSIGSEND): Don't test IRIX6.
16146 (bcopy, bzero, bcmp): Define conditionally.
16147
161482008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * buffer.c (Qas, Qmake, Qto): New variables.
16151 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16152 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16153
16154 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16155 we are inserting a process output into a multibyte buffer.
16156
16157 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16158 multibyte_char_to_unibyte.
16159
16160 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16161 by the primary charset, make it eight-bit char.
16162 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16163
16164 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16165 (charset_8_bit__control, charset_8_bit_graphic)
16166 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16167 (define_charset_internal): New function.
16168 (syms_of_charset): Call define_charset_internal for pre-defined
16169 charsets.
16170
16171 * charset.h (charset_8_bit): Extern it.
16172
16173 * coding.c (make_conversion_work_buffer): Adjust for the change
16174 of Fset_buffer_multibyte.
16175 (encode_coding_raw_text): Increment p0 in the loop.
16176
16177 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16178
16179 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16180 for the change of Fset_buffer_multibyte.
16181
16182 * fns.c (Fstring_to_multibyte): New function.
16183 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16184
161852008-02-01 Dave Love <fx@gnu.org>
16186
16187 * xfns.c (x_put_x_image): Declare args.
16188
16189 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16190 (try_font_list): Declare an arg.
16191
16192 * xdisp.c (message2_nolog, set_message): Declare an arg.
16193
16194 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16195
16196 * syntax.c (scan_sexps_forward): Declare an arg.
16197
16198 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16199 Declare an arg.
16200
16201 * lisp.h (Fnew_fontset): Declare.
16202
16203 * keymap.c (push_key_description): Call CHARACTERP correctly.
16204
16205 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16206 (face_for_char): Delete unused vars.
16207 (Fset_fontset_font): Doc fix. Delete unused vars.
16208
16209 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16210
16211 * composite.c (update_compositions): Declare arg.
16212
16213 * cm.c (calccost, cmgoto): Declare args.
16214
16215 * charset.c: Remove `emacs' conditional. Doc fixes.
16216 (map_char_table_for_charset): Declare.
16217
16218 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16219
16220 * ccl.c: Remove `emacs' conditional.
16221
162222008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 The following changes are to allow specifying multiple font
16225 patterns for a character range (specified by script or charset).
16226
16227 * Makefile.in (abbrev.o): Depend on syntax.h.
16228 (xfaces.o): Depend on charset.h.
16229
16230 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16231 SINGLE_BYTE_CHAR_P.
16232
16233 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16234
16235 * character.h (Vchar_script_table): Extern it.
16236
16237 * character.c (Vscript_alist): Delete.
16238 (Vchar_script_table, Qchar_script_table): New variable.
16239 (syms_of_character): Declare Vchar_script_table as a lisp variable
16240 and initialize it.
16241
16242 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16243 have property char-table-extra-slots, make no extra slot.
16244
16245 * dispextern.h (struct face): Delete member `charset'.
16246 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16247 SINGLE_BYTE_CHAR_P.
16248 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16249 Add prototypes.
16250 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16251 (generate_ascii_font_name): Rename from generate_ascii_font.
16252
16253 * fontset.h (get_font_repertory_func): New prototype.
16254 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16255 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16256
16257 * fontset.c (Qprepend, Qappend): New variables.
16258 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16259 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16260 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16261 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16262 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16263 (load_font_get_repertory): New functions.
16264 (fontset_set): Delete.
16265 (fontset_face): New arg FACE. Return face ID, not face.
16266 Complete re-write to handle new fontset structure. Change caller.
16267 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16268 (face_for_char): Don't call lookup_face.
16269 (make_fontset_for_ascii_face): New arg FACE.
16270 (fs_load_font): New arg CHARSET_ID. Don't check
16271 Vfont_encoding_alist here.
16272 (find_font_encoding): New function.
16273 (list_fontsets): Use STRINGP, not ! NILP.
16274 (accumulate_script_ranges): New function.
16275 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16276 re-written to handle new fontset structure.
16277 (Ffontset_font): Return a copy of element.
16278 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16279 docstring of font-encoding-alist.
16280
16281 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16282 (Fset_fotset_font): Fix arguments to 5.
16283
16284 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16285
16286 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16287 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16288 (highlight_trailing_whitespace): Adjust for the change of
16289 lookup_named_face.
16290
16291 * xfaces.c: Include charset.h.
16292 (load_face_font): Delete argument C. Change caller.
16293 (generate_ascii_font_name): Rename from generate_ascii_font.
16294 (font_name_registry): New function.
16295 (cache_face): Store ascii faces before non-ascii faces in buckets.
16296 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16297 Lookup only ascii faces.
16298 (lookup_non_ascii_face): New function.
16299 (lookup_named_face): Delete argument C. Change caller.
16300 (lookup_derived_face): Delete argument C. Change caller.
16301 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16302 a string, just call font_list with it.
16303 (choose_face_font): Delete arguments FACE and C. New arg
16304 FONT_SPEC. Change caller.
16305 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16306 Change caller.
16307 (realize_non_ascii_face): New function.
16308 (realize_x_face): Call load_face_font here.
16309 (realize_tty_face): Delete argument C. Change caller.
16310 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16311 get a face ID.
16312 (dump_realized_face): Don't print charset of FACE.
16313
16314 * xfns.c (x_set_font): Always call x_new_fontset and
16315 store_frame_parameter.
16316 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16317 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16318
16319 * xterm.h (x_get_font_repertory): Extern it.
16320
16321 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16322 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16323 it->multibyte_p is zero.
16324 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16325 (x_new_fontset): If FONTSETNAME doesn't match any existing
16326 fontsets, create a new one.
16327 (x_get_font_repertory): New function.
16328
163292008-02-01 Kenichi Handa <handa@m17n.org>
16330
16331 * coding.c (Ffind_coding_systems_region_internal): Detect an
16332 ASCII only string correctly.
16333
16334 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16335 version is 0.
16336
163372008-02-01 Kenichi Handa <handa@m17n.org>
16338
16339 * lread.c: Include "coding.h".
16340 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16341 (load_each_byte, unread_char): New variables.
16342 (readchar_backlog): Delete.
16343 (readchar): Return a character unless load_each_byte is nonzero.
16344 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16345 cons. If unread_char is not -1, simply return it.
16346 (unreadchar): Handle the case that readcharfun is
16347 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16348 (read_multibyte): Delete.
16349 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16350 (read_emacs_mule_char): New functions.
16351 (Fload): Even if the file doesn't have the extension ".elc", if
16352 safe_to_load_p returns a positive version number, assume that the
16353 file contains bytecompiled code. If the version is less than 22,
16354 load the file while decoding multibyte sequences by emacs-mule.
16355 (readevalloop): Don't use readchar_backlog.
16356 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16357 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16358 (read_escape): Delete the arg BYTEREP.
16359 (read1): Set load_each_byte to 1 temporarily while handling
16360 #@NUMBER. Don't call read_multibyte.
16361 (read_vector): Call Fread with a cons. If readcharfun is
16362 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16363 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16364 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16365 and Qload_force_doc_strings.
16366
163672008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * xdisp.c (face_before_or_after_it_pos): Call
16370 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16371
163722008-02-01 Kenichi Handa <handa@m17n.org>
16373
16374 * character.h (TRAILING_CODE_P): New macro.
16375 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16376 (string_char_with_unification): Fix prototype.
16377 (Vscript_alist): Extern it.
16378
16379 * character.c (Vscript_alist): New variable.
16380 (string_char_with_unification, str_as_unibyte)
16381 (string_escape_byte8): Add `const' to local variables.
16382 (syms_of_character): Declare script-alist as a Lisp variable.
16383
16384 * charset.h (Vcharset_ordered_list): Extern it.
16385 (charset_ordered_list_tick): Extern it.
16386 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16387 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16388 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16389 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16390 (Funify_charset): Adjust for the change of Funify_charset.
16391
16392 * charset.c (charset_ordered_list_tick): New variable.
16393 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16394 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16395 deunify intead of unify a charset.
16396 (string_xstring_p): Add `const' to local variables.
16397 (find_charsets_in_text): Add `const' to arguments and local variables.
16398 (encode_char): Adjust for the change of Funify_charset. Fix
16399 detecting of invalid code.
16400 (Fset_charset_priority): Increment charset_ordered_list_tick.
16401 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16402 and TO_CODE.
16403
16404 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16405 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16406 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16407 (decode_coding_ccl, consume_chars)
16408 (Ffind_coding_systems_region_internal)
16409 (Fcheck_coding_systems_region): Add `const' to local variables.
16410
16411 * print.c (print_object): Use octal form for printing the
16412 contents of a bool vector.
16413
164142008-02-01 Dave Love <fx@gnu.org>
16415
16416 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16417 <version == 20>: Refuse to load.
16418
164192008-02-01 Dave Love <fx@gnu.org>
16420
16421 * fns.c: Move coding.h.
16422 (Qcodeset, Qdays, Qmonths): New.
16423 (concat): Use CHARACTERP instead of INTEGERP.
16424 (Flocale_codeset): Delete.
16425 (Flanginfo): New function.
16426 (syms_of_fns): Change accordingly.
16427
16428 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16429
164302008-02-01 Dave Love <fx@gnu.org>
16431
16432 * casetab.c (init_casetab_once, init_casetab_once): Fix
16433 CHAR_TABLE_SET call.
16434
16435 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16436
16437 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16438
16439 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16440 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16441 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16442
16443 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16444
16445 * coding.c (ENCODE_DESIGNATION, decode_eol)
16446 (make_conversion_work_buffer, code_conversion_restore)
16447 (Fdefine_coding_system_internal): Convert Lisp types.
16448 (code_conversion_restore): Use EQ, not ==.
16449 (Fencode_coding_string): Fix code_convert_string call.
16450
16451 * coding.h (code_convert_region): Fix prototype.
16452
16453 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16454
16455 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16456 (Ffontset_info): Convert Lisp types.
16457
16458 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16459
16460 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16461
16462 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16463
16464 * chartab.c: Include "...h", not <...h> in some cases.
16465
16466 * callproc.c (Fcall_process): Remove unused variables.
16467
164682008-02-01 Dave Love <fx@gnu.org>
16469
16470 * coding.c (Fset_coding_system_priority): Allow null arg list.
16471
164722008-02-01 Dave Love <fx@gnu.org>
16473
16474 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16475 (Fself_insert_and_exit): Use CHARACTERP.
16476
16477 * callproc.c (Fcall_process): Remove unused vars.
16478
16479 * xterm.c (XTread_socket): Add extra dead keysyms.
16480
16481 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16482
16483 * dispextern.h: Remove prototypes for redraw_frame,
16484 redraw_garbaged_frames.
16485
16486 * cmds.c (Fself_insert_command): Use CHARACTERP.
16487
16488 * chartab.c (make_sub_char_table): Remove unused var.
16489 (Fset_char_table_default, Fmap_char_table): Doc fix.
16490
16491 * keymap.c (access_keymap): Remove generic char code.
16492 (push_key_description): Use CHARACTERP.
16493
164942008-02-01 Dave Love <fx@gnu.org>
16495
16496 * charset.c: Doc fixes.
16497 (Funify_charset): Extra checking.
16498
164992008-02-01 Dave Love <fx@gnu.org>
16500
16501 * lread.c: Remove some unused variables.
16502 (safe_to_load_p): If safe, return the magic number version byte.
16503 (Fload): Maybe use load-with-code-conversion.
16504
165052008-02-01 Kenichi Handa <handa@m17n.org>
16506
16507 * category.c (Fmodify_category_entry): Don't modify the contents
16508 of category_set for characters out of the range. Avoid
16509 unnecessary modification.
16510
16511 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16512 Vchar_unify_table. The default value of the table is now nil.
16513
16514 * character.c (syms_of_character): Setup Vchar_width_table for
16515 eight-bit-control and raw-byte chars.
16516
16517 * charset.h (enum define_charset_arg_index): Delete
16518 charset_arg_parents and add charset_arg_subset and
16519 charset_arg_superset.
16520 (enum charset_attr_index): Delete charset_parents and add
16521 charset_subset and charset_superset.
16522 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16523 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16524 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16525 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16526 (CHARSET_SUPERSET): New macros.
16527 (charset_work): Extern it.
16528 (ENCODE_CHAR): Use charset_work.
16529 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16530 (map_charset_chars): Extern it.
16531
16532 * charset.c (load_charset_map): Set the default value of encoder
16533 and deunifier char-tables to nil.
16534 (map_charset_chars): Change argument. Change callers. Use
16535 map_char_table_for_charset instead of map_char_table.
16536 (Fmap_charset_chars): New optional args from_code and to_code.
16537 (Fdefine_charset_internal): Adjust for the change of
16538 `define-charset' (:parents -> :subset or :superset).
16539 (charset_work): New variable.
16540 (encode_char, syms_of_charset): Adjust for the change of
16541 Fdefine_charset_internal.
16542 (Ffind_charset_string): Setup the vector `charsets' correctly.
16543
16544 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16545 the previous change.
16546 (char_table_ref_and_range): Adjust for the above change.
16547 (map_sub_char_table_for_charset): New function.
16548 (map_char_table_for_charset): New function.
16549
16550 * keymap.c (describe_vector): Handle a char-table directly here.
16551 (describe_char_table): Delete.
16552
16553 * lisp.h (map_charset_chars): Delete.
16554
165552008-02-01 Dave Love <fx@gnu.org>
16556
16557 * fns.c (count_combining): Comment out (unused).
16558 (Flocale_codeset): New.
16559 (syms_of_fns): Defsubr it.
16560
16561 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16562 (size_t): Remove.
16563
165642008-02-01 Dave Love <fx@gnu.org>
16565
16566 * Makefile.in (chartab.o): Depend on charset.h.
16567
165682008-02-01 Kenichi Handa <handa@m17n.org>
16569
16570 * character.c (syms_of_character): Set the default value of
16571 Vprintable_chars to Qnil.
16572
165732008-02-01 Dave Love <fx@gnu.org>
16574
16575 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16576
165772008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * charset.c (load_charset_map): Handle the case that from < to
16580 correctly.
16581
16582 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16583 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16584 Pay attention to raw-8-bit chars.
16585
165862008-02-01 Kenichi Handa <handa@m17n.org>
16587
16588 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16589 It is not bytecompiled now.
16590
16591 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16592 (charset_jisx0208): New variables.
16593 (Fdefine_charset_internal): Setup them if appropriate.
16594 (init_charset_once): Initialize them to -1.
16595
16596 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16597 (charset_jisx0208): Extern them.
16598
16599 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16600 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16601 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16602 (setup_iso_safe_charsets): Fix arguments to Fassq.
16603 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16604 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16605 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16606 (encode_coding_iso_2022): Change the 1st arg to
16607 ENCODE_ISO_CHARACTER to a variable.
16608
166092008-02-01 Kenichi Handa <handa@m17n.org>
16610
16611 * charset.h (enum define_charset_arg_index): New enums
16612 charset_arg_min_code and charset_arg_max_code.
16613 (struct charset): New member char_index_offset.
16614
16615 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16616 Take charset->char_index_offset into account.
16617 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16618 args[charset_arg_max_code]. Setup charset.char_index_offset.
16619 (syms_of_charset): Fix args to Fdefine_charset_internal.
16620
166212008-02-01 Dave Love <fx@gnu.org>
16622
16623 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16624
166252008-02-01 Dave Love <fx@gnu.org>
16626
16627 * coding.c: Doc fixes.
16628 (Fcoding_system_aliases): Fix return value.
16629 (Qmac): Remove (duplicated) definition.
16630
166312008-02-01 Dave Love <fx@gnu.org>
16632
362654a6
JB
16633 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16634 New functions.
aac0c6e3
MR
16635
16636 * character.c (Fstring): Doc fix.
16637
16638 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16639
362654a6 16640 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16641 (font-encoding-alist): Doc fix.
16642
166432008-02-01 Dave Love <fx@gnu.org>
16644
16645 * term.c (costs_set): Declare static, non-initialized for pcc.
16646 (encode_terminal_code): Remove unused var.
16647
16648 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16649 for K&R.
16650
16651 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16652
16653 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16654 (suffixes): Move out of make_subsidiaries for K&R.
16655
16656 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16657
16658 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16659
166602008-02-01 Dave Love <fx@gnu.org>
16661
16662 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16663
16664 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16665
166662008-02-01 Yong Lu <lyongu@asia-infonet.com>
16667
16668 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16669
16670 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16671
166722008-02-01 Kenichi Handa <handa@m17n.org>
16673
16674 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16675 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16676
166772008-02-01 Kenichi Handa <handa@m17n.org>
16678
16679 * coding.c (decode_coding_charset): Adjust for the change of
16680 Fdefine_coding_system_internal.
16681 (Fdefine_coding_system_internal): For a coding system of
16682 `charset' type, store a list of charset IDs in
16683 `charset_attr_charset_valids' element of coding attributes.
16684
166852008-02-01 Kenichi Handa <handa@m17n.org>
16686
16687 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16688 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16689 caller. Handle 2-byte and 3-byte charsets correctly.
16690 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16691 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16692 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16693 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16694 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16695 sequence.
16696 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16697 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16698 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16699 and alt&rule composition.
16700 (decode_coding_iso_2022): Handle composition correctly.
16701 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16702
16703 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16704 re-defining a charset. If the charset has :emacs-mule-id, setup
16705 emacs_mule_bytes.
16706 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16707
167082008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16711 (encode_coding_big5, encode_coding_charset): If coding requires safe
16712 encoding, produce a character specified by
16713 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16714
167152008-02-01 Dave Love <fx@gnu.org>
16716
16717 * xterm.c (XSetIMValues): Declare.
16718
16719 * process.c: Conditionally include sys/wait.h, pty.h.
16720
16721 * print.c (print_object): Fix print format for 64-bit systems.
16722
16723 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16724
16725 * buffer.c (emacs_strerror): Declare.
16726
16727 * fontset.c (Fclear_face_cache): Declare.
16728 (accumulate_font_info): Comment-out (unused).
16729 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16730 variables.
16731
16732 * character.h (string_escape_byte8): Declare.
16733
16734 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16735 unused vars.
16736 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16737 (Fmap_charset_chars): Doc fix.
16738
16739 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16740 (Fset_coding_system_priority, Fset_coding_system_priority)
16741 (Fdefine_coding_system_internal): Doc fix.
16742
167432008-02-01 Dave Love <fx@gnu.org>
16744
16745 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16746
167472008-02-01 Kenichi Handa <handa@m17n.org>
16748
16749 * character.c (string_escape_byte8): Make multibyte string with
16750 correct size.
16751
16752 * charset.c (Fmake_char): Delete unnecessary code.
16753
167542008-02-01 Kenichi Handa <handa@m17n.org>
16755
16756 * xfns.c (x_encode_text): Allocate coding.destination here, and
16757 call encode_coding_object with dst_object Qnil.
16758
16759 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16760 multibyte form correctly.
16761
16762 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16763 against Vfont_encoding_alist.
16764
16765 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16766 handling of charset list.
16767 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16768 (decode_coding_object): Move point to coding->dst_pos before
16769 calling post-read-conversion function.
16770 (encode_coding_object): Give correct arguments to
16771 pre-write-conversion. Ignore the return value of
16772 pre-write-conversion function. Pay attention to the case that
16773 pre-write-conversion changes the current buffer. If dst_object is
16774 Qt, even if coding->src_bytes is zero, allocate at least one byte
16775 to coding->destination.
16776
16777 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16778
16779 * charset.c (Fmake_char): Make it more backward compatible.
16780 (Fmap_charset_chars): Fix docstring.
16781
167822008-02-01 Dave Love <fx@gnu.org>
16783
16784 * coding.c: Doc fixes.
16785 (Fdefine_coding_system_alias): Use names, not symbols, in
16786 coding-system-alist.
16787
167882008-02-01 Kenichi Handa <handa@m17n.org>
16789
16790 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16791 of calling free_realized_face.
16792
167932008-02-01 Yong Lu <lyongu@asia-infonet.com>
16794
16795 * charset.c (read_hex): Don't treat SPC as a comment starter.
16796 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16797 (Fdecode_char): Fix typo.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * charset.h (struct charset): New member `code_space_mask'.
16802
16803 * coding.c (coding_set_source): Delete the local variable beg_byte.
16804 (encode_coding_charset, Fdefine_coding_system_internal):
16805 Delete the local variable charset.
16806 (Fdefine_coding_system_internal): Setup
16807 attrs[coding_attr_charset_valids] correctly.
16808
16809 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16810 member to check if CODE is valid or not.
16811 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16812 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16813 is within the range of charset->min_code and carset->max_code.
16814
168152008-02-01 Dave Love <fx@gnu.org>
16816
16817 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16818
16819 * dispextern.h (generate_ascii_font): Fix return type.
16820
16821 * xfaces.c (generate_ascii_font): Fix arg declaration.
16822
16823 * coding.c (coding_inherit_eol_type)
16824 (Fset_terminal_coding_system_internal)
16825 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16826
168272008-02-01 Kenichi Handa <handa@m17n.org>
16828
16829 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16830 multiple charsets correctly.
16831
168322008-02-01 Kenichi Handa <handa@m17n.org>
16833
16834 * search.c (boyer_moore): Fix handling of multibyte character
16835 translation.
16836
16837 * xdisp.c (display_mode_element): When the variable `elt' is
16838 changed, update `this' and `lisp_string'.
16839
168402008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16843
16844 * callproc.c (Fcall_process): Be sure to give the current buffer
16845 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16846
16847 * charset.c (struct charset_map_entries): New struct.
16848 (load_charset_map): Rename from parse_charset_map. New args
16849 entries and n_entries. Change caller.
16850 (load_charset_map_from_file): Rename from load_charset_map.
16851 Change caller. New arg control_flag. Call load_charset_map at
16852 the tail.
16853 (load_charset_map_from_vector): New function.
16854 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16855 (encode_char): If the charset is compact, change a character index
16856 to a code point.
16857
16858 * coding.c (coding_alloc_by_making_gap): Check the case that the
16859 source and destination are the same correctly.
16860 (decode_coding_raw_text): Set coding->consumed_char and
16861 coding->consumed to 0.
16862 (produce_chars): If coding->chars_at_source is nonzero, update
16863 coding->consumed_char and coding->consumed before calling
16864 alloc_destination.
16865 (Fdefine_coding_system_alias): Register ALIAS in
16866 Vcoding_system_alist.
16867 (syms_of_coding): Define `no-conversion' coding system at the tail.
16868
16869 * fileio.c (Finsert_file_contents): Set coding_system instead of
16870 val. If the current buffer is multibyte, always call
16871 decode_coding_gap.
16872
16873 * xfaces.c (try_font_list): Give higher priority to fontset's
16874 family than face's family.
16875
168762008-02-01 Kenichi Handa <handa@m17n.org>
16877
16878 * callproc.c (Fcall_process): Be sure to give the current buffer
16879 to decode_coding_c_string.
16880
16881 * xfaces.c (try_font_list): Give a family specified in a fontset
16882 higher priority than a family specified in a face.
16883
168842008-02-01 Kenichi Handa <handa@m17n.org>
16885
16886 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16887 Fix arguments to insert_from_buffer.
16888
16889 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16890
168912008-02-01 Kenichi Handa <handa@m17n.org>
16892
16893 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16894 (decode_coding_gap): Set coding->dst_multibyte correctly.
16895
168962008-02-01 Kenichi Handa <handa@m17n.org>
16897
16898 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16899 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16900 (encode_coding_utf_16): Substitute coding->default_char for
16901 non-Unicode characters.
16902 (decode_coding): Don't call record_insert here.
16903 (setup_coding_system): Initialize `surrogate' of
16904 coding->spec.utf_16 to 0.
16905 (EMIT_ONE_BYTE): Fix for multibyte case.
16906
16907 * insdel.c (insert_from_gap): Call record_insert.
16908
169092008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * casefiddle.c (casify_region): Fix multibyte case.
16912
16913 * character.c (c_string_width): Add return type `int'.
16914 (char_string_with_unification): Delete arg ADVANCED.
16915
16916 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16917 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16918 (CHAR_STRING_ADVANCE): Make it do-while statement.
16919
16920 * chartab.c (sub_char_table_set_range): Optimize for the case
16921 DEPTH == 3. Add workaround code for a GCC optimization bug.
16922
16923 * charset.c (parse_charset_map): Remove an unused variable.
16924
16925 * coding.c: Delete unused variables.
16926
16927 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16928 earlier. If inserted is zero and the coding system doesn't
16929 require flushing, don't call decode_coding_gap.
16930
16931 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 The following changes are for using Unicode as an internal
16936 character model, and use UTF-8 format for buffer/string
16937 representation.
16938
16939 * .gdbinit (xchartable): Adjust for the change of char table structure.
16940 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16941
16942 * Makefile.in (obj): Add character.o and chartab.o.
16943 (lisp, shortlisp): Remove utf-8.elc.
16944 (*.o): For many files, change dependency on charset.h to
16945 character.h, and add dependency on character.h.
16946 (character.o, chartab.o): New targets.
16947
16948 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16949 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16950 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16951 of "charset.h".
16952
16953 * dired.c, filelock.c: Include "character.h".
16954
16955 * alloc.c: Include "character.h" instead of "charset.h".
16956 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16957 (syms_of_alloc): Remove defsubr for Smake_char_table.
16958
16959 * buffer.c: Include "character.h" instead of "charset.h", don't
16960 include "coding.h".
16961 (Fset_buffer_multibyte): Adjust for UTF-8.
16962
16963 * buffer.h: EXFUN Fbuffer_live_p.
16964
16965 * callproc.c: Include "character.h" instead of "charset.h".
16966 (Fcall_process): Big change for the new code-conversion APIs.
16967
16968 * casetab.c: Include "character.h" instead of "charset.h".
16969 (set_canon, set_identity, shuffle): Adjust for the new
16970 map_char_table spec.
16971 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16972 accessing the char table structure.
16973
16974 * chartab.c: New file that implements char table.
16975
16976 * category.c: Include "character.h".
16977 (copy_category_entry): New function.
16978 (copy_category_table): Call map_char_table and copy_category_entry.
16979 (Fmake_category_table): Initialize all top-level slots.
16980 (char_category_set): New function.
16981 (modify_lower_category_set): Delete.
16982 (Fmodify_category_entry): Call char_table_ref_and_range.
16983
16984 * category.h (CATEGORY_SET): Just call char_category_set.
16985
16986 * ccl.c: Include "character.h".
16987 (Qccl, Qcclp): New variables.
16988 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16989 it's less than 256.
16990 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16991 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16992 and DST type.
16993 (ccl_driver): Change types of argument, adjust code accordingly.
16994 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16995 ccl_driver.
16996 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16997
16998 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16999 New members src_multibyte, dst_multibyte, consumed, and produced.
17000 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17001 (CODING_SPEC_CCL_PROGRAM): New macro.
17002 (ccl_driver): Update prototype.
17003 (Qccl, Qcclp, Fccl_program_p): Extern them.
17004 (CHECK_CCL_PROGRAM): New macro.
17005
17006 * character.c, character.h, chartab.c: New files.
17007
17008 * charset.c: Mostly re-written. Move character and multibyte sequence
17009 handling codes to character.c.
17010
17011 * charset.h: Mostly re-written. Move character and multibyte sequence
17012 handling codes to character.h.
17013
17014 * coding.c, coding.h: Mostly re-written.
17015
17016 * composite.c: Include "character.h" instead of "charset.h".
17017 (CHAR_WIDTH): Move to character.h.
17018 (HASH_KEY, HASH_VALUE): Delete.
17019
17020 * composite.h (enum composition_method): Change order of enumeration
17021 symbols.
17022
17023 * data.c: Include "character.h" instead of "charset.h".
17024 (Faref): Call CHAR_TABLE_REF for a char table.
17025 (Faset): Call CHAR_TABLE_SET for a char table.
17026
17027 * dispextern.h (free_realized_face, check_face_attribytes)
17028 (generate_ascii_font): Extern them.
17029 (free_realized_multibyte_face): Delete extern.
17030
17031 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17032 table structure.
17033
17034 * editfns.c: Include "character.h" instead of "charset.h".
17035 (Fchar_to_string): Always call CHAR_STRING.
17036
17037 * emacs.c (main): Call init_charset_once, init_charset,
17038 syms_of_chartab, and syms_of_character.
17039
17040 * fileio.c: Include "character.h" instead of "charset.h".
17041 (Finsert_file_contents): Big change for the new code-conversion API.
17042 (choose_write_coding_system, Fwrite_region): Likewise.
17043 (build_annotations_2): Delete.
17044 (e_write): Big change for the new code-conversion API.
17045
17046 * fns.c: Include "character.h" instead of "charset.h".
17047 (copy_sub_char_table): Move to chartab.c.
17048 (Fcopy_sequence): Call copy_char_table for a char table.
17049 (concat): Delete codes calling count_multibyte.
17050 (string_char_to_byte, string_byte_to_char): Adjust for the new
17051 multibyte form.
17052 (internal_equal): Adjust for the change of char table structure.
17053 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17054 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17055 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17056 (char_table_translate, optimize_sub_char_table)
17057 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17058 chartab.c.
17059 (char_table_ref_and_index): Delete.
17060 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17061 (Fmd5): Call preferred_coding_system instead of accessing
17062 Vcoding_category_list. Adjust for the new code-conversion API.
17063 (syms_of_fns): Move defsubr for char table related functions to
17064 chartab.c.
17065
17066 * fontset.c: Mostly re-written.
17067
17068 * fontset.h (struct font_info): Change type of the member encoding_type.
17069 (enum FONT_SPEC_INDEX): New enum.
17070 (fontset_font_pattern, fs_load_font): Update prototype.
17071 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17072
17073 * indent.c: Include "character.h" instead of "charset.h".
17074 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17075
17076 * insdel.c: Include "character.h" instead of "charset.h".
17077 (copy_text): Don't refer to Vnonascii_translation_table.
17078 (insert_from_gap): New function.
17079
17080 * keyboard.c: Include "character.h" instead of "charset.h".
17081 (command_loop_1): Never call direct_output_forward_char before
17082 a non-ASCII character.
17083 (read_char): If Vkeyboard_translate_table is a char table, always
17084 translate a character.
17085
17086 * keymap.c: Include "character.h".
17087 (store_in_keymap): Handle the case that IDX is a cons.
17088 (Fdefine_key): Handle the case that KEY is a cons and the car part
17089 is also a cons (range).
17090 (push_key_description): Adjust for the new character code.
17091 (describe_vector): Call describe_char_table for a char table.
17092 (describe_char_table): New function.
17093
17094 * keymap.h (describe_char_table): Extern it.
17095
17096 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17097 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17098 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17099 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17100 Delete.
17101 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17102 structure.
17103 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17104 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17105 (CHARTAB_SIZE_BITS_3): New macros.
17106 (chartab_size): Extern it.
17107 (struct Lisp_Char_Table): Re-design.
17108 (struct Lisp_Sub_Char_Table): New structure.
17109 (HASH_KEY, HASH_VALUE): Move from fns.c.
17110 (CHARACTERBITS): Define as 22.
17111 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17112 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17113 (GC_SUB_CHAR_TABLE_P): New macro.
17114 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17115 (code_convert_string_norecord): Deleted extern.
17116 (init_character_once, syms_of_character, init_charset)
17117 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17118
17119 * lread.c: Include "character.h".
17120 (read_multibyte): New arg NBYTES.
17121 (read_escape): Change the meaning of returned *BYTEREP.
17122 (to_multibyte): Delete.
17123 (read1): Adjust the handling of char table and string.
17124
17125 * print.c: Include "character.h" instead of "charset.h".
17126 (print_string): Convert 8-bit raw bytes to octal form by
17127 string_escape_byte8.
17128 (print_object): Adjust for the new multibyte form. Print 8-bit
17129 raw bytes always in octal form. Handle sub char table correctly.
17130
17131 * process.c: Include "character.h" instead of "charset.h".
17132 (read_process_output, send_process): Adjust for the new
17133 code-conversion API.
17134
17135 * puresize.h (BASE_PURESIZE): Increase.
17136
17137 * regex.c: Include "character.h" instead of "charset.h".
17138 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17139 (regex_compile): Accept a range whose starting and ending
17140 character have different leading bytes.
17141 (analyse_first): Adjust for the above change.
17142
17143 * search.c: Include "character.h" instead of "charset.h".
17144 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17145 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17146
17147 * syntax.c: Include "character.h" instead of "charset.h".
17148 (syntax_parent_lookup): Delete.
17149 (Fmodify_syntax_entry): Accept a cons as CHAR.
17150 (skip_chars): Adjust for the new multibyte form.
17151 (init_syntax_once): Call char_table_set_range instead of directly
17152 accessing the structure of a char table.
17153
17154 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17155 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17156 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17157 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17158
17159 * term.c: Include "buffer.h" and "character.h".
17160 (encode_terminal_code, write_glyphs): Adjust for the new
17161 code-conversion API.
17162 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17163
17164 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17165
17166 * xdisp.c: Include "character.h".
17167 (get_next_display_element): Adjust for the new multibyte form.
17168 (disp_char_vector): Adjust for the new char table structure.
17169 (decode_mode_spec_coding): Adjust for the new structure of
17170 coding system.
17171 (decode_mode_spec): Adjust for the new code-conversion API.
17172
17173 * xfaces.c: Include "character.h" instead of "charset.h".
17174 (load_face_font): Adjust for the change of choose_face_font and
17175 FS_LOAD_FONT.
17176 (generate_ascii_font): New function.
17177 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17178 (set_font_frame_param): Adjust for the change of choose_face_font.
17179 (free_realized_face): Make it public.
17180 (free_realized_faces_for_fontset): Rename from
17181 free_realized_multibyte_face. Free also faces realized for ASCII.
17182 (choose_face_font): Change arguments. Adjust for the change of
17183 fontset_font_pattern and FS_LOAD_FONT.
17184
17185 * xfns.c: Include "character.h".
17186 (x_encode_text): Adjust for the new code-conversion API.
17187
17188 * xselect.c: Don't include "charset.h".
17189 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17190
17191 * xterm.c: Include "character.h".
17192 (x_encode_char): New argument CHARSET. Change caller.
17193 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17194 Call ENCODE_CHAR instead of SPLIT_CHAR.
17195 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17196 CHAR_WIDTH instead of CHARSET_WIDTH.
17197 (XTread_socket): Adjust for the new code-conversion API.
17198 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17199 (x_load_font): Adjust for the change of struct font.
17200
172012008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17202
17203 * xfaces.c (face_at_buffer_position): Remove unused vars.
17204
172052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17206
17207 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17208 Fix overflow checking.
17209
172102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17211
17212 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17213 Cancel previous change.
17214
172152008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17216
17217 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17218 ccl->eight_bit_control. Fix check for buffer overflow.
17219 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17220 (ccl_driver): Initialize extra_bytes to 0.
17221
172222008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17223
17224 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17225 return it ORed with ctrl_modifier.
17226
172272008-01-29 Miles Bader <miles@gnu.org>
17228
17229 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17230
172312008-01-28 Jason Rumney <jasonr@gnu.org>
17232
17233 * w32.c (stat): Don't double check for networked drive.
17234
172352008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17236
17237 * window.c (run_window_configuration_change_hook): New function.
17238 Code extracted from set_window_buffer. Set the selected frame.
17239 (set_window_buffer): Use it.
17240 * window.h (run_window_configuration_change_hook): Declare.
17241 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17242
17243 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17244
172452008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17246
17247 * Makefile.in: Remove references to unused macros.
17248
172492008-01-26 Eli Zaretskii <eliz@gnu.org>
17250
17251 * w32.c (g_b_init_get_sid_sub_authority)
17252 (g_b_init_get_sid_sub_authority_count): New static variables.
17253 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17254 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17255 (init_user_info): Use them to retrieve uid and gid.
17256 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17257 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17258 st_uid and st_gid of the file.
17259
172602008-01-26 Jason Rumney <jasonr@gnu.org>
17261
17262 * w32.c (logon_network_drive): New function.
17263 (stat): Use it.
17264
172652008-01-26 Chong Yidong <cyd@stupidchicken.com>
17266
17267 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17268 invisible text covered with an ellipsis.
17269
172702008-01-25 Richard Stallman <rms@gnu.org>
17271
17272 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17273 jump back to beginning. Move some other initializations after that.
17274 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17275 New variables.
17276 (syms_of_xdisp): Init them.
17277
17278 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17279
17280 * buffer.c (reset_buffer_local_variables):
17281 Implement `permanent-local-hook'.
17282 (Qpermanent_local_hook): New variable.
17283 (syms_of_buffer): Init and staticpro it.
17284
172852008-01-25 Michael Albinus <michael.albinus@gmx.de>
17286
17287 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17288
172892008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17290
17291 * fns.c (Fclrhash): Return TABLE.
17292
172932008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17294
17295 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17296 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17297 is set even without positional changes.
17298 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17299
17300 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17301
173022008-01-23 Jason Rumney <jasonr@gnu.org>
17303
17304 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17305
17306 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17307 the unicode range available in MULE by locale-coding-system.
17308 Improve dbcs lead byte detection. Set event timestamp and modifiers
17309 earlier.
17310
173112008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17312
17313 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17314 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17315 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17316 when used on child processes.
17317
173182008-01-21 Michael Albinus <michael.albinus@gmx.de>
17319
17320 * dbusbind.c (Fdbus_method_return_internal): Rename from
17321 Fdbus_method_return.
17322 (Fdbus_unregister_object): Move to dbus.el.
17323 (Fdbus_call_method, Fdbus_method_return_internal)
17324 (Fdbus_send_signal): Improve debug messages.
17325
173262008-01-20 Martin Rudalics <rudalics@gmx.at>
17327
17328 * undo.c (undo_inhibit_record_point): New variable.
17329 (syms_of_undo): Initialize it.
17330 (record_point): Don't record point when undo_inhibit_record_point
17331 is set.
17332
173332008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17334
17335 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17336
17337 * xdisp.c (Qauto_hscroll_mode): New var.
17338 (syms_of_xdisp): Initialize it.
17339 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17340 window's buffer.
17341 (hscroll_windows): Don't check automatic_hscrolling_p here.
17342
17343 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17344 vscroll if we're setting window-buffer to the value it already has.
17345
173462008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17347
17348 * m/intel386.h: Remove references to XENIX.
17349
173502008-01-17 Andreas Schwab <schwab@suse.de>
17351
17352 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17353 instead of HAVE_X86_64_LIB64_DIR.
17354 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17355
173562008-01-17 Glenn Morris <rgm@gnu.org>
17357
17358 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17359 to HAVE_X86_64_LIB64_DIR.
17360
173612008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17362
17363 * s/irix3-3.h:
17364 * s/irix4-0.h:
17365 * s/386-ix.h:
17366 * s/domain.h:
17367 * s/hpux9-x11r4.h:
17368 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17369
17370 * sysdep.c: Remove code containing references to symbols defined
17371 by unsupported systems.
17372
173732008-01-16 Glenn Morris <rgm@gnu.org>
17374
17375 * coding.c (select-safe-coding-system-function): Doc fix.
17376
173772008-01-15 Glenn Morris <rgm@gnu.org>
17378
17379 * config.in: Revert 2008-01-13 change: this is a generated file.
17380
173812008-01-13 Tom Tromey <tromey@redhat.com>
17382
17383 * lisp.h: Fix typo.
17384
173852008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17386
17387 * m/sequent-ptx.h:
17388 * m/sequent.h:
17389 * s/ptx.h:
17390 * s/ptx4-2.h:
17391 * s/ptx4.h: Remove files for systems no longer supported.
17392
17393 * callproc.c (Fcall_process): Fix previous change.
17394
173952008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17396
17397 * unexsunos4.c: Remove file, system not supported anymore.
17398
17399 * m/mips.h:
17400 * m/intel386.h:
17401 * callproc.c:
17402 * config.in:
17403 * ecrt0.c:
17404 * emacs.c:
17405 * fileio.c:
17406 * frame.c:
17407 * getpagesize.h:
17408 * keyboard.c:
17409 * lread.c:
17410 * process.c:
17411 * puresize.h:
17412 * sysdep.c:
17413 * systty.h:
17414 * syswait.h:
17415 * unexec.c:
17416 * xdisp.c:
17417 * alloc.c: Remove code containing references to symbols defined by
17418 unsupported systems.
17419
174202008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17421
17422 * coding.c (detect_coding_mask): Fix previous change.
17423
174242008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17425
17426 * coding.c (detect_coding_iso2022): New arg
17427 latin_extra_code_state. Allow Latin extra codes only
17428 when *latin_extra_code_state is nonzero.
17429 (detect_coding_mask): If there is a NULL byte, detect the encoding
17430 as UTF-16 or binary. If Latin extra codes exist, detect the
17431 encoding as ISO-2022 only when there's no other proper encoding is
17432 found.
17433
174342008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17435
17436 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17437 #ifdef MAC_OS.
17438
174392008-01-08 Richard Stallman <rms@gnu.org>
17440
17441 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17442
174432008-01-06 Nick Roberts <nickrob@snap.net.nz>
17444
17445 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17446 menu bar in parentheses.
17447
174482008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17449
17450 * m/7300.h:
17451 * m/acorn.h:
17452 * m/alliant-2800.h:
17453 * m/alliant.h:
17454 * m/alliant1.h:
17455 * m/alliant4.h:
17456 * m/altos.h:
17457 * m/amdahl.h:
17458 * m/apollo.h:
17459 * m/att3b.h:
17460 * m/aviion-intel.h:
17461 * m/aviion.h:
17462 * m/celerity.h:
17463 * m/clipper.h:
17464 * m/cnvrgnt.h:
17465 * m/convex.h:
17466 * m/cydra5.h:
17467 * m/delta88k.h:
17468 * m/dpx2.h:
17469 * m/dual.h:
17470 * m/elxsi.h:
17471 * m/f301.h:
17472 * m/gould-np1.h:
17473 * m/gould.h:
17474 * m/i860.h:
17475 * m/ibmps2-aix.h:
17476 * m/ibmrt-aix.h:
17477 * m/ibmrt.h:
17478 * m/irist.h:
17479 * m/is386.h:
17480 * m/isi-ov.h:
17481 * m/mega68.h:
17482 * m/mg1.h:
17483 * m/news-r6.h:
17484 * m/news-risc.h:
17485 * m/news.h:
17486 * m/nh3000.h:
17487 * m/nh4000.h:
17488 * m/ns16000.h:
17489 * m/ns32000.h:
17490 * m/nu.h:
17491 * m/orion.h:
17492 * m/orion105.h:
17493 * m/paragon.h:
17494 * m/pfa50.h:
17495 * m/plexus.h:
17496 * m/pyramid.h:
17497 * m/pyrmips.h:
17498 * m/sh3el.h:
17499 * m/sps7.h:
17500 * m/sr2k.h:
17501 * m/stride.h:
17502 * m/sun1.h:
17503 * m/sun2.h:
17504 * m/sun3-68881.h:
17505 * m/sun3-fpa.h:
17506 * m/sun3-soft.h:
17507 * m/sun3.h:
17508 * m/sun386.h:
17509 * m/symmetry.h:
17510 * m/tad68k.h:
17511 * m/tahoe.h:
17512 * m/targon31.h:
17513 * m/tek4300.h:
17514 * m/tekxd88.h:
17515 * m/tower32.h:
17516 * m/tower32v3.h:
17517 * m/ustation.h:
17518 * m/wicat.h:
17519 * m/xps100.h:
17520 * s/cxux.h:
17521 * s/cxux7.h:
17522 * s/dgux.h:
17523 * s/dgux4.h:
17524 * s/dgux5-4-3.h:
17525 * s/dgux5-4r2.h:
17526 * s/esix.h:
17527 * s/esix5r4.h:
17528 * s/hiuxmpp.h:
17529 * s/hiuxwe2.h:
17530 * s/iris3-5.h:
17531 * s/iris3-6.h:
17532 * s/isc2-2.h:
17533 * s/isc3-0.h:
17534 * s/isc4-0.h:
17535 * s/isc4-1.h:
17536 * s/newsos5.h:
17537 * s/newsos6.h:
17538 * s/osf1.h:
17539 * s/osf5-0.h:
17540 * s/riscix1-1.h:
17541 * s/riscix12.h:
17542 * s/sco4.h:
17543 * s/sco5.h:
17544 * s/sunos4-0.h:
17545 * s/sunos4-1.h:
17546 * s/sunos413.h:
17547 * s/sunos4shr.h:
17548 * s/umax.h:
17549 * s/unipl5-2.h:
17550 * s/xenix.h:
17551 * cxux-crt0.s:
17552 * unexapollo.c:
17553 * unexconvex.c:
17554 * unexenix.c:
17555 * unexsni.c: Remove files for systems no longer supported.
17556
17557 * m/intel386.h: Remove references to unsupported systems.
17558
17559 * w32.c (get_emacs_configuration): Remove reference to i860.
17560
17561 * sysdep.c: Remove dead code.
17562
175632008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17564
17565 * s/rtu.h:
17566 * m/masscomp.h: Remove files. Platform is obsolete.
17567
175682008-01-04 Michael Albinus <michael.albinus@gmx.de>
17569
17570 * dbusbind.c (Fdbus_method_return): New function.
17571 (xd_read_message): Add the serial number to the event.
17572 (Fdbus_register_method): Activate the function.
17573
175742008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17575
17576 * keyboard.c (read_key_sequence): Fix typo.
17577
175782008-01-03 Michael Albinus <michael.albinus@gmx.de>
17579
17580 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17581 (xd_signature, xd_append_arg): Handle element type detection for
17582 empty arrays.
17583 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17584 SDATA () calls; this must be solved more general.
17585 (Fdbus_register_signal): Use SBYTES instead of strlen.
17586
175872008-01-03 Magnus Henoch <magnus@zemdatav>
17588
17589 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17590 unsigned int for byte values (necessary for big-endian platform).
17591 (Fdbus_call_method): Handle the case of no returned arguments.
17592
175932007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17594
17595 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17596
175972007-12-31 Magnus Henoch <mange@freemail.hu>
17598
17599 * dbusbind.c (xd_signature): Signature of variant is just "v".
17600
176012007-12-30 Michael Albinus <michael.albinus@gmx.de>
17602
17603 * dbusbind.c: Fix several errors and compiler warnings.
17604 Reported by Tom Tromey <tromey@redhat.com>.
17605 (XD_ERROR, XD_DEBUG_MESSAGE)
17606 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17607 (xd_append_arg): Part for basic D-Bus types rewritten.
17608 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17609 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17610 appropriate.
17611 (xd_read_message): Return Qnil. Don't signal an error; it is not
17612 useful during event reading.
17613 (Fdbus_register_signal): Signal an error if the check for
17614 FUNCTIONP fails.
17615 (Fdbus_register_method): New function. The implementation is not
17616 complete, the call of the function signals an error therefore.
17617 (Fdbus_unregister_object): New function, renamed from
17618 Fdbus_unregister_signal. The initial check signals an error, if
17619 the object is not well formed.
17620
176212007-12-30 Richard Stallman <rms@gnu.org>
17622
17623 * textprop.c (get_char_property_and_overlay):
17624 Signal error if POSITION is out of range in a buffer.
17625
176262007-12-29 Martin Rudalics <rudalics@gmx.at>
17627
17628 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17629 because the original parameters are in pure storage now.
17630
176312007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17632
17633 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17634
176352007-12-22 Eli Zaretskii <eliz@gnu.org>
17636
17637 * callint.c (syms_of_callint) <command-history>: Add reference to
17638 history-length in the doc string.
17639
176402007-12-17 Jason Rumney <jasonr@gnu.org>
17641
17642 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17643 before passing as wParam.
17644
176452007-12-22 Michael Albinus <michael.albinus@gmx.de>
17646
17647 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17648 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17649 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17650 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17651 as number.
17652 (Fdbus_call_method): Fix docstring.
17653
176542007-12-21 Michael Albinus <michael.albinus@gmx.de>
17655
17656 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17657 New macros.
17658 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17659 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17660 Simplify.
17661 (xd_signature): New function.
17662 (xd_append_arg): Compute also signatures. Major rewrite.
17663 (xd_retrieve_arg): Make debug messages friendly.
17664 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17665 Check for signatures of arguments.
17666
176672007-12-19 Michael Albinus <michael.albinus@gmx.de>
17668
17669 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17670 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17671 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17672 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17673 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17674 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17675 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17676 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17677 (xd_retrieve_value): Remove. Functionality included in ...
17678 (xd_append_arg): New function.
17679 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17680
176812007-12-16 Michael Albinus <michael.albinus@gmx.de>
17682
17683 * dbusbind.c (top): Include <stdio.h>.
17684 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17685 dbus_message_new_method_call and dbus_message_new_signal.
17686 (Fdbus_register_signal): Rename unique_name to uname.
17687 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17688 non-existing unique name. Fix typos in matching rule. Return an
17689 object which is useful in Fdbus_unregister_signal.
17690 (Fdbus_unregister_signal): Reimplementation, in order to remove
17691 only the corresponding entry.
17692 (Vdbus_registered_functions_table): Change the order of entries.
17693 Apply these changes in xd_read_message and Fdbus_register_signal.
17694
176952007-12-16 Andreas Schwab <schwab@suse.de>
17696
17697 * fileio.c (Finsert_file_contents): Fix overflow check to not
17698 depend on undefined integer overflow.
17699
177002007-12-14 Jason Rumney <jasonr@gnu.org>
17701
17702 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17703 for characters above 127.
17704
177052007-12-13 Jason Rumney <jasonr@gnu.org>
17706
17707 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17708 before dereferencing array.
17709 (lookup_vk_code): Remove zero comparison.
17710
177112007-12-14 Michael Albinus <michael.albinus@gmx.de>
17712
17713 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17714 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17715 Use `unsigned int' instead of `uint'.
17716 (xd_read_message, Fdbus_register_signal): Split expressions into
17717 multiple lines before operators "&&" and "||", according to the
17718 GNU Coding Standards.
17719
177202007-12-14 Eli Zaretskii <eliz@gnu.org>
17721
17722 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17723
177242007-12-12 Juri Linkov <juri@jurta.org>
17725
17726 * buffer.c (Frename_buffer): In interactive spec replace
17727 `read-buffer' with `read-string' that uses `buffer-name-history'
17728 as history, and the current buffer's name as default.
17729
177302007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17731
17732 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17733 manipulating the backtrace manually.
17734 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17735 (struct backtrace, backtrace_list): Remove.
17736 (command_loop_1): Remove dead var `no_direct'.
17737
17738 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17739 preserve non-built-in buffer-local variables.
17740 (Fkill_all_local_variables): Don't re-create&re-set permanent
17741 buffer-local variables.
17742
177432007-12-09 Juri Linkov <juri@jurta.org>
17744
17745 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17746 Lisp code that uses `read-buffer' with current buffer as default.
17747
177482007-12-08 Michael Albinus <michael.albinus@gmx.de>
17749
17750 * dbusbind.c (xd_read_message): Generate an event for every
17751 registered handler. There might be several handlers registered
17752 for the same signal.
17753 (Fdbus_register_signal): Don't overwrite a registration for the
17754 same signal. Add a new registration if handlers are different.
17755 (Vdbus_registered_functions_table): Rework doc string.
17756
177572007-12-07 Michael Albinus <michael.albinus@gmx.de>
17758
17759 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17760 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17761 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17762 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17763 Unify argument lists.
17764 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17765 arguments and hash table keys. Use unique name for service.
17766 (Fdbus_unregister_signal): Remove checks.
17767 (Vdbus_registered_functions_table): Fix doc string.
17768
177692007-12-05 Magnus Henoch <mange@freemail.hu>
17770
17771 * process.c (make_process): Initialize pty_flag to 0.
17772
177732007-12-05 Jason Rumney <jasonr@gnu.org>
17774
17775 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17776 specified XBMs.
17777
177782007-12-05 Richard Stallman <rms@gnu.org>
17779
17780 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17781
177822007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17783
17784 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17785 New variable.
17786 (mac_try_close_socket) [MAC_OSX]: New function.
17787 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17788 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17789
17790 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17791 Use mac_try_close_socket.
17792
177932007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17794
17795 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17796 reloc_base.
17797 (copy_dysymtab): Compute relocation base here.
17798 (rebase_reloc_address) [__ppc64__]: New function.
17799 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17800 changed.
17801
178022007-12-05 Jason Rumney <jasonr@gnu.org>
17803
17804 * w32proc.c (sys_spawnve): Quote args with wildcards.
17805
178062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17807
17808 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17809 __objc_* sections.
17810 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17811
178122007-12-05 Michael Albinus <michael.albinus@gmx.de>
17813
17814 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17815 Move check for Vdbus_registered_functions_table to
17816 xd_read_queued_messages.
17817 (xd_read_queued_messages): Protect xd_read_message calls by
17818 internal_condition_case_1.
17819
178202007-12-04 Michael Albinus <michael.albinus@gmx.de>
17821
17822 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17823 Qdbus_system_bus and Qdbus_session_bus, respectively.
17824 (Vdbus_intern_symbols): Remove.
17825 (Vdbus_registered_functions_table): New hash table.
17826 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17827 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17828 Rewrite in order to manage registered functions by hash table
17829 Vdbus_registered_functions_table.
17830
178312007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17832
17833 * xterm.c: Update URL to Window Manager Specification in comment.
17834
178352007-12-02 Michael Albinus <michael.albinus@gmx.de>
17836
17837 * config.in (HAVE_DBUS): Add.
17838
17839 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17840 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17841 (obj): Add $(DBUS_OBJ).
17842 (LIBES): Add $(DBUS_LIBS).
17843 (dbusbind.o): New target.
17844
17845 * dbusbind.c: New file.
17846
17847 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17848
17849 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17850 (Qdbus_event): New Lisp symbol.
17851 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17852 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17853 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17854
17855 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17856
178572007-12-01 Richard Stallman <rms@gnu.org>
17858
17859 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17860
178612007-11-30 Jason Rumney <jasonr@gnu.org>
17862
17863 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17864 (w32con_reset_terminal_modes): Clear screen buffer.
17865 (w32_face_attributes): Don't use color indexes that are out of range.
17866 Only reverse the default colors.
17867
17868 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17869 WINDOWSNT.
17870
17871 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17872
178732007-11-29 Jason Rumney <jasonr@gnu.org>
17874
17875 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17876 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17877 if the terminal colors are initialized.
17878 (unspecified_fg, unspecified_bg): Remove unused declarations.
17879
178802007-11-29 Andreas Schwab <schwab@suse.de>
17881
17882 * keyboard.c (apply_modifiers): Fix typo.
17883
178842007-11-29 Richard Stallman <rms@gnu.org>
17885
17886 * keymap.c (Fcurrent_local_map): Doc fix.
17887
178882007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17889
17890 * s/gnu-kfreebsd.h: New file.
17891
178922007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17893
17894 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17895 Don't cast redundantly.
17896
17897 * keyboard.c (KEY_TO_CHAR): New macro.
17898 (parse_modifiers, apply_modifiers): Accept integer arguments.
17899 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17900 for chars and symbol keys.
17901 After doing such remapping, apply function-key-map again.
17902
179032007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17904
17905 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17906 compiled anymore.
17907
179082007-11-26 Andreas Schwab <schwab@suse.de>
17909
17910 * process.c (list_processes_1): Fix indentation level of the
17911 command column.
17912
179132007-11-23 Andreas Schwab <schwab@suse.de>
17914
17915 * editfns.c (Fformat): Handle %c specially since it requires the
17916 argument to be of type int.
17917
179182007-11-23 Markus Triska <markus.triska@gmx.at>
17919
17920 * emacs.c (main): Call init_editfns before init_process, since
17921 init_process sets Vprocess_connection_type depending on OS release.
17922
179232007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17924
17925 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17926 (find_symbol_value): Use do_symval_forwarding.
17927
17928 * data.c (set_internal): Set the value in the `cons-cell' (for
17929 Buffer_Local_values) not only for frame-local variables.
17930
179312007-11-22 Andreas Schwab <schwab@suse.de>
17932
17933 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17934 values to sprintf.
17935 * keymap.c (Fsingle_key_description): Likewise.
17936 * print.c (print_object): Likewise.
17937
179382007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17939
17940 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17941 file for image is nil.
17942
179432007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17944
17945 * term.c: Include stdarg.h.
17946 (fatal): Implement using varargs.
17947 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17948
179492007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17950
17951 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17952 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17953 Update call to buffer_slot_type_mismatch.
17954 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17955 (buffer_slot_type_mismatch): Update.
17956 * buffer.c (buffer_local_types): Remove.
17957 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17958 (defvar_per_buffer): Set the type in the buffer_objfwd.
17959
179602007-11-21 Jason Rumney <jasonr@gnu.org>
17961
17962 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17963 CreateFileMapping returns NULL on failure.
17964
179652007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17966
17967 * search.c (Fset_match_data): Remove the `evaporate' feature.
17968 (unwind_set_match_data): Don't use the `evaporate' feature.
17969
179702007-11-21 Jason Rumney <jasonr@gnu.org>
17971
17972 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17973
17974 * w32console.c (w32con_write_glyphs): Remove unused variables.
17975
179762007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17977
17978 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17979
17980 * s/darwin.h (MULTI_KBOARD): Remove.
17981
17982 * macfns.c (x_create_tip_frame, Fx_create_frame)
17983 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17984
179852007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * buffer.c (Fbuffer_local_value): Remove redundant test.
17988 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17989 than in `current-buffer' to match the comment.
17990 Do the swap using swap_in_global_binding.
17991
17992 * data.c (store_symval_forwarding, set_internal):
17993 * eval.c (specbind): Remove dead code.
17994
17995 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17996 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17997 Since we do not want to see internal Lisp_*fwd objects here.
17998
179992007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18000
18001 * sysdep.c (init_system_name): Use getaddrinfo if available.
18002
18003 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18004 (x_scroll_bar_note_movement): start, end, with, height in struct
18005 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18006
180072007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18008
18009 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18010
180112007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18012
18013 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18014 This undoes Richard's change of 14-Oct-2002.
18015
18016 * alloc.c (allocate_other_vector):
18017 * lisp.h (allocate_other_vector): Remove.
18018
18019 * window.c (struct save_window_data): Move non-lisp data to the end
18020 and make it `int' rather than Lisp_Object.
18021 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18022 Done wrap/unwrap integer values.
18023 (Fset_window_configuration, compare_window_configurations):
18024 Update use of fields to their new types.
18025
18026 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18027 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18028 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18029 (SET_SCROLL_BAR_X_WINDOW): Remove.
18030 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18031 Access the new x_window field directly.
18032 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18033 Don't wrap/unwrap integers into Lisp_Objects.
18034 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18035 (x_scroll_bar_report_motion):
18036 Don't wrap/unwrap integers into Lisp_Objects.
18037 (x_term_init): Use SDATA.
18038 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18039 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18040 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18041 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18042 * xfns.c (x_set_background_color):
18043 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18044 Access the new x_window field directly.
18045
18046 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18047 (allocate_pseudovector): Make non-static.
18048
18049 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18050 (allocate_pseudovector): Declare.
18051 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18052
180532007-11-15 Andreas Schwab <schwab@suse.de>
18054
18055 * editfns.c (Fformat): Correctly format EMACS_INT values.
18056 Also take precision into account when formatting an integer.
18057
18058 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18059
180602007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18061
18062 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18063 (syms_of_keyboard): Defsubr it.
18064
18065 * data.c (swap_in_global_binding): Fix longstanding bug where
18066 store_symval_forwarding was not called with the right second argument,
18067 thus causing objfwd-ing from being dropped.
18068
180692007-11-14 Juanma Barranquero <lekktu@gmail.com>
18070
18071 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18072 (Fx_display_pixel_height, Fx_display_planes)
18073 (Fx_display_color_cells, Fx_server_max_request_size)
18074 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18075 (Fx_display_visual_class, Fx_display_save_under):
18076 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18077 (Fx_display_pixel_height, Fx_display_planes)
18078 (Fx_display_color_cells, Fx_server_max_request_size)
18079 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18080 (Fx_display_mm_height, Fx_display_mm_width)
18081 (Fx_display_backing_store, Fx_display_visual_class)
18082 (Fw32_select_font, Fx_display_save_under):
18083 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18084 (Fx_display_pixel_height, Fx_display_planes)
18085 (Fx_display_color_cells, Fx_server_max_request_size)
18086 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18087 (Fx_display_save_under): Fix typos in docstrings.
18088
180892007-11-14 Juanma Barranquero <lekktu@gmail.com>
18090
18091 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18092 corresponding to deleted entries; they are an implementation detail.
18093 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18094 Remove variables.
18095 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18096 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18097 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18098 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18099 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18100 (Fw32_define_rgb_color, Fw32_load_color_file)
18101 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18102 Fix typos in docstrings.
18103 (Fx_server_version): Reflow docstring.
18104 (Fw32_shell_execute): Doc fixes.
18105
181062007-11-13 Juanma Barranquero <lekktu@gmail.com>
18107
18108 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18109 if w32_parse_hot_key returned nil.
18110
181112007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18112
18113 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18114
181152007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18116
aac0c6e3
MR
18117 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18118
18119 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18120
18121 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18122 Remove W32_SCROLL_BAR_CLICK_EVENT.
18123
18124 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18125 Add MULTIMEDIA_KEY_EVENT.
18126
18127 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18128 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18129 (make_lispy_event) [WINDOWSNT]: Use it to translate
18130 MULTIMEDIA_KEY_EVENT.
18131
18132 * w32term.h (WM_APPCOMMAND): Define if not already.
18133 (GET_APPCOMMAND_LPARAM): Likewise.
18134
18135 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18136 WM_APPCOMMAND.
18137
18138 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18139 (syms_of_w32fns): Export and initialize it.
18140 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18141
181422007-11-09 Chong Yidong <cyd@stupidchicken.com>
18143
18144 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18145 twice.
18146
18147 * xdisp.c (handle_face_prop): Fix last change.
18148
181492007-11-09 Richard Stallman <rms@gnu.org>
18150
18151 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18152 not just for after-strings and before-strings.
18153 Call face_for_overlay_string and pass the overlay to it.
18154 (handle_display_prop): Determine whether property came from an overlay.
18155 Pass OVERLAY arg to handle_single_display_spec.
18156 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18157 (load_overlay_strings): Fill in it->string_overlays.
18158 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18159
18160 * xfaces.c (face_for_overlay_string): Function renamed from
18161 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18162
18163 * dispextern.h (struct it): New elt string_overlays.
18164 New elt from_overlay, also in stack.
18165 Rearrange a few elements.
18166 (face_for_overlay_string): Decl renamed from
18167 face_at_buffer_position_no_overlays, and add argument.
18168
181692007-11-09 Richard Stallman <rms@gnu.org>
18170
18171 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18172 to get the base face for an overlay string.
18173
18174 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18175
18176 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18177
18178 * xdisp.c (handle_stop): Move some code out of loop.
18179
181802007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18181
18182 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18183 Fix conversion from Lisp object to ATSUFontID.
18184
181852007-11-09 Jason Rumney <jasonr@gnu.org>
18186
18187 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18188
181892007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18190
18191 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18192 Don't assume regions are aligned to page boundary.
18193 (print_load_command_name): Add LC_UUID if defined.
18194
181952007-11-09 Richard Stallman <rms@gnu.org>
18196
18197 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18198
181992007-11-07 Jason Rumney <jasonr@gnu.org>
18200
18201 * s/windows95.h: Remove.
18202
182032007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18204
18205 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18206 abort with a message on unhandled store_type values.
18207
182082007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18209
18210 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18211 Remove HAVE_X11R5 and HAVE_X11R4.
18212
182132007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18214
18215 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18216
182172007-11-01 Johan Bockgård <bojohan@gnu.org>
18218
18219 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18220 Don't set s->stippled_p here, since it has already been set by
18221 x_set_glyph_string_gc from x_draw_glyph_string.
18222
182232007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18224
18225 * sunfns.c: Remove file.
18226
18227 * m/sun386.h:
18228 * m/sun2.h:
18229 * m/sparc.h: Remove Sun windows code.
18230
182312007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18232
18233 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18234 (init_keyboard): Set current_kboard's window-system to nil.
18235 (tty_read_avail_input): Typo.
18236 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18237
182382007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18239
18240 * s/usg5-4.h:
18241 * s/usg5-3.h:
18242 * s/ptx.h:
18243 * m/is386.h:
18244 * m/ibmps2-aix.h:
18245 * Makefile.in: Remove all mentions of X10.
18246
18247 * dispnew.c (syms_of_display): Don't mention version 10.
18248
182492007-10-28 Juanma Barranquero <lekktu@gmail.com>
18250
18251 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18252 ($(BLD)/abbrev.$(O)): Remove.
18253
182542007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18255
18256 Rewrite abbrev.c in Elisp.
18257 * image.c (Qcount): Don't declare as extern.
18258 (syms_of_image): Initialize and staticpro `Qcount'.
18259 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18260 * emacs.c (main): Don't call syms_of_abbrev.
18261 * Makefile.in (obj): Remove abbrev.o.
18262 (abbrev.o): Remove.
18263 * abbrev.c: Remove.
18264
182652007-10-26 Martin Rudalics <rudalics@gmx.at>
18266
18267 * window.c (window_min_size_2): Don't count header-line.
18268
182692007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18270
18271 * frame.h (struct frame): Move all bit fields after the first bit
18272 field to take advantage of the available space. Group all the
18273 chars together to reduce wasted space due to padding.
18274
182752007-10-26 Juanma Barranquero <lekktu@gmail.com>
18276
18277 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18278
18279 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18280 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18281 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18282 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18283 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18284 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18285 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18286 (last_marked, mark_object_loop_halt): Make static.
18287
18288 * frame.c (syms_of_frame) <delete-frame-functions>:
18289 Fix typo in docstring.
18290
182912007-10-25 Juanma Barranquero <lekktu@gmail.com>
18292
18293 * w32.c (init_environment): Fix tiny memory leak.
18294 (w32_get_resource): Remove unused variable `ok'.
18295
182962007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18297
18298 Make `window-system' into a keyboard-local variable (rather than
18299 frame-local as done originally by multi-tty).
18300
18301 * keyboard.h (struct kboard): Add Vwindow_system.
18302 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18303 (mark_kboards): Mark Vwindow_system.
18304
18305 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18306 (init_display): Don't set the obsolete `window-system' frame-param.
18307
18308 * xterm.c (x_term_init):
18309 * w32term.c (w32_create_terminal):
18310 * term.c (init_tty): Set Vwindow_system.
18311 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18312 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18313
18314 * xfns.c (Fx_create_frame, x_create_tip_frame):
18315 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18316 * macfns.c (Fx_create_frame):
18317 Don't set the obsolete `window-system' frame-param.
18318
18319 * frame.h (Qwindow_system): Remove.
18320 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18321 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18322
183232007-10-24 Richard Stallman <rms@gnu.org>
18324
18325 * frame.c (x_figure_window_size): For fullscreen case,
18326 set USPosition | PPosition without clobbering rest of window_prompting.
18327
18328 * keyboard.c (Fcurrent_idle_time): Doc fix.
18329
18330 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18331
183322007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18333
18334 * process.c (unwind_request_sigio): Only define if __ultrix__.
18335
18336 * callproc.c (child_setup): Remove spurious *.
18337
18338 * lisp.h (Fget_text_property): Declare.
18339 (have_menus_p): Declare it here rather than in sys-dep header files.
18340 * macterm.h (have_menus_p):
18341 * msdos.h (have_menus_p):
18342 * xterm.h (have_menus_p): Remove.
18343
18344 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18345 (Fmake_variable_frame_local): Just check the variable's const-ness
18346 rather than checking nil or t.
18347
183482007-10-22 Jason Rumney <jasonr@gnu.org>
18349
18350 * w32fns.c: Include math.h.
18351 (w32_abort): Declaration moved to nt/config.nt.
18352
18353 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18354 (abort): Redefinition moved to nt/config.nt.
18355
18356 * m/windowsnt.h: Remove.
18357
183582007-10-22 Juanma Barranquero <lekktu@gmail.com>
18359
18360 * emacs.c (Fdump_emacs): Fix typo in message.
18361 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18362 <installation-directory>: Reflow docstring.
18363
183642007-10-22 Juri Linkov <juri@jurta.org>
18365
18366 * minibuf.c: Allow minibuffer default to be a list of default values.
18367 With empty input use the first element of this list as returned default.
18368 (string_to_object)
18369 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18370 (read_minibuf): If defalt is cons, set histstring to its car.
18371 (Fread_string): If default_value is cons, set val to its car.
18372 (Fread_buffer): If def is cons, use its car.
18373 (Fcompleting_read): If defalt is cons, set val to its car.
18374
183752007-10-21 Michael Albinus <michael.albinus@gmx.de>
18376
18377 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18378
183792007-10-20 Juanma Barranquero <lekktu@gmail.com>
18380
18381 * doc.c (Fdocumentation): Check for advice in all cases.
18382
183832007-10-19 Chong Yidong <cyd@stupidchicken.com>
18384
18385 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18386
183872007-10-19 Richard Stallman <rms@gnu.org>
18388
18389 * doc.c (Fdocumentation): Check for and handle an advised function.
18390
183912007-10-19 Juanma Barranquero <lekktu@gmail.com>
18392
18393 * process.c (Fset_process_filter): Doc fix.
18394
183952007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18396
18397 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18398 which caused key-translation-map to applied repeatedly (thus breaking
18399 double-mode).
18400
184012007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18402
18403 * xselect.c (x_own_selection, x_handle_selection_clear)
18404 (x_clear_frame_selections):
18405 * w32menu.c (list_of_panes, list_of_items):
18406 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18407 * textprop.c (validate_plist, interval_has_all_properties)
18408 (interval_has_some_properties, interval_has_some_properties_list)
18409 (add_properties, text_property_list):
18410 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18411 * minibuf.c (Fassoc_string):
18412 * macselect.c (x_own_selection, x_clear_frame_selections)
18413 (Fx_disown_selection_internal):
18414 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18415 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18416
184172007-10-17 Chong Yidong <cyd@stupidchicken.com>
18418
18419 * process.c: Link to libs for calling res_init() if available.
18420 (Fmake_network_process): Call res_init() before getaddrinfo or
18421 gethostbyname, if possible.
18422
184232007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18424
18425 * lread.c (read1): Set pvectype for char_tables.
18426
18427 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18428 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18429 Add type checks.
18430 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18431
18432 * alloc.c (free_misc): Use XMISCTYPE.
18433 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18434
184352007-10-17 Glenn Morris <rgm@gnu.org>
18436
18437 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18438 (syms_of_minibuf): Add Qcompletion_ignore_case.
18439 * dired.c (Qcompletion_ignore_case): Change to external.
18440 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18441 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18442 (Fread_file_name): Use it rather than intern'ing.
18443
18444 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18445 (Fread_coding_system): Ignore case of user input.
18446
184472007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18448
18449 * xdisp.c (handle_display_prop): Ignore display specs after
18450 replacing one when string text is being replaced.
18451 (handle_single_display_spec): Pretend as if characters with display
18452 property haven't been consumed only when buffer text is being replaced.
18453
184542007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18455
18456 * xfns.c (Fx_create_frame, Fx_display_list):
18457 * window.c (window_fixed_size_p, enlarge_window)
18458 (shrink_window_lowest_first):
18459 * macterm.c (init_font_name_table):
18460 * macfns.c (Fx_create_frame, Fx_display_list):
18461 * lread.c (close_load_descs):
18462 * keyboard.c (read_char_x_menu_prompt):
18463 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18464 * coding.c (code_convert_region_unwind): Test the type of an object
18465 rather than just !NILP before extracting data from it.
18466
18467 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18468
18469 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18470 (XMISCANY): New macro.
18471 (XMISCTYPE): Use it.
18472 (struct Lisp_Misc_Any): New type.
18473 (union Lisp_Misc): Use it.
18474 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18475 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18476 (find_symbol_value, set_internal, default_value, Fset_default)
18477 (Fmake_variable_buffer_local, Fmake_local_variable)
18478 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18479 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18480 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18481 * alloc.c (allocate_buffer): Set the size and tag.
18482 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18483 Use XMISCANY.
18484 (die): Follow the GNU convention for error messages.
18485 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18486 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18487 tag any more.
18488 (set_buffer_internal_1):
18489 * frame.c (store_frame_param):
18490 * eval.c (specbind):
18491 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18492
18493 * doc.c (Fsnarf_documentation): Simplify.
18494
184952007-10-14 Juanma Barranquero <lekktu@gmail.com>
18496
18497 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18498 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18499
185002007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18501
18502 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18503
185042007-10-14 Juanma Barranquero <lekktu@gmail.com>
18505
18506 * eval.c (do_autoload): Don't save autoloads.
18507
18508 * data.c (Ffset): Save autoload of the function being set.
18509
185102007-10-07 John Paul Wallington <jpw@pobox.com>
18511
18512 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18513 parameter before setting up faces.
18514
185152007-10-13 Eli Zaretskii <eliz@gnu.org>
18516
18517 * ccl.c (Fregister_code_conversion_map):
18518 * keyboard.c (append_tool_bar_item): Reformat last change.
18519
18520 * lisp.h (eabs): Rename from `abs'. All callers changed.
18521
185222007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18523
18524 * buffer.c (add_overlay_mod_hooklist):
18525 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18526 * fontset.c (make_fontset):
18527 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18528 (append_tool_bar_item):
18529 * macmenu.c (grow_menu_items):
18530 * w32menu.c (grow_menu_items):
18531 * xmenu.c (grow_menu_items): Use larger_vector.
18532
185332007-10-13 Eli Zaretskii <eliz@gnu.org>
18534
18535 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18536 selected frame'' on MSDOS).
18537
185382007-10-12 Martin Rudalics <rudalics@gmx.at>
18539
18540 * frame.c (Qexplicit_name): New variable.
18541 (x_report_frame_params): Report it in parameter alist.
18542 (syms_of_frame): Intern and staticpro it.
18543
185442007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18545
18546 * macfns.c (x_create_tip_frame): Set terminal for frame.
18547
185482007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18549
18550 * frame.c (Qenvironment): Remove.
18551 (syms_of_frame) <Qenvironment>: Don't initialize.
18552 (Fdelete_frame): Don't treat the `environment' param specially.
18553 * frame.h (Qenvironment): Don't declare.
18554 * callproc.c (set_initial_environment): Don't set unused frame param.
18555
18556 * frame.c (Fframe_with_environment): Remove.
18557 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18558
18559 * lisp.h (Fframe_with_environment): Don't declare.
18560
185612007-10-10 Juanma Barranquero <lekktu@gmail.com>
18562
18563 * indent.c (indent_tabs_mode, last_known_column)
18564 (last_known_column_modified): Make static.
18565 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18566
185672007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18568
18569 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18570
185712007-10-09 Jason Rumney <jasonr@gnu.org>
18572
18573 * w32term.c (x_set_window_size): Disable code that attempts to tell
18574 Lisp code about a size change before it actually happens.
18575
185762007-10-09 Richard Stallman <rms@gnu.org>
18577
18578 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18579 return HANDLED_RETURN.
18580
185812007-10-08 Martin Rudalics <rudalics@gmx.at>
18582
18583 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18584 when there's an unread command event.
18585
18586 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18587 window autoselection act appropriately when leaving selected frame.
18588 (syms_of_frame): Initialize focus_follows_mouse.
18589 * frame.h (focus_follows_mouse): Extern it.
18590 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18591 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18592 * msdos.c (dos_rawgetc): Likewise.
18593 * w32term.c (w32_read_socket): Likewise.
18594 * xterm.c (handle_one_xevent): Likewise.
18595 * xdisp.c (syms_of_xdisp): In doc-string of
18596 mouse-autoselect-window mention focus-follows-mouse.
18597
185982007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18599
18600 * macterm.c (mac_load_query_font): Fix missing return value.
18601 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18602 Add BLOCK_INPUT.
18603
186042007-10-08 Richard Stallman <rms@gnu.org>
18605
18606 * xdisp.c (get_window_cursor_type): Implement documented behavior
18607 for cursor-in-non-selected-windows = t.
18608
186092007-10-08 Jason Rumney <jasonr@gnu.org>
18610
18611 * w32.c (w32_get_resource): Always close registry keys.
18612
186132007-10-08 Jason Rumney <jasonr@gnu.org>
18614
18615 * makefile.w32-in (LIBS): Add COMCTL32.
18616
18617 * w32fns.c (globals_of_w32fns): Init common controls.
18618
186192007-10-08 Richard Stallman <rms@gnu.org>
18620
18621 * image.c (our_memory_buffer): Rename from omfib_buffer.
18622
186232007-10-08 Richard Stallman <rms@gnu.org>
18624
18625 * buffer.c (Foverlays_at): Doc fix.
18626
186272007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18628
18629 * fns.c (Fplist_put): Preserve uneven tail data.
18630
186312007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18632
18633 * termhooks.h (enum event_kind): Remove trailing comma.
18634
18635 * frame.h (enum): Remove trailing comma.
18636
186372007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18638
18639 * w32proc.c (delete_child): Don't terminate threads of zombies.
18640
186412007-10-08 Martin Rudalics <rudalics@gmx.at>
18642
18643 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18644
18645 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18646 last-repeatable-command.
18647 (init_kboard): Initialize Vlast_repeatable_command.
18648 (command_loop_1): Set it to real_this_command unless that was
18649 bound to an input event.
18650 (mark_kboards): Mark it.
18651
186522007-10-08 Richard Stallman <rms@gnu.org>
18653
18654 * eval.c (condition-case): Doc fix.
18655
186562007-10-08 Masatake YAMATO <jet@gyve.org>
18657
18658 * xfaces.c (tty_supports_face_attributes_p): Fix code
18659 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18660 was copied and not edited.
18661
186622007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18663
18664 Add new `input-decode-map' keymap and use it for terminal
18665 escape sequences.
18666 * keyboard.h (struct kboard): Add Vinput_decode_map.
18667 Remove Vlocal_key_translation_map.
18668 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18669 (init_kboard): Init input-decode-map.
18670 Replace local-key-translation-map back with key-translation-map.
18671 (syms_of_keyboard): Declare input-decode-map.
18672 Remove local-key-translation-map. Update docstrings.
18673 (mark_kboards): Mark Vinput_decode_map.
18674 Don't mark Vlocal_key_translation_map.
18675 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18676 Replace local-key-translation-map back with key-translation-map.
18677 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18678 Bind in input-decode-map rather than function-key-map.
18679
18680 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18681 This was made redundant by the previous introduction of XSETPVECTYPE.
18682
186832007-10-09 Richard Stallman <rms@gnu.org>
18684
18685 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18686
186872007-09-29 Richard Stallman <rms@gnu.org>
18688
18689 * eval.c (internal_condition_case_2, internal_condition_case_1)
18690 (internal_condition_case): Reenable abort if x_catching_errors ()
18691 to see if that really happens and why.
18692
186932007-10-06 Andreas Schwab <schwab@suse.de>
18694
18695 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18696
186972007-10-04 Juanma Barranquero <lekktu@gmail.com>
18698
18699 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18700
187012007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18702
18703 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18704
187052007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18706
18707 * window.h (struct window):
18708 * window.c (struct save_window_data, struct saved_window):
18709 * termhooks.h (struct terminal):
18710 * process.h (struct Lisp_Process):
18711 * frame.h (struct frame):
18712 * buffer.h (struct buffer):
18713 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18714 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18715 The size field of (pseudo)vectors is now unsigned.
18716 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18717
18718 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18719 Turn `count' into an integer.
18720
18721 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18722 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18723 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18724 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18725 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18726
18727 * alloc.c (allocate_pseudovector): New fun.
18728 (ALLOCATE_PSEUDOVECTOR): New macro.
18729 (allocate_window, allocate_terminal, allocate_frame)
18730 (allocate_process): Use it.
18731 (mark_vectorlike): New function.
18732 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18733 (mark_terminals): Use it.
18734 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18735 (Fmake_byte_code): Use XSETPVECTYPE.
18736
18737 * frame.c (Fframe_parameters): Minor simplification.
18738
18739 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18740
18741 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18742
18743 * buffer.c (Fget_buffer_create, init_buffer_once):
18744 * lread.c (defsubr):
18745 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18746
18747 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18748 defined differently in the m/*.h files.
18749 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18750 (XSETPVECTYPE): New macro.
18751 (XSETPSEUDOVECTOR): Use it.
18752
18753 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18754 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18755
18756 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18757 * lread.c (defvar_per_buffer):
18758 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18759
18760 * window.c (candidate_window_p): Only consider as visible frames that
18761 are on the same terminal.
18762
18763 * m/ibms390x.h (MARKBIT): Remove unused macro.
18764
187652007-10-01 Juanma Barranquero <lekktu@gmail.com>
18766
18767 * lread.c (Fload): Fix typo in docstring.
18768
187692007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18770
18771 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18772 of a non-zero value can't yield zero.
18773
187742007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18775
18776 * term.c (term_clear_mouse_face, term_mouse_highlight)
18777 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18778
18779 * print.c (safe_debug_print): Use XHASH.
18780
18781 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18782 Lisp elements such as tags.
18783 (XHASH): New macro.
18784 (EQ): Use it.
18785 (SREF, SSET, STRING_COPYIN): Use SDATA.
18786 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18787
18788 * alloc.c (mark_terminal): Remove left-over declaration.
18789 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18790 (allocate_vectorlike): Remove type argument. Adjust callers.
18791 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18792 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18793
18794 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18795 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18796 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18797 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18798 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18799 Use them.
18800
18801 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18802 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18803 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18804
188052007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18806
18807 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18808 loaded by default.
18809
188102007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18811
18812 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18813 on this tty.
18814 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18815
18816 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18817 Update all users.
18818 (handle_one_term_event): Use Gpm_DrawPointer.
18819 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18820 Signal errors instead of returning nil. Always return nil.
18821 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18822 Make it a noop if gpm-mouse was not activated.
18823 (syms_of_term): Update names.
18824
188252007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18826
18827 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18828 (init_sys_modes): Check that gpm_tty is the current tty.
18829
18830 * alloc.c (allocate_terminal): Set the vector size to only count the
18831 lisp fields. Initialize those to nil.
18832 (mark_object): Don't treat terminals specially.
18833 (mark_terminal): Remove.
18834 (mark_terminals): Use mark_object instead.
18835
18836 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18837 the GC to the beginning.
18838
18839 * indent.h:
18840 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18841
18842 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18843
188442007-09-25 Jason Rumney <jasonr@gnu.org>
18845
18846 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18847
18848 * w32console.c (create_w32cons_output): Remove.
18849
18850 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18851
18852 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18853 (reset_sys_modes): Use reset_terminal_modes_hook.
18854
188552007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18856
18857 * eval.c (do_autoload): Don't output any message.
18858
188592007-09-24 Juri Linkov <juri@jurta.org>
18860
18861 * emacs.c (standard_args): Change priority of "--no-splash"
18862 from 40 to 3. Add "--no-desktop" with the same priority.
18863
188642007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18865
18866 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18867 and optimize the case where they are all 1.
18868
188692007-09-23 Johannes Weiner <hannes@saeurebad.de>
18870
18871 * lisp.h (abs): Define if not defined.
18872 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18873 Don't define `abs', since it's defined in lisp.h.
18874
188752007-09-22 Eli Zaretskii <eliz@gnu.org>
18876
18877 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18878 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18879 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18880 (init_tty): Use DEV_TTY instead of "/dev/tty".
18881 [WINDOWSNT]: No need to protect from NAME arg being null.
18882
188832007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18884
18885 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18886 up the tty state.
18887
188882007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18889
18890 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18891 (gpm_tty): Change its type.
18892 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18893 (gpm_tty): Change its type and initialize it.
18894 (Fterm_open_connection): Check the frame is indeed a tty.
18895 Use the new gpm_tty.
18896 (Fterm_close_connection): Use the new gpm_tty.
18897 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18898 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18899
189002007-09-21 Juanma Barranquero <lekktu@gmail.com>
18901
18902 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18903 underline_color, to draw strike-through.
18904
189052007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18906
18907 * lisp.h (allocate_terminal): Declare.
18908
18909 * window.c (candidate_window_p): Consider frames that are being placed
18910 by the user as somewhere between visible and iconified.
18911 (window_loop): Prefer windows on the current frame.
18912 (Fselect_window): Move the use of select-frame to the beginning so we
18913 can just delegate all the work (it'll call us back anyway).
18914
18915 * frame.c (Qdisplay_environment_variable):
18916 * frame.h (Qdisplay_environment_variable): Delete.
18917
18918 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18919 of the first arg, since that value may be a union.
18920
18921 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18922 parameter rather than Qdisplay_environment_variable. If all else
18923 fails, look for DISPLAY in initial-environment.
18924
189252007-09-21 Glenn Morris <rgm@gnu.org>
18926
18927 * Makefile.in (emacstool): Remove target.
18928 (lisp, shortlisp): Remove termdev.elc.
18929
189302007-09-21 Markus Triska <markus.triska@gmx.at>
18931
18932 * xterm.c (x_delete_display): Compile session management conditionally.
18933
189342007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18935
18936 * callproc.c (getenv_internal_1): New function.
18937 (getenv_internal): Use it.
18938 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18939
18940 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18941 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18942 (Fset_terminal_parameter): Work with dead terminals as well.
18943 (Fmodify_terminal_parameters): Remove.
18944
18945 * terminal.c (get_terminal): Handle terminals.
18946 Make sure the terminal returned is live.
18947 (create_terminal): Use allocate_terminal.
18948 (mark_terminals): Move to alloc.c.
18949 (delete_terminal): Use terminal->name as liveness status.
18950 NULL out fields after freeing their contents.
18951 Don't deallocate the object.
18952 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18953 rather than an int.
18954 (Fterminal_live_p): Accept non-integer arguments.
18955 (Fterminal_list): Return terminal objects rather than an ints.
18956
18957 * alloc.c (enum mem_type): New member for `terminal' objects.
18958 (allocate_terminal): New function.
18959 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18960 Handle terminals.
18961 (mark_terminal): New fun.
18962 (mark_terminals): Move from terminal.c.
18963
18964 * term.c (get_tty_terminal): Don't treat output_initial specially.
18965 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18966 (delete_tty): Use terminal->name as liveness status.
18967
18968 * termhooks.h (struct terminal): Make it into a pseudovector.
18969 Remove `deleted' replaced by checking `name's nullness.
18970
18971 * print.c (print_object): Handle terminals.
18972
18973 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18974 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18975
18976 * frame.c (make_terminal_frame):
18977 * keyboard.c (tty_read_avail_input):
18978 * w32term.c (x_delete_terminal):
18979 * xfns.c (Fx_create_frame, x_create_tip_frame):
18980 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18981
189822007-09-20 Glenn Morris <rgm@gnu.org>
18983
18984 * process.c (Fmake_network_process): Doc fix.
18985
189862007-09-19 Jason Rumney <jasonr@gnu.org>
18987
18988 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18989
189902007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18991
18992 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18993 Fix a C warning regarding variable constness.
18994
18995 * xterm.c (handle_one_xevent): Fix a C warning.
18996
189972007-09-18 Jason Rumney <jasonr@gnu.org>
18998
18999 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19000
190012007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19002
19003 * gtkutil.c (gdpy_def): New variable.
19004 (xg_initialize): Initialize gdpy_def.
19005 (xg_display_close): If no other display exists, set gdpy_def to a
19006 new connection.
19007
190082007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19009
19010 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19011 when we have no file name for the icon.
19012 (xg_tool_bar_expose_callback): Remove.
19013 (xg_create_tool_bar): Don't connect expose signal to
19014 xg_tool_bar_expose_callback.
19015 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19016
190172007-09-16 Andreas Schwab <schwab@suse.de>
19018
19019 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19020 values instead of zapping them.
19021
190222007-09-14 Glenn Morris <rgm@gnu.org>
19023
19024 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19025 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19026 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19027 scope and rename to omfib_buffer for clarity.
19028 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19029
190302007-09-14 Kenichi Handa <handa@m17n.org>
19031
19032 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19033
190342007-09-13 Jason Rumney <jasonr@gnu.org>
19035
19036 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19037
19038 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19039
19040 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19041 (mac_term_init): Call here instead, passing rif.
19042
190432007-09-13 Glenn Morris <rgm@gnu.org>
19044
19045 * s/hpux.h: No longer define `static' as nothing.
19046
190472007-09-13 Johan Bockgård <bojohan@gnu.org>
19048
19049 * callint.c (Fcall_interactively): Remove unused var `fun'.
19050
190512007-09-12 Romain Francoise <romain@orebokech.com>
19052
19053 * window.c (prefer_window_split_horizontally, display_buffer):
19054 Revert 2007-09-08 change.
19055
190562007-09-12 Glenn Morris <rgm@gnu.org>
19057
19058 * alloca.c: Remove file.
19059 * Makefile.in (alloca): Do not undef.
19060 (allocaobj, alloca.o): Remove.
19061 (otherobj): Remove allocaobj.
19062 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19063 * regex.c (C_ALLOCA): Remove all references and code that was only
19064 used when this was defined.
19065 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19066 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19067 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19068
19069 * Makefile.in (SOURCES, unlock, relock): Delete.
19070
19071 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19072 (menu_grab_callback): All uses changed.
19073
19074 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19075 (x_reply_selection_request): All uses changed.
19076
190772007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19078
19079 * lread.c (load_warn_old_style_backquotes): Change message to look
19080 better when it appears in the middle of byte-compiler messages.
19081
190822007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19083
19084 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19085
19086 * xterm.c (x_create_terminal): Add comment.
19087
19088 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19089
190902007-09-10 Richard Stallman <rms@gnu.org>
19091
19092 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19093
190942007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19095
19096 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19097 (DEFUN): Document `intspec', use it instead of `prompt'.
19098
19099 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19100
19101 * data.c (Finteractive_form): If the interactive specification starts
19102 with a `(', use it as a Lisp form.
19103
19104 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19105 name and file modes.
19106
19107 * callint.c (Fcall_interactively): Comment fixes.
19108
191092007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19110
19111 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19112 and compiled functions.
19113
191142007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19115
19116 * window.c (prefer_window_split_horizontally): New variable.
19117 (display_buffer): Consider splitting window horizontally depending
19118 on prefer_window_split_horizontally.
19119
191202007-09-08 Eli Zaretskii <eliz@gnu.org>
19121
19122 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19123
191242007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19125
19126 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19127
19128 * frame.c (x_set_frame_parameters): Check number is positive before
19129 using XFASTINT.
19130
19131 * window.c (freeze_window_start): Don't presume selected_window holds
19132 a window object.
19133 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19134
191352007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19136
19137 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19138
191392007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19140
19141 * window.c (Vsplit_window_preferred_function): New var.
19142 (Fdisplay_buffer): Use it.
19143 (syms_of_window): Export, and initialize it.
19144
191452007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19146
19147 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19148
191492007-09-06 Glenn Morris <rgm@gnu.org>
19150
19151 * gtkutil.c (menu_grab_callback) <cnt>:
19152 * xselect.c (x_reply_selection_request) <cnt>: Move static
19153 variable to file scope.
19154
191552007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19156
19157 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19158 consistent values of selected_frame and selected_window.
19159
191602007-09-04 Jason Rumney <jasonr@gnu.org>
19161
19162 * w32console.c (initialize_w32_display): Zero unused hooks.
19163
191642007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19165
19166 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19167 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19168
191692007-09-04 Jason Rumney <jasonr@gnu.org>
19170
19171 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19172 in w32console.c. Set up input. Remove XXX comments that have been
19173 confirmed as correct.
19174
19175 * s/ms-w32.h (MULTI_KBOARD): Define.
19176
19177 * w32console.c (one_and_only_w32cons): Remove.
19178 (initialize_w32_display): Take terminal argument.
19179
19180 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19181 initialize_w32_display.
19182 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19183
19184 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19185
19186 * keyboard.c (discard_mouse_events): Discard it.
19187 (make_lispy_event): Translate it to a lisp event.
19188 (lispy_wheel_names): Add wheel-left and right events.
19189 (syms_of_keyboard): Enlarge wheel_syms.
19190
19191 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19192 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19193
19194 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19195
19196 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19197 from WM_MOUSEHWHEEL.
19198 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19199
19200 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19201 terminal.
19202
19203 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19204 keyboard for the terminal.
19205
192062007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19207
19208 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19209 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19210 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19211 and resume-tty-function to resume-tty-hook.
19212 (Fsuspend_tty, Fresume_tty): Use new names.
19213
192142007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19215
19216 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19217 if it starts with "n:".
19218
192192007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19220
19221 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19222
192232007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19224
19225 * frame.h:
19226 * frame.c (Qterm_environment_variable): Remove.
19227 (syms_of_frame): Don't init and staticpro it.
19228
19229 * callproc.c (getenv_internal): Remove special case for $TERM.
19230
19231 * callproc.c (Vinitial_environment): New variable.
19232 (set_initial_environment): Initialize it.
19233 (syms_of_callproc): Declare it.
19234 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19235 TERM under which a process runs is never related to the TERM in which
19236 Emacs is running.
19237
192382007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19239
19240 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19241 * s/darwin.h: ... do it here.
19242
192432007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19244
19245 * lisp.h (set_initial_environment): Rename from set_global_environment.
19246
19247 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19248 removed by mistake on the multi-tty branch.
19249
19250 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19251 (Fmodify_frame_parameters): Return a value.
19252
19253 * image.c (png_load): Comment-out var only used in commented-out code.
19254
19255 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19256 before passing it to mark_object.
19257
19258 * xfaces.c (internal_resolve_face_name): Return a value.
19259 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19260
19261 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19262 (x_icon): Comment-out var only used in commented-out code.
19263
192642007-08-29 Romain Francoise <romain@orebokech.com>
19265
19266 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19267 QUIT hasn't been provided.
19268
192692007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19270
19271 * callproc.c (child_setup, getenv_internal): Use the
19272 display-environment-variable and term-environment-variable frame params.
19273 (set_initial_environment): Initialise Vprocess_environment.
19274
19275 * config.in: Disable multi-keyboard support on a mac.
19276
19277 * frame.c (Qterm_environment_variable)
19278 (Qdisplay_environment_variable): New variables.
19279 (syms_of_frame): Intern and staticpro them.
19280 (Fmake_terminal_frame): Disable output method test.
19281
19282 * frame.h: Declare them here.
19283
19284 * macfns.c (x_set_mouse_color): Get rif from the frame.
19285 (x_set_tool_bar_lines): Don't use updating_frame.
19286 (mac_window): Add 2 new parameters for consistency with other systems.
19287 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19288 frame parameters following what is done in X11 and w32. Don't use
19289 FRAME_MAC_DISPLAY_INFO.
19290 (Fx_open_connection, start_hourglass): Remove window-system check.
19291 (x_create_tip_frame): Get the keyboard from the terminal.
19292
19293 * macmenu.c: Reorder includes.
19294 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19295
19296 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19297 terminal parameter.
19298 (x_clear_frame): Add a frame parameter.
19299 (note_mouse_movement): Get rif from the frame.
19300 (mac_term_init): Initialize the terminal.
19301 (mac_initialize): Make static and move terminal initialization ...
19302 (mac_create_terminal): ... to this new function.
19303
19304 * macterm.h (struct mac_display_info): Add terminal.
19305 (mac_initialize): Delete declaration.
19306
19307 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19308
19309 * sysdep.c: Comment out text after #endif.
19310
19311 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19312 is defined. Better initialize ttys in windows. Use terminal
19313 specific mouse_position_hook.
19314
19315 * termhooks.h (union display_info): Add mac_display_info.
19316
19317 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19318 Set the default minibuffer frame, window_system and the rest of the
19319 frame parameters following what is done in X11.
19320
19321 * w32term.c (w32_initialize): Make static.
19322
19323 * xselect.c (x_handle_selection_clear): Only access
19324 terminal->kboard when MULTI_KBOARD is defined.
19325
19326 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19327 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19328
193292007-08-29 Jason Rumney <jasonr@gnu.org>
19330
19331 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19332 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19333
19334 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19335 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19336
19337 * keyboard.c (restore_kboard_configuration): Only define when
19338 MULTI_KBOARD defined.
19339
19340 * makefile.w32-in: Update dependancies from Makefile.in.
19341 (OBJ1): Add terminal.$(O)
19342
19343 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19344 Don't define function body.
19345 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19346
19347 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19348
19349 * w32.c (request_sigio, unrequest_sigio): Remove.
19350
19351 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19352 (w32con_clear_frame, w32con_clear_end_of_line)
19353 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19354 (w32con_delete_glyphs, w32con_set_terminal_window)
19355 (scroll_line, w32_sys_ring_bell): Add frame arg.
19356 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19357 Add terminal arg.
19358 (PICK_FRAME): Remove.
19359 (w32con_write_glyphs): Use frame specific terminal coding.
19360 (one_and_only_w32cons): New global variable.
19361 (initialize_w32_display): Use it for storing hooks.
19362 (create_w32cons_output): New function.
19363
19364 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19365 arg a frame.
19366
19367 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19368 Set window_system.
19369 (x_set_tool_bar_lines): Don't use updating_frame.
19370 (Fx_create_frame): Set terminal and ref count.
19371 (Fx_open_connection): Remove window-system check.
19372
19373 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19374
19375 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19376 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19377 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19378 Add frame arg.
19379 (x_delete_terminal, w32_create_terminal): New functions.
19380 (w32_term_init): Create a terminal.
19381 (w32_initialize): Move terminal specific initialization to
19382 w32_create_terminal.
19383
19384 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19385 (w32_clear_rect, w32_clear_area): Use background from frame.
19386 (w32_display_info): Add terminal.
19387 (w32_sys_ring_bell, x_delete_display): Declare here.
19388
19389 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19390
19391 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19392
193932007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19394
19395 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19396 Fix get_named_tty calls for the controlling tty.
19397
193982007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19399
19400 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19401
194022007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19403
19404 * term.c (tty_insert_glyphs): Add missing first parameter.
19405
194062007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19407
19408 * buffer.c (Fbuffer_list, Fbury_buffer):
19409 Take frame->buried_buffer_list into account.
19410
19411 * cm.c (current_tty): New variable, for cmputc().
19412 (cmputc): Use it.
19413 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19414 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19415 (cmgoto): Add tty parameter. Pass it on to calccost().
19416 Use emacs_tputs() instead of tputs().
19417
19418 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19419 tputs().
19420 (current_tty): New variable, for cmputc().
19421 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19422
19423 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19424 (internal_condition_case, internal_condition_case_1)
19425 (internal_condition_case_2): Don't abort when x_catching_errors.
19426
19427 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19428 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19429 prevent crashes caused by bogus longjmps in read_char.
19430
19431 * keymap.h (Fset_keymap_parent): Add EXFUN.
19432
19433 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19434 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19435 Remove redundant definition.
19436
19437 * macfns.c (x_set_mouse_color, x_make_gc):
19438 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19439
19440 * w32term.c (x_free_frame_resources):
19441 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19442 (w32_initialize): Use the accessor macros for terminal characteristics.
19443
19444 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19445 Use the accessor macros for terminal characteristics.
19446 * msdos.c (internal_terminal_init): Use the accessor macros for
19447 terminal characteristics.
19448 (ScreenVisualBell, internal_terminal_init):
19449 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19450
19451 * termopts.h (no_redraw_on_reenter): Declare.
19452
19453 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19454 (mark_terminals, mark_ttys): Declare.
19455 (Fgarbage_collect): Call them.
19456 (mark_object): Mark buried_buffer_list.
19457
19458 * prefix-args.c: Include stdlib.h for exit.
19459
19460 * syssignal.h: Add comment.
19461
19462 * indent.c: Include stdio.h.
19463
19464 * window.h (Vinitial_window_system): Declare.
19465 (Vwindow_system): Delete declaration.
19466
19467 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19468
19469 * image.c (lookup_image): Don't initialize `c' until the xasserts
19470 have been run.
19471
19472 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19473 FRAME_FOREGROUND_PIXEL.
19474
19475 * print.c (print_preprocess): Don't lose print_depth levels while
19476 iterating.
19477
19478 * widget.c (update_from_various_frame_slots):
19479 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19480
19481 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19482 frames.
19483 (window_internal_height): Remove bogus make_number call.
19484 (init_window_once): Call make_terminal_frame with two zero parameters.
19485
19486 * fileio.c (Fread_file_name): Update comment.
19487
19488 * callint.c (Fcall_interactively):
19489 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19490 Make sure it is correctly unwound.
19491
19492 * xsmfns.c (x_session_close): New function.
19493
19494 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19495 Delete declarations.
19496
19497 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19498 (x_output): Remove background_pixel and foreground_pixel fields.
19499 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19500 (x_delete_device, x_session_close): Declare.
19501
19502 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19503 (read_filtered_event): Call `read_char' with a local
19504 `wrong_kboard_jmpbuf'.
19505
19506 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19507 Don't call single_kboard_state. Use FRAME_RIF.
19508
19509 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19510 systems.
19511
19512 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19513 (Fframe_with_environment, Fset_input_meta_mode)
19514 (Fset_quit_char): EXFUN.
19515 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19516 (init_sys_modes, reset_sys_modes): Update prototypes.
19517 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19518
19519 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19520 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19521 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19522 Delete declarations.
19523 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19524 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19525 New declarations.
19526
19527 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19528 already does that during init_display(). Call syms_of_keymap
19529 before syms_of_keyboard. Call `syms_of_terminal'.
19530 Call set_initial_environment, not set_process_environment.
19531 (shut_down_emacs): Call reset_all_sys_modes() instead of
19532 reset_sys_modes().
19533
19534 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19535 (internal_resolve_face_name, resolve_face_name_error): New functions.
19536 (resolve_face_name): Protect against loops and errors thrown by Fget.
19537 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19538 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19539
19540 * scroll.c: Replace CURTTY() with local variables throughout the
19541 file (where applicable).
19542 (calculate_scrolling, calculate_direct_scrolling)
19543 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19544 characteristics.
19545
19546 * keymap.c (Vfunction_key_map): Remove.
19547 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19548 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19549 (Vkey_translation_map): Remove.
19550 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19551 (Fdescribe_buffer_bindings)
19552 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19553 Update for terminal-local key-translation-map.
19554
19555 * Makefile.in (callproc.o): Update dependencies.
19556 (lisp, shortlisp): Add termdev.elc.
19557 (obj): Add terminal.o.
19558 (terminal.o): Add dependencies.
19559 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19560 (data.o, fns.o): Add termhooks.h dependency.
19561 (SOME_MACHINE_LISP): Add dnd.elc.
19562 (minibuf.o): Fix typo.
19563 Update dependencies.
19564
19565 * data.c (do_symval_forwarding, store_symval_forwarding)
19566 (find_symbol_value): Use the selected frame's keyboard, not
19567 current_kboard.
19568
19569 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19570 Vwindow_system.
19571
19572 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19573 Fmenu_bar_open.
19574 (syms_of_xmenu): Update defsubr.
19575 (mouse_position_for_popup, Fx_popup_menu)
19576 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19577 (set_frame_menubar, free_frame_menubar)
b97439ce 19578 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19579 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19580 an X frame.
19581
19582 * xselect.c (x_own_selection): Abort if not an X frame.
19583 (some_frame_on_display): Check if it is an X frame.
19584 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19585
19586 * coding.c: Include frame.h and termhooks.h.
19587 (terminal_coding, keyboard_coding): Delete.
19588 (Fset_terminal_coding_system_internal)
19589 (Fset_keyboard_coding_system_internal)
19590 (Fkeyboard_coding_system)
19591 (Fterminal_coding_system): Add a terminal parameter.
19592 Get terminal_coding from the terminal.
19593 (init_coding_once): Don't call setup_coding_system here.
19594
19595 * dispextern.h (set_scroll_region, turn_off_insert)
19596 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19597 (tty_clear_end_of_line, tty_setup_colors)
19598 (delete_tty, updating_frame)
19599 (produce_special_glyphs, produce_glyphs, write_glyphs)
19600 (insert_glyphs): Remove.
19601 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19602 (tty_turn_off_highlight, get_tty_size): Add declaration.
19603 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19604
19605 * frame.h (enum output_method): Add output_initial.
19606 (struct x_output): Delete.
19607 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19608 Access foreground_pixel and background_pixel directly from the frame.
19609 (tty_display): Delete.
19610 (struct frame): Add buried_buffer_list, foreground_pixel,
19611 background_pixel and terminal. Delete kboard.
19612 (union output_data): Add tty.
19613 (FRAME_KBOARD): Get the kboard from the terminal.
19614 (FRAME_INITIAL_P): New macro.
19615 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19616 (Qterm_environment_variable, Qdisplay_environment_variable)
19617 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19618 New declarations.
19619
19620 * termchar.h (tty_output, tty_display_info): New structures.
19621 (tty_list): Declare.
19622 (FRAME_TTY, CURTTY): New macros.
19623 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19624 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19625 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19626 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19627
19628 * callproc.c: Include frame.h and termhooks.h, for terminal
19629 parameters.
19630 (add_env): New function.
19631 (child_setup): Use it.
19632 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19633 (getenv_internal): Fix get_terminal_param call.
19634 (Fgetenv_internal, egetenv): Update doc.
19635 (syms_of_callproc): Initialize Vprocess_environment to nil.
19636 Register and initialize them. Remove obsolete defvars. Update doc
19637 strings.
19638 (child_setup): Handle Vlocal_environment_variables.
19639 (getenv_internal): Add terminal parameter.
19640 Handle Vlocal_environment_variables.
19641 (Fgetenv_internal): Add terminal parameter.
19642 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19643 environment in a frame (not terminal) parameter. Update doc strings.
19644 (set_initial_environment): Rename from set_global_environment.
19645 Store Emacs environment in initial frame parameter.
19646
19647 * xdisp.c (redisplay_internal): Update references to
19648 `previous_terminal_frame'.
19649 (display_mode_line, Fformat_mode_line): Replace calls to
19650 `push_frame_kboard' with `push_kboard'.
19651 (get_glyph_string_clip_rects): Add extra parentheses and
19652 braces to prevent compiler warnings.
19653 (calc_pixel_width_or_height): Add xassert to check that the
19654 frame is alive. Don't call `lookup_image' on a termcap frame.
19655 (message2_nolog, message3_nolog, redisplay_internal)
19656 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19657 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19658 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19659 (Fx_display_pixel_width, Fx_display_pixel_height)
19660 (Fx_display_planes, Fx_display_color_cells)
19661 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19662 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19663 (Fx_display_backing_store, Fx_display_visual_class)
19664 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19665 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19666
19667 * xfns.c (x_set_foreground_color x_set_background_color)
19668 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19669 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19670 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19671 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19672 terminal that is being deleted.
19673 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19674 frame parameter, and make sure it overrides any user-supplied setting.
19675 (Fx_close_connection, Fx_synchronize): Unify argument names with
19676 the rest of the DEFUNs.
19677
19678 * dispnew.c (Fsend_string_to_terminal): Update call to
19679 `get_tty_terminal'.
19680 (Fredraw_frame, Fsend_string_to_terminal)
19681 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19682 FRAME_TERMCAP_P and FRAME_TTY.
19683 (window_change_signal): Don't believe width/height values that are
19684 impossibly small.
19685 (Vinitial_window_system): Rename from Vwindow_system.
19686 (termscript, Wcm, rif): Delete.
19687
19688 * termhooks.h (struct terminal): New struct containing the
19689 previously global text display hooks and new members NAME,
19690 DELETED and PARAM_ALIST.
19691 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19692 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19693 (FRAME_RIF): New macros.
19694 (get_terminal_param, get_device): New declarations.
19695 (termscript): Delete declaration.
19696
19697 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19698 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19699 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19700 FRAME_FOREGROUND_PIXEL.
19701 (x_fully_uncatch_errors): Disable definition.
19702 (x_scroll_bar_expose): Fix reference to foreground pixel.
19703 (XTread_socket): Disable loop on all X displays.
19704 (x_delete_terminal): Don't set terminal->deleted and let
19705 delete_terminal delete the frames on the terminal.
19706 (x_delete_display): Doc update to reflect changes in
19707 delete_terminal.
19708 (x_display_info) <terminal>: Move member earlier in the struct.
19709 (deleting_tty): Remove old variable.
19710 (Fsuspend_tty): Call clear_tty_hooks.
19711 (Fresume_tty, init_tty): Call set_tty_hooks.
19712 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19713 errors on X frames.
19714 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19715 (handle_one_xevent): Initialize `f' to NULL.
19716 (x_delete_terminal, x_create_terminal): New functions.
19717 (XTset_terminal_modes, XTreset_terminal_modes)
19718 (XTread_socket, x_connection_closed, x_term_init)
19719 (x_term_init, x_delete_display): Add terminal parameter.
19720 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19721 X connections.
19722
19723 * frame.c: Include termchar.h.
19724 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19725 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19726 (Qdisplay_environment_variable): New vars.
19727 (Fframep): Deal with output_initial.
19728 (Fframe-live-p): Doc fix.
19729 (Fwindow-system): New function.
19730 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19731 (make_terminal_frame): Don't create frames on a terminal that is
19732 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19733 (store_frame_param): Check for found_for_frame before calling XFRAME.
19734 (Fmake_terminal_frame): Handle NULL tty names correctly.
19735 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19736 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19737 frames to refer to a deleted frame in their 'environment parameter.
19738 (Fframe_with_environment): New function.
19739 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19740 (get_future_frame_param): New function.
19741 (Fmake_terminal_frame): Use it.
19742 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19743
19744 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19745 * sysdep.c (reset_sys_modes): Update for renames.
19746
19747 * keyboard.c (tty_read_avail_input): New function.
19748 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19749 (syms_of_keyboard): Defsubr them.
19750 (Fset_input_meta_mode, Fset_quit_char): New functions.
19751 (Fset_input_mode): Split to above functions.
19752 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19753 parameter. Use it in call to `read_char'.
19754 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19755 Set wrong_kboard_jmpbuf correctly in recursive calls.
19756 Use current_kboard to access Vkeyboard_translate_table.
19757 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19758 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19759 Update longjmp invocations. Remember the original current_kboard,
19760 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19761 changes it. Comment out unnecessary calls to
19762 `record_single_kboard_state' and `any_kboard_state'.
19763 Update recursive calls.
19764 (wrong_kboard_jmpbuf): Remove global variable.
19765 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19766 Handle deleted interrupted_kboards correctly; that is a legal
19767 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19768 and read_char calls. Abort if interrupted_kboard died in read_char.
19769 (any_kboard_state, single_kboard_state)
19770 (push_frame_kboard): Remove function.
19771 (pop_kboard): Switch out of single_kboard mode if the kboard has
19772 been deleted. Remove unused variable. Help debugging by not
19773 changing current_kboard unnecessarily. Set current_kboard to the
19774 kboard of the selected frame when the stored kboard object has
19775 been deleted before pop_kboard.
19776 (temporarily_switch_to_single_kboard): Change first parameter to a
19777 frame pointer. Throw an error when caller wants to change kboards
19778 while in single_kboard mode. Don't push_kboard if we weren't in
19779 single kboard state. Don't pop_kboard if we popped into any
19780 kboard state.
19781 (restore_kboard_configuration): Abort if pop_kboard changed the
19782 kboard in single_kboard mode. Call pop_kboard only after setting
19783 up single_kboard mode.
19784 (Frecursive_edit): Switch to single_kboard mode only in nested
19785 command loops.
19786 (cmd_error, command_loop, command_loop_1, timer_check):
19787 Comment out unnecessary call to `any_kboard_state' and
19788 `record_single_kboard_state'.
19789 (delete_kboard): Exit single_kboard mode if we have just deleted
19790 that kboard. Use FRAME_KBOARD.
19791 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19792 `fatal_error_signal'.
19793 (record_single_kboard_state): Don't push_kboard if we weren't in
19794 single kboard state. Don't pop_kboard if we popped into any
19795 kboard state.
19796 (push_frame_kboard): Rename to push_kboard.
19797 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19798 (read_avail_input): Read input from all terminals.
19799 (mark_kboards): Also mark Vkeyboard_translate_table.
19800 (kbd_buffer_store_event_hold): Simplify condition.
19801 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19802 (Vkeyboard_translate_table): Move to struct kboard.
19803 (init_kboard): Initialize Vkeyboard_translate_table.
19804 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19805 Vkeyboard_translate_table. Update doc strings. Update docs of
19806 local-function-key-map and function-key-map.
19807
19808 * terminal.c: New file.
19809
19810 * term.c: Include errno.h.
19811 (Vring_bell_function, device_list, initial_device)
19812 (next_device_id, ring_bell, update_begin, update_end)
19813 (set_terminal_window, cursor_to, raw_cursor_to)
19814 (clear_to_end, clear_frame, clear_end_of_line)
19815 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19816 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19817 (syms_of_term): Move their initialization to terminal.c.
19818 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19819 (Ftty_display_color_cells)
19820 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19821 (clear_tty_hooks, set_tty_hooks)
19822 (init_tty, maybe_fatal): New functions.
19823 (Ftty_type): Return nil if terminal is not on a tty instead of
19824 throwing an error. Doc update.
19825 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19826 Doc update. Initialize new subrs and variables.
19827 (delete_tty): Use terminal->deleted.
19828 (tty_set_terminal_modes): Rename from set_terminal_modes.
19829 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19830 (set_scroll_region): Rename to `tty_set_scroll_region'.
19831 (turn_on_insert): Rename to `tty_turn_on_insert'.
19832 (turn_off_insert): Rename to `tty_turn_off_insert'.
19833 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19834 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19835 (toggle_highligh): Rename to `tty_toggle_highlight'.
19836 (background_highlight): Rename to `tty_background_highlight'.
19837 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19838 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19839 (tty_set_scroll_region, tty_background_highlight)
19840 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19841 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19842 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19843 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19844 Add static modifier.
19845 (tty_reset_terminal_modes, tty_set_terminal_window)
19846 (tty_set_scroll_region, tty_background_highlight)
19847 (tty_highlight_if_desired, tty_cursor_to)
19848 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19849 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19850 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19851 renames.
19852
198532007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19854
19855 * keyboard.c: Qrtl is new.
19856 (parse_tool_bar_item): Handle :rtl keyword.
19857 (syms_of_keyboard): Intern :rtl keyword.
19858
19859 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19860
19861 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19862 so no Lisp code is executed.
19863 (file_for_image, find_rtl_image): New functions.
19864 (xg_get_image_for_pixmap): Use file_for_image.
19865 (update_frame_tool_bar): If direction is RTL, use RTL image if
19866 defined. Use Gtk stock images if defined.
19867
198682007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19869
19870 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19871 for nonexistent or zero-width glyph in composition glyph.
19872
198732007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19874
19875 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19876
19877 * xdisp.c (Finvisible_p): New function.
19878 (syms_of_xdisp): defsubr it.
19879
198802007-08-24 Juanma Barranquero <lekktu@gmail.com>
19881
19882 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19883 Doc fixes.
19884
198852007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19886
19887 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19888
198892007-08-24 Martin Rudalics <rudalics@gmx.at>
19890
19891 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19892 whether decoding has modified buffer contents.
19893
198942007-08-24 Jason Rumney <jasonr@gnu.org>
19895
19896 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19897 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19898 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19899 (init_svg_functions) [HAVE_NTGUI]: New function.
19900 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19901 (svg_load_image): Use them.
19902 (svg_load_image) [HAVE_NTGUI]: Implement background.
19903
199042007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19905
19906 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19907 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19908 (LIBX): Remove @RSVG_LIBS@.
19909 (LIBES): Add $(RSVG_LIBS).
19910
19911 * image.c (svg_load_image): Blend with specified background if exists.
19912 Use IMAGE_BACKGROUND. Add Mac OS Support.
19913
19914 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19915 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19916 Remove macros.
19917 [MAC_OSX] (socket_callback): Do nothing.
19918 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19919 ReceiveNextEvent.
19920 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19921 socket_callback.
19922 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19923
199242007-08-22 Glenn Morris <rgm@gnu.org>
19925
19926 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19927
199282007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19929
19930 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19931
19932 * image.c: Add support for SVG images. Some additional comments
19933 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19934 (svg_image_p): New function to test for SVG image.
19935 (svg_load): New function to load SVG image.
19936 (svg_load_image): New function, helper for svg_load.
19937 (Qsvg): New Lisp_object.
19938 (svg_keyword_index): New enum.
19939 (svg_format): New static `image_keyword' struct.
19940 (svg_type): New static `image_type' struct.
19941 (librsvg/rsvg.h): Include it.
19942
199432007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19944
19945 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19946
199472007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19948
19949 * lread.c (Qold_style_backquotes): New var.
19950 (syms_of_lread): Init and staticpro it.
19951 (load_warn_old_style_backquotes): New fun.
19952 (Fload): Use them to warn about old style backquotes.
19953 (end_of_file_error, Fload): Remove unused vars.
19954
19955 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19956
19957 * lread.c (Vold_style_backquotes): New var.
19958 (syms_of_lread): Init and export it to Elisp.
19959 (read1): Set it when we find an old-style (back)quote.
19960
199612007-08-22 Jason Rumney <jasonr@gnu.org>
19962
19963 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19964
199652007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19966
19967 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19968
199692007-08-19 Richard Stallman <rms@gnu.org>
19970
19971 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19972
199732007-08-19 Andreas Schwab <schwab@suse.de>
19974
19975 * alloc.c (pure): Round PURESIZE up.
19976
199772007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19978
19979 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19980 active frame.
19981
199822007-08-16 Richard Stallman <rms@gnu.org>
19983
19984 * eval.c (Fcommandp): Add parens to clarify.
19985
19986 * minibuf.c (Fall_completions): Use enum for type of table.
19987
19988 * emacs.c (USAGE2): Improve text.
19989
199902007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19991
19992 * term.c (tty_default_color_capabilities): Declare static
19993 variables in file scope, to avoid HPUX compiler problem.
19994
199952007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19996
19997 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19998 to gtk_toolbar_insert.
19999
200002007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20001
20002 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20003
20004 * insdel.c (reset_var_on_error): New fun.
20005 (signal_before_change, signal_after_change):
20006 Use it to reset (after|before)-change-functions to nil in case of error.
20007 Bind inhibit-modification-hooks to t.
20008 Don't bind (after|before)-change-functions to nil while they run.
20009
200102007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20011
20012 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20013 filling pixmap with stippled background.
20014
200152007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20016
20017 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20018 Don't use invisible frame as parent window for repositioning.
20019
200202007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20021
20022 * print.c (new_backquote_output): Rename from old_backquote_output.
20023 (print): Inverse its logic (according to its name) so as to match the
20024 behavior of new_backquote_flag in lread.c.
20025
200262007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20027
20028 * gmalloc.c (posix_memalign): New function.
20029
20030 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20031 ActivateControl/DeactivateControl here.
20032 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20033 frame-notice-user-settings is non-nil.
20034 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20035 for kEventParamFMFontStyle.
20036 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20037 mac_pass_command_to_system and mac_pass_control_to_system here.
20038 (XTread_socket): Call ActivateControl/DeactivateControl here.
20039 (XTread_socket) [TARGET_API_MAC_CARBON]:
20040 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20041 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20042 for window repositioning.
20043
200442007-08-08 Glenn Morris <rgm@gnu.org>
20045
20046 * Replace `iff' in doc-strings and comments.
20047
200482007-08-07 Chong Yidong <cyd@stupidchicken.com>
20049
20050 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20051
200522007-08-07 Martin Rudalics <rudalics@gmx.at>
20053
20054 * fileio.c (Finsert_file_contents): Run format-decode and
20055 after_insert_file_functions on entire buffer when REPLACE is
20056 non-nil and inhibit modification_hooks and point_motion_hooks.
20057 For consistency, run after_insert_file_functions iff something
20058 got inserted. Move signal_after_change and update_compositions
20059 after code running after_insert_file_functions. Make sure that
20060 undo_list doesn't record intermediate steps of the decoding process.
20061
200622007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20063
20064 * emacs.c (main)
20065 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20066 Call malloc_enable_thread on interactive startup.
20067
20068 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20069 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20070 [USE_PTHREAD]: Conditionalize with it.
20071 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20072 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20073 New functions.
20074
200752007-08-06 Chong Yidong <cyd@stupidchicken.com>
20076
20077 * xdisp.c (redisplay_window): When restoring original buffer
20078 position, make sure it is still valid.
20079
20080 * image.c (png_load): Ignore png-supplied background color.
20081
200822007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20083
20084 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20085 Use kCFAbsoluteTimeIntervalSince1970.
20086
20087 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20088 New variable.
20089 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20090 event loop should be quit.
20091 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20092 Quit dialog event loop if quit_dialog_event_loop is set.
20093
20094 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20095 (Selection): New typedef. Use instead of ScrapRef.
20096 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20097 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20098 (mac_clear_selection): Rename from clear_scrap.
20099 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20100 scrap_has_target_type. All uses changed.
20101 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20102 (mac_selection_has_target_p): New functions.
20103 (mac_put_selection_value): Rename from put_scrap_string.
20104 (mac_get_selection_value): Rename from get_scrap_string.
20105 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20106 (put_scrap_private_timestamp, scrap_has_target_type)
20107 (get_scrap_private_timestamp): Remove functions.
20108 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20109 (x_own_selection, x_get_local_selection):
20110 Use mac_valid_selection_value_p.
20111 (x_own_selection): Don't use put_scrap_private_timestamp.
20112 Record OWNERSHIP-INFO into Vselection_alist instead.
20113 (x_get_local_selection): Don't check type if request is local.
20114 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20115 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20116
201172007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20118
20119 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20120 add comment explaining why.
20121
201222007-08-03 Richard Stallman <rms@gnu.org>
20123
20124 * fileio.c (Fvisited_file_modtime): Use make_time.
20125
201262007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20127
20128 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20129 build.
20130
201312007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20132
20133 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20134
201352007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20136
20137 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20138
201392007-07-30 Richard Stallman <rms@gnu.org>
20140
20141 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20142
201432007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20144
20145 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20146
201472007-07-28 Nick Roberts <nickrob@snap.net.nz>
20148
20149 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20150 remote default-directory.
20151
20152 * buffer.c (mode-line-format): Update doc string.
20153
201542007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20155
20156 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20157 scroll bar gap.
20158 (x_scroll_bar_create): Set bar->fringe_extended_p.
20159 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20160 on frame edge. Check fringe background extension. Don't clear
20161 extended fringe background area.
20162
20163 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20164 (w32_fill_area): Enclose multiple statements with do ... while (0).
20165
20166 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20167 Extend fringe background to scroll bar gap.
20168 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20169 Set bar->fringe_extended_p.
20170 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20171 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20172 background extension. Don't clear extended fringe background area.
20173
20174 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20175 New member fringe_extended_p.
20176
201772007-07-25 Glenn Morris <rgm@gnu.org>
20178
20179 * Relicense all FSF files to GPLv3 or later.
20180
20181 * COPYING: Switch to GPLv3.
20182
201832007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20184
20185 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20186
20187 * data.c (Finteractive_form): Check for the presence of an
20188 `interactive-form' symbol property more thoroughly.
20189
20190 * data.c (Finteractive_form): Use an `interactive-form' property if
20191 present, analogous to the function-documentation property.
20192
201932007-07-24 Jason Rumney <jasonr@gnu.org>
20194
20195 * w32fns.c (x_real_positions): Get real position from OS instead of
20196 calculating it.
20197
201982007-07-23 Jason Rumney <jasonr@gnu.org>
20199
20200 * filelock.c (current_lock_owner): Allow for @ sign in username.
20201
202022007-07-22 Nick Roberts <nickrob@snap.net.nz>
20203
20204 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20205 remote default-directory.
20206
20207 * buffer.c (mode-line-format): Describe above case in doc string.
20208
202092007-07-20 Eli Zaretskii <eliz@gnu.org>
20210
20211 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20212 Define if not defined.
20213
202142007-07-18 Jason Rumney <jasonr@gnu.org>
20215
20216 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20217
202182007-07-18 Richard Stallman <rms@gnu.org>
20219
20220 * data.c (Fsetq_default): Doc fix.
20221
20222 * eval.c (Fsetq): Doc fix.
20223
202242007-07-18 Juanma Barranquero <lekktu@gmail.com>
20225
20226 * coding.c (Ffind_operation_coding_system):
20227 * eval.c (For, Fand): Doc fixes.
20228 Reported by Johan Bockgård.
20229
202302007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20231
20232 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20233
20234 * xterm.h: Declare x_ewmh_activate_frame.
20235
20236 * xterm.c (x_ewmh_activate_frame): New function.
20237 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20238
202392007-07-17 Martin Rudalics <rudalics@gmx.at>
20240
20241 * window.c (Fdisplay_buffer): If largest or LRU window is the
20242 only window, split it even if it is not eligible for splitting.
20243 This restores the original behavior broken by the 2007-07-15
20244 change.
20245
202462007-07-17 Glenn Morris <rgm@gnu.org>
20247
20248 * abbrev.c (abbrev_check_chars): New function.
20249 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20250 Call abbrev_check_chars to check abbrev characters are word
20251 constituents. Doc fix.
20252
202532007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20254
20255 * process.c (Fstart_process, Fmake_network_process)
20256 (read_process_output): Fix up last changes.
20257
202582007-07-16 Eli Zaretskii <eliz@gnu.org>
20259
20260 * makefile.w32-in (clean): Don't delete *~.
20261
202622007-07-16 Andreas Schwab <schwab@suse.de>
20263
20264 * window.c (Fdisplay_buffer): Use NILP.
20265 (Fset_window_scroll_bars): Likewise.
20266
202672007-07-15 Martin Rudalics <rudalics@gmx.at>
20268
20269 * window.c (window_min_size_2): New function.
20270 (window_min_size_1, size_window, Fdisplay_buffer)
20271 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20272 windows without mode- or header-lines when window-min-height is
20273 too small.
20274 (size_window): Reset nodelete_p after testing it, following an
20275 earlier note by Kim F. Storm.
20276 (display_buffer): Do not set split_height_threshold to twice the
20277 value of window_min_height to avoid changing the value of a
20278 customizable variable. Rather explicitly check whether the
20279 height of the window that shall be splitted is at least as large
20280 as split_height_threshold.
20281 (Fwindow_full_width_p): New defun.
20282 (syms_of_window): Defsubr it.
20283
20284 * window.h: Add EXFUN for Fwindow_full_width_p.
20285
202862007-07-14 Jason Rumney <jasonr@gnu.org>
20287
20288 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20289
202902007-07-14 Richard Stallman <rms@gnu.org>
20291
20292 * eval.c (maybe_call_debugger): New function.
20293 (find_handler_clause): Use maybe_call_debugger.
20294 Call it when the handler says `debug'.
20295 Eliminate DEBUGGER_VALUE_PTR.
20296 (Fsignal): Eliminate debugger_value.
20297 (Qdebug): New variable.
20298 (syms_of_eval): Initialize it.
20299
203002007-07-14 Juanma Barranquero <lekktu@gmail.com>
20301
20302 * eval.c (Fprogn):
20303 * keyboard.c (Ftrack_mouse):
20304 * print.c (Fwith_output_to_temp_buffer):
20305 * window.c (Fsave_window_excursion): Doc fix.
20306
203072007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20308
20309 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20310
203112007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20312
20313 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20314 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20315 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20316 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20317 Remove unused encoding_carryover.
20318 * process.c: Adjust all functions accordingly.
20319
203202007-07-12 Richard Stallman <rms@gnu.org>
20321
20322 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20323
203242007-07-11 Jason Rumney <jasonr@gnu.org>
20325
20326 * makefile.w32-in (LIBS): Include OLE32.
20327
20328 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20329 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20330
203312007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20332
20333 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20334 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20335 from a Lisp_Object into a bare pointer.
20336 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20337 Adjust the code correspondingly.
20338
20339 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20340
20341 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20342 (term_show_mouse_face): Remove unused var `j'.
20343 (handle_one_term_event): Remove unused vars `i' and `j'.
20344 Don't cast return value of ttyname since it's not necessary.
20345
203462007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20347
20348 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20349 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20350
20351 * fns.c (map_char_table): Use an array of int for `indices' rather than
20352 an array of Lisp_Objects (which are only ever integers anyway).
20353 (Fmap_char_table): Update caller.
20354 * lisp.h: Update prototype.
20355 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20356 * fontset.c (Ffontset_info):
20357 * casetab.c (set_case_table): Update callers.
20358
20359 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20360
20361 * keymap.c (struct accessible_keymaps_data)
20362 (struct where_is_internal_data): New structures.
20363 (accessible_keymaps_1, where_is_internal_1): Use them to change
20364 interface to adhere to the one used by map_keymap.
20365 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20366 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20367
20368 * keymap.h (map_keymap_function_t): More informative prototype.
20369
203702007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20371
20372 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20373 (looking_at_1): Don't change search_regs and last_thing_searched
20374 if `inhibit-changing-match-data' is non-nil.
20375 (string_match_1, search_buffer, set_search_regs): Likewise.
20376 (syms_of_search): Add Lisp level definition for
20377 `inhibit-changing-match-data' and set it to nil.
20378 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20379 start and end of the match, instead of using values in search_regs.
20380
203812007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20382
20383 * minibuf.c (Fcompleting_read): New value `confirm-only'
20384 for `require-match'.
20385
203862007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20387
20388 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20389 part of the 2007-06-27 change to syms_of_fileio.
20390
203912007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20392
20393 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20394 Check WINDOWP before using XWINDOW. Consolidate return statements.
20395
203962007-06-27 Richard Stallman <rms@gnu.org>
20397
20398 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20399
204002007-06-27 Juanma Barranquero <lekktu@gmail.com>
20401
20402 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20403
204042007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20405
20406 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20407 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20408 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20409 (_free_internal, memalign): Use them.
20410 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20411 Initialize to PTHREAD_MUTEX_INITIALIZER.
20412 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20413 (morecore_nolock): Rename from morecore. All uses changed.
20414 Use only nolock versions of internal allocation functions.
20415 (_malloc_internal_nolock, _realloc_internal_nolock)
20416 (_free_internal_nolock): New functions created from
20417 _malloc_internal, _realloc_internal, and _free_internal.
20418 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20419 Copy hook value to automatic variable before its use.
20420 (memalign): Copy hook value to automatic variable before its use.
20421
204222007-06-26 Kenichi Handa <handa@m17n.org>
20423
20424 * coding.c (Ffind_operation_coding_system): Docstring improved.
20425 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20426
204272007-06-25 David Kastrup <dak@gnu.org>
20428
20429 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20430 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20431 cater for additional parameter.
20432
20433 * keymap.h: Adjust number of parameters to `current-active-maps'.
20434
20435 * doc.c (Fsubstitute_command_keys): Adjust call of
20436 `current-active-maps'.
20437
204382007-06-25 David Kastrup <dak@gnu.org>
20439
20440 * callint.c (Fcall_interactively): Make the parsing of interactive
20441 specs somewhat more readable.
20442
204432007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20444
20445 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20446 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20447 if extended background has already been filled.
20448
204492007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20450
20451 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20452 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20453
20454 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20455 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20456 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20457 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20458 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20459 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20460 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20461 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20462 Run timers during dialog popup.
20463 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20464
204652007-06-21 Jason Rumney <jasonr@gnu.org>
20466
20467 * image.c (convert_mono_to_color_image): Swap fore and background.
20468
204692007-06-20 Jason Rumney <jasonr@gnu.org>
20470
20471 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20472 (w32_free_bdf_font): Unmap memory not handle.
20473
204742007-06-20 Sam Steingold <sds@gnu.org>
20475
20476 * gmalloc.c (__morecore): Fix the declaration to comply with the
20477 definition.
20478
204792007-06-20 Juanma Barranquero <lekktu@gmail.com>
20480
20481 * w32term.c (w32_delete_display): Remove leftover declaration.
20482 (w32_define_cursor, w32_initialize): Make static.
20483
20484 * w32.c (_wsa_errlist): Fix typo in error message.
20485 (init_environment): Ignore any environment variable from the
20486 registry having a null value.
20487
204882007-06-20 Glenn Morris <rgm@gnu.org>
20489
20490 * Makefile.in (LIBGIF): Default to -lgif.
20491
204922007-06-17 Jason Rumney <jasonr@gnu.org>
20493
20494 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20495 unicode strings.
20496
204972007-06-16 Juanma Barranquero <lekktu@gmail.com>
20498
20499 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20500 Fix typo in docstring.
20501
205022007-06-16 Eli Zaretskii <eliz@gnu.org>
20503
20504 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20505 and their keybindings.
20506
205072007-06-15 Chong Yidong <cyd@stupidchicken.com>
20508
20509 * composite.c (update_compositions): Fix last fix.
20510
205112007-06-14 Jason Rumney <jasonr@gnu.org>
20512
20513 * w32.c (get_process_times_fn): New function pointer.
20514 (globals_of_w32): Intialize it if present in kernel32.dll.
20515 (w32_get_internal_run_time): New function.
20516
20517 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20518
205192007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20520
20521 * composite.c (update_compositions): Check the validness of
20522 compositions.
20523
205242007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20525
20526 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20527 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20528
20529 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20530 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20531
20532 * macgui.h (USE_MAC_TOOLBAR): New define.
20533
20534 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20535 Return immediately unless popup is activated.
20536
20537 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20538 background to scroll bar gap.
20539 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20540 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20541 scroll bars on frame edge. Check fringe background extension.
20542 Don't clear extended fringe background area.
20543 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20544 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20545 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20546 [USE_MAC_TOOLBAR]: New macros.
20547 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20548 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20549 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20550 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20551 [USE_MAC_TOOLBAR]: New functions.
20552 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20553 manually if previous repositioning has failed.
20554 (mac_handle_keyboard_event): Use precomputed event kind.
20555 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20556 as tool bar item click. Handle mouse movement over tool bar items.
20557
20558 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20559 toolbar_win_gravity.
20560 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20561 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20562 Add externs.
20563
20564 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20565 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20566
205672007-06-14 Chong Yidong <cyd@stupidchicken.com>
20568
20569 * image.c (search_image_cache): Remove unused variable.
20570
205712007-06-13 Chong Yidong <cyd@stupidchicken.com>
20572
20573 * xfns.c, xmenu.c: Link to xaw3d if available.
20574
205752007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20576
20577 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20578 frame_foreground and frame_background.
20579
20580 * image.c (lookup_image): Save frame foreground and background colors.
20581 (search_image_cache): Check if saved and current frame colors match.
20582
205832007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20584
20585 * regex.c (regex_compile): Remove the `regnum' counter.
20586 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20587
205882007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20589
20590 * term.c: Include intervals.h to declare Fget_text_property.
20591
205922007-06-10 Jason Rumney <jasonr@gnu.org>
20593
20594 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20595
205962007-06-08 Juanma Barranquero <lekktu@gmail.com>
20597
20598 * callint.c (Fcall_interactively):
20599 * editfns.c (Fdelete_and_extract_region):
20600 * fileio.c (Fread_file_name):
20601 * fns.c (Fmapconcat):
20602 * keyboard.c (cmd_error_internal):
20603 * keymap.c (Fkey_description):
20604 * lread.c (openp):
20605 * minibuf.c (read_minibuf):
20606 * search.c (wordify):
20607 * sunfns.c (sel_read):
20608 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20609 * xfns.c (x_default_scroll_bar_color_parameter):
20610 * xmenu.c (menu_help_callback):
20611 * xselect.c (Fx_get_atom_name):
20612 * xterm.c (x_term_init): Use empty_unibyte_string.
20613
206142007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20615
20616 * alloc.c (init_strings): Initialize canonical empty strings.
20617 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20618 canonical empty string when the requested size is 0.
20619
20620 * emacs.c (empty_unibyte_string): Rename from empty_string.
20621 (empty_multibyte_string): New canonical empty string.
20622 (syms_of_emacs): Don't initialize empty_string.
20623
20624 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20625 string, if appropriate.
20626 (empty_unibyte_string, empty_multibyte_string): New externs.
20627 (empty_string): Remove extern.
20628
20629 * lread.c (syms_of_lread): Use empty_unibyte_string.
20630
206312007-06-07 Jason Rumney <jasonr@gnu.org>
20632
20633 * s/ms-w32.h: Don't define HAVE_TZNAME.
20634
20635 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20636
206372007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20638
20639 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20640
20641 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20642 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20643
20644 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20645 Don't call next handler.
20646 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20647 Remove argument. Install handler to application.
20648 (set_frame_menubar): Don't change deep_p.
20649 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20650 FRAME_OUTER_TO_INNER_DIFF_Y.
20651 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20652 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20653 [HAVE_DIALOGS]: New macros.
20654 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20655 Use them.
20656 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20657
20658 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20659 init_service_handler. All callers changed. Return OSStatus value.
20660
20661 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20662 All callers changed so as not to call SetPortWindowPort.
20663 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20664 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20665 mac_draw_string_common.
20666 (mac_draw_image_string_qd): Likewise.
20667 (mac_draw_string_common): Use them. Add INLINE.
20668 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20669 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20670 GetGlobalMouse.
20671 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20672 and FRAME_OUTER_TO_INNER_DIFF_Y.
20673 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20674 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20675 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20676 repositioning window to mac_handle_window_event.
20677 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20678 saving window location to mac_handle_window_event
20679 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20680 (install_menu_target_item_handler): Remove argument in extern.
20681 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20682 Also accept command events.
20683 (do_keystroke): New function created from XTread_socket.
20684 (init_command_handler): Remove functions.
20685 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20686 and save window location by kEventWindowShowing and kEventWindowHiding
20687 handlers here. Don't call next handler for window state change and
20688 focus events.
20689 (mac_handle_application_event, mac_handle_keyboard_event)
20690 [TARGET_API_MAC_CARBON]: New functions.
20691 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20692 kEventWindowShowing and kEventWindowHiding events. Move installation
20693 of mouse, font, text input and menu target item handlers to
20694 install_application_handler.
20695 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20696 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20697 New function.
20698 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20699 Register it.
20700 (XTread_socket) [TARGET_API_MAC_CARBON]:
20701 Consolidate SendEventToEventTarget calls.
20702 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20703 Move application activation handler to mac_handle_application_event.
20704 Move keyboard handler to mac_handle_keyboard_event.
20705 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20706 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20707 init_command_handler. Call install_application_handler.
20708
20709 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20710 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20711
207122007-06-07 Glenn Morris <rgm@gnu.org>
20713
20714 * emacs.c (main): Use `emacs-copyright' in --version output.
20715
207162007-06-06 Chong Yidong <cyd@stupidchicken.com>
20717
20718 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20719
207202007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20721
20722 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20723
20724 * macgui.h: Replace WindowPtr with WindowRef.
20725
20726 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20727 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20728 Replace ControlHandle with ControlRef.
20729 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20730
20731 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20732 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20733 Replace ControlHandle with ControlRef.
20734 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20735 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20736
20737 * macterm.h (struct scroll_bar): Rename member control_handle_low
20738 and control_handle_high to control_ref_low and control_ref_high.
20739 All uses changed.
20740 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20741 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20742 respectively. All uses changed.
20743 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20744 (install_window_handler, remove_window_handler): Replace WindowPtr
20745 with WindowRef in externs.
20746
207472007-06-05 Juanma Barranquero <lekktu@gmail.com>
20748
20749 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20750
207512007-06-03 Nick Roberts <nickrob@snap.net.nz>
20752
20753 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20754
20755 * frame.c (Fmouse_position, Fmouse_pixel_position):
20756 Condition on HAVE_GPM too.
20757
20758 * term.c (term_mouse_highlight): Remove unused variables.
20759 (Fterm_open_connection): Set gpm_zerobased to 1.
20760 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20761 Use zero based co-ordinates.
20762 (handle_one_term_event): Report a drag as mouse movement too.
20763
20764 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20765
207662007-06-03 Chong Yidong <cyd@stupidchicken.com>
20767
20768 * image.c (search_image_cache): New function. Require background
20769 color match if background color is unspecified in the image spec.
20770 (uncache_image, lookup_image): Use it.
20771
207722007-06-01 Juanma Barranquero <lekktu@gmail.com>
20773
20774 * window.c (Fshrink_window): Reflow docstring.
20775
207762007-06-02 Chong Yidong <cyd@stupidchicken.com>
20777
20778 * Version 22.1 released.
20779
207802007-06-01 Richard Stallman <rms@gnu.org>
20781
20782 * xfns.c (x_encode_text): Add GCPRO.
20783
207842007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20785
20786 * xfns.c (x_set_name_internal): Save encoded name before
20787 x_encode_text in case string data is relocated.
20788
207892007-05-31 Richard Stallman <rms@gnu.org>
20790
20791 * buffer.c (syms_of_buffer): Doc fix.
20792
207932007-05-30 Nick Roberts <nickrob@snap.net.nz>
20794
20795 * sysdep.c (init_sys_modes): Add rather than replace with
20796 O_NONBLOCK.
20797
20798 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20799 term_mouse_moveto.
20800
20801 * termhooks.h (term_mouse_moveto): New extern.
20802
20803 * term.c (mouse_face_window): Rename...
20804 (Qmouse_face_window): ...to this.
20805 (term_show_mouse_face, term_clear_mouse_face)
20806 (term_mouse_highlight): Use Qmouse_face_window.
20807 (term_mouse_moveto): New function.
20808 (term_mouse_position): Make it work.
20809 (syms_of_term): Uncomment assignment to mouse_position_hook.
20810 Staticpro Qmouse_face_window.
20811
208122007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20813
20814 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20815 around current_column call.
20816
208172007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20818
20819 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20820 * xdisp.c (next_element_from_buffer):
20821 * window.c (delete_window):
20822 * term.c (term_mouse_highlight):
20823 * msdos.c (getdefdir):
20824 * macterm.c (mac_create_bitmap_from_bitmap_data)
20825 (init_font_name_table):
20826 * fns.c (Fsxhash):
20827 * data.c (Fmake_local_variable):
20828 * ccl.c (ccl_driver): Likewise.
20829
208302007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20831
20832 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20833 Call mac_wakeup_from_rne on window size change.
20834
208352007-05-25 Chong Yidong <cyd@stupidchicken.com>
20836
20837 * image.c (uncache_image): Fix typo.
20838
208392007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20840
20841 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20842
208432007-05-22 Richard Stallman <rms@gnu.org>
20844
20845 * xterm.c (x_connection_closed): Remove NO_RETURN.
20846
208472007-05-22 Martin Rudalics <rudalics@gmx.at>
20848
20849 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20850
208512007-05-21 Chong Yidong <cyd@stupidchicken.com>
20852
20853 * image.c (uncache_image): New function.
20854 (Fimage_refresh): New function.
20855
208562007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20857
20858 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20859
208602007-05-20 Nick Roberts <nickrob@snap.net.nz>
20861
20862 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20863 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20864
208652007-05-20 Nick Roberts <nickrob@snap.net.nz>
20866
20867 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20868 conditional on [HAVE_GPM_H].
20869
208702007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20871
20872 * syntax.c (skip_chars): Update syntax-table only after we checked that
20873 the new location is valid.
20874
208752007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20876
20877 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20878 mac_get_window_bounds.
20879
208802007-05-20 Nick Roberts <nickrob@snap.net.nz>
20881
20882 * Makefile.in (LIBGPM): Allow it to be set from configure.
20883 If set then link Emacs with it.
20884
20885 * config.in: Regenerate.
20886
20887 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20888 New externs.
20889
20890 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20891 Include gpm.h.
20892 (handle_one_term_event, term_gpm): New externs.
20893
20894 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20895 and allow it to be interrupted by SIGIO.
20896
20897 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20898 (wait_reading_process_output): Wait on gpm_fd too.
20899 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20900 (add_gpm_wait_descriptor_called_flag): New variable.
20901 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20902
20903 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20904 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20905 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20906 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20907 (make_lispy_event): Add case GPM_CLICK_EVENT.
20908 (read_avail_input): Handle mouse input.
20909
20910 * term.c (write_glyphs_with_face): New function.
20911 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20912 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20913 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20914 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20915 (last_mouse_x, last_mouse_y): New variables.
20916 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20917 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20918 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20919 (Fterm_close_connection): New functions.
20920 (term_init): Initialise mouse_face_window.
20921
209222007-05-19 Chong Yidong <cyd@stupidchicken.com>
20923
20924 * xdisp.c (redisplay_window): If first window line is a
20925 continuation line, recompute the new window start instead of
20926 recentering.
20927
209282007-05-18 Glenn Morris <rgm@gnu.org>
20929
20930 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20931 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20932
209332007-05-17 Glenn Morris <rgm@gnu.org>
20934
20935 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20936
209372007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20938
20939 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20940 dead key repeat and up events.
20941
209422007-05-14 Chong Yidong <cyd@stupidchicken.com>
20943
20944 * image.c (pbm_load): Check image size for monochrome pbm.
20945
209462007-05-13 Chong Yidong <cyd@stupidchicken.com>
20947
20948 * xterm.c (XTread_socket): Revert last change.
20949
209502007-05-12 Chong Yidong <cyd@stupidchicken.com>
20951
20952 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20953
20954 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20955
209562007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20957
20958 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20959 mixup (YAILOM).
20960
209612007-05-07 Andreas Schwab <schwab@suse.de>
20962
20963 * keymap.c (Flookup_key): Fix typo in last change.
20964
209652007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20966
20967 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20968 mapping for unibyte strings.
20969
209702007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20971
20972 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20973 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20974
209752007-04-29 Richard Stallman <rms@gnu.org>
20976
20977 * insdel.c (replace_range): For undo, record insertion first.
20978
209792007-04-29 Andreas Schwab <schwab@suse.de>
20980
20981 * lisp.h (VECSIZE): Use OFFSETOF.
20982
209832007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20984
20985 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20986 disabled lines.
20987
209882007-04-28 Richard Stallman <rms@gnu.org>
20989
20990 * lread.c (read_escape): In a string, \s is always space.
20991
209922007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20993
20994 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20995
20996 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20997 submenu for menu bar items.
20998
20999See ChangeLog.10 for earlier changes.
21000
21001;; Local Variables:
21002;; coding: utf-8
21003;; add-log-time-zone-rule: t
aac0c6e3
MR
21004;; End:
21005
76b6f707 21006 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
21007
21008 This file is part of GNU Emacs.
21009
21010 GNU Emacs is free software: you can redistribute it and/or modify
21011 it under the terms of the GNU General Public License as published by
21012 the Free Software Foundation, either version 3 of the License, or
21013 (at your option) any later version.
21014
21015 GNU Emacs is distributed in the hope that it will be useful,
21016 but WITHOUT ANY WARRANTY; without even the implied warranty of
21017 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21018 GNU General Public License for more details.
21019
21020 You should have received a copy of the GNU General Public License
21021 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21022
21023;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40