Revert to old 23.1 logic of using the file at the mark as default.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f7ab0997
CY
12009-12-15 Chong Yidong <cyd@stupidchicken.com>
2
3 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
4 calling file-remote-p. Reported by Jim Meyering.
5
fa8e045a
MA
62009-12-15 Michael Albinus <michael.albinus@gmx.de>
7
8 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
9 avoid compiler warnings. (Bug #5217).
10
a63dba42
KH
112009-12-14 Kenichi Handa <handa@m17n.org>
12
13 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
14 in 8-bit encoding.
15
36acb2a7
JD
162009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
17
18 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
19 tooltip windows.
20
223e5fc6
JD
212009-12-13 Jan Djärv <jan.h.d@swipnet.se>
22
36acb2a7
JD
23 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
24 Xatom_net_window_type.
25
26 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
27 Xatom_net_window_type.
28
b8f00677
JD
29 * xterm.c (my_log_handler): New function.
30 (x_term_init): Set my_log_handler as log handler during gtk_init
31 so we can filter out buggy messages. (bug #5120).
32
e5f0bc9a
JD
33 * xterm.c (xg_scroll_callback): Parameter list changed,
34 use parameter GtkScrollType to determine scroll/line/page.
35 Only allow dragging if a button < 4 is grabbed (bug #5177).
36 (xg_end_scroll_callback): New function.
37 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
38 xg_create_scroll_bar.
39
40 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
41 (scroll_end_callback): Remove.
42 (xg_create_scroll_bar): Add parameter end_callback, bind it to
43 button-release-event. Replace value-changed event with change-value,
44 bug #5177,
45 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
46 bug #5177.
47
48 * gtkutil.h (XG_LAST_SB_DATA): Remove.
49 (xg_create_scroll_bar): Add GCallback end_callback.
50
223e5fc6
JD
51 * xftfont.c (QClcdfilter): New variable.
52 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
53 (syms_of_xftfont): Initialize QClcdfilter.
54
3c055b77
JD
552009-12-12 Jan Djärv <jan.h.d@swipnet.se>
56
57 * xsettings.c (struct xsettings): Add member seen.
58 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 59 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
60 (apply_xft_settings): Only update Xft settings with what member seen
61 indicates as new.
62
05fe33ff
EZ
632009-12-12 Eli Zaretskii <eliz@gnu.org>
64
65 * dispextern.h (struct text_pos): Use EMACS_INT;
66 (struct glyph): Use EMACS_INT for charpos.
67 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
68 region_beg_charpos, region_end_charpos,
69 redisplay_end_trigger_charpos, and also for
70 iterator_stack_entry.end_charpos and
71 iterator_stack_entry.stop_charpos.
72
e8d7886a
JD
732009-12-12 Jan Djärv <jan.h.d@swipnet.se>
74
75 * gtkutil.c (scroll_end_callback): New function (bug #5177)
76 (xg_create_scroll_bar): Call scroll_end_callback on button release
77 event (bug #5177).
78 (xg_event_is_for_scrollbar): != replaced with ==.
79
d0db2ec8
KH
802009-12-12 Kenichi Handa <handa@m17n.org>
81
82 * ftfont.c (struct ftfont_info): New member matrix.
83 (ftfont_open): Setup xftfont_info->matrix.
84 (MFLTFontFT): New member matrix.
85 (FLOOR, CEIL, ROUND): New macros.
86 (ftfont_get_metrics): Handle matrix transformation.
87 (ftfont_shape_by_flt): New arg matrix. Callers changed.
88
89 * xftfont.c (struct xftfont_info): New member matrix.
90 (xftfont_open): Setup xftfont_info->matrix.
91
922009-12-10 Kenichi Handa <handa@m17n.org>
93
94 * xdisp.c (append_space_for_newline): Consider face-remapping.
95
2cc7b62f
AS
962009-12-09 Andreas Schwab <schwab@linux-m68k.org>
97
b87dd913
AS
98 * xsettings.c: Include "keyboard.h".
99
eba5eb94
AS
100 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
101
2cc7b62f
AS
102 Fix implicit function declarations.
103 * cmds.c: Include "frame.h".
104 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
105 * frame.h: Move declaration of delete_frame outside of
106 HAVE_WINDOW_SYSTEM.
107
a4ef73c8
CY
1082009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
109
110 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
111
112 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
113 GTK builds.
114
944a300c
AS
1152009-12-07 Andreas Schwab <schwab@linux-m68k.org>
116
117 * unexelf.c (unexec): Don't search for .data twice.
118
022eef62
CY
1192009-12-05 Chong Yidong <cyd@stupidchicken.com>
120
426ac949
CY
121 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
122 if push failed.
123 (handle_line_prefix): Set avoid_cursor_p here. Check return value
124 of push_display_prop (Bug#5000).
125
022eef62
CY
126 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
127 value of font_list_entities (Bug#5085).
128
be95bee9
JB
1292009-12-04 Juanma Barranquero <lekktu@gmail.com>
130
131 Fix `string-to-number' to deal consistently with integers and floats.
132 * lread.c (isfloat_string): New argument ignore_trailing to accept all
133 trailing characters, not just whitespace.
134 (read1): Pass new arg 0 to keep old behavior.
135 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
136 trailing chars, as it is already done for integers. Doc fixes.
137 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
138
24c2d7ce
EZ
1392009-12-04 Eli Zaretskii <eliz@gnu.org>
140
141 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
142 unused enumeration value.
143
7e694795
EZ
1442009-12-03 Eli Zaretskii <eliz@gnu.org>
145
146 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
147
84b31826
SM
1482009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
149
150 * process.c (Fmake_network_process): Fix up the tests for
151 "connectionless socket", so they DTRT for seqpacket sockets as well.
152
f00c449b
SM
1532009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
154
155 * process.c (Qseqpacket): New symbol.
156 (HAVE_SEQPACKET): New macro.
157 (Fmake_network_process): Accept new :type `seqpacket'.
158 (init_process): Add `seqpacket' feature when applicable.
159 (syms_of_process): Initialize Qseqpacket.
160
8096a0ff
YM
1612009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
162
163 * font.c (font_load_for_lface, font_open_by_name): Don't store name
164 if entity is Qnil.
165
3e0de07f
SM
1662009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
167
168 * print.c (print_preprocess): Preprocess the key_and_value table of
169 hashtables, even tho they're "hidden" (bug#5082).
170
abeafb2a
JD
1712009-11-29 Jan Djärv <jan.h.d@swipnet.se>
172
173 * frame.c (frame_make_pointer_invisible)
174 (frame_make_pointer_visible): Declare f before statements.
175
4bf47195
EZ
1762009-11-28 Eli Zaretskii <eliz@gnu.org>
177
178 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
179 omitted dependencies on lisp.h.
180
c525b3f2
JD
1812009-11-27 Jan Djärv <jan.h.d@swipnet.se>
182
ece2d4ed
JD
183 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
184 is NULL.
185
186 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
187
188 * frame.c (frame_make_pointer_invisible)
3e0de07f 189 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
190 frame.
191
c525b3f2
JD
192 * search.c (simple_search): Remove warning by making *p const.
193
2f00e299
DN
1942009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
195
196 * xdisp.c (power_letter): Remove duplicate const.
197
084b049b
JD
1982009-11-25 Jan Djärv <jan.h.d@swipnet.se>
199
a1fadc6f
JD
200 * term.c (delete_tty): Remove check for last terminal (bug#4970).
201
084b049b
JD
202 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
203 defaults (bug #5025).
204
28259cac
SM
2052009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
206
207 * insdel.c (adjust_markers_for_delete): Move it in the
208 right direction! (bug#4803)
209
e8e14166
YM
2102009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
211
212 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
213
214 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
215
86677b58
GM
2162009-11-24 Glenn Morris <rgm@gnu.org>
217
218 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
219
581e51e8
JD
2202009-11-23 Jan Djärv <jan.h.d@swipnet.se>
221
cfc86c7a
JD
222 * Makefile.in: Must create deps for ecrt0.o in its rule.
223
581e51e8
JD
224 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
225 because that is what Gtk+ font dialog understands.
226
227 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
228 of Fcopy_sequence.
229 (font_open_by_name): Put name given into QCname for font-object returned.
230
231 * frame.c (x_set_font): Save original font name as frame parameter
232 font-parameter.
233
234 * xsettings.c (set_default_xft_settings): New function.
235 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
236 is found.
237
8b264ecb
AS
2382009-11-22 Andreas Schwab <schwab@linux-m68k.org>
239
240 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
241 searching backwards through multibyte buffer.
242
872870b2
JD
2432009-11-21 Jan Djärv <jan.h.d@swipnet.se>
244
245 * xterm.c: #include xgselect.h.
246 (x_initialize): Call xgselect_initialize.
247
248 * xsettings.c (something_changedCB): C++ comments => C comments.
249 (init_gconf): Do not deal with any GLib file descriptors, xg_select
250 does that now.
251
252 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
253 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
254 (scroll_bar_button_cb): Remove.
255 (create_menus): C++ comments => C comments. Don't bind grab-notify
256 event.
257 (xg_create_scroll_bar): Don't bind button-press-event and
258 button-release-event.
259
260 * process.c: Include xgselect.h if defined (USE_GTK) ||
261 defined (HAVE_GCONF).
262 (wait_reading_process_output): Call xg_select for the same condition.
263
264 * xgselect.c (xg_select): New function to better integrate with
265 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
266
267 * xgselect.h: New file, declare xg_select, xgselect_initialize.
268
269 * Makefile.in (XOBJ): Add xgselect.o.
270
62a6e103
AS
2712009-11-21 Andreas Schwab <schwab@linux-m68k.org>
272
273 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
274 ignored second argument. All callers changed.
275 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
276 (RE_STRING_CHAR_AND_LENGTH): Likewise.
277 * xdisp.c (string_char_and_length): Likewise.
278
b0ca0f33
DN
2792009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
280
281 * xterm.c (x_new_font):
282 * print.c (print_object):
283 * cmds.c (Fself_insert_command): Move declarations before statements.
284
dd5a6279
CY
2852009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
286
287 * s/cygwin.h: Remove unneeded linker flags.
288
4a8e097d
JD
2892009-11-20 Jan Djärv <jan.h.d@swipnet.se>
290
0d1d0d26
JD
291 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
292
293 * xsettings.h: Declare xsettings_get_system_font.
294
295 * xsettings.c (xsettings_get_system_font): New function.
296 (init_gconf): No use initiating gconf unless we have Xft also.
297 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
298 HAVE_GCONF.
299
4a8e097d
JD
300 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
301 add a blank entry so it doesn't collapse into nothing.
302
8ab1650e
SM
3032009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
304
305 * lread.c (Funintern): Comment out last change.
306
82c602f0
RS
3072009-11-19 Richard Stallman <rms@gnu.org>
308
309 * lread.c (Funintern): Error if symbol is t or nil.
310
87e32266
SM
3112009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
312
313 * insdel.c (make_gap_larger): Don't make as many assumptions about the
314 representation of Lisp integers.
315 Reported by MJ Chan <mjchan.inbox@gmail.com>.
316
1b9ac145
AS
3172009-11-17 Andreas Schwab <schwab@linux-m68k.org>
318
319 * lisp.h: Remove declaration of Ffont_get_system_font.
320 * xfns.c: Move include of "xsettings.h".
321 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
322
dfb3c4c6
JD
3232009-11-17 Jan Djärv <jan.h.d@swipnet.se>
324
87e32266
SM
325 * xsettings.c (something_changedCB, Ffont_get_system_font):
326 Check use_system_font.
dfb3c4c6
JD
327 (syms_of_xsettings): DEFVAR font-use-system-font.
328
9370c1d8
AS
3292009-11-17 Andreas Schwab <schwab@linux-m68k.org>
330
25fe851a
AS
331 * xfns.c (x_default_font_parameter): Remove dead assignment.
332
9370c1d8
AS
333 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
334
637fa988
JD
3352009-11-17 Jan Djärv <jan.h.d@swipnet.se>
336
87e32266 337 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 338 not have FC_LCD_*. #define them if not there.
a6eb20d8 339
87e32266 340 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 341
637fa988
JD
342 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
343
344 * xterm.c (handle_one_xevent): Call xft_settings_event for
345 ClientMessage, PropertyNotify and DestroyNotify.
346 (x_term_init): If we have XFT, get DPI from Xft.dpi.
347 Call xsettings_initialize.
348
349 * xftfont.c (xftfont_fix_match): New function.
350 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
351 Call xftfont_fix_match after XftFontMatch.
352
353 * xfont.c (xfont_driver): Initialize all members.
354
87e32266
SM
355 * xfns.c (x_default_font_parameter):
356 Try font from Ffont_get_system_font.
637fa988
JD
357 Do not get font from x_default_parameter if we got one from
358 Ffont_get_system_font.
87e32266 359 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
360
361 * w32font.c (w32font_driver): Initialize all members.
362
363 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
364
365 * lisp.h: Declare syms_of_xsettings.
366
87e32266
SM
367 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
368 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
369
370 * ftfont.c (ftfont_filter_properties): New function.
371
372 * frame.c (x_set_font): Remove unused variable lval.
373
87e32266 374 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
375
376 * font.c (font_put_extra): Don't return if val is nil, it means
377 boolean option is off.
378 (font_parse_fcname): Collect all extra properties in extra_props
379 and call filter_properties for all drivers with extra_props and
380 font as parameter.
87e32266
SM
381 (font_open_entity): Do not use cache, it does not pick up new
382 fontconfig settings like hinting.
637fa988
JD
383 (font_load_for_lface): If spec had a name in it, store it in entity.
384
385 * emacs.c (main): Call syms_of_xsettings
386
387 * config.in: HAVE_GCONF is new.
388
389 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
390 xsettings.o is new.
391
5a942932
KH
3922009-11-17 Kenichi Handa <handa@m17n.org>
393
394 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
395 back to the default font in case that no suitable font is found.
396
b7c7a4d1
SM
3972009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
398
399 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
400 Suggested by Chad Brown <yandros@mit.edu>.
401 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
402
072f1e39
JD
4032009-11-16 Jan Djärv <jan.h.d@swipnet.se>
404
405 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
406
5d1e70a2
AS
4072009-11-14 Andreas Schwab <schwab@linux-m68k.org>
408
87e32266 409 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 410
a53cfbe5
JD
4112009-11-14 Jan Djärv <jan.h.d@swipnet.se>
412
473a99b7
JD
413 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
414 has a parent.
415
a53cfbe5
JD
416 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
417 dependency files in deps/. Include those files into Makefile.
418
419 * config.in: Generated (AUTO_DEPEND).
420
f04bb9b2
MA
4212009-11-13 Michael Albinus <michael.albinus@gmx.de>
422
b7c7a4d1 423 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
424 Vdbus_registered_functions_table, because it contains also
425 properties. Fix docstring.
b7c7a4d1 426 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 427
8f11f7ec
SM
4282009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
429
430 * alloc.c (mark_object): Don't reprocess marked strings.
431 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
432 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
433
8a605fe8
KH
4342009-11-13 Kenichi Handa <handa@m17n.org>
435
8f11f7ec 436 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
437 semantics of Vword_combining_categories.
438 (Vword_combining_categories): Describe the slight change of the
439 semantics.
440
241c4680
EZ
4412009-11-13 Eli Zaretskii <eliz@gnu.org>
442
443 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
444
445 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
446
5d58e44c
SM
4472009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
448
449 * xdisp.c (syms_of_xdisp): Fix typo in last change.
450
5e13f9d3
JB
4512009-11-12 Juanma Barranquero <lekktu@gmail.com>
452
453 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
454
cf54c754
DR
4552009-11-11 David Reitter <david.reitter@gmail.com>
456
457 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
458 variables to fix 2009-11-09 change.
459
a4ada374
DN
4602009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
461
91433552
DN
462 * process.c (ifflag_def): Make flag_sym constant.
463 (Fnetwork_interface_info): Use a constant pointer.
464 (ifflag_table):
465 * xfns.c (cursor_bits):
466 * xdisp.c (power_letter):
467 * termcap.c (speeds, esctab):
468 * sysdep.c (baud_convert):
469 * keyboard.c (lispy_accent_codes, modifier_names):
470 * image.c (xbm_format, xpm_format, pbm_format, png_format)
471 (jpeg_format, tiff_format, gif_format, svg_format)
472 (interlace_start, interlace_increment, gs_format):
473 * gtkutil.c (separator_names):
474 * fringe.c (swap_nibble):
475 * fns.c (base64_value_to_char, base64_char_to_value):
476 * fileio.c (make_temp_name_tbl):
477 * coding.c (suffixes): Make constant.
478
f4265f6c
DN
479 * frame.c (make_initial_frame):
480 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
481 build_string.
482 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
483
04420943
DN
484 * s/freebsd.h:
485 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
486
0a5d24ae
DN
487 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
488 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
489
a4ada374
DN
490 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
491 * xterm.c (syms_of_xterm):
492 * xfaces.c (syms_of_xfaces):
493 * xdisp.c (syms_of_xdisp):
494 * lread.c (syms_of_lread):
495 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
496 build_string.
91433552 497
a4ada374
DN
498 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
499
af98fc7f
SM
5002009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
501
8ab1650e 502 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 503
e90292a9
JD
5042009-11-10 Jan Djärv <jan.h.d@swipnet.se>
505
506 * keyboard.h: Declare timer_check.
507
508 * keyboard.c (timer_check_2): New function that does what the old
509 timer_check did.
510 (timer_check): Call timer_check_2 until -1 or a non-zero time is
511 returned, i.e. don't return -1 with timers pending.
512
513 * process.c: Remove extern declaration of timer_check.
514
515 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
516 even if timer_check returned -1.
517
af98fc7f
SM
518 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
519 xg_dialog_data.
e90292a9
JD
520 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
521 the event loop.
522 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
523 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
524 Destroy the dialog after xg_dialog_run.
525
045b83c0
SM
5262009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
527
528 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
529
1fb99a3a
JD
5302009-11-10 Jan Djärv <jan.h.d@swipnet.se>
531
532 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
533
04e452cb
JB
5342009-11-09 Juanma Barranquero <lekktu@gmail.com>
535
536 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
537
ef7417fd
SM
5382009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
539
540 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
541 w32menu.c, and nsmenu.m.
542 Simplify the obsolete case where position is nil.
543 (cleanup_popup_menu): New function, moved from nsmenu.m.
544 (struct skp): Remove slot `notreal'.
545 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
546 adjust callers.
547 (single_menu_item): Adjust call to parse_menu_item.
548 (syms_of_menu): Defsubr x-popup-menu.
549 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
550 (keymap_panes): Don't export any more.
551 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
552 (xmenu_show): Declare.
553 * keyboard.c (parse_menu_item): Remove arg `notreal'.
554 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
555 * keyboard.h (parse_menu_item): Update declaration.
556 * xmenu.c (Fx_popup_menu): Remove.
557 (syms_of_xmenu): Don't defsubr x-popup-menu.
558 * w32menu.c (Fx_popup_menu): Remove.
559 (syms_of_w32menu): Don't defsubr x-popup-menu.
560 * nsmenu.m (cleanup_popup_menu): Remove.
561 (ns_menu_show): Rename from ns_popup_menu and remove all the code
562 moved to menu.c's Fx_popup_menu.
563 (Fx_popup_menu): Remove.
564 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
565 menu_items (it's done in menu.c already).
566
424d6179
SM
5672009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
568
569 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
570 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
571
c0df13a6 5722009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
573
574 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 575 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
576 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
577 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
578
2de9f71c
SM
5792009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
580
581 Let integers use up 2 tags to give them one extra bit and thus double
582 their range.
583 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
584 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
585 New macros.
586 (enum Lisp_Type): Use them. Give explicit values.
587 (Lisp_Type_Limit): Remove.
588 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
589 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
590 Pay attention to USE_2_TAGS_FOR_INTS.
591 (INTEGERP): Use LISP_INT_TAG_P.
592 * fns.c (internal_equal): Simplify the default case.
593 (sxhash): Use case_Lisp_Int.
594 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
595 any more.
596 (Ftype_of): Use case_Lisp_Int.
597 (store_symval_forwarding): Take into account the fact that Ints can
598 now have more than one tag.
599 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
600 buffer_slot_type_mismatch):
601 * xfaces.c (face_attr_equal_p):
602 * print.c (print_object):
603 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
604 Use case_Lisp_Int.
605
323637a2
EZ
6062009-11-06 Eli Zaretskii <eliz@gnu.org>
607
7ac65b38
EZ
608 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
609
323637a2
EZ
610 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
611 warning.
612
e511451f
JD
6132009-11-06 Jan Djärv <jan.h.d@swipnet.se>
614
615 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
616
617 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
618
619 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
620 ButtonPressRelease and MotionNotify (bug#4870).
621
5e2327cf
DN
6222009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
623
5adc433e
DN
624 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
625
d67b4f80
DN
626 * xterm.c (syms_of_xterm):
627 * xselect.c (syms_of_xselect):
628 * xmenu.c (syms_of_xmenu):
629 * xfns.c (syms_of_xfns):
630 * xfaces.c (syms_of_xfaces):
631 * xdisp.c (syms_of_xdisp):
632 * window.c (syms_of_window):
633 * w32fns.c (syms_of_w32fns):
634 * undo.c (syms_of_undo):
635 * textprop.c (syms_of_textprop):
636 * terminal.c (syms_of_terminal):
637 * syntax.c (syms_of_syntax):
638 * sound.c (syms_of_sound):
639 * search.c (syms_of_search):
640 * print.c (syms_of_print):
641 * minibuf.c (syms_of_minibuf):
642 * macros.c (syms_of_macros):
643 * keymap.c (syms_of_keymap, initial_define_key)
644 (initial_define_lispy_key):
645 * keyboard.c (syms_of_keyboard):
646 * insdel.c (syms_of_insdel):
647 * image.c (syms_of_image):
648 * fringe.c (syms_of_fringe):
649 * frame.c (syms_of_frame):
650 * fontset.c (syms_of_fontset):
651 * fns.c (syms_of_fns):
652 * fns.c (syms_of_fns):
653 * fileio.c (syms_of_fileio):
654 * fileio.c (syms_of_fileio):
655 * eval.c (syms_of_eval):
656 * doc.c (syms_of_doc):
657 * dispnew.c (syms_of_display):
658 * dired.c (syms_of_dired):
659 * dbusbind.c (syms_of_dbusbind):
660 * data.c (syms_of_data):
661 * composite.c (syms_of_composite):
662 * coding.c (syms_of_coding):
663 * cmds.c (syms_of_cmds):
664 * charset.c (define_charset_internal, syms_of_character):
665 * ccl.c (syms_of_ccl):
666 * category.c (syms_of_category, init_category_once):
667 * casetab.c (syms_of_casetab):
668 * casefiddle.c (syms_of_casefiddle):
669 * callint.c (syms_of_callint):
670 * bytecode.c (syms_of_bytecode):
671 * buffer.c (keys_of_buffer, syms_of_buffer):
672 * alloc.c (syms_of_alloc):
673 * process.c (syms_of_process, init_process):
674 * lread.c (syms_of_lread, init_obarray):
675 * font.c (build_style_table):
676 * emacs.c (syms_of_emacs, main): Replace calls to intern with
677 intern_c_string, calls to make_pure_string with
678 make_pure_c_string. Use pure_cons instead of Fcons.
679
5e2327cf
DN
680 * process.c (socket_options): Make it const.
681 (set_socket_option, init_process): Use a const pointer.
682
683 * lread.c (intern_c_string): New function.
684 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
685 (defvar_int): Uset it. Make the name const char*.
686
687 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
688 (defvar_int): Update prototypes.
689 (DEFUN, EXFUN): Support for prototypes is now required.
690 (intern_c_string): New prototype.
691 (struct Lisp_Subr): Make symbol_name constant.
692
693 * font.c (struct table_entry): Remove unused member. Make NAMES
694 constant.
695 (weight_table, slant_table, width_table): Make constant.
696
697 * emacs.c (struct standard_args): Make name and longname constant.
698
699 * character.h (DEFSYM): Use intern_c_string.
700
a56eaaef
DN
7012009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
702
703 * alloc.c (make_pure_c_string): New function.
704
705 * eval.c (Fautoload): Purecopy all arguments.
706
f6a07420
KH
7072009-11-05 Kenichi Handa <handa@m17n.org>
708
709 * fileio.c (Finsert_file_contents): Be sure set coding-system of
710 the buffer in case of replace.
711
5d28d4b1
DN
7122009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
713
714 * puresize.h (BASE_PURESIZE): Increase to 1620000.
715
b349d111
SM
7162009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
717
d528b1ce
SM
718 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
719 when applicable (bug#4851).
720
b349d111
SM
721 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
722 (P_): Support for prototypes is now required.
723
c38eb027
CY
7242009-10-31 Chong Yidong <cyd@stupidchicken.com>
725
726 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
727 (Bug#4827).
728
0405f8d9
EZ
7292009-10-30 Eli Zaretskii <eliz@gnu.org>
730
d528b1ce 731 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 732
ca0a881a
DN
7332009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
734
735 * puresize.h (BASE_PURESIZE): Increase to 1470000.
736
d528b1ce
SM
737 * lread.c (Fload): Purecopy the file name when building
738 Vpreloaded_file_list.
ca0a881a 739
47e0e0e4
JR
7402009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
741
742 * w32fns.c (syms_of_w32fns): Change default value of
743 w32-scroll-lock-modifier to nil. (Bug#2827)
744
057bce6f
JB
7452009-10-26 Juanma Barranquero <lekktu@gmail.com>
746
782a943e 747 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 748
242bc74c
AS
7492009-10-26 Andreas Schwab <schwab@redhat.com>
750
751 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
752
522d013a
JB
7532009-10-26 Juanma Barranquero <lekktu@gmail.com>
754
755 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
756 For delta < 0, skip check that only makes sense when the mini-window
757 is going to be enlarged. (Bug#4534)
758
18060980
CY
7592009-10-25 Chong Yidong <cyd@stupidchicken.com>
760
761 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
762 string in menu maps (Bug#4471).
763
fec8f0fe
CY
7642009-10-24 Chong Yidong <cyd@stupidchicken.com>
765
766 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
767 FRAME_NS_VIEW on terminal frames (Bug#4765).
768
10d66ec0
AS
7692009-10-24 Andreas Schwab <schwab@linux-m68k.org>
770
1cae01f7
AS
771 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
772 DBUS_TYPE_UINTnn separately to get proper sign extension.
773
58a12889
AS
774 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
775 can properly handle unsigned types.
d528b1ce 776 (make_uid, make_gid): Remove.
58a12889 777
987c9327
AS
778 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
779 types again.
780
522d013a 781 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
782 (system_process_attributes): Likewise.
783
905a9ed3
DN
7842009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
785
786 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
787
788 * eval.c (Fautoload): Purecopy the filename. Simplify.
789
790 * category.c (Fdefine_category): Purecopy docstring.
791
a599b3e8
AS
7922009-10-23 Andreas Schwab <schwab@linux-m68k.org>
793
7b792fc9
AS
794 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
795
a599b3e8
AS
796 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
797
b35ac83e
CY
7982009-10-23 Chong Yidong <cyd@stupidchicken.com>
799
800 * window.c (Fwindow_edges, Fwindow_pixel_edges)
801 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
802 (Bug#4775).
803
e8903e00
SM
8042009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
805
806 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
807 (init_fileio_once):
808 * lisp.h (init_fileio_once): Remove.
809 * emacs.c (main): Don't call init_fileio_once.
810
8f43cbf3
DN
8112009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
812
813 * puresize.h (BASE_PURESIZE): Increase to 1430000.
814
26898943
AS
8152009-10-21 Andreas Schwab <schwab@linux-m68k.org>
816
817 * doprnt.c (doprnt): Fix overflow check.
818
5c646d5a
JD
8192009-10-21 Jan Djärv <jan.h.d@swipnet.se>
820
3132a7ea
JD
821 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
822
5c646d5a
JD
823 * xterm.h (x_wait_for_event): Declare it.
824
825 * xterm.c (pending_event_wait): New variable.
826 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
827 see pending_event_wait.eventtype.
828 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
829 (x_new_font): Call change_frame_size with new rows/columns before we
830 try to resize the frame.
5c646d5a 831 (x_wait_for_event): New function.
d528b1ce
SM
832 (x_set_window_size_1): Don't change gravity unless change_gravity
833 is set.
5c646d5a
JD
834 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
835 don't change frame size, instead wait for the ConfigureNotify.
836 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
837 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
838 (x_initialize): Initialize pending_event_wait.
839
840 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
841 size.
842
843 * widget.c (EmacsFrameSetValues): Add comment.
844 (EmacsFrameSetCharSize): Just call x_set_window_size.
845
846 * gtkutil.c (xg_frame_set_char_size): Flush events and call
847 x_wait_for_event.
d528b1ce 848 (flush_and_sync): Remove again.
5c646d5a
JD
849 (xg_get_font_name): Suggest monospace if no previous font is known.
850
e9c1637d
SM
8512009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
852
853 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 854 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 855
5a72cccb
YM
8562009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
857
858 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
859 processing pending events when event is filtered for input method.
ab04798f 860 (Bug#3681)
5a72cccb 861
2629aa37
JB
8622009-10-20 Juanma Barranquero <lekktu@gmail.com>
863
864 * fns.c: Add #endif accidentally removed in previous change.
865
c3417a74
DN
8662009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
867
868 * fns.c: Remove code for unsupported system: MAC_OS.
869 * image.c: Likewise. Include setjmp.h.
870
9685cef2
JD
8712009-10-19 Jan Djärv <jan.h.d@swipnet.se>
872
873 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
874 pixel -1 (bug #4742).
875
d7306fe6
DN
8762009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
877
019d2c4c
DN
878 * process.c (create_pty): Remove conditionals for no longer
879 supported systems: UNIPLUS and RTU.
880
ee6bacd4
DN
881 * xterm.c:
882 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
883
d7306fe6
DN
884 * alloc.c: Do not define struct catchtag.
885 * eval.c: Move struct catchtag definition ...
886 * lisp.h: ... here.
887
888 * image.c: Move png.h #include earlier to avoid warnings.
889
890 * xterm.c:
891 * xsmfns.c:
892 * xselect.c:
893 * xrdb.c:
894 * xmenu.c:
895 * xftfont.c:
896 * xfont.c:
897 * xfns.c:
898 * xfaces.c:
899 * xdisp.c:
900 * window.c:
901 * widget.c:
902 * w32xfns.c:
903 * w32uniscribe.c:
904 * w32term.c:
905 * w32select.c:
906 * w32reg.c:
907 * w32proc.c:
908 * w32menu.c:
909 * w32inevt.c:
910 * w32heap.c:
911 * w32font.c:
912 * w32fns.c:
913 * w32console.c:
914 * w32.c:
915 * w16select.c:
916 * vm-limit.c:
917 * unexsol.c:
918 * unexec.c:
919 * unexcw.c:
920 * unexaix.c:
921 * undo.c:
922 * tparam.c:
923 * textprop.c:
924 * terminfo.c:
925 * terminal.c:
926 * termcap.c:
927 * term.c:
928 * syntax.c:
929 * sound.c:
930 * sheap.c:
931 * search.c:
932 * scroll.c:
933 * region-cache.c:
934 * regex.c:
935 * ralloc.c:
936 * process.c:
937 * print.c:
b024548b
DN
938 * nsterm.m:
939 * nsselect.m:
940 * nsmenu.m:
941 * nsimage.m:
942 * nsfont.m:
943 * nsfns.m:
d7306fe6
DN
944 * msdos.c:
945 * minibuf.c:
946 * menu.c:
947 * marker.c:
948 * macros.c:
949 * keymap.c:
950 * keyboard.c:
951 * intervals.c:
952 * insdel.c:
953 * indent.c:
954 * gtkutil.c:
955 * ftxfont.c:
956 * ftfont.c:
957 * fringe.c:
958 * frame.c:
959 * fontset.c:
960 * font.c:
961 * fns.c:
962 * floatfns.c:
963 * filelock.c:
964 * fileio.c:
965 * emacs.c:
966 * editfns.c:
967 * dosfns.c:
968 * doprnt.c:
969 * doc.c:
970 * dispnew.c:
971 * dired.c:
972 * dbusbind.c:
973 * data.c:
974 * composite.c:
975 * coding.c:
976 * cmds.c:
977 * cm.c:
978 * chartab.c:
979 * charset.c:
980 * character.c:
981 * ccl.c:
982 * category.c:
983 * casetab.c:
984 * casefiddle.c:
985 * callproc.c:
986 * callint.c:
987 * bytecode.c:
988 * buffer.c:
989 * atimer.c: Include setjmp.h. (Bug#4643)
990
fd5f21e6
SM
9912009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
992
4c0354d7
SM
993 Remove leftover table unibyte_to_multibyte_table.
994 * character.c (unibyte_to_multibyte_table): Remove.
995 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
996 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
997 * character.h (UNIBYTE_TO_CHAR): New macro.
998 (MAKE_CHAR_MULTIBYTE): Use it.
999 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
1000 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
1001 (message_dolog, set_message_1):
1002 * search.c (Freplace_match):
1003 * editfns.c (Fcompare_buffer_substrings):
1004 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
1005 (concat):
1006 * insdel.c (copy_text, count_size_as_multibyte):
1007 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
1008 * term.c (produce_glyphs):
1009 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
1010 * regex.c (RE_CHAR_TO_MULTIBYTE):
1011 * cmds.c (internal_self_insert):
1012 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
1013
fd5f21e6
SM
1014 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
1015
4418646e
DN
10162009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
1017
1018 * puresize.h (BASE_PURESIZE): Increase to 1310000.
1019
35f5c1d2
JB
10202009-10-16 Juanma Barranquero <lekktu@gmail.com>
1021
1022 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
1023
a0cd8f6b
AR
10242009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1025
1026 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
1027 still needed under Tiger.
1028
1029 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
1030
1031 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
1032 __Apple__.
1033
1034 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
1035
01a8d3fa
KH
10362009-10-15 Kenichi Handa <handa@m17n.org>
1037
1038 * print.c (print_object): Escape a symbol like "2E10" too.
1039
bf6c75c9 10402009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
1041
1042 Cleanups and changes for 64-bit compile under Snow Leopard.
1043 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
1044
1045 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
1046
c5959062 1047 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1048 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1049 cast argument.
1050 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1051 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1052
1053 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1054
1055 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1056 where appropriate.
1057
1058 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1059 where appropriate.
6e4780c5
JB
1060 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1061 Use stringWithUTF8String.
bf6c75c9
AR
1062 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1063
6e4780c5
JB
1064 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1065 Add formal protocol mention to inheritance.
bf6c75c9
AR
1066 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1067
6e4780c5
JB
1068 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1069 Fix printf format.
bf6c75c9
AR
1070 (ns_query_color): Use CGFloat where appropriate.
1071 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1072 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1073 argument.
1074
3d87f118
AR
1075 * config.in (NS_HAVE_NSINTEGER): Drop.
1076
a95c8102
AR
1077 * dbusbind.c (dbus-method-return-internal)
1078 (dbus-method-error-internal): Use long format in printf, and cast
1079 argument.
1080
1081 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1082 in printf, and cast argument.
1083
6873acca 1084 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1085 cast argument.
1086
9ec6f100
GM
10872009-10-11 Glenn Morris <rgm@gnu.org>
1088
1089 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1090
5be883cd
JD
10912009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1092
1093 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1094 menu bar with a small width so it doesn't enlarge the frame.
1095
d7a39b51
JB
10962009-10-08 Juanma Barranquero <lekktu@gmail.com>
1097
1098 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1099
0c2b6f8e
GM
11002009-10-06 Glenn Morris <rgm@gnu.org>
1101
1102 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1103 SOME_MACHINE_LISP (this enters indirectly via DOC).
1104
e02131a2
EZ
11052009-10-05 Eli Zaretskii <eliz@gnu.org>
1106
1107 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1108
b4744254
EZ
11092009-10-04 Eli Zaretskii <eliz@gnu.org>
1110
1111 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1112 Doc fix.
1113
dbf64827
JB
11142009-10-03 Martin Rudalics <rudalics@gmx.at>
1115
1116 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1117
e9a0aef8
MA
11182009-10-02 Michael Albinus <michael.albinus@gmx.de>
1119
d528b1ce 1120 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1121 used anymore outside fileio.c.
1122
1123 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1124
64eb2b56
JB
11252009-10-01 Juanma Barranquero <lekktu@gmail.com>
1126
1127 * lisp.h (Qdelete_directory_internal):
1128 Declare, instead of Qdelete_directory.
1129
1130 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1131
9d28c33e
SM
11322009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1133
1134 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1135
9d8f3bd9
MA
11362009-10-01 Michael Albinus <michael.albinus@gmx.de>
1137
9d28c33e 1138 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1139 Fdelete_directory. It is not a command anymore. It has no file
1140 name handler.
1141
9694740b
SM
11422009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1143
1144 * xdisp.c (get_next_display_element): Use an enum in last change.
1145
748e162f
KH
11462009-09-28 Kenichi Handa <handa@m17n.org>
1147
9694740b 1148 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1149 unibyte_display_via_language_environment in handling
1150 Vnobreak_char_display.
1151
17efd58d
AR
11522009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1153
1154 * nsterm.h (ns_app_name): New extern variable.
1155
1156 * nsterm.m (ns_app_name): New variable.
1157 (ns_term_init): Set and use it.
1158 (ns_term_shutdown): Use it.
1159
1160 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1161 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1162
1163 * nsfns.m (ns_set_name_iconic, ns_set_name)
1164 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1165 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1166
9694740b
SM
1167 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1168 Remove double-casting in client_data comparison.
31c2d412 1169
3208cb35
YM
11702009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1171
1172 * keyboard.c (make_lispy_event): Remember last wheel direction.
1173 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1174
b7d552d6
GM
11752009-09-26 Glenn Morris <rgm@gnu.org>
1176
1177 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1178 internal.elc. Add term/pc-win.elc.
1179 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1180 term/x-win.elc.
1181 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1182 term/w32-win.elc.
1183 (NS_SUPPORT): New.
1184 (lisp): Add NS_SUPPORT.
1185 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1186
4ff670a8
DR
11872009-09-25 David Reitter <david.reitter@gmail.com>
1188
1189 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1190 on Mac OS X 10.6+ (bug#4513).
1191
feabfb6c
JB
11922009-09-24 Juanma Barranquero <lekktu@gmail.com>
1193
1194 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1195 some parts of Emacs code (like font selection) don't grok them.
1196 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1197
de59072a
AS
11982009-09-24 Andreas Schwab <schwab@redhat.com>
1199
1200 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1201
a489517b
JB
12022009-09-24 Juanma Barranquero <lekktu@gmail.com>
1203
1204 * dired.c (Fdirectory_files): Fix typo in docstring.
1205
0592970c
AR
12062009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1207
1208 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1209 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1210 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1211 under GNUstep.
1212 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1213
1214 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1215 glyph advancement.
1216
48e8a88b
AR
12172009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1218
1219 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1220 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1221
1222 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1223 deleted (bug #4492).
1224
e14f0a78
AR
1225 * nsfont.m (Vns_reg_to_script): New lisp variable.
1226 (syms_of_nsfont): Declare it.
1227 (ns_registry_to_script): New function.
1228 (ns_get_req_script): Call it.
1229 (ns_findfonts): Don't give up on non-unicode registry.
1230
1231 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1232
5b650faa
SM
12332009-09-20 Tom Tromey <tromey@redhat.com>
1234
1235 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1236 batch mode (bug#4228).
1237
a489517b 12382009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1239
1240 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1241 carefully. (Bug #4339)
0bae4e09 1242
fcfe06f3
CY
12432009-09-18 Chong Yidong <cyd@stupidchicken.com>
1244
d798ba87 1245 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1246
31642728
AR
12472009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1248
1249 * emacs.c (inhibit_x_resources): Update doc string for NS.
1250 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1251 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1252
1253 * nsterm.h (ns_no_defaults): Remove.
1254
1255 * nsterm.m (ns_no_defaults): Remove.
1256 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1257 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1258 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1259 don't update the NSWindow itself.
1260 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1261 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1262
1263 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1264 ns_use_qd_smoothing.
1265
1266 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1267 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1268 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1269 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1270
8686ac71
JB
12712009-09-17 Juanma Barranquero <lekktu@gmail.com>
1272
1273 * emacs.c (inhibit_x_resources): New variable.
1274 (main) [HAVE_NS]: Don't process --quick command line option.
1275 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1276
1277 * lisp.h (inhibit_x_resources): Declare it extern.
1278
1279 * w32reg.c (x_get_string_resource):
1280 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1281
e227ba05
EZ
12822009-09-17 Eli Zaretskii <eliz@gnu.org>
1283
362654a6
JB
1284 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1285 Add lisp/term/internal.elc.
e227ba05 1286
742d40e8
SM
12872009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1288
1289 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1290 (bug#4461).
1291
005bd5a2
DN
12922009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1293
1294 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1295
1296 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1297 (OBJECTS_MACHINE): Remove, unused.
1298
f9af9719
SM
12992009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1300
1301 * frame.c (x_get_resource_string): Remove unused.
1302
0307c7d2
JD
13032009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1304
1305 * xterm.c (x_new_font): Call change_frame_size before calling
1306 x_set_window_size, in case frame size won't change.
1307
1308 * frame.c (x_set_font): Remove dead code.
1309
428b13d6
SM
13102009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1311
1312 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1313
5766c380
SM
13142009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1315
1316 * lread.c (Fload): Don't output a message after loading an obsolete
1317 package any more (done in Lisp now).
1318
2fd0161b
CY
13192009-09-12 Chong Yidong <cyd@stupidchicken.com>
1320
1321 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1322
bc5e75b6
SM
13232009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1324
1325 * keymap.c (Fwhere_is_internal): Use nconc2.
1326
c31c985e
AM
13272009-09-11 Alan Mackenzie <acm@muc.de>
1328
1329 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1330 batch mode.
1331
78012bd2
AS
13322009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1333
1334 * xdisp.c (display_mode_element): Detect cycles.
1335
9d889332
SM
13362009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1337
1338 * keymap.c (where_is_internal): Don't erroneously return nil right after
1339 filling the cache.
1340 (where_is_internal_1): Fix up typo.
1341
7ab5d780
GM
13422009-09-11 Glenn Morris <rgm@gnu.org>
1343
1344 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1345 share a common doc-string.
1346
5238a749
SM
13472009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1348
66d77eda
SM
1349 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1350 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1351
5238a749
SM
1352 * keymap.c (QCadvertised_binding): New constant.
1353 (syms_of_keymap): Initialize it.
1354 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1355 if applicable.
1356
19f48442
SM
13572009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1358
50d4ba39
SM
1359 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1360 (parse_menu_item): Streamline since bindings are recomputed all the
1361 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1362 more and don't support lmenu's menu-alias any more either.
1363
a88a5372
SM
1364 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1365 (where_is_internal): Strip it down to only traverse the keymaps.
1366 Move the cache handling from Fwhere_is_internal to here.
1367 (Fwhere_is_internal): Move the handling of remapping and the choice of
1368 the best binding from where_is_internal to here.
1369 Unify the cached/noncached paths, so remapping is also handled
1370 correctly when the cache is used, and so the cache can be used to
1371 speed up remap-handling when applicable.
1372 Give preference to non-remapped bindings.
1373 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1374 non-remapped bindings.
1375 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1376 command remapping.
1377
19f48442
SM
1378 * xdisp.c (display_mode_element): Move list length limit from 50 to
1379 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1380
599498c3 13812009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1382
1383 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1384
f9b7b5ac
SM
13852009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1386
a53af587
JB
1387 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1388 (Bug#4334)
1389
f9b7b5ac
SM
1390 * keymap.c (where_is_internal): Filter out shadowed remappings.
1391 Assume that where_is_internal returns unshadowed bindings to simplify
1392 the code and get rid of the gotos. Use ASIZE.
1393
04f4b72d
JD
13942009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1395
4da146f2
JD
1396 * xterm.c (x_focus_changed): If we get a focusout and pointer
1397 is invisible, make it visible.
1398
04f4b72d
JD
1399 * xterm.h: Remove condition for declaration of
1400 x_*_window_to_frame.
1401
7cef7ce3
SM
14022009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1403
1404 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1405 initial terminal as well.
1406
a54fa5b7
JD
14072009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1408
1409 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1410 x_menubar_window_to_frame.
a54fa5b7
JD
1411
1412 * xterm.c: Remove declarations also in xterm.h
1413 (XTmouse_position): Do not return valid positions
1414 for clicks in the menubar and the toolbar for Gtk+.
1415
1416 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1417 if the widget for the event has the same top level as a frame,
1418 return the frame.
1419 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1420 internal windows, bug #4122.
1421 (x_non_menubar_window_to_frame): Remove.
1422
5a021dd0
GM
14232009-09-02 Glenn Morris <rgm@gnu.org>
1424
1425 * buffer.c (default-major-mode): Move most of the doc from here...
1426 (major-mode): ... to here.
1427
548fe2f3
NR
14282009-08-30 Nick Roberts <nickrob@snap.net.nz>
1429
1430 * process.c (wait_reading_process_output): Keep the descriptor
1431 when pty is used by a non-child process, e.g., in I/O buffer of
1432 GDB this allows inferior to be restarted.
1433
e0840eef
EZ
14342009-08-29 Eli Zaretskii <eliz@gnu.org>
1435
1436 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1437 both branches into one.
1438
82e98df4
SM
14392009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1440
1441 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1442 (main): Use enable-multibyte-characters rather than
1443 default-enable-multibyte-characters. Output a warning message when
1444 running a unibyte session.
1445
890617cb
YM
14462009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1447
1448 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1449 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1450 (copy_data_segment): Also copy __program_vars section.
1451 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1452 (dump_it) [LC_DYLD_INFO]: Use it.
1453
1454 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1455
e7adeadc
EZ
14562009-08-28 Eli Zaretskii <eliz@gnu.org>
1457
1458 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1459 $(SRC)/buildobj.h.
1460 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1461 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1462 $(SRC)/buildobj.h.
1463 (clean): Add buildobj.h.
1464
3ed8bbdc
TZ
14652009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1466
1467 * print.c (print_object): Set escapeflag to 1 when printing
1468 hashtable keys and values.
1469
155a6764
SM
14702009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1471
1472 * lread.c (read_integer): Use doubles (and potentially return a float
1473 number) as we do in string-to-number.
1474 (read1): Use strtol to read integers, signal errors on strtol's
1475 overflow and use floats if strtol's output is too large for
1476 Elisp integers.
1477
877610de
EZ
14782009-08-27 Eli Zaretskii <eliz@gnu.org>
1479
1480 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1481 (make-buildobj-SH): Fix last change.
1482 (SRC): Move to before where it's first used.
1483
ef73e7be
KH
14842009-08-27 Kenichi Handa <handa@m17n.org>
1485
550c8289
KH
1486 * process.c (send_process): Use encode_coding_object instead of
1487 encode_coding_string to perform eol-conversion even if the string
1488 is unibyte.
1489
60afa08d
KH
1490 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1491 character.
1492
ef73e7be 1493 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1494 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1495
7b3a82d7
DN
14962009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1497
5654bf63
DN
1498 * callproc.c (Fcall_process): Remove always true #if.
1499
7b3a82d7
DN
1500 * lisp.h: Replace #if 0 code for checking with text pointing to
1501 the --enable-checking configure flag.
1502
1503 * emacs.c (main): Mention the --enable-profiling configure flag
1504 instead of using CFLAGS.
1505
878bde49
KR
15062009-08-26 Ken Raeburn <raeburn@raeburn.org>
1507
1508 * Makefile.in (buildobj.h): New target.
1509 (doc.o): Depend on it.
1510 (temacs${EXEEXT}): Don't generate buildobj.lst.
1511 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1512 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1513 ($(BLD)/doc.$(O)): Depend on it.
1514 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1515 provided by Eli Zaretskii.)
1516 ($(TEMACS)): Don't generate buildobj.lst.
1517 * doc.c: Include buildobj.h.
1518 (buildobj): New static variable.
1519 (Fsnarf_documentation): Use it, instead of opening and reading
1520 buildobj.lst.
1521
1574224c
MA
15222009-08-25 Michael Albinus <michael.albinus@gmx.de>
1523
1524 * dbusbind.c (Fdbus_call_method)
1525 (Fdbus_call_method_asynchronously): Use English numeric format for
1526 timeout values in doc string.
1527
d9da2f45
KH
15282009-08-25 Kenichi Handa <handa@m17n.org>
1529
ef73e7be
KH
1530 * alloc.c (mark_char_table): New function.
1531 (mark_object): Use mark_char_table for a char-table.
1532
d9da2f45
KH
1533 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1534 (CHAR_TABLE_REF): Use it.
1535
c8edcc01
KR
15362009-08-23 Ken Raeburn <raeburn@raeburn.org>
1537
1538 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1539 before invoking the newly build emacs to check for load-path
1540 shadowing.
1541
7763401b
GM
15422009-08-22 Glenn Morris <rgm@gnu.org>
1543
1544 * Makefile.in (bootstrap_exe): New variable.
1545 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1546 Use ${bootstrap_exe}.
1547
729eadda
EZ
15482009-08-22 Eli Zaretskii <eliz@gnu.org>
1549
1550 * coding.h (encode_coding_string): Don't encode unibyte strings.
1551 (Bug#4047)
1552
eb4c6ace
MA
15532009-08-22 Michael Albinus <michael.albinus@gmx.de>
1554
1555 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1556
1557 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1558 intended as hotfix only.
1559 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1560
36e34d1b
AR
15612009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1562
1563 * nsterm.m (ns_get_color): Update documentation properly for last
1564 change, and clean up loose ends in the code left by it. Fix
1565 longstanding bug with 16-bit hex parsing, and add support for
1566 yet another X11 format (rgb:r/g/b) for compatibility.
1567 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1568 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1569
f983eb8a
SM
15702009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1571
1572 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1573
3f56d3c6
MA
15742009-08-20 Michael Albinus <michael.albinus@gmx.de>
1575
1576 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1577 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1578 (xd_initialize, xd_pending_messages): Check, whether
1579 $DBUS_SESSION_BUS_ADDRESS is set.
1580
fb641d68
YM
15812009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1582
1583 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1584
1585 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1586
cf59a374
GM
15872009-08-20 Glenn Morris <rgm@gnu.org>
1588
1589 * emacs.c (system-type): Doc fix.
1590
1373f3be
SM
15912009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1592
1593 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1594 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1595
058ed861
MA
15962009-08-18 Michael Albinus <michael.albinus@gmx.de>
1597
1373f3be
SM
1598 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1599 New functions.
058ed861
MA
1600 (xd_initialize): Revert change from 2009-08-16.
1601
563a866e 16022009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1603
1604 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1605 font-group vector, return nil.
5fc05db0 1606
e42bdf01
CY
16072009-08-17 Chong Yidong <cyd@stupidchicken.com>
1608
1609 * process.c (status_notify): Don't perform redisplay.
1610 (Fdelete_process, list_processes_1, process_send_signal):
1611 Expliticly perform redisplay.
1612 (wait_reading_process_output): Always check process status, but
1613 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1614
4230ab74
KR
16152009-08-17 Ken Raeburn <raeburn@raeburn.org>
1616
1373f3be 1617 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1618 (XFLOAT_INIT): New macro for storing a float value.
1619 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1620 * fns.c (sxhash): Copy out the value of a float in order to
1621 examine its bytes.
1622 * dbusbind.c (xd_append_arg): Likewise.
1623
4230ab74
KR
1624 * emacs.c (main): Don't call syms_of_data twice.
1625
a0645cdd
MA
16262009-08-16 Michael Albinus <michael.albinus@gmx.de>
1627
1628 * dbusbind.c (xd_initialize): Add connection file descriptor to
1629 input_wait_mask, in order to let select() detect, whether a new
1630 message has been arrived.
ca4f31ea 1631 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1632
485db0ba
MA
16332009-08-15 Michael Albinus <michael.albinus@gmx.de>
1634
1373f3be
SM
1635 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1636 New functions.
485db0ba
MA
1637
1638 * lisp.h (xd_pending_messages): Declare.
1639
1640 * keyboard.c (readable_events): Call xd_pending_messages.
1641
b5b98ff4
CY
16422009-08-15 Chong Yidong <cyd@stupidchicken.com>
1643
1373f3be 1644 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1645
f8354c6e
CY
1646 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1647
b5b98ff4
CY
1648 * buffer.c (set_buffer_internal_1)
1649 (swap_out_buffer_local_variables): Check for unbound local
1650 variables (Bug#4138).
1651
8b9fc636
EZ
16522009-08-14 Eli Zaretskii <eliz@gnu.org>
1653
1654 * process.c (create_pty): Fix last change.
1655
ce959360
CY
16562009-08-13 Chong Yidong <cyd@stupidchicken.com>
1657
1658 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1659 (xbm_load_image): Caller changed.
64b807c9 1660 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1661
c7baf7e9
NR
16622009-08-13 Nick Roberts <nickrob@snap.net.nz>
1663
1664 * process.c (create_pty): New function.
1665 (Fstart_process): Use it to allow Emacs to just associate a pty
1666 with the buffer. See associated change in gdb-mi.el.
1667 (list_processes_1): Deal with no program name.
1668 (start_process_unwind): Use pid == -2 to mean no process.
1669
1ac9108a
SM
16702009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1671
1672 * cmds.c (nonundocount): New global variable.
1673 (keys_of_cmds): Initialize it.
1674 (Fself_insert_command): Use it to combine upto 20 sequential chars
1675 into a single undo entry, just like the Qself_insert_command code in
1676 keyboard.c does.
1677 Call frame_make_pointer_invisible, also like the Qself_insert_command
1678 code in keyboard.c does.
1679 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1680 than its own local replacement for it.
1681
e267324c
KR
16822009-08-10 Ken Raeburn <raeburn@raeburn.org>
1683
1ac9108a 1684 * fns.c (concat): Don't re-set string length to its current value.
77437343 1685
1ac9108a
SM
1686 * coding.h (decode_coding_string, encode_coding_string):
1687 Use SBYTES macro.
f0bed503 1688
1ac9108a 1689 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1690 (doprnt): Merge with doprnt1, discarding lispstrings code.
1691 * lisp.h (doprnt_lisp): Don't declare.
1692
416e006d
JL
16932009-08-07 Juri Linkov <juri@jurta.org>
1694
1695 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1696
6f7d5780
DN
16972009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1698
1699 * print.c (syms_of_print): Undo previous change.
1700
f19a0f5b
TZ
17012009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1702
1703 * lread.c (read1, syms_of_lread): Read hashtables back from the
1704 readable format.
1705
1706 * print.c (print_preprocess, print_object): Print hashtables fully
1707 and readably.
1708 (syms_of_print): Provide 'hashtable-print-readable.
1709
b9173dc2
AR
17102009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1711
1712 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1713 no family set.
1714 (nsfont_open): Handle case when entity has no family.
1715
1586503c
AR
17162009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1717
1718 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1719 element, not a list, for match case.
1720
087048cd
KH
17212009-07-28 Kenichi Handa <handa@m17n.org>
1722
1723 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1724 rigidly.
1725
1726 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1727 font_parse_xlfd. Check font properties more rigidly.
1728
780c2506
DN
17292009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1730
31fd7c5c
JB
1731 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1732 bsd-common.h.
780c2506 1733
a8c0cc18
KH
17342009-07-27 Kenichi Handa <handa@m17n.org>
1735
1736 * xfaces.c (face_with_height): Call font_clear_prop.
1737
4fbe2306
CY
17382009-07-26 Chong Yidong <cyd@stupidchicken.com>
1739
111d9af3
CY
1740 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1741
1742 * xterm.c (x_term_init): Use Qx.
1743
4fbe2306
CY
1744 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1745
1ac9108a 1746 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1747 (ns_get_color): Revert 2009-07-16 change.
1748
beb0b7f9
EZ
17492009-07-25 Eli Zaretskii <eliz@gnu.org>
1750
1751 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1752 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1753
2baf5e76
KR
17542009-07-25 Ken Raeburn <raeburn@raeburn.org>
1755
1ac9108a
SM
1756 * coding.h (decode_coding_string, encode_coding_string):
1757 Use SCHARS macro.
8890e5f5 1758
2baf5e76 1759 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1760 (load_depth): Delete.
2baf5e76
KR
1761 (Qload_in_progress): New variable.
1762 (load_unwind): Don't reference load_depth or load_in_progress.
1763 (Fload): Likewise; specbind Qload_in_progress instead.
1764 (init_lread): Don't initialize load_depth.
1765 (syms_of_lread): Initialize and protect Qload_in_progress.
1766
1395c6f5
AR
17672009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1768
1769 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1770
4e2f36cf
AR
17712009-07-23 Yavor Doganov <yavor@gnu.org>
1772
1773 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1774
5dd9a6f7
AR
17752009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1776
1777 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1778 Bugs 3792, 3720, 2402.
1779 (ns_lookup_indexed_color): Check for bad index.
1780 (ns_index_color): Init unused slot to 0.
1781 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1782 Bug 3714, possibly 3082.
5dd9a6f7 1783
c902b920
JR
17842009-07-22 Jason Rumney <jasonr@gnu.org>
1785
1ac9108a
SM
1786 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1787 Position IME window at cursor (Bug#2570).
c902b920
JR
1788 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1789 (globals_of_w32fns): Dynamically load functions required above.
1790
1791 * w32term.c (w32_draw_window_cursor): Send message to reposition
1792 any IME window.
1793
090101cf
CY
17942009-07-21 Chong Yidong <cyd@stupidchicken.com>
1795
1796 * fileio.c: Revert 2009-07-16 changes.
1797 (Vauto_save_include_big_deletions): New variable.
1798 (Fdo_auto_save): Disable auto-save only if
1799 auto-save-include-big-deletions is nil.
1800
e6583e3d
CY
18012009-07-21 Chong Yidong <cyd@stupidchicken.com>
1802
1803 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1804 the overflowed pixels into account (Bug#3879).
1805
ece435a5
KR
18062009-07-21 Ken Raeburn <raeburn@raeburn.org>
1807
1808 * lread.c (load_depth): New variable.
1809 (Fload, load_unwind, init_lread): Set it to the load recursion
1810 depth; set load_in_progress as a simple boolean based on the
1811 current load_depth. (Bug#3892)
1812
40b2d973
AR
18132009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1814
1815 * nsfont.m (ns_has_attribute): Remove.
1816 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1817
10be7e0d
JL
18182009-07-18 Juri Linkov <juri@jurta.org>
1819
1820 * process.c (Fset_process_query_on_exit_flag): Mention killing
1821 a buffer in docstring.
1822
fa055055
KH
18232009-07-17 Kenichi Handa <handa@m17n.org>
1824
1825 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1826
042f7b69
YM
18272009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1828
1829 * nsfns.m (Fns_set_alpha): Remove function.
1830 (syms_of_nsfns): Don't defsubr it.
1831
1832 * nsterm.m (ns_get_color): Remove incompatible color formats.
1833 (ns_color_to_lisp): Generate #rrggbb color format string.
1834
4be941e3
RS
18352009-07-16 Richard Stallman <rms@gnu.org>
1836
1837 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1838 (Fset_buffer_auto_saved): Handle save_length = -2.
1839
4e6b227d
CY
18402009-07-16 Chong Yidong <cyd@stupidchicken.com>
1841
1842 * xterm.c (Qx_gtk_map_stock): New var.
1843
1844 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1845 of calling intern each time.
1846
a1856973
YM
18472009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1848
1849 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1850 does tiling.
1851
1852 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1853
497e54d8
KH
18542009-07-14 Kenichi Handa <handa@m17n.org>
1855
72d36834
KH
1856 * font.c (font_vconcat_entity_vectors): New function.
1857 (struct font_sort_data): New member font_driver_preference.
1858 (font_compare): Check font_driver_preference.
1859 (font_sort_entities): The format of the first argument changed.
1860 (font_delete_unmatched): Likewise.
1861 (font_list_entities): The return type changed.
1862 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1863 (font_find_for_lface): Adjuste for the above changes.
1864 Don't suppress the checking of C even if the repertory supports it.
1865 (Flist_fonts): Adjust for the above changes.
72d36834 1866
1ac9108a
SM
1867 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1868 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1869 Reject a font who has adstyle property that is different from a
1870 langname derived from registry property.
1ac9108a 1871 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1872
b6046155
EZ
18732009-07-13 Eli Zaretskii <eliz@gnu.org>
1874
1875 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1876 local copy of dirfilename.
1877
fb6b6049
KH
18782009-07-13 Kenichi Handa <handa@m17n.org>
1879
e2402a5e
KH
1880 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1881 against max_char.
1882
fb6b6049
KH
1883 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1884 calling XSYMBOL (sym).
1885
65156807
EZ
18862009-07-11 Eli Zaretskii <eliz@gnu.org>
1887
1ac9108a
SM
1888 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1889 New function.
1890 (directory_files_internal) [WINDOWSNT]:
1891 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1892 the filesystem of the directory is fast or slow.
1893
1894 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1895 file name.
1896 (is_slow_fs): New function.
1897 (stat): Use it to determine whether to issue more system calls to
1898 get accurate file attributes, when w32-get-true-file-attributes is
1899 `local'.
1900
e0ab5fcf
JD
19012009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1902
1903 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1904 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1905 parameter font-parameter as default to the font dialog.
1906
784ceded
KH
19072009-07-10 Kenichi Handa <handa@m17n.org>
1908
1909 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1910
fb8edc0b
EZ
19112009-07-09 Eli Zaretskii <eliz@gnu.org>
1912
1ac9108a 1913 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1914
fb8edc0b
EZ
1915 * w32.c (stat): Treat UNC file names as residing on remote
1916 drives. (Bug#3542)
1917
635c75b1
KH
19182009-07-09 Kenichi Handa <handa@m17n.org>
1919
1920 * fontset.c (fontset_find_font): Fix previous change.
1921
c1d5ce94
MA
19222009-07-08 Michael Albinus <michael.albinus@gmx.de>
1923
1924 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1925 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1926 error flag.
1927
edb61b39
KH
19282009-07-08 Kenichi Handa <handa@m17n.org>
1929
374bf7e4
KH
1930 * fontset.c (fontset_find_font): Fix the logic of handling
1931 charset_matched.
1932 (font_for_char): Delete unused var.
1933 (generate_ascii_font_name): Delete it.
1934
edb61b39
KH
1935 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1936
1937 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1938 (encode_coding_sjis): Fix the code range check.
1939
0f3f018c
CY
19402009-07-07 Chong Yidong <cyd@stupidchicken.com>
1941
1942 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1943 (Fexpand_file_name): Copy string data properly (Bug#3772).
1944
fcaf6f3a
JD
19452009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1946
1947 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1948 first MapNotify.
1949
6809ca75
KH
19502009-07-07 Kenichi Handa <handa@m17n.org>
1951
1952 * character.h (unibyte_has_multibyte_table): Delete extern.
1953 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1954
1955 * charset.c (Fset_charset_priority): Update charset_unibyte.
1956 (syms_of_charset): Initialize charset_unibyte.
1957
1958 * character.c (unibyte_has_multibyte_table): Delete it.
1959 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1960 charset_unibyte.
1961 (multibyte_char_to_unibyte_safe): Likewise.
1962 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1963
1ac9108a 1964 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1965 (x_produce_glyphs): Likewise.
1966
1967 * .gdbinit (xcharset): Fix the treating $arg0.
1968
ad9e2d54
EZ
19692009-07-04 Eli Zaretskii <eliz@gnu.org>
1970
1971 Emulation of `getloadavg' on MS-Windows.
1972 * w32.c: Include float.h
1973 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1974 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1975 (get_native_system_info, get_system_times): New functions.
1976 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1977 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1978 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1979 g_b_init_get_system_times, and num_of_processors.
1980
0a3472c7
JR
19812009-07-03 Jason Rumney <jasonr@gnu.org>
1982
1983 * w32term.c (w32_initialize): Use standard types.
1984
80904120
EZ
19852009-07-03 Eli Zaretskii <eliz@gnu.org>
1986
1987 * dired.c (Ffile_attributes): Decode user and group names by the
1988 locale's encoding. (Bug#3443)
1989
6978862d
DN
19902009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1991
f8d23104
DN
1992 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1993 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1994
1995 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1996
1997 * term.c (init_tty): Remove spurious #ifdef.
1998
6978862d
DN
1999 * m/mips.h: Mention this file is also used for netbsd.
2000 * m/pmax.h: Remove file.
2001
e044e4fc
JD
20022009-07-03 Jan Djärv <jan.h.d@swipnet.se>
2003
2004 * xterm.h (struct x_display_info): Add invisible_cursor.
2005 (struct x_output): Add current_cursor.
2006
2007 * xterm.c (XTtoggle_invisible_pointer): New function.
2008 (x_define_frame_cursor): Don't define cursor if invisible or the
2009 same as before. Set current_cursor.
2010 (x_create_terminal): Set toggle_invisible_pointer_hook.
2011
2012 * xfns.c (make_invisible_cursor): New function.
2013 (x_set_mouse_color): Call make_invisible_cursor.
2014 Set current_cursor.
2015 (x_window): Set current_cursor.
2016
2017 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
2018
2019 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
2020 inserting a character.
2021 (read_avail_input): Call frame_make_pointer_visible.
2022
2023 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
2024 (frame_make_pointer_invisible, frame_make_pointer_visible):
2025 New functions.
e044e4fc
JD
2026 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
2027
2028 * frame.h: Declare frame_make_pointer_invisible and
2029 frame_make_pointer_visible.
2030 (struct frame): Add pointer_invisible.
2031
574c8efa
JD
20322009-07-02 Jan Djärv <jan.h.d@swipnet.se>
2033
7b507248
JD
2034 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
2035 frame isn't visible.
2036 (xg_frame_resized): If width/height is -1, get size of window
2037 from X server.
2038
2039 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
2040 for MapNotify.
2041
835bdaa7 2042 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 2043 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 2044 (flush_and_sync): Reintroduce.
574c8efa 2045
3f1c6666 20462009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 2047
31fd7c5c 2048 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2049
2050 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2051 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2052
2053 * frame.h: Declare Qsticky.
2054
cad9ef74
JD
2055 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2056
2057 * nsfns.m (ns_frame_parm_handlers): Ditto.
2058
2059 * frame.c: Declare Qsticky.
2060 (frame_parms): Add sticky.
2061
2062 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2063
2064 * xterm.h: Declare x_set_sticky.
2065
2066 * xterm.c (x_set_sticky): New function.
2067
69b16610
JD
2068 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2069 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2070 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2071
2072 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2073
2074 * frame.c: Qmaximized is new.
2075 (x_set_frame_parameters): Do not handle fullscreen specially.
2076 Only set width and height if explicitly set.
2077 (x_set_fullscreen): Handle Qmaximized.
2078 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2079 (syms_of_frame): Initialize Qmaximized.
2080
1ac9108a
SM
2081 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2082 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2083
2084 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2085 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2086 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2087 set gravity to NorthWestGravity when USE_GTK.
2088 (set_wm_state): New function.
31fd7c5c 2089 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2090 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2091 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2092 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2093 to x_real_positions and x_fullscreen_adjust.
2094
2095 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2096 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2097 flush_and_sync.
2098 (xg_height_changed): New function.
2099 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2100 and gtk_window_set_policy. Set frame gravity after parsing the
2101 geometry string.
3f1c6666
JD
2102 (xg_update_frame_menubar, free_frame_menubar)
2103 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2104 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2105 Remove calls to xg_frame_set_char_size.
2106
fd503d99
KH
21072009-07-01 Kenichi Handa <handa@m17n.org>
2108
2109 * keyboard.c (decode_keyboard_code): New function.
2110 (tty_read_avail_input): Decode the input bytes if necessary.
2111
1ac9108a
SM
2112 * coding.c (setup_coding_system):
2113 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2114 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2115 use Qno_conversion.
2116
24ed93fb
YM
21172009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2118
2119 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2120
99061dfc
CY
21212009-06-30 Chong Yidong <cyd@stupidchicken.com>
2122
1ac9108a 2123 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2124
ff90fbde
JR
21252009-06-30 Jason Rumney <jasonr@gnu.org>
2126
2127 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2128 is already loaded.
2129 Set user model ID if supported (bug#1849).
2130
5f445726
JM
21312009-06-29 Jim Meyering <meyering@redhat.com>
2132
2133 Remove useless if-before-xfree test.
2134 * nsfont.m (nsfont_close): Remove useless test.
2135 * term.c (delete_tty): Likewise.
2136 * w32.c (system_process_attributes): Likewise.
2137 * w32font.c (w32font_close): Likewise.
2138 * xfaces.c (x_free_gc): Likewise.
2139 * xselect.c (buffer): Likewise.
2140
b9607587
AS
21412009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2142
2143 * process.c (send_process): Keep decoded string in a local
2144 variable and protect it from GC. (Bug#3521)
2145
89ba96f4
EZ
21462009-06-28 Eli Zaretskii <eliz@gnu.org>
2147
2148 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2149 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2150
098a1589
CY
21512009-06-28 Chong Yidong <cyd@stupidchicken.com>
2152
485422be
CY
2153 * xdisp.c (start_display, handle_face_prop)
2154 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2155 (redisplay_window, try_window_id, produce_image_glyph):
2156 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2157
098a1589
CY
2158 * xterm.c (x_update_window_begin, x_new_focus_frame)
2159 (x_scroll_bar_handle_click, handle_one_xevent)
2160 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2161 (x_make_frame_visible, x_make_frame_invisible)
2162 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2163 code chunks that are now obsolete.
2164
78c38319
MA
21652009-06-28 Michael Albinus <michael.albinus@gmx.de>
2166
2167 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2168 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2169 for hours, when optimzation is enabled.
2170 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2171 (xd_read_message): Make them static.
2172
4189ed40
CY
21732009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2174
2175 * term.c (turn_on_face): Allow simultaneously bold and dim
2176 terminal faces (Bug#3530).
2177
cd9b5e16
CY
21782009-06-27 Chong Yidong <cyd@stupidchicken.com>
2179
4e23bedb
CY
2180 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2181
cd9b5e16
CY
2182 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2183 truncation glyphs (Bug#3686).
2184
07cc3c35
GM
21852009-06-27 Glenn Morris <rgm@gnu.org>
2186
2187 * m/pmax.h: Restore file, with only netbsd portions.
2188
31fd7c5c 21892009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2190
cd9b5e16 2191 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2192
42d4a64f
KH
21932009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2194
2195 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2196 the arg FORCE_SYMBOL.
2197
930fe55b 21982009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2199
2200 * fontset.c (fontset_find_font): When a usable rfont_def is found
2201 in a fallback font-group, make it the first element of the group.
2202
57ebc3fd
CY
22032009-06-24 Chong Yidong <cyd@stupidchicken.com>
2204
2205 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2206
f084f942
KH
22072009-06-24 Kenichi Handa <handa@m17n.org>
2208
2209 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2210 set for C.
2211 (fontset_font): Record the availability of a font for C both in
2212 the realized fontsets of the current one and the default one.
2213
2f686c87
DN
22142009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2215
2216 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2217 conditional, it is always defined on AIX.
2218
666e158e
MB
22192009-06-23 Miles Bader <miles@gnu.org>
2220
2221 * window.c (Vrecenter_redisplay): New variable.
2222 (syms_of_window): Initialize it.
2223 (Qtty): New extern declaration.
2224 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2225
c6da7cd2
JM
22262009-06-23 Jim Meyering <meyering@redhat.com>
2227
1ac9108a
SM
2228 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2229 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2230 pointer dereferences are guaranteed to be valid.
c6da7cd2 2231
678dca3d
KH
22322009-06-23 Kenichi Handa <handa@m17n.org>
2233
74d75424
KH
2234 * emacs.c (main): Call init_font ().
2235
2236 * font.h (Vfont_log): Extern it.
2237 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2238
2239 * font.c (font_sort_entities, font_list_entities)
2240 (font_matching_entity, font_open_entity)
2241 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2242 (Vfont_log): Delete static.
2243 (font_log_env_checked): Delete this variable.
2244 (font_add_log): Don't check font_log_env_checked.
2245 (font_deferred_log): Check Vfont_log.
2246 (init_font): New function.
2247
678dca3d
KH
2248 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2249
2250 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2251
2252 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2253
2254 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2255
2256 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2257 (face_for_char): Don't call font_deferred_log here.
2258 (font_for_char): Likewise.
2259
8a668709
CY
22602009-06-22 Chong Yidong <cyd@stupidchicken.com>
2261
9a01ee33
CY
2262 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2263 rather than its background_width for drawing the overline and
2264 underline (Bug#489).
2265
2266 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2267 rather than its background_width for drawing the overline and
2268 underline (Bug#489).
ec7c9926
CY
2269 (xg_default_icon_file): New variable.
2270 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2271 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2272
8a668709
CY
2273 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2274 (load_overlay_strings): Remove externs.
2275 (fast_find_position): Function deleted.
2276 (mouse_face_from_buffer_pos): New function, based on
2277 fast_find_position. Correctly handle before-strings,
2278 display-strings, and after-strings (Bug#1220).
2279 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2280
4d4c02d8
CY
22812009-06-21 Chong Yidong <cyd@stupidchicken.com>
2282
1ac9108a 2283 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2284 (move_it_in_display_line_to, move_it_in_display_line_to)
2285 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2286
70243478
CY
22872009-06-21 Chong Yidong <cyd@stupidchicken.com>
2288
2289 * Branch for 23.1.
2290
13087e59
JR
22912009-06-21 Jason Rumney <jasonr@gnu.org>
2292
2293 * w32term.c (keyboard_codepage): New static variable.
2294 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2295 (w32_read_socket) [WM_CHAR]: Use it to decode character
2296 input (bug#3237).
2297 (w32_initialize): Initialize it.
2298 (codepage_for_locale): New function.
2299
4735b74e
KR
23002009-06-20 Ken Raeburn <raeburn@raeburn.org>
2301
2302 * process.c (status_message): Pass Faset index argument as a lisp
2303 object, so as to work with USE_LISP_UNION_TYPE.
2304
0e727afa
YM
23052009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2306
2307 * coding.c (Ffind_coding_systems_region_internal):
2308 Cache checked characters.
2309
cf299835
KH
23102009-06-18 Kenichi Handa <handa@m17n.org>
2311
1ac9108a 2312 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2313
90f20d94
AS
23142009-06-18 Andreas Schwab <aschwab@redhat.com>
2315
2316 * xdisp.c (redisplay_internal): Check that the frame is still
2317 live after redisplay of its windows.
2318 (redisplay_windows): Check that the window is still live.
2319
7f1faf1c
KH
23202009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2321
2322 * coding.c (detect_coding_utf_16): Fix previous change.
2323
cc13543e
KH
23242009-06-16 Kenichi Handa <handa@m17n.org>
2325
2326 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2327 UTF-16 by checking the dispersion of Eth and Oth bytes.
2328
977b85f4
AS
23292009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2330
2331 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2332
66bd43d1
KH
23332009-06-15 Kenichi Handa <handa@m17n.org>
2334
2335 * process.c (status_message): Fix previous change. Be sure to
2336 decode a localized string.
2337
cb5ca9c5
YM
23382009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2339
2340 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2341 add comment explaining why.
2342
ec7709ba 23432009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2344
ec7709ba 2345 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2346
4b7f335c
AR
23472009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2348
2349 * nsfont.m (ns_attribute_value): Remove.
2350 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2351 (ns_has_attribute): Shrink the normal range.
2352 (ns_findfonts): Don't worry about requested spec in determining
2353 need for synthItal.
e41820ee 2354 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2355
73b26103
SZ
23562009-06-14 Seiji Zenitani <zenitani@mac.com>
2357
2358 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2359
5753e4da
KH
23602009-06-11 Kenichi Handa <handa@m17n.org>
2361
2362 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2363 overhang for the static composition case.
2364
3561b671
KH
23652009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2366
5753e4da
KH
2367 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2368 overhang for the automatic composition case.
2369
3561b671
KH
2370 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2371 composition case.
2372
852bbd41
CY
23732009-06-10 Chong Yidong <cyd@stupidchicken.com>
2374
2375 * xdisp.c (get_next_display_element): When handling wrap-prefix
2376 and line-prefix, treat \n as a control character (bug#3502).
2377
9903d1e6
KH
23782009-06-10 Kenichi Handa <handa@m17n.org>
2379
2380 * font.c (font_parse_family_registry): Fix for one-char foundry.
2381 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2382
0bcbaaaa
CY
23832009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2384
2385 * process.c (status_message): Fix handling of multibyte signal
2386 string (Bug#3499).
2387
40aa3f13
JM
23882009-06-09 Jim Meyering <meyering@redhat.com>
2389
1f80c7e2
CY
2390 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2391 color name is missing.
40aa3f13 2392
72d51285
KH
23932009-06-09 Kenichi Handa <handa@m17n.org>
2394
2395 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2396 FROM-CODE and TO-CODE are codepoints of CHARSET.
2397
c1d04d84
AR
23982009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2399
2400 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2401
24022009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2403
2404 Changes to support :script/:lang/:otf in NS font driver.
2405 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2406 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2407 indicate not part of font driver interface, and change callers.
2408 (ns_get_family): Remove pointless null check.
2409 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2410 ns_spec_to_descriptor, ns_descriptor_to_entity.
2411 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2412 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2413 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2414 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2415 (ns_get_req_script, ns_accumulate_script_ranges)
2416 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2417 New functions.
2418 (nsfont_list, nsfont_match): Use ns_findfonts.
2419 (nsfont_open): Use font descriptor instead of traits.
2420 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2421 (dump_glyphstring): Rename to ns_dump_glyphstring.
2422
c7eb9816
AR
2423 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2424
c1d04d84
AR
2425 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2426
2427 * fontset.c (fontset_from_font): Remove NS-specific code.
2428
ec7709ba 24292009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2430
2431 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2432 nonactive windows.
2433
31fd7c5c 24342009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2435
1ac9108a 2436 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2437
68852c13 24382009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2439
2440 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2441
6756cd1d
CY
24422009-06-07 Chong Yidong <cyd@stupidchicken.com>
2443
2444 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2445 account for the overflowing of newlines into the last glyph on the
2446 display line (Bug#3482).
2447
28bf482a
DR
24482009-06-05 David Reitter <david.reitter@gmail.com>
2449
ec7709ba
JB
2450 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2451 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2452 Fns_selection_exists_p, Fns_selection_owner_p.
2453
fdb55376
JR
24542009-06-03 Jason Rumney <jasonr@gnu.org>
2455
2456 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2457 available. (Bug#3379)
2458
05129fbe
KH
24592009-05-29 Kenichi Handa <handa@m17n.org>
2460
1ac9108a
SM
2461 * coding.c (get_translation_table):
2462 Check Venable_character_translation.
05129fbe 2463
ec7709ba 24642009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2465
ec7709ba
JB
2466 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2467 (x_make_frame_visible): Move frame to front rather than calling
15891144 2468 ns_raise_frame().
ec7709ba 2469 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2470 isn't key window.
ec7709ba 2471 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2472 drawRect may be called by NSView even if the frame is hidden.
2473
ec7709ba
JB
2474 * nsfns.m (Fx_create_frame): Follow other ports in
2475 determining visibility; default to t. Ensure async_visible is set.
15891144 2476
21f73755
EZ
24772009-05-23 Eli Zaretskii <eliz@gnu.org>
2478
2479 * dired.c (Ffile_attributes): Doc fix.
2480
34001e41
CY
24812009-05-22 Chong Yidong <cyd@stupidchicken.com>
2482
2483 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2484
46306a17
SM
24852009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2486
2487 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2488 and xfont_scratch_props.
2489 (syms_of_xfont): Do it here instead.
2490 (xfont_find_ccl_program): Delete, unused.
2491 (xfont_open): Delete unused var `i'.
2492
ef6e0694
KH
24932009-05-21 Kenichi Handa <handa@m17n.org>
2494
2495 * fontset.c (Qlatin): Don't make it static.
2496
46306a17
SM
2497 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2498 New functions.
ef6e0694
KH
2499 (xfont_scripts_cache, xfont_scratch_props): New variables.
2500 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2501 (xfont_list_pattern): Argument changed. Callers changed.
2502 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2503 (xfont_list): Don't reject a font spec with :script property.
2504 (xfont_has_char): Fix setting of encoding.
2505 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2506 xfont_scratch_props.
2507
25082009-05-19 Kenichi Handa <handa@m17n.org>
2509
46306a17 2510 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2511 Callers changed.
2512
25132009-05-18 Kenichi Handa <handa@m17n.org>
2514
2515 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2516
ac71ced7
SM
25172009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2518
2519 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2520 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2521
1c6d1051
YM
25222009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2523
2524 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2525 (x_delete_terminal): Dissociate resource database from display and
2526 then call XrmDestroyDatabase before closing display.
2527
9b9b779c
AR
25282009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2529
2530 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2531 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2532 whether selected frame is viable before raising it (based on patch
2533 by David Reitter), and improve commentary.
2534 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2535
cccd42d5
KH
25362009-05-15 Kenichi Handa <handa@m17n.org>
2537
2538 * font.c (Ffont_spec): Check arguments.
2539
337fbd17
CY
25402009-05-14 Chong Yidong <cyd@stupidchicken.com>
2541
2542 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2543 weight when testing attributes (Bug#3282).
2544
47a6002f
JD
25452009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2546
2547 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2548 what we expect to get in the next ConfigureNotify event.
2549
9cb363db
YM
2550 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2551 before Xft one (Bug#1696).
2552
b9126609
CY
25532009-05-07 David Reitter <david.reitter@gmail.com>
2554
2555 * nsfns.m (Fx_display_planes): Compute bitplanes using
2556 NSBitsPerPixelFromDepth (Bug#3207).
2557
27a69fd9
CY
25582009-05-10 Chong Yidong <cyd@stupidchicken.com>
2559
2560 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2561
00f37552
TTN
25622009-05-10 Ulrich Mueller <ulm@gentoo.org>
2563
2564 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2565
2d82a920
DR
25662009-05-07 David Reitter <david.reitter@gmail.com>
2567
ec7709ba
JB
2568 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2569 Respect mouse face background.
2d82a920 2570
46b0d52d
DR
25712009-05-07 David Reitter <david.reitter@gmail.com>
2572
ec7709ba
JB
2573 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2574 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2575 in ns_update_begin and ns_update_end.
2576
ce1b23bb
SM
25772009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2578
5996e1b7
SM
2579 * nsfns.m (ns_get_screen): Rewrite.
2580 Don't presume selected-frame is of type `ns'.
2581
ba98e3a0
SM
2582 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2583 all drivers.
2584
ce1b23bb
SM
2585 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2586
bcda200f
YM
25872009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2588
2589 * keyboard.h (add_user_signal): Fix typo in extern.
2590
2591 * lisp.h (add_user_signal): Remove extern.
2592
2593 * unexelf.c (unexec): Consider a section to precede the .bss section
2594 if its addresses overlap that of .bss.
2595 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2596 instead of dumping process.
2597
864660a2
SM
25982009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2599
2600 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2601
50da4e56
SM
26022009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2603
2604 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2605
51520a1a
DN
26062009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2607
2608 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2609 any statements.
2610
409ea3a1
AS
26112009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2612
59c4c60f
AS
2613 * process.c (read_process_output): Make sure the current buffer is
2614 always restored.
2615
409ea3a1
AS
2616 * coding.c (record_conversion_result): Don't modify
2617 Vlast_code_conversion_error for successful result.
2618 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2619
56f00ed2
KH
26202009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2621
2622 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2623 (load_charset_map): Remove unnecessary code.
56f00ed2 2624
4491c9d2
DR
26252009-04-30 David Reitter <david.reitter@gmail.com>
2626
35f5b128 2627 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2628 through f24.
2629
6970f632
CY
26302009-04-30 Chong Yidong <cyd@stupidchicken.com>
2631
2632 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2633
2634 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2635 face_at_buffer_position.
2636 (face_before_or_after_it_pos, get_next_display_element)
2637 (note_mouse_highlight): Update face_at_buffer_position call.
2638
2639 * term.c (term_mouse_highlight):
2640 * msdos.c (IT_note_mouse_highlight):
2641 * fontset.c (Finternal_char_font):
35f5b128 2642 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2643
2644 * dispextern.h (face_at_buffer_position): Update prototype.
2645
0c616f63
KH
26462009-04-30 Kenichi Handa <handa@m17n.org>
2647
35f5b128 2648 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2649
ad3aaf33
AS
26502009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2651
2652 * callproc.c (Fcall_process): Fix GC protection. Make sure
2653 current buffer is always restored.
2654
c3c963a0
YM
26552009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2656
2657 * atimer.c (init_atimer): Also clear stopped_atimers.
2658
2659 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2660
7e3386cb
YM
2661 * process.c (create_process): Clean up merger residues of
2662 2008-07-17 change.
2663
91f68422
CY
26642009-04-29 Ulrich Mueller <ulm@gentoo.org>
2665
2666 * lread.c (Vread_circle): New variable.
2667 (read1): Disable recursive read if Vread_circle is nil.
2668
24b34550
KH
26692009-04-29 Kenichi Handa <handa@m17n.org>
2670
2671 * fontset.h (set_default_ascii_font): Delete extern.
2672
2673 * fontset.c (set_default_ascii_font): Delete this unused function.
2674
2675 * frame.c (x_set_font): When ARG is a font-object, check if the
2676 font-object matches with the ASCII font-spec of the frame's
9c358bda 2677 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2678
77bf07e1
AS
26792009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2680
2681 * fns.c (Flocale_info): Protect vector from GC during decoding.
2682
2683 * process.c (Fstart_process): Protect argv strings from GC during
2684 encoding.
2685
2c55aacf
AS
26862009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2687
2688 * sysdep.c: Include <ctype.h>.
2689
b892d3c9
DR
26902009-04-27 David Reitter <david.reitter@gmail.com>
2691
35f5b128 2692 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2693 Remove commented-out code.
2694
9d0644c4
JB
26952009-04-26 Johan Bockgård <bojohan@gnu.org>
2696
2697 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2698
b7053016
JR
26992009-04-25 Jason Rumney <jasonr@gnu.org>
2700
2701 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2702
4e8231f3
YM
27032009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2704
2705 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2706 Swap bytes in short integer if fringe bitmap width > 8.
2707
493dcf2c
KH
27082009-04-23 Kenichi Handa <handa@m17n.org>
2709
2710 * xfaces.c (Fx_list_fonts): If a font size is specified in
2711 PATTERN, set it in returned scalable fonts.
2712
401e9e57
CY
27132009-04-22 Chong Yidong <cyd@stupidchicken.com>
2714
708e05dc
CY
2715 * keyboard.c (Fset_input_meta_mode): Doc fix.
2716
2717 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2718
1ac9108a 2719 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2720
2721 * coding.c (Fterminal_coding_system): Doc fix.
2722
2723 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2724 (Fx_display_pixel_height, Fx_display_planes)
2725 (Fx_display_color_cells, Fx_server_max_request_size)
2726 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2727 (Fx_display_mm_height, Fx_display_mm_width)
2728 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2729 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2730 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2731 (check_x_display_info): Handle terminal objects instead of
2732 terminal ids.
2733
401e9e57
CY
2734 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2735 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2736 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2737 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2738
df80c7f0
KH
27392009-04-21 Kenichi Handa <handa@m17n.org>
2740
5a8f12af 2741 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2742 (font_score): Check AVGWIDTH too.
908567ef 2743
df80c7f0
KH
2744 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2745 worst case.
1ac9108a
SM
2746 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2747 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2748
705af33f
JR
27492009-04-19 Jason Rumney <jasonr@gnu.org>
2750
2751 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2752 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2753
2754 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2755 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2756 get_phys_cursor_geometry.
2757
b71ac3dd 2758 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2759 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2760 using get_phys_cursor_geometry.
2761
2762 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2763 correctly calculated.
2764
dc2933eb
JD
27652009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2766
1ac9108a
SM
2767 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2768 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2769 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2770 is deprecated.
2771
973e7849
AS
27722009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2773
2774 * font.c (font_put_frame_data): Use xfree instead of free.
2775
314d66f4
JB
27762009-04-17 Juanma Barranquero <lekktu@gmail.com>
2777
2778 * w32font.c (Qja, Qko): Remove declarations.
2779 (syms_of_w32font): Don't DEFSYM them.
2780
cf702558
CY
27812009-04-17 Chong Yidong <cyd@stupidchicken.com>
2782
2783 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2784
2785 * font.h (Qja, Qko): Extern them.
2786
2787 * ftfont.c (Qja, Qko): Remove declarations.
2788
2789 * xfont.c (Qja, Qko): Remove declarations.
2790
b50504f5
KH
27912009-04-17 Kenichi Handa <handa@m17n.org>
2792
bde25748
KH
2793 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2794 string from a vector to handle Latin-1 characters correctly.
2795
b50504f5
KH
2796 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2797 entity even if the cache hits.
2798
f4646fff
AS
27992009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2800
2801 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2802 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2803
e7deaab0
AS
2804 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2805 * lisp.h: Adjust prototypes.
2806
0a0e7d49
CY
28072009-04-16 Chong Yidong <cyd@stupidchicken.com>
2808
2809 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2810 change (Bug#3003).
2811
3c908a57
KH
28122009-04-16 Kenichi Handa <handa@m17n.org>
2813
1ac9108a 2814 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2815
2816 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2817 adstyle.
2818
2819 * ftfont.c (Qja, Qko): Don't make them static.
2820 (enum ftfont_cache_for): New enum.
2821 (fc_charset_table): Undo the previous change.
2822 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2823 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2824 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2825 non-scarable font, try to get AVERAGE_WIDTH.
2826 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2827 Change ft_face_cache from a list of a hash-table. Don't check
2828 `ja' and `ko' adstyle here.
2829 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2830 FTFONT_CACHE_FOR_CHARET.
2831 (ftfont_get_charset): Undo the previous change.
1ac9108a 2832 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2833 (ftfont_close): Likewise.
2834 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2835
2836 * font.c (font_sort_entites): Change the meaning of the arg
2837 BEST-ONLY. Don't optimize for VEC of lenght 1.
2838 (font_select_entity): Just return the value of font_sort_entites.
2839
2840 * xfaces.c (merge_face_vectors): Reflect font properties in
2841 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2842 font_clear_prop if a face attribute doesn't change.
2843
3c908a57
KH
2844 * charset.h (charset_ksc5601): Extern it.
2845
2846 * charset.c (charset_ksc5601): New variable.
2847 (Fdefine_charset_internal): Set charset_ksc5601.
2848 (init_charset_once): Initialize charset_ksc5601 to -1.
2849
d65859c3
DN
28502009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2851
2852 * fileio.c (history_delete_duplicates): Remove unused declaration.
2853
2854 * callint.c (history_delete_duplicates): New declaration.
2855 (Fcall_interactively): Remove command history duplicates when
2856 history_delete_duplicates is true.
2857
3ba010e5
EZ
28582009-04-14 Eli Zaretskii <eliz@gnu.org>
2859
2860 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2861
06f19b91
KH
28622009-04-14 Kenichi Handa <handa@m17n.org>
2863
2864 * font.c (Ffont_info): Fix docstring. Fix the second element of
2865 the returned value (bug#2949).
2866
2cce8bfc
CY
28672009-04-14 Chong Yidong <cyd@stupidchicken.com>
2868
2869 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2870
d156542d
KH
28712009-04-14 Kenichi Handa <handa@m17n.org>
2872
2873 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2874 encoding charset is ascii_compatible.
2875
2876 * charset.c (Fdefine_charset_internal): Make charset
2877 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2878 code_offset is 0, and covers all ASCII characters.
2879
86fa089e
SM
28802009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2881
2882 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2883 (ns_string_to_pasteboard_internal):
2884 * nsmenu.m (process_dialog):
2885 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2886 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2887 * lisp.h (Fx_load_color_file): Declare.
2888
a8a3728b
KH
28892009-04-13 Kenichi Handa <handa@m17n.org>
2890
1ac9108a 2891 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2892 (font_select_entity): Suppress the code to optimize for the same
2893 kind of fonts.
2894 (font_load_for_lface): Get a font that supports at least ASCII
2895 characters.
2896
2897 * ftfont.c (Qja, Qko): New variables.
2898 (fc_charset_table): Delete uniquifier data for iso8859-1.
2899 (ftfont_get_latin1_charset): New function.
2900 (get_adstyle_property): New function.
2901 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2902 bitmap fonts.
2903 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2904 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2905 `ko' or `ja'.
2906 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2907 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2908 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2909 property.
2910 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2911 (syms_of_ftfont): DEFSYM Qja and Qko.
2912
483670b5
KH
29132009-04-09 Kenichi Handa <handa@m17n.org>
2914
12b55765
KH
2915 * charset.c (map_charset_chars): For a charset of `superset'
2916 method, fix calculation of code range.
2917
483670b5
KH
2918 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2919 from the list of extra properties.
2920 (font_clear_prop): Be sure to delete `:name' font property.
2921
57d3b93b
KH
29222009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2923
b4b2c2ca
YM
2924 * dispnew.c (redraw_overlapping_rows): Fix detection of
2925 overlapping for topmost and bottommost rows.
2926
1ac9108a 2927 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2928
472c3609
JR
29292009-04-06 Jason Rumney <jasonr@gnu.org>
2930
2931 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2932
ab193662
KH
29332009-04-06 Kenichi Handa <handa@m17n.org>
2934
2935 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2936
2937 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2938
0c26f026
KH
29392009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2940
2941 * ftfont.c (ftfont_open): Fix checking of the return value of
2942 FT_Load_Char. Fix setting font->underline_thickness.
2943
e173bbce
CY
29442009-04-04 Chong Yidong <cyd@stupidchicken.com>
2945
2946 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2947 (Fterminal_parameters, Fterminal_parameter)
2948 (Fset_terminal_parameter): In doc string, refer to terminal
2949 objects rather than terminal ids.
2950
693a2698
EZ
29512009-04-04 Eli Zaretskii <eliz@gnu.org>
2952
2953 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2954 ret_lim_data. (Bug#2867)
2955
d5221487
CY
29562009-04-03 Chong Yidong <cyd@stupidchicken.com>
2957
2958 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2959 so they don't get wider than the window, matching 2006-01-23
2960 change to the partner function in xdisp.c (Bug#2800).
2961
223509a3
KH
29622009-04-03 Kenichi Handa <handa@m17n.org>
2963
2964 * print.c (print_object): Make each lowest sub_char_table start a
2965 new line (Bug#2866).
2966
74fcd0b1
KH
29672009-04-02 Kenichi Handa <handa@m17n.org>
2968
2969 * fontset.c (fontset_font): Record no-font when a fontset
2970 explicitly tells not to try another font-specs.
2971
c542407d
SM
29722009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2973
2974 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2975
e3869731
KH
29762009-03-30 Kenichi Handa <handa@m17n.org>
2977
d8d2f142
KH
2978 * fontset.c (fontset_from_font): Specify only registry in a
2979 font-spec for all characters supported by that registry.
2980
e3869731
KH
2981 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2982 even if HAVE_M17N_FLT is not defined.
2983
5da5f805
CY
29842009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2985
2986 * ftfont.c: Conditionalize prototyping and use of
2987 ftfont_variation_glyphs.
2988
ab226c50
SM
29892009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2990
9628fed7
SM
2991 * frame.c (delete_frame): Work around compiler bug.
2992
2993 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2994 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2995 Some more EMACS_INT.
2996 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2997
2998 * xdisp.c (dump_glyph): Fix typo.
2999
ae19ba7c
SM
3000 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
3001 (adjust_markers_gap_motion, adjust_markers_for_delete)
3002 (adjust_markers_for_insert, adjust_point)
3003 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
3004 (make_gap, copy_text, count_size_as_multibyte, insert)
3005 (insert_and_inherit, insert_before_markers)
3006 (insert_before_markers_and_inherit, insert_1)
3007 (count_combining_before, count_combining_after, insert_1_both)
3008 (insert_from_string, insert_from_string_before_markers)
3009 (insert_from_string_1, insert_from_gap, insert_from_buffer)
3010 (insert_from_buffer_1, adjust_after_replace)
3011 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
3012 (replace_range_2, del_range, del_range_1, del_range_byte)
3013 (del_range_both, del_range_2, modify_region)
3014 (prepare_to_modify_buffer, signal_before_change)
3015 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
3016 for buffer positions and sizes.
3017 * lisp.h: Adjust prototypes accordingly.
3018
3019 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
3020 (non_regular_inserted, non_regular_nbytes, read_non_regular)
3021 (Finsert_file_contents): Use EMACS_INT for buffer positions.
3022
ab226c50
SM
3023 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
3024
46dfb8fb
JD
30252009-03-27 Jan Djärv <jan.h.d@swipnet.se>
3026
3027 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
3028 lines and columns so we keep the same pixel height and width.
3029
3030 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
3031 the property _NET_WM_STATE has changed.
46dfb8fb
JD
3032 (x_handle_net_wm_state): New function to update frame parameter
3033 fullscreen.
3034 (x_term_init): Initialize atoms for _NET_WM_STATE.
3035
3036 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
3037
d347e494
SM
30382009-03-27 Kevin Ryde <user42@zip.com.au>
3039
3040 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
3041 Gpm_GetEvent as an error that justifies closing the filedescriptor.
3042 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
3043 (Fgpm_mouse_stop): Pass that new parameter.
3044 * termhooks.h (close_gpm): Adjust prototype.
3045
84db11d6
SM
30462009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
3047
c95a5008
SM
3048 * lisp.h (Fx_focus_frame): Declare.
3049
84db11d6
SM
3050 * callint.c (Fcall_interactively): For '^' just delegate the work to
3051 handle-shift-selection.
3052 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3053
0a1958d6
CY
30542009-03-24 Chong Yidong <cyd@stupidchicken.com>
3055
0bfdff23
CY
3056 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3057
0a1958d6
CY
3058 * data.c (Qinteractive_form): New variable.
3059 (Finteractive_form): Use it.
3060
3061 * eval.c (Fcommandp): Use Qinteractive_form.
3062
58aec0d6
JR
30632009-03-24 Jason Rumney <jasonr@gnu.org>
3064
3065 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3066 Calculate total size precisely. Decode environment variables
3067 before substituting. (Bug#38)
3068
553dd618
KH
30692009-03-24 Kenichi Handa <handa@m17n.org>
3070
3071 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3072 encoding (Bug#2722).
553dd618 3073
c39ea606
JD
30742009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3075
3076 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3077 that gdpy is set.
3078
bc9b2b5e
AM
30792009-03-22 Alan Mackenzie <acm@muc.de>
3080
3081 * callint.c (Finteractive): Clarify the doc string - even
3082 promptless elements need \n separators.
3083
9f995a76
JR
30842009-03-22 Jason Rumney <jasonr@gnu.org>
3085
3086 * w32term.c (syms_of_w32term): Doc fix for
3087 x-use-underline-position-properties.
3088
22749e9a
EZ
30892009-03-21 Eli Zaretskii <eliz@gnu.org>
3090
3091 * w32.c (getpwuid): Change argument type to unsigned.
3092 (struct w32_id): Change type of `rid' member to unsigned.
3093 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3094 argument ID to unsigned. All callers changed.
3095 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3096
e00553bf
EZ
30972009-03-20 Eli Zaretskii <eliz@gnu.org>
3098
3099 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3100 negative, produce a float value.
3101
3102 * dired.c (make_uid, make_gid): New functions.
3103 (Ffile_attributes): Use them to avoid negative UID and GID.
3104
f761d6b6
JB
31052009-03-20 Juanma Barranquero <lekktu@gmail.com>
3106
3107 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3108 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3109 Fix typos in docstrings.
3110
d507f8d7
KH
31112009-03-19 Kenichi Handa <handa@m17n.org>
3112
3113 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3114 changed, use font_load_for_lface to get a new font object.
3115 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3116
3117 * frame.c (x_set_font): Handle the case that ARG is a cons.
3118
c68845e0
GM
31192009-03-19 Glenn Morris <rgm@gnu.org>
3120
3121 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3122
bfa49dd1
CY
31232009-03-19 Chong Yidong <cyd@stupidchicken.com>
3124
3125 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3126
8458d4c1
KH
31272009-03-19 Kenichi Handa <handa@m17n.org>
3128
3129 * charset.c (load_charset_map_from_file): When a mapfile can't be
3130 loaded, signal an error.
3131
78e7d1fe
EZ
31322009-03-18 Eli Zaretskii <eliz@gnu.org>
3133
3134 * dired.c (Ffile_attributes): Make sure UID and GID are always
3135 positive, even if the value is too large for a positive EMACS_INT.
3136 Doc fix.
3137
3138 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3139
5da9fdfa
YM
31402009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3141
3142 * xmenu.c (xdialog_show): Move Fredisplay call ...
3143 (Fx_popup_dialog): ... here.
3144
7519c40d
SM
31452009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3146
3147 * dired.c (file_name_completion): Disable the first optimization just
3148 installed, since it is not implemented correctly.
3149
2cd298e2
SM
31502009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3151
3152 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3153 only if the entry can affect bestmatch.
2cd298e2
SM
3154 Stop the search early, as Ftry_completion already does.
3155
48d37adf
CY
31562009-03-17 Chong Yidong <cyd@stupidchicken.com>
3157
e10c9c93 3158 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3159
9286b16a
CY
31602009-03-15 Chong Yidong <cyd@stupidchicken.com>
3161
3162 * keyboard.c (parse_menu_item): Don't display remappings as menu
3163 equivalent bindings (Bug#788).
3164
f7b146dc
JR
31652009-03-15 Jason Rumney <jasonr@gnu.org>
3166
3167 * w32term.h (WM_EMACS_PAINT): New message.
3168 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3169 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3170 before passing to lisp thread. (Bug#950)
3171
f761d6b6 31722009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3173
d93f9575
CY
3174 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3175 variable as it was never reset.
3176 (ns_term_init): Remove initialization of Lisp-settable defaults
3177 and ns_expand_space.
3178 (-setPanelFromDefaultValues): Remove ns_expand_space.
3179 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3180 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3181 i.e. no additional spacing, similar to Carbon port.
3182
d93f9575
CY
3183 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3184 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3185
305018ec
JD
31862009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3187
3188 * sound.c (alsa_configure): Remove call to deprecated
3189 snd_pcm_sw_params_set_xfer_align.
3190
f761d6b6 31912009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3192
3193 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3194 after clicking in a detached tool bar.
3195 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3196
46e722a9
SM
31972009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3198
348db3dd
SM
3199 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3200 int/Lisp_Object mixup).
46e722a9 3201
a3d16f39
KH
32022009-03-13 Kenichi Handa <handa@m17n.org>
3203
3204 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3205 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3206 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3207 (set_fontset_font): Change ARG to a vector. Handle range_list in
3208 ARG correctly.
3209 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3210 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3211 the above change.
3212 (fontset_from_font): Fix previous change.
fe24f56a 3213 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3214 entry. If FONTSET is the default fontset, don't set the extra
3215 slot of the returning char-table.
3216
b066e6b6
JB
32172009-03-12 Juanma Barranquero <lekktu@gmail.com>
3218
3219 * nsfns.m (Fx_close_connection): Doc fix.
3220 (Fns_do_applescript): Reflow docstring.
3221 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3222 (Fx_display_pixel_width, Fx_display_pixel_height)
3223 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3224 Fix typos in docstrings.
3225 (Fns_set_alpha): Fix typos in error messages.
3226
d472514e 32272009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3228
d472514e 3229 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3230 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3231 were used for such events.
3232
d472514e
JB
3233 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3234 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3235
d472514e 3236 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3237 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3238
fb930676
KH
32392009-03-11 Kenichi Handa <handa@m17n.org>
3240
ff85581a
KH
3241 * font.h (font_open_by_spec): Extern it.
3242
c50b7e98
KH
3243 * font.c (font_open_by_spec): New function.
3244 (font_open_by_name): Use font_open_by_spec.
3245
fb930676
KH
3246 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3247 fontset of the frame.
3248
3249 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3250 modify the default font of frames that use this fontset.
3251 (num_auto_fontsets): New variable.
3252 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3253 name. Be sure to set FONTSET_ASCII to the correct font name.
3254 (update_auto_fontset_alist): New function.
3255
df4e8455
JB
32562009-03-11 Juanma Barranquero <lekktu@gmail.com>
3257
3258 * makefile.w32-in: Update dependencies.
3259
0a375797
AR
32602009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3261
3262 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3263
61313fa3
SM
32642009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3265
3266 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3267
b55103fb
CY
32682009-03-10 Chong Yidong <cyd@stupidchicken.com>
3269
3270 * lread.c (Feval_buffer): Doc fix.
3271
dde2559c
KH
32722009-03-09 Kenichi Handa <handa@m17n.org>
3273
3274 * charset.c (Qfile_name_handler_alist): Extern it.
3275 (load_charset_map_from_file): Temporarily bind
3276 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3277
df4e8455 32782009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3279
47f588bb
GM
3280 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3281 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3282
4ddf94bd
AR
32832009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3284
4c9bdfc2
AR
3285 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3286 (x_set_window_size): Change back to calculated method of setting
3287 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3288 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3289 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3290
fe41ae9e
AR
3291 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3292
4c9bdfc2
AR
3293 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3294 accelerator in parens under GNUstep.
3295
825d0875
KH
32962009-03-06 Kenichi Handa <handa@m17n.org>
3297
3298 These changes are to detect incorrect composition sequence without
f3b3be74 3299 looking ahead the source. (Bug#2370)
825d0875
KH
3300
3301 * coding.h: Include "composite.h".
3302 (enum compisition_state): New enum.
3303 (struct compisition_status): New struct.
3304 (struct iso_2022_spec): New member cmp_status.
3305 (struct emacs_mule_spec): New struct.
3306 (struct coding_system): New members ctext_extended_segment_len and
3307 embedded_utf_8. Change the union member
3308 spec.emacs_mule_full_support to spec.emacs_mule.
3309
3310 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3311 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3312 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3313 (ADD_COMPOSITION_DATA): New arg nbytes.
3314 (emacs_mule_char): New arg cmp_status.
3315 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3316 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3317 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3318 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3319 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3320 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3321 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3322 (EMACS_MULE_COMPOSITION_END): New macro.
3323 (emacs_mule_finish_composition): New function.
3324 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3325 (decode_coding_emacs_mule): Avoid long looking ahead while
3326 handling composition.
3327 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3328 (ENCODE_COMPOSITION_RULE): New macro.
3329 (finish_composition): New function.
3330 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3331 (DECODE_COMPOSITION_START): New implementation.
3332 (DECODE_COMPOSITION_END): Likewise.
3333 (STORE_COMPOSITION_RULE): New macro.
3334 (decode_coding_iso_2022): Avoid long looking ahead while handling
3335 composition, CTEXT extended segment, and embedded UTF-8.
3336 (setup_coding_system): For a coding of type iso-2022, reset
3337 CODING_ISO_EXTSEGMENT_LEN (coding) and
3338 CODING_ISO_EMBEDDED_UTF_8 (coding).
3339 (get_translation): Delete arguments last_block, from_nchars,
3340 to_nchars. Callers changed.
3341 (produce_chars): Don't modify charbuf. Adjusted for the change of
3342 get_translation.
98a326f7 3343 (produce_composition): Adjust for the new annotation sequence.
825d0875 3344 (handle_composition_annotation): Likewise.
98a326f7 3345 (consume_chars): Adjust for the change of get_translation.
825d0875 3346
ccbc4452
AR
33472009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3348
4ddf94bd 3349 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3350
988a7ddb
KH
33512009-03-05 Kenichi Handa <handa@m17n.org>
3352
3353 * font.c (font_select_entity): New function.
3354 (font_find_for_lface): Use font_select_entity to select a font.
3355
3356 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3357 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3358 font with C restriction.
3359
98a326f7 33602009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3361
be1bce46 3362 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3363
10ea2b82
JR
33642009-03-04 Jason Rumney <jasonr@gnu.org>
3365
2c93b248 3366 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3367 characters that have already been read. (Bug#2569)
2c93b248 3368
10ea2b82
JR
3369 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3370 Log an error message if check_image_size failed.
3371 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3372 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3373
71a0c011
EZ
33742009-03-02 Eli Zaretskii <eliz@gnu.org>
3375
3376 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3377 when decoding process output.
3378
2f63bba8
RS
33792009-03-01 Richard M Stallman <rms@gnu.org>
3380
3381 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3382
3383 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3384
0a9564cb
EZ
33852009-02-28 Eli Zaretskii <eliz@gnu.org>
3386
3387 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3388 (decode_coding_emacs_mule, decode_coding_iso_2022)
3389 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3390 (decode_coding_raw_text, decode_coding_charset)
3391 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3392 Honor inhibit-eol-conversion. (Bug #2186)
3393
449148b3
JR
33942009-02-28 Jason Rumney <jasonr@gnu.org>
3395
3396 * coding.c (detect_coding_charset): If not checking latin extra,
3397 fail on characters between 0x80 and 0xA0. (Bug#2354)
3398
a4aee864
EZ
33992009-02-28 Eli Zaretskii <eliz@gnu.org>
3400
3401 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3402 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3403
d88bee5a
GM
34042009-02-27 Glenn Morris <rgm@gnu.org>
3405
3406 * callint.c (Finteractive): Doc fix.
3407
a808f22d
KH
34082009-02-27 Kenichi Handa <handa@m17n.org>
3409
3410 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3411
caf8d60c
CY
34122009-02-27 Chong Yidong <cyd@stupidchicken.com>
3413
3414 * font.c (font_style_to_value): Set value for unknown symbols to
3415 100 instead of 255.
b61137ea
CY
3416 (weight_table, slant_table, width_table): Treat "unspecified" as
3417 the default value.
caf8d60c 3418
1a0de25c
JB
34192009-02-26 Juanma Barranquero <lekktu@gmail.com>
3420
3421 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3422
8fc45744
JB
34232009-02-25 Juanma Barranquero <lekktu@gmail.com>
3424
107bd7d1
JB
3425 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3426 error as soon as a recursive load is detected.
8fc45744 3427
f097e223
AR
34282009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3429
3430 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3431 before caching.
3432
8810a12f
KH
34332009-02-24 Kenichi Handa <handa@m17n.org>
3434
3435 * fontset.c (fontset_find_font): Fix the condition for checking
3436 unavailable font.
3437
2c7d1565
GM
34382009-02-24 Glenn Morris <rgm@gnu.org>
3439
3440 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3441 whitespace that confuses documentation.
3442
a20878b6
MB
34432009-02-23 Miles Bader <miles@gnu.org>
3444
3445 * process.c (Flist_system_processes, Fprocess_attributes)
3446 (syms_of_process): Rename `system-process-attributes' to
3447 `process-attributes'.
3448
b3b58c01
AS
34492009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3450
1b3b981b
AS
3451 * coding.h (struct coding_system): Make safe_charsets a pointer to
3452 unsigned char.
3453 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3454 being 255.
3455 (SAFE_CHARSET_P): Likewise.
3456 (setup_iso_safe_charsets): Properly setup safe_charsets.
3457 (Fdefine_coding_system_internal): Likewise.
3458 (setup_coding_system): Likewise. Remove unneeded casts.
3459 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3460 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3461 unneeded casts.
3462
b3b58c01
AS
3463 * insdel.c (del_range_2): Don't modify gap contents when called
3464 from decode_coding_object. (Bug#1809)
3465
0b6f228c
CY
34662009-02-21 Chong Yidong <cyd@stupidchicken.com>
3467
3468 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3469 Qfont_object.
3470 (Ftype_of): Recognize font objects.
3471
3472 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3473
3474 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3475 moved to data.c.
3476
52f8870b
AR
34772009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3478
3479 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3480 async_iconified. Based on a patch by Christian Lynbech
3481 <christian.lynbech@tieto.com>.
3482 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3483
7087d5e9
GM
34842009-02-20 Glenn Morris <rgm@gnu.org>
3485
3486 * syntax.c (Fskip_chars_forward): Fix doc typo.
3487
41d2ceef
CY
34882009-02-20 Chong Yidong <cyd@stupidchicken.com>
3489
3490 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3491
1a3b7ca6
CY
34922009-02-19 Chong Yidong <cyd@stupidchicken.com>
3493
3494 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3495
73cce38d
KH
34962009-02-19 Kenichi Handa <handa@m17n.org>
3497
3498 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3499 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3500
a51092ee
DN
35012009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3502
3503 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3504
c423ecca
KH
35052009-02-18 Kenichi Handa <handa@m17n.org>
3506
3507 * font.c (font_check_otf_features): Fix handling of `nil' element.
3508 (Ffont_spec): Describe :lang and :otf in the docstring.
3509
4c1958f4
AS
35102009-02-16 Andreas Schwab <schwab@suse.de>
3511
3512 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3513 string.
3514
5704f39a
KH
35152009-02-16 Kenichi Handa <handa@m17n.org>
3516
3517 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3518 (Bug#1723)
5704f39a 3519
8f0085aa
CY
35202009-02-14 Chong Yidong <cyd@stupidchicken.com>
3521
a057d86a 3522 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3523
3524 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3525 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3526
aff01dd9
EZ
35272009-02-14 Eli Zaretskii <eliz@gnu.org>
3528
3529 * msdos.c (MAX_SCREEN_BUF): New macro.
3530 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3531 Encode the entire run of glyphs sharing the same face, instead of
3532 doing that one glyph at a time (fixes a bug with displaying
3533 double-size characters).
3534
ba301db3
AR
35352009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3536
3537 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3538
3539 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3540 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3541 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3542
3543 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3544 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3545
51d861de
SM
35462009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3547
3548 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3549 invisible areas.
3550
7fed8996
JR
35512009-02-12 Jason Rumney <jasonr@gnu.org>
3552
631ea4fb
JR
3553 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3554 (add_font_entity_to_list): Call check_face_name even when family
3555 is unspecified.
3556
cb4a3e42
JR
3557 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3558 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3559 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3560
7fed8996 3561 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3562 raster fonts. (Bug#2219)
7fed8996 3563
895416e3
KH
35642009-02-12 Kenichi Handa <handa@m17n.org>
3565
3566 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3567 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3568 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3569 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3570 (find_automatic_composition): While looking forward and backward,
3571 check static composition. Fix where to stop looking forward.
3572 (composition_adjust_point): Fix checking of static composition.
3573 (Fcomposition_get_gstring): Pay attention to
1dacf998 3574 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3575
3576 * lisp.h (fast_looking_at): Extern it.
3577
3578 * search.c (fast_looking_at): New function.
3579
51d861de 3580 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3581 <struct glyph>.u.cmp.to.
3582 (append_composite_glyph): Likewise.
3583
51d861de 3584 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3585 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3586 composition.
51d861de 3587 (append_composite_glyph): Adjust for the change of
895416e3
KH
3588 <strcut glyph>.u.cmp.to.
3589
8510724d
JB
35902009-02-11 Juanma Barranquero <lekktu@gmail.com>
3591
3592 * casetab.c (init_casetab_once):
3593 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3594 * font.c (font_update_lface):
3595 * fontset.c (Fnew_fontset):
3596 * ftfont.c (ftfont_drive_otf):
3597 * xfont.c (xfont_open):
3598 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3599
294fa707
SM
36002009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3601
3602 * fileio.c (Fwrite_region): !NILP -> CONSP.
3603
b5bfebec
AS
36042009-02-10 Andreas Schwab <schwab@suse.de>
3605
3606 * process.c (send_process): Properly relocate pointer into data
adab88bd 3607 when using encoded data. (Bug#2272)
b5bfebec 3608
cb84a2be
KH
36092009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3610
3611 * coding.c (detect_coding_charset): Fix previous change.
3612
89e09428
JR
36132009-02-08 Jason Rumney <jasonr@gnu.org>
3614
3615 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3616 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3617
4470a277
AS
36182009-02-07 Andreas Schwab <schwab@suse.de>
3619
3620 * unexelf.c (unexec): Fix error message.
3621
3175b12a
AR
36222009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3623
3624 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3625 when modal window is active. (Bug #2152)
3175b12a
AR
3626 (applicationShouldTerminate:): Remove now-unneeded while loop
3627 around NSRunAlertPanel.
3628
3629 * nsmenu.m (popupSession): New file-global variable.
3630 (pop_down_menu): End the popupSession before closing dialog.
3631 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3632 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3633 don't query NSApp for events (just sleep instead).
3634
8434d0b8
EZ
36352009-02-07 Eli Zaretskii <eliz@gnu.org>
3636
51d861de
SM
3637 * coding.c (syms_of_coding) <translation-table-for-input>:
3638 Modify doc string to discourage use for character code unification.
8434d0b8 3639
aa82edfd
CY
36402009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3641
3642 * atimer.c (run_timers): Update pending_atimers.
3643
2d283c7c
CY
36442009-02-06 Chong Yidong <cyd@stupidchicken.com>
3645
eb306cab
CY
3646 * image.c (svg_load_image): Fix last change.
3647
2d283c7c
CY
3648 * xfns.c (Fx_create_frame): Signal an error if no font is
3649 found (Bug#2147).
3650
4d8e170e
JB
36512009-02-05 Juanma Barranquero <lekktu@gmail.com>
3652
3653 * character.c (syms_of_character) <script-representative-chars>:
3654 Fix typo in docstring.
3655
c96169a0
AR
36562009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3657
3658 * nsmenu.m (pop_down_menu): New function.
3659 (ns_popup_dialog): Call it on unwind.
3660 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3661 call timer_check() (Bug#2154).
3662 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3663 handling_signal is set.
3664 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3665
31fd7c5c 3666 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3667
3668 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3669
3670 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3671
51d861de
SM
3672 * keyboard.c (poll_for_input_1, handle_async_input):
3673 Set handling_signal under HAVE_NS.
c96169a0 3674
aacd8ba1
GM
36752009-02-04 Glenn Morris <rgm@gnu.org>
3676
3677 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3678
4cb75c4b
KH
36792009-02-04 Kenichi Handa <handa@m17n.org>
3680
3681 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3682
3683 * charset.c (Fchar_charset): New optional arg restriction.
3684
3685 * coding.h (coding_system_charset_list): Extern it.
3686
3687 * coding.c (coding_system_charset_list): New function.
3688
3689 * composite.c: Include coding.h and termhooks.h.
3690 (composition_gstring_p): Fix for the terminal case.
3691 (composition_gstring_width): Likewise.
3692 (fill_gstring_body): Likewise.
3693 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3694 the frame.
3695 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3696 is within a composition.
867d4bb3 3697 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3698
3699 * term.c (encode_terminal_code): Fix handling of composition.
3700 (produce_composite_glyph): For static composition, get pixel_width
3701 from struct composition.
3702
826ba17e
AS
37032009-02-02 Andreas Schwab <schwab@suse.de>
3704
3705 * unexelf.c (unexec): Handle unaligned bss offset.
3706
8ad093db
AR
37072009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3708
3709 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3710 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3711
8ad093db
AR
3712 * keyboard.c (handle_interrupt): Don't call
3713 quit_throw_to_read_char() under NS.
d0a76a6e 3714
8ad093db
AR
3715 * blockinput.h: Remove NS-specific code.
3716
4d18a7a2
DN
37172009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3718
db878925
DN
3719 * dispnew.c (window_change_signal): Don't try to get the size of a
3720 suspended tty frame.
3721 * term.c (Fresume_tty): Resize if the size has changed while the
3722 tty was suspended.
3723
4d18a7a2
DN
3724 * alloc.c (mark_stack): Properly conditionalize previous change.
3725
8984df7c
JB
37262009-01-30 Juanma Barranquero <lekktu@gmail.com>
3727
3728 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3729 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3730 Remove; this code is not used on Windows.
3731
75f4f1ac
EZ
37322009-01-30 Eli Zaretskii <eliz@gnu.org>
3733
3734 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3735 EOLs that also has stray ^M characters.
3736
07a1e794
JB
37372009-01-30 Juanma Barranquero <lekktu@gmail.com>
3738
3739 * atimer.c (run_timers, alarm_signal_handler):
3740 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3741 * w32inevt.c (w32_console_read_socket):
3742 * w32term.c (w32_read_socket):
3743 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3744
a8b11cc9
CY
37452009-01-30 Chong Yidong <cyd@stupidchicken.com>
3746
3747 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3748 Initialize it as a relative filename pattern.
3749 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3750 (Fcall_process_region): Simplify temp file creation using
3751 temporary-file-directory.
3752
c279587b
EZ
37532009-01-29 Eli Zaretskii <eliz@gnu.org>
3754
3755 * msdos.c: Rename pending_signals to msdos_pending_signals.
3756 (sig_suspender, sigprocmask): Adjust.
3757
a8fe3242
CY
37582009-01-29 Chong Yidong <cyd@stupidchicken.com>
3759
3760 * keyboard.c (pending_signals): New var.
3761 (poll_for_input, input_available_signal, init_keyboard): Set it.
3762 (process_pending_signals): New function.
3763
3764 * lisp.h (QUIT): Check pending_signals instead of
3765 interrupt_input_pending. Use process_pending_signals.
3766
51d861de 3767 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3768
51d861de 3769 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3770
3771 * sysdep.c (emacs_write): Use process_pending_signals.
3772
3773 * xterm.c (XTread_socket): Update pending_signals.
3774
3775 * w32term.c (w32_read_socket): Update pending_signals.
3776
3777 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3778
6570a1c4
KH
37792009-01-29 Kenichi Handa <handa@m17n.org>
3780
3781 * xftfont.c (xftfont_has_char): New function.
3782 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3783
d72a4afa
AR
37842009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3785
3786 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3787 under GNUstep.
3788 (ns_query_color): New declaration.
3789
3790 * nsterm.m (ns_confirm_quit): New variable.
3791 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3792 (EmacsApp-applicationShouldTerminate:): Use it.
3793 (EmacsPrefsController): Let user set it.
3794 (ns_query_color): New function.
3795 (ns_defined_color): Use it.
3796 (ns_initialize): Drop.
3797 (ns_term_init): Add two lines from ns_initialize(), and set
3798 input_interrupt_mode to nil.
3799
3800 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3801 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3802
9fe78804
KH
38032009-01-28 Kenichi Handa <handa@m17n.org>
3804
3805 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3806 (fontset_get_font_group): Remember that no font-group is specified
3807 for C.
9fe78804 3808
fa57de36
CY
38092009-01-27 Chong Yidong <cyd@stupidchicken.com>
3810
930600e9
CY
3811 * fns.c (concat): Check for string overflow (bug#1787).
3812
fa57de36
CY
3813 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3814 Quadruple undo limits (bug#1501).
3815
7179ce7b
KH
38162009-01-27 Kenichi Handa <handa@m17n.org>
3817
3818 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3819 directly use GT_Get_Char_index.
3820
3821 * xftfont.c (struct xftfont_info): New member `index'.
3822
3823 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3824 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3825
5be8fcc0
CY
38262009-01-26 Kenichi Handa <handa@m17n.org>
3827
3828 * fontset.c (fontset_find_font): Fix handling of non-cons return
3829 value of fontset_get_font_group.
3830 (fontset_font): Revert last change.
3831
19ae3e61
JR
38322009-01-26 Jason Rumney <jasonr@gnu.org>
3833
3834 * w32font.c (w32font_list_internal): Return quickly if registry is
3835 unknown. Simplify final return.
3836 (add_font_entity_to_list): Break complex logic down into more
3837 manageable chunks. Move unknown registry check to
3838 w32font_list_internal.
3839
8612b71a
AR
38402009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3841
3842 Changes to remove Feval calls from GUI under NS.
3843
d8038940
JB
3844 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3845 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3846 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3847
3848 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3849 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3850 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3851 instead of NON_ASCII_KEYSTROKE_EVENT.
3852 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3853 (EmacsApp-applicationShouldTerminate:): Query user.
3854 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3855 instead of Feval.
3856
3857 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3858
3859 * keyboard.c (kbd_buffer_get_event): Check for it.
3860 (keys_of_keyboard): Define lispy keys for
3861 ns-put/unput-working-text.
3862
3863 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3864 versions.
3865 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3866
6288ae55
CY
38672009-01-25 Chong Yidong <cyd@stupidchicken.com>
3868
3869 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3870 setting current_buffer directly. (Bug#2044)
6288ae55 3871
289e7f8f
CY
38722009-01-24 Chong Yidong <cyd@stupidchicken.com>
3873
5ce87308 3874 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3875 any work. (Bug#1952, bug#1990).
5ce87308 3876
64cc3cf6 3877 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3878
b3243e6f
AR
38792009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3880
3881 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3882 (ns_no_defaults): New declaration.
3883 (main): Use it.
e0d2e69a 3884
d900b2af 3885 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3886
d900b2af 3887 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3888
d900b2af
AR
3889 * nsterm.m (ns_no_defaults): New variable.
3890 (ns_initialize): Don't read defaults when ns_no_defaults.
3891 (EmacsView-readSelectionFromPasteboard:)
3892 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3893 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3894 (ns_dumpglyphs_stretch): New function.
3895 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3896 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3897
e0d2e69a
AR
3898 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3899
3ac71f5d
CY
39002009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3901
3902 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3903 call for Sparc64.
3904
3fe53a83
AR
39052009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3906
3907 * nsfns.m:
3908 * nsgui.h:
3909 * nsmenu.m:
3910 * nsselect.m:
3911 * nsterm.h:
3912 * nsterm.m: Remove '23' comments that indicated code added during
3913 update from emacs-20 -> emacs-23.
3914
10f87c6f 39152009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3916
3917 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3918 ns_alternate_modifier. (Bug#1217)
a3b53a85 3919
c7cef62d
AR
3920 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3921 Display all shortcuts, including those w/o super modifier.
3922
575fb8bd
AR
3923 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3924
918b848b
CY
39252009-01-22 Chong Yidong <cyd@stupidchicken.com>
3926
3927 * fileio.c (Vwrite_region_post_annotation_function)
3928 (Vwrite_region_annotation_buffers): New vars.
3929 (build_annotations_unwind): Just reset
3930 Vwrite_region_annotation_buffers.
3931 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3932 Call write-region-post-annotation-function.
3933 (build_annotations): Add to Vwrite_region_annotation_buffers if
3934 buffer changes.
3935
a39e2539
AR
39362009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3937
3938 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3939 Tiger.
51d861de
SM
3940 * nsfns.m (ns_do_applescript):
3941 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3942
35ed44db
AR
39432009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3944
3945 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3946
cbe0b5bf
AR
39472009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3948
3949 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3950
6049d3a0
AR
3951 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3952
3953 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3954 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3955 handle Ctrl-tab. (Bug#1841)
3956 (ns_get_color): Use unsigned long long for scanned hex string value.
3957 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3958 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3959 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3960 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3961 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3962 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3963 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3964
d3810c21 3965 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3966 DPI. (Bug#1316)
d3810c21
AR
3967 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3968 values in onTiger section.
4c7077c3 3969
e301e634
CY
39702009-01-19 Chong Yidong <cyd@stupidchicken.com>
3971
7f82490b
CY
3972 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3973 Check return value of font_spec_from_name.
64cc3cf6 3974 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3975
3976 * font.c (font_spec_from_name): Return Qnil if font name could not
3977 be parsed.
3978 (font_parse_name): Treat a `?' character as part of an XLFD.
3979
e301e634
CY
3980 * fns.c (Fsubstring): Doc fix.
3981
1c0db158
KH
39822009-01-19 Kenichi Handa <handa@m17n.org>
3983
51d861de 3984 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3985 (ftfont_list): Likewise.
3986
acf20901
JB
39872009-01-18 Juanma Barranquero <lekktu@gmail.com>
3988
fff4e459
JB
3989 * dbusbind.c (Fdbus_register_signal):
3990 * process.c (conv_sockaddr_to_lisp):
3991 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3992
acf20901
JB
3993 * callproc.c (Fgetenv_internal): Doc fix.
3994
e7abcdfb
CY
39952009-01-16 Chong Yidong <cyd@stupidchicken.com>
3996
3997 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3998 it is not even used.
3999
b60861e6
GM
40002009-01-16 Glenn Morris <rgm@gnu.org>
4001
4002 * font.c (Ffont_variation_glyphs): Silence compiler.
4003
8db52afe
JB
40042009-01-15 Juanma Barranquero <lekktu@gmail.com>
4005
4006 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
4007 Reported by David Robinow <drobinow@gmail.com>.
4008
4cddb209
KH
40092009-01-15 Kenichi Handa <handa@m17n.org>
4010
51d861de 4011 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 4012
f247f67b
JR
40132009-01-14 Jason Rumney <jasonr@gnu.org>
4014
4015 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 4016 never a fontset. (Bug#1562)
f247f67b 4017
f56a4450
KH
40182009-01-14 Kenichi Handa <handa@m17n.org>
4019
4020 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 4021 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 4022
4e99855e
CY
40232009-01-13 Chong Yidong <cyd@stupidchicken.com>
4024
4025 * font.c (font_clear_prop): If clearing the family, clear the font
4026 width index too.
4027
fff4e459 4028 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 4029
24f01470
JB
40302009-01-12 Juanma Barranquero <lekktu@gmail.com>
4031
4032 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
4033 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
4034 functions, use sizeof.
4035
a41240a3
MR
40362009-01-12 Martin Rudalics <rudalics@gmx.at>
4037
4038 * keyboard.c (read_char): Fix case where last_nonmenu_event
4039 returned a bad value with submenus. (Bug#447)
4040
944636b8
CY
40412009-01-12 Chong Yidong <cyd@stupidchicken.com>
4042
4043 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
4044 family, clear the font width index too.
4045
0dad7c6f
JR
40462009-01-11 Jason Rumney <jasonr@gnu.org>
4047
4048 * keyboard.c (cmd_error_internal): Exit when errors occur before
4049 frame creation and not in daemon mode. (Bug#1836)
4050
7c2363af
CY
40512009-01-10 Chong Yidong <cyd@stupidchicken.com>
4052
4053 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4054 of a display vector, backtrack.
4055 (try_window_reusing_current_matrix): Check glyph type before
4056 referencing charpos member.
4057
97b1b294
EZ
40582009-01-10 Eli Zaretskii <eliz@gnu.org>
4059
4060 Fix Bug #876:
4061
4062 * coding.c (inhibit_null_byte_detection): New variable.
4063 (detect_coding, detect_coding_system): Don't pay attention to null
4064 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4065 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4066 <inhibit-iso-escape-detection>: Doc fix.
4067
4624b6e3
JR
40682009-01-09 Jason Rumney <jasonr@gnu.org>
4069
4070 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4071 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4072 Only report Unicode Plane 2 fonts as unicode-sip.
4073
323b840c
CY
40742009-01-09 Chong Yidong <cyd@stupidchicken.com>
4075
51d861de
SM
4076 * xfaces.c (Fx_font_family_list): Delete function.
4077 Move compatibility version to faces.el.
323b840c 4078
51d861de 4079 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4080
eba7400d
MR
40812009-01-09 Martin Rudalics <rudalics@gmx.at>
4082
4083 * frame.c (x_set_frame_parameters): Remember requested value for
4084 fullscreen before it's reset by the parameter handler.
4085
4b09796d
GM
40862009-01-09 Glenn Morris <rgm@gnu.org>
4087
4088 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4089 (last_command_event): ... and update all users.
4b09796d
GM
4090 (last_input_char): For clarity, rename to...
4091 (last_input_event): ... and update all users.
4092 (last-command-char, last-input-char): Move to subr.el as aliases.
4093 * cmds.c, commands.h: Update for last_command_char rename.
4094
14ccea62
CY
40952009-01-08 Chong Yidong <cyd@stupidchicken.com>
4096
51d861de 4097 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4098
5f004711
JR
40992009-01-08 Jason Rumney <jasonr@gnu.org>
4100
4101 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4102 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4103 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4104 Don't declare.
fff4e459 4105 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4106 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4107
b71f6f73
KH
41082009-01-07 Kenichi Handa <handa@m17n.org>
4109
50b06221 4110 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4111 remember the coding system used for decoding in
50b06221
KH
4112 coding_system (Bug#1039).
4113
b71f6f73 4114 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4115 breaking the loop. (Bug#870)
b71f6f73
KH
4116 (decode_coding_utf_16, decode_coding_emacs_mule)
4117 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4118 (decode_coding_charset): Likewise.
4119
56f668f7
MR
41202009-01-05 Martin Rudalics <rudalics@gmx.at>
4121
4122 * frame.c (x_set_frame_parameters): Make sure height (width) get
4123 applied when fullwidth (fullheight) is set. (Bug#1522)
4124
5da9424d
JB
41252009-01-04 Juanma Barranquero <lekktu@gmail.com>
4126
4127 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4128 (utc_base): Declare as ULONGLONG, not long double.
4129 (convert_time_raw): Delete.
4130 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4131 (initialize_utc_base): New function.
4132 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4133 (convert_from_time_t): Use initialize_utc_base; compute result with
4134 64-bit arithmetic.
4135 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4136
c4605e09
EZ
41372009-01-03 Eli Zaretskii <eliz@gnu.org>
4138
9acef61c 4139 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4140 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4141 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4142 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4143 [!subprocesses]: Define.
4144 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4145 (Flist_system_processes, Fsystem_process_attributes)
4146 [!subprocesses]: Call list_system_processes and
4147 system_process_attributes instead of returning Qnil.
4148
9acef61c
JB
4149 * dosfns.c (system_process_attributes, list_system_processes):
4150 New functions.
c4605e09
EZ
4151
4152 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4153
4154 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4155 Don't use the default (no-op) implementation.
4156
8b7d0a16
JR
41572009-01-03 Jason Rumney <jasonr@gnu.org>
4158
a6d46bc1
JR
4159 * keyboard.c (parse_modifiers_uncached): Wheel events are
4160 clicks (bug#687).
4161
8b7d0a16
JR
4162 * w32term.c (x_query_colors, x_query_color): New functions.
4163
4164 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4165 (svg_load_image): Cast returned pointers from dynamically loaded
4166 functions. Eliminate W32 specific code.
4167
bfe11752
DN
41682009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4169
89e2438a
DN
4170 * nsfns.m (x_set_foreground_color, x_set_background_color)
4171 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4172 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4173 x_ prefix instead of ns_. Update references.
4174 (syms_of_nsfns): Add a FIXME comment.
4175
4176 * nsterm.m (x_set_cursor_type): New prototype.
4177 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4178
bfe11752
DN
4179 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4180 for Solaris instead of incorrectly providing Qutime and Qcutime.
4181
031da700
EZ
41822009-01-02 Eli Zaretskii <eliz@gnu.org>
4183
4184 * w32.c (process_times): Compute sum of utime and stime.
4185 (system_process_attributes): Add Qtime to the alist.
4186
4187 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4188 and add them to the alist.
4189
4190 * process.c (top level) <Qtime, Qctime>: New variables.
4191 (syms_of_process): staticpro them.
4192 (Fsystem_process_attributes): Add their documentation to the doc
4193 string.
4194
4195 * process.h: Declare Qtime and Qctime.
4196
df23bf08
JR
41972009-01-02 Jason Rumney <jasonr@gnu.org>
4198
9acef61c 4199 * image.c (Qgobject): New symbol.
df23bf08
JR
4200 (syms_of_image): Initialize it.
4201 (init_svg_functions): Load some functions from gobject library.
4202
5bbdf7aa
DN
42032009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4204
4205 * frame.c (make_terminal_frame): Remove redundant code and useless
4206 block.
4207
63136da6
AS
42082009-01-01 Andreas Schwab <schwab@suse.de>
4209
4210 * process.c (conv_sockaddr_to_lisp): Add workaround for
4211 getsockname bug on BSD.
4212
9ef69046
CY
42132009-01-01 Chong Yidong <cyd@stupidchicken.com>
4214
d6fafbe0
CY
4215 * xfns.c (x_create_tip_frame): Set border width of the X window.
4216
51d861de 4217 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4218
f9c34147
JR
42192009-01-01 Jason Rumney <jasonr@gnu.org>
4220
9acef61c 4221 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4222 Don't block input, as per earlier xterm.c changes.
4223
f5497e45
AR
42242008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4225
4226 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4227 (ns_appkit_version_int): New function.
4228 (x-server-version): Use ns_appkit_version_int and follow 21+
4229 convention of returning 3 integers.
4230
c19cab20
KH
42312008-12-30 Kenichi Handa <handa@m17n.org>
4232
4233 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4234 (CHAR_SURROGATE_PAIR_P): New macro.
4235
4236 * font.h (struct font_driver): New member get_variation_glyphs.
4237
9acef61c 4238 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4239 (Ffont_variation_glyphs): New function.
4240 (syms_of_font): Defsubr it.
4241
4242 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4243 ftfont_variation_glyphs.
4244 (setup_otf_gstring): New function.
4245 (ftfont_drive_otf): Use it.
4246 (ftfont_shape_by_flt): Handle variation selector.
4247 (ftfont_variation_glyphs): New function.
4248
28cd591f
MR
42492008-12-30 Martin Rudalics <rudalics@gmx.at>
4250
4251 * frame.c (Vemacs_iconified): Remove.
4252
7f714baf
JR
42532008-12-30 Jason Rumney <jasonr@gnu.org>
4254
4255 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4256 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4257
9d2d22ab
CY
42582008-12-30 Chong Yidong <cyd@stupidchicken.com>
4259
4260 * indent.c (Fvertical_motion): Don't advance iterator if we have
4261 reseated to the desired position.
4262
4263 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4264 checking for pos match.
4265
545312c2
KH
42662008-12-30 Kenichi Handa <handa@m17n.org>
4267
1ede3eb6
KH
4268 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4269 just get the low 8-bit of the code.
4270
545312c2
KH
4271 * font.c (font_intern_prop): Validate str as multibyte.
4272
bd7bbf29
DN
42732008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4274
31e0750e
DN
4275 * dispextern.h (struct face): Move lface and hash from the middle
4276 of bitfields.
4277
bd7bbf29
DN
4278 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4279
b5672e7c
DN
42802008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4281
4282 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4283 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4284 instead of intervals.h.
4285
d704470f
AS
42862008-12-26 Andreas Schwab <schwab@suse.de>
4287
4288 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4289 cons.
4290
54b33868
MR
42912008-12-26 Martin Rudalics <rudalics@gmx.at>
4292
4293 * textprop.c (Qminibuffer_prompt): New variable.
4294 (syms_of_textprop): Initialize it.
4295 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4296 in minibuffer-prompt face. (Bug#1662)
4297
40b615d6
JR
42982008-12-25 Jason Rumney <jasonr@gnu.org>
4299
4300 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4301
baae5c2d
JR
43022008-12-24 Jason Rumney <jasonr@gnu.org>
4303
4304 * ralloc.c (r_alloc_reset_variable): New function.
4305
4306 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4307 record of what points where. (Bug#716)
baae5c2d 4308
a9051c88
DN
43092008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4310
4311 * minibuf.c (read_minibuf): Follow the non-interactive case when
4312 running as a daemon, before detaching.
4313
8b146312
AS
43142008-12-22 Andreas Schwab <schwab@suse.de>
4315
4316 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4317 * gtkutil.c (free_widget_value): Use xfree instead of free.
4318
56f2de10
MR
43192008-12-22 Martin Rudalics <rudalics@gmx.at>
4320
4321 * frame.c (delete_frame): New function derived from
4322 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4323 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4324 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4325 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4326 * frame.h: Extern delete_frame.
4327 * window.c (window_loop):
4328 * terminal.c (delete_terminal):
4329 * xterm.c (x_connection_closed):
4330 * xfns.c (Fx_hide_tip):
9acef61c 4331 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4332
1fc200d6
JR
43332008-12-21 Jason Rumney <jasonr@gnu.org>
4334
4335 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4336 when character maps to .notdef character.
4337
5e252df2
SM
43382008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4339
4340 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4341
99b72cc4
JR
43422008-12-20 Jason Rumney <jasonr@gnu.org>
4343
4344 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4345 a graphical frame on Windows. (Bug#1325)
99b72cc4 4346
acc49a52
JD
43472008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4348
4349 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4350
6ea15123
CY
43512008-12-20 Chong Yidong <cyd@stupidchicken.com>
4352
4353 * minibuf.c (Fread_buffer): Doc fix.
4354
b2dab6c8
JR
43552008-12-20 Jason Rumney <jasonr@gnu.org>
4356
54ea0c87 4357 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4358 server name in UNC paths. (Bug#719)
54ea0c87 4359
b2dab6c8 4360 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4361 charbuf. (Bug#1035)
b2dab6c8 4362
6d1921be
DN
43632008-12-19 Daniel Engeler <engeler@gmail.com>
4364
4365 * sysdep.c (serial_configure): Fix typo.
4366
53934c98
DN
43672008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4368
4369 * sysdep.c: Include alloca.h.
f4f634e8
DN
4370 (system_process_attributes): Add implementation for Solaris.
4371
4372 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4373
06e111a6
DN
43742008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4375
4376 Reorganize implementation of Flist_system_processes and
4377 Fsystem_process_attributes. No functional changes.
4378 * process.c: Don't #include pwd.h, grp.h and limits.h.
4379 (Flist_system_processes): Just call list_system_processes.
4380 (Fsystem_process_attributes): Just call system_process_attributes.
4381 (procfs_list_system_processes, time_from_jiffies)
4382 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4383 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4384
4385 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4386 (list_system_processes): Rename from
4387 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4388 Provide a do nothing implementation.
4389 (system_process_attributes): Rename from
4390 procfs_list_system_processes.
4391 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4392 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4393
4394 * w32.c (list_system_processes): Rename from
4395 w32_list_system_processes.
4396 (system_process_attributes): Rename from
4397 w32_system_process_attributes.
4398
4399 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4400
4401 * process.h (w32_list_system_processes)
4402 (w32_system_process_attributes): Remove.
362654a6
JB
4403 (list_system_processes, system_process_attributes):
4404 New prototypes.
06e111a6 4405
6a705b23
KH
44062008-12-19 Kenichi Handa <handa@m17n.org>
4407
4408 * xfont.c (xfont_decode_coding_xlfd): New function.
4409 (xfont_encode_coding_xlfd): New function.
4410 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4411 (xfont_list): Decode and encode XLFD by iso-8859-1.
4412 (xfont_match): Likewise.
4413 (xfont_list_family): Likewise.
4414 (xfont_open): Likewise.
4415
d66c0241 4416 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4417 names are utf-8.
4418
d66c0241 4419 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4420 names are utf-8.
4421
5a130941
JD
44222008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4423
4424 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4425 changed.
bfd20325
JD
4426 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4427 clicked on a detached tool bar button.
5a130941 4428
fd95644b
DN
44292008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4430
4431 * emacs.c (main): Print and error and exit when no data is read
4432 from the pipe.
4433
e6eee6ae
JR
44342008-12-17 Jason Rumney <jasonr@gnu.org>
4435
4436 * w32font.c (w32font_has_char): Always return -1.
4437
a35dd56b
KH
44382008-12-16 Kenichi Handa <handa@m17n.org>
4439
4440 * font.c (font_open_entity): Fix previous change.
4441
0e3635c2
DN
44422008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4443
4444 * process.c: Include <limits.h>.
4445
d4835507 44462008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4447
4448 * font.c (font_update_drivers): Fix mistake in reconstructing the
4449 driver list.
4450
44512008-12-16 Chong Yidong <cyd@stupidchicken.com>
4452
4453 * font.c (font_clear_cache): Fix format of font cache data.
4454
e2cbc401
CY
44552008-12-15 Chong Yidong <cyd@stupidchicken.com>
4456
4457 * xftfont.c (xftfont_open): Free Xft font pattern if
4458 XftFontOpenPattern fails.
4459
4460 * xterm.c (x_free_frame_resources): Remove extraneous call to
4461 free_frame_faces.
4462
b131d535
CY
44632008-12-13 Chong Yidong <cyd@stupidchicken.com>
4464
4465 * xterm.c (x_delete_display): Move xim_close_dpy call to
4466 x_delete_terminal.
4467 (x_delete_terminal): Call xim_close_dpy.
4468
e6df5336
JR
44692008-12-13 Jason Rumney <jasonr@gnu.org>
4470
4471 * w32font.c (intern_font_name): New function.
4472 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4473 (w32font_open_internal, Fx_select_font): Decode font name.
4474 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4475
4476 * w32font.h (intern_font_name): Declare new function.
4477
4478 * w32uniscribe.c (add_opentype_font_name_to_list):
4479 Use intern_font_name.
4480
20d68145
CY
44812008-12-13 Chong Yidong <cyd@stupidchicken.com>
4482
9f2554de
CY
4483 * frame.c (Fdelete_frame): Call free_font_driver_list.
4484
3d9bec9a
CY
4485 * font.c (free_font_driver_list): Implement missing function.
4486
20d68145
CY
4487 * w32term.c (w32_term_init): Don't initialize the image cache
4488 here; it will be done in init_frame_faces.
4489
4490 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4491 (struct x_display_info): Remove unused member null_pixel. New
4492 member xim_callback_data.
4493
4494 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4495 (xim_initialize): Save pointer to callback function data.
4496 (xim_close_dpy): Free callback function data. Call XCloseIM,
4497 reverting 2008-11-04 change by David Smith.
4498 (x_term_init): Don't initialize the image cache here; it will be
4499 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4500 (x_delete_display): Free x_dnd_atoms member.
4501
96f9306b
KH
45022008-12-13 Kenichi Handa <handa@m17n.org>
4503
6dec9044
JB
4504 * font.c (font_rescale_ratio): Moved from xfaces.c.
4505 Argument type changed. Handle a font-spec too.
96f9306b 4506 (font_score): Check Vface_font_rescale_alist.
6dec9044 4507 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4508
4509 * xfaces.c (font_rescale_ratio): Moved to font.c.
4510
8d5b4964
CY
45112008-12-13 Chong Yidong <cyd@stupidchicken.com>
4512
4513 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4514
e6df5336
JR
45152008-12-12 Jason Rumney <jasonr@gnu.org>
4516
4517 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4518 Vwindow_system_version to the real w32 major version.
4519
97c6058a
DN
45202008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4521
4522 * term.c (init_tty): Move setting the terminal name before the
4523 potential user: maybe_fatal.
4524
ec4e88d7
CY
45252008-12-11 Chong Yidong <cyd@stupidchicken.com>
4526
d4835507
JB
4527 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4528 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4529
b4233ec9
JR
45302008-12-11 Jason Rumney <jasonr@gnu.org>
4531
8ec71e23 4532 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4533 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4534
b4233ec9 4535 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4536 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4537
011a0143
JB
45382008-12-11 Juanma Barranquero <lekktu@gmail.com>
4539
4540 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4541
3c309f34
JB
45422008-12-11 Juanma Barranquero <lekktu@gmail.com>
4543
4544 * process.c (Fsystem_process_attributes, syms_of_process):
4545 Fix typo in name of Ssystem_process_attributes.
4546 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4547
fedc6ab5
JB
45482008-12-11 Juanma Barranquero <lekktu@gmail.com>
4549
4550 * syntax.c (Fmodify_syntax_entry): Doc fix.
4551
ba3de0e8
JB
45522008-12-10 Juanma Barranquero <lekktu@gmail.com>
4553
4554 * font.c (Ffont_spec): Move usage to end of docstring.
4555
174f1c74
JR
45562008-12-10 Jason Rumney <jasonr@gnu.org>
4557
4558 * w32font.c (Qcham): New symbol.
4559 (font_supported_scripts): Add cham, and comments for other new
4560 scripts in bitfield from OpenType spec.
9d32f818
JR
4561 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4562 contain characters beyond the bmp.
174f1c74 4563
7b649478
KH
45642008-12-10 Kenichi Handa <handa@m17n.org>
4565
4566 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4567 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4568 Qunicode_sip.
4569
2133e2d1
JB
45702008-12-10 Juanma Barranquero <lekktu@gmail.com>
4571
4572 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4573 (Fcoding_system_put): Use QCdefault_char.
4574 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4575
9af886ee
CY
45762008-12-09 Chong Yidong <cyd@stupidchicken.com>
4577
74d819eb
CY
4578 * xftfont.c (syms_of_xftfont): Fix typo.
4579
4ccfa1c0 4580 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4581
7c19d3ae
DN
45822008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4583
4584 * emacs.c (main): Close daemon_pipe on exec.
4585
567826bb
CY
45862008-12-08 Chong Yidong <cyd@stupidchicken.com>
4587
4588 * termchar.h (struct tty): New members termcap_term_buffer and
4589 termcap_strings_buffer.
4590
4591 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4592 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4593 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4594 All callers changed.
4595 (init_tty): Store termcap data and string buffers in new struct
4596 tty members termcap_term_buffer and termcap_strings_buffer.
4597 (delete_tty): Free them.
4ccfa1c0 4598 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4599
aa96c42b
SZ
46002008-12-07 Seiji Zenitani <zenitani@mac.com>
4601
4602 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4603 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4604
b7e1d896
CY
46052008-12-06 Chong Yidong <cyd@stupidchicken.com>
4606
4607 * coding.c (make_conversion_work_buffer): Disable buffer
4608 modification hooks in the work buffer.
4609
b5ec91a5
EZ
46102008-12-05 Eli Zaretskii <eliz@gnu.org>
4611
4612 * process.c (procfs_system_process_attributes): If `nread' has a
4613 negative value, assign zero to it.
4614
a5d2a52b
CY
46152008-12-05 Chong Yidong <cyd@stupidchicken.com>
4616
68c5540b 4617 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4618
7bf1bb21
KH
46192008-12-05 Kenichi Handa <handa@m17n.org>
4620
4621 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4622 second character is a combining character.
4623
2fdc7d00
EZ
46242008-12-05 Eli Zaretskii <eliz@gnu.org>
4625
4626 * process.c (procfs_system_process_attributes): Don't use cmd,
4627 cmdsize, and q without initializing them first.
4628
bf6bfba8
JR
46292008-12-04 Jason Rumney <jasonr@gnu.org>
4630
4631 * w32font.c (w32font_draw): Initialize orig_clip before getting
4632 it, and delete it when finished.
4633
a3b1a468
DN
46342008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4635
4636 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4637 case when running as a daemon before detaching.
4638
8b8be8eb
JB
46392008-12-03 Juanma Barranquero <lekktu@gmail.com>
4640
805f2638 4641 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4642
b1bde622
KH
46432008-12-03 Kenichi Handa <handa@m17n.org>
4644
e500c47d
KH
4645 * font.c (font_at): Set `multibyte' at first.
4646
ca516334
KH
4647 * coding.c (decode_coding_charset): Check type of an element of
4648 vector VALIDS.
7bf1bb21 4649 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4650
4ccfa1c0 4651 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4652 (font_for_char): Likewise.
4653
1e5ecd37
CY
46542008-12-03 Chong Yidong <cyd@stupidchicken.com>
4655
d5b01609 4656 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4657 (font_update_lface): Handle fonts with corrupted size specs,
4658 i.e. non-int and non-float.
d5b01609 4659
11e3a6e4 4660 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4661 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4662 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4663
ab06788b
CY
4664 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4665
1e5ecd37 4666 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4667 underline_minimum_offset for underline position.
1e5ecd37 4668
63c125ab
DN
46692008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4670
4671 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4672
4673 * character.c (c_string_width): Specify the type for LEN.
4674
3a8406e1
KH
46752008-12-03 Kenichi Handa <handa@m17n.org>
4676
4ccfa1c0 4677 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4678 (decode_coding_utf_8): Likewise.
4ccfa1c0 4679 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4680 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4681
651df7d9
CY
46822008-12-02 Chong Yidong <cyd@stupidchicken.com>
4683
4684 * keyboard.c (make_lispy_position): Only use PT if the selected
4685 window is current.
4686
1f625c6c
AS
46872008-12-02 Andreas Schwab <schwab@suse.de>
4688
f7741ce9
AS
4689 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4690
1f625c6c
AS
4691 * doprnt.c (doprnt1): Fix size of charbuf.
4692
92bc2678
CY
46932008-12-02 Chong Yidong <cyd@stupidchicken.com>
4694
4695 * keyboard.c (timer_check): Revert last change.
4696
93b9e8cc
JB
46972008-12-02 Juanma Barranquero <lekktu@gmail.com>
4698
4699 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4700
fd7a37d5
JB
47012008-12-01 Juanma Barranquero <lekktu@gmail.com>
4702
4703 * makefile.w32-in: Update dependencies.
4704 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4705
c115043b
AS
47062008-12-01 Andreas Schwab <schwab@suse.de>
4707
4708 * font.c (register_font_driver): Use xmalloc.
4709 (font_put_frame_data): Likewise.
4710
f5668d2a
CY
47112008-12-01 Chong Yidong <cyd@stupidchicken.com>
4712
860d96be
CY
4713 * xfaces.c (realize_x_face): Make abort condition clearer.
4714
f5668d2a
CY
4715 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4716
379c17e7
CY
47172008-11-30 Chong Yidong <cyd@stupidchicken.com>
4718
4719 * keyboard.c (timer_check): After a timer runs, ensure that the
4720 selected window's buffer is current.
4721
35f36d65
JB
47222008-11-30 Juanma Barranquero <lekktu@gmail.com>
4723
f952c61c
JB
4724 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4725 It was accidentally restored by the Unicode merge.
4726
35f36d65
JB
4727 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4728
b23077df
JB
47292008-11-29 Juanma Barranquero <lekktu@gmail.com>
4730
4731 * w32proc.c: Include "coding.h".
4732 (Fw32_short_file_name): Encode filename passed to Windows API.
4733 (Fw32_long_file_name): Encode filename passed to Windows API and
4734 decode back the result. (Bug#1433)
4735
b8ebe9dd
KH
47362008-11-29 Kenichi Handa <handa@m17n.org>
4737
8cc53f96
KH
4738 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4739 not before accessing it.
4740
b8ebe9dd
KH
4741 * charset.c (Fdefine_charset_internal): After calculating
4742 min_char, max_char, and fastmap, copy the charset structure again.
4743 (encode_char): Fix the previous change.
4744
59bc82c0
SZ
47452008-11-28 Seiji Zenitani <zenitani@mac.com>
4746
4747 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4748
4749 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4750
4751 * nsterm.m (x_set_frame_alpha): New function.
4752
32247e3d
EZ
47532008-11-27 Eli Zaretskii <eliz@gnu.org>
4754
4755 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4756
b003e5ff
JB
47572008-11-27 Juanma Barranquero <lekktu@gmail.com>
4758
4759 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4760 pointer to check_face_name.
4761
708550f5
KH
47622008-11-27 Kenichi Handa <handa@m17n.org>
4763
4764 * category.h (SET_CATEGORY_SET): Call set_category_set.
4765 (set_category_set): Extern it.
4766
4767 * category.c (hash_get_category_set): New function.
4768 (Fmodify_category_entry): Adjusted for the change of
4769 char_table_ref_and_range. Call hash_get_category_set to get a
4770 category set to store in the table.
4771
4772 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4773 Funify_charset.
4774
2ae37cf0 4775 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4776 (DECODE_CHAR): Check if the decoder vector is ready.
4777 (ENCODE_CHAR): Check if the encoder char-table is ready.
4778 (maybe_unify_char): Extern it.
4779
4780 * charset.c (Vchar_unified_charset_table): Delete it.
4781 (inhibit_load_charset_map): New variable.
4782 (temp_charset_work): New variable.
4783 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4784 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4785 New macros.
4786 (load_charset_map): Meaning of control_flag changed. If
4787 inhibit_load_charset_map is nonzero, setup a table in
4788 temp_charset_work.
4789 (load_charset): New argument control_flag.
4790 (map_charset_for_dump): New function.
4791 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4792 map_charset_for_dump.
4793 (Fdefine_charset_internal): If the charset method is MAP, load
4794 mapping tables by calling load_charset.
4795 (Funify_charset): Don't load a mapping table but directly set
4796 Vchar_unify_table.
4797 (maybe_unify_char): New function.
4798 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4799 Handle the case of inhibit_load_charset_map being nonzero.
4800 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4801 Handle the case of inhibit_load_charset_map being nonzero.
4802 (Fclear_charset_maps): Just free temp_charset_work.
4803 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4804 variable.
4805
4806 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4807 change of char_table_ref_and_range.
4808 (char_table_ref_and_range): Change the meaning of argument FROM
4809 and TO. Now the caller must provide initial values for *FROM
4810 and *TO.
4811
4812 * fontset.c (fontset_add): Adjusted for the change of
4813 char_table_ref_and_range.
4814 (fontset_get_font_group): Likewise.
4815 (Ffontset_info): Likewise.
4816
4817 * keymap.c (describe_vector): Adjusted for the change of
4818 char_table_ref_and_range. For char-table, put boundary between
4819 non-ASCII and 8-bit characters.
4820
4821 * print.c (print_object): For bool-vector, delete unnecessary
4822 check of ASCII_BYTE_P.
4823
9196133b
JR
48242008-11-26 Jason Rumney <jasonr@gnu.org>
4825
4826 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4827 leading in font height. (Bug#879)
9196133b 4828
9f688acf
GM
48292008-11-26 Glenn Morris <rgm@gnu.org>
4830
4831 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4832 redefinition with ifdef. (Bug#1383)
4833
90d19aff
AR
48342008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4835
4836 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4837
4ccfa1c0 48382008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4839
4840 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4841 New EmacsView methods.
4842 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4843 Fixes bug #1048,1357,1414.
4844
48452008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4846
4847 Fix bug #1362.
4848 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4849 is not an indexed color.
4850 * nsterm.m (free_indexed_color): Add argument checking.
4851 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4852
e7d5ecb3
CY
48532008-11-24 Chong Yidong <cyd@stupidchicken.com>
4854
4855 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4856 Document confirm-after-completion value for
4857 minibuffer-completion-confirm.
4858
c285743c
JR
48592008-11-24 Jason Rumney <jasonr@gnu.org>
4860
4861 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4862 warning.
4863
b0857706
JR
48642008-11-23 Jason Rumney <jasonr@gnu.org>
4865
4866 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4867 restored before returning.
4868
4869 * w32font.c (check_face_name): New function.
4870 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4871 fonts. (Bug#642)
b0857706 4872
ee50ff07
MR
48732008-11-22 Martin Rudalics <rudalics@gmx.at>
4874
4875 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4876 confirm-nonexistent-file-or-buffer in doc-string.
4877
b8ff72fa
SM
48782008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4879
4880 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4881 Fix copy/paste typo. Add checks.
4882
cee53ed4
KH
48832008-11-21 Kenichi Handa <handa@m17n.org>
4884
4885 * coding.c (detect_coding_iso_2022): Reject invalid composition
4886 sequence.
4887 (DECODE_COMPOSITION_START): If the current source is the last
4888 block, and the current composition doesn't end, regard this
4889 sequence as invalid.
4890 (decode_coding_iso_2022): Handle invalid composition sequence.
4891
f6ef1e65
MR
48922008-11-20 Martin Rudalics <rudalics@gmx.at>
4893
4894 * window.c (coordinates_in_window): Don't return
4895 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4896 line when the window is not the rightmost one. (Bug#1372)
4897
e08b1705
MR
48982008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4899
4900 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4901
ad98e89f
EZ
49022008-11-15 Eli Zaretskii <eliz@gnu.org>
4903
4904 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4905 and bright_bg if noninteractive is non-zero.
4906
fb098a4b
CY
49072008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4908
4909 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4910 x_draw_glyph_string_background.
4911
4912 * w32term.c (x_draw_glyph_string): Likewise.
4913
ce952b6e
CY
49142008-11-15 Chong Yidong <cyd@stupidchicken.com>
4915
4916 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4917 the next glyph string once past the overhang width.
4918
4919 * nsterm.m (ns_draw_glyph_string): Likewise.
4920
4921 * w32term.c (x_draw_glyph_string): Likewise.
4922
26ea7079
CY
49232008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4924
4925 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4926 double file close.
4927
1c33c906
MR
49282008-11-14 Martin Rudalics <rudalics@gmx.at>
4929
4930 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4931 dedicated status of window before attempting to display another
4932 buffer in it.
4933
8fc29035
JB
49342008-11-14 Juanma Barranquero <lekktu@gmail.com>
4935
4936 * msdos.c (Fmsdos_long_file_names):
4937 (syms_of_msdos) <dos-unsupported-char-glyph>:
4938 * dosfns.c (Fint86): Fix typos in docstrings.
4939
55fb4286
EZ
49402008-11-14 Eli Zaretskii <eliz@gnu.org>
4941
4942 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4943
3fda0315
KY
49442008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4945
4946 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4947
7e849c17
CY
49482008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4949
4950 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4951
4952 * frame.h: Negative alpha means "don't touch".
4953
4954 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4955
4956 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4957
b9fd67bd
DN
49582008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4959
4960 * hftctl.c:
4961 * chpdef.h:
4962 * acldef.h: Remove files used only for systems no longer supported.
4963
4964 * Makefile.in: Fix .o alphabetical ordering.
4965 (hftctl.o): Remove dependency, file removed.
4966 (keymap.o, print.o): Depend on charset.h.
4967
d5998e03
KH
49682008-11-10 Kenichi Handa <handa@m17n.org>
4969
2ae37cf0 4970 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4971
be70e183
CY
49722008-11-08 Chong Yidong <cyd@stupidchicken.com>
4973
4974 * dired.c (file_name_completion): If completion_ignore_case is
4975 enabled, ignore case when checking completion-regexp-list.
4976
7cf94eac
EZ
49772008-11-08 Eli Zaretskii <eliz@gnu.org>
4978
4979 * vm-limit.c (get_lim_data): Fix last change.
4980
ee107a89
KH
49812008-11-08 Kenichi Handa <handa@m17n.org>
4982
4983 * character.c (Fget_byte): New function.
4984 (syms_of_character): Defsubr Fget_byte.
4985
5fd15622
CY
49862008-11-07 Chong Yidong <cyd@stupidchicken.com>
4987
4988 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4989 cursor position is valid after scrolling.
4990
13d62fad
JB
49912008-11-06 Juanma Barranquero <lekktu@gmail.com>
4992
4993 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4994
a1dd2936
GM
49952008-11-06 Glenn Morris <rgm@gnu.org>
4996
4997 * xterm.c (handle_one_xevent): Don't let popup menus cause
4998 mouse-autoselect-window related window switching. (Bug#1261)
4999
860cd236
CY
50002008-11-04 David Smith <davidsmith@acm.org> (tiny change)
5001
5002 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
5003
653a3150
AS
50042008-11-04 Andreas Schwab <schwab@suse.de>
5005
5006 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
5007
870f5cac
CY
50082008-11-03 Chong Yidong <cyd@stupidchicken.com>
5009
5010 * xfns.c (Fx_wm_set_size_hint): New function.
5011
1e02f3cb
MR
50122008-11-03 Martin Rudalics <rudalics@gmx.at>
5013
5014 * textprop.c (Fprevious_single_char_property_change): Return 0
5015 when there's no change in a string. (Bug#1301)
5016
e630dfc6
MR
50172008-11-02 Martin Rudalics <rudalics@gmx.at>
5018
5019 * frame.c (do_switch_frame): New argument NORECORD passed to
5020 Fselect_window.
5021 (Fselect_frame): New argument NORECORD passed to
5022 do_switch_frame.
5023 (Fset_frame_selected_window): New argument NORECORD passed to
5024 Fselect_frame.
5025 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
5026 in call of do_switch_frame.
5027 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
5028 Handle NORECORD argument in call of Fselect_frame.
5029 * lisp.h (do_switch_frame, Fselect_frame)
5030 (Fset_frame_selected_window): Adjust declarations.
5031 * window.c (select_frame_norecord): New function.
5032 (run_window_configuration_change_hook): Use it and call
5033 Fselect_frame with NORECORD set.
5034 (Fselect_window): Pass NORECORD to Fselect_frame.
5035 (Fset_window_configuration): Handle NORECORD argument in call of
5036 do_switch_frame.
5037 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
5038 Fset_frame_selected_window.
5039 * keyboard.c (command_loop_1): Handle NORECORD in call of
5040 Fselect_frame (currently ifdefd).
5041
9020b223
GM
50422008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
5043
5044 * emacs.c (USAGE2): Untabify.
5045
793ffee8
SM
50462008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
5047
5048 * composite.c (fill_gstring_header): Fix copy/paste typo.
5049
ab6d1131
MR
50502008-10-31 Martin Rudalics <rudalics@gmx.at>
5051
5052 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5053 (Fother_window): Rename argument and rewrite doc-string.
5054 (select_window_norecord): Fix return value. (Bug#1276)
5055
601a9cf1
JB
50562008-10-30 Juanma Barranquero <lekktu@gmail.com>
5057
5058 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5059 new frames overriding foreground for tooltips. Based on similar patch
5060 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5061
813b0652
CY
50622008-10-29 Chong Yidong <cyd@stupidchicken.com>
5063
5064 * emacs.c (Fdaemon_initialized): Initialize nfd.
5065
4414f58f
MR
50662008-10-29 Martin Rudalics <rudalics@gmx.at>
5067
5068 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5069 (Fwindow_text_height): Clarify doc-strings.
5070 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5071 doc-string of window-scroll-functions.
5072
ecdcaa09
RS
50732008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5074
5075 * category.c (syms_of_category): Fix typo in docstring.
5076
23fe745a
JB
50772008-10-28 Juanma Barranquero <lekktu@gmail.com>
5078
5079 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5080 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5081 Fix typos in docstrings.
5082
ff808935
DN
50832008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5084
5085 * emacs.c (daemon_pipe): Make non-static.
5086 (IS_DAEMON): Move definition ...
5087 * lisp.h (IS_DAEMON): ... here.
5088 (daemon_pipe): Declare.
5089 (is_daemon): Remove.
5090 * dispnew.c (init_display): Use IS_DAEMON.
5091
fc012771
SM
50922008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5093
5094 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5095 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5096
5097 * emacs.c (is_daemon): Remove.
5098 (main): Don't set is_daemon.
5099 (IS_DAEMON): New macro.
5100 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5101 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5102 parent exits.
5103 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5104
d8bdbe6f
CY
51052008-10-27 Chong Yidong <cyd@stupidchicken.com>
5106
d1a072bf
CY
5107 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5108 over-sized glyph, draw it with the default glyph width.
5109
e2e325aa
CY
5110 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5111 glyph, draw it with the default glyph width.
5112
5113 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5114 glyph, draw it with the default glyph width.
5115
d8bdbe6f
CY
5116 * xdisp.c (try_scrolling): When computing the distance from the
5117 scroll margin to PT, try moving some distance past the window
5118 bottom before giving up.
5119
7bfac547
MR
51202008-10-27 Martin Rudalics <rudalics@gmx.at>
5121
5122 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5123 (Fset_window_buffer): Explain in doc-string that a window can be
5124 "strongly" dedicated to its buffer.
5125
4ff029f6
DN
51262008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5127
5128 * emacs.c (daemon_name): New variable.
5129 (main): Deal with --daemon=SERVER_NAME.
5130 (Fdaemonp): Return a name if one was passed to --daemon.
5131
5790ef40
DN
51322008-10-26 Romain Francoise <romain@orebokech.com>
5133
f9bd0df9 5134 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5135 (main): Create a pipe before forking, make the parent exit only after
5136 the child has closed its end of the pipe. Move closing the
5137 descriptors ...
5138 (Fdaemon_initialized): ... here. New function.
5139
f5385255
SM
51402008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5141
4d632321
SM
5142 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5143 the previous unoptimized table.
5144
f5385255
SM
5145 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5146 the distinction between non-nil and non-t value of `dedicated'.
5147
6c56a0f3
CY
51482008-10-25 Chong Yidong <cyd@stupidchicken.com>
5149
5150 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5151 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5152
fec89261
MR
51532008-10-25 Martin Rudalics <rudalics@gmx.at>
5154
5155 * window.c (Fget_buffer_window, Fdelete_windows_on)
5156 (Freplace_buffer_in_windows): Make buffer argument optional and
5157 rename to buffer_or_name.
5158
34fcddd0
CY
51592008-10-24 Chong Yidong <cyd@stupidchicken.com>
5160
f5385255
SM
5161 * xdisp.c (handle_single_display_spec, handle_display_prop):
5162 Undo 2005-05-16 change.
34fcddd0
CY
5163 (handle_stop): Pop iterator if it's loaded with an empty string.
5164 (get_overlay_strings_1): Don't save iterator if it's loaded with
5165 an empty string (bug#1201).
5166
064766f2
KH
51672008-10-24 Kenichi Handa <handa@m17n.org>
5168
5169 * ftfont.c (ftfont_otf_features): Fix previous change.
5170 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5171 calling ftfont_otf_features.
5172
f9bd0df9 51732008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5174
5175 * font.c (font_match_p): Fix for the case that a vector of
5176 characters is in script-representative-chars.
5177
1dae9197
MA
51782008-10-24 Michael Albinus <michael.albinus@gmx.de>
5179
5180 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5181 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5182 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5183 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5184 macro. (Bug#1186).
5185
f9bd0df9 51862008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5187
5188 * s/sol2-10.h: New file.
5189
878a4584
JB
51902008-10-23 Juanma Barranquero <lekktu@gmail.com>
5191
5192 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5193 poor beast has survived 9+ years and the jump from xterm.c!).
5194
cd265ca6
MR
51952008-10-23 Martin Rudalics <rudalics@gmx.at>
5196
5197 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5198 Reword doc-string.
f5385255 5199 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5200
472a4dc9
JB
52012008-10-23 Juanma Barranquero <lekktu@gmail.com>
5202
5203 * character.c (syms_of_character) <script-representative-chars>:
5204 <unicode-category-table>: Doc fixes.
5205
159bd5a2
NF
52062008-10-23 Noah Friedman <friedman@splode.com>
5207
5208 * coding.c (make_conversion_work_buffer): Check that
5209 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5210 Fget_buffer_create.
5211
49f9c344
KH
52122008-10-23 Kenichi Handa <handa@m17n.org>
5213
5214 * font.c (font_add_log): Check the values of extra properties.
5215
12bb3111
MR
52162008-10-22 Martin Rudalics <rudalics@gmx.at>
5217
5218 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5219 Reword doc-string.
5220 (Fset_window_parameter): Use NILP.
5221 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5222 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5223
bbeb4e99
JB
52242008-10-22 Juanma Barranquero <lekktu@gmail.com>
5225
5226 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5227
52282008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5229
5230 * nsfns.m (ns_appkit_version): New function.
5231 (x-server-version): Use it.
5232 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5233 (x-server-vendor): Don't check_ns().
5234
5235 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5236
a9b555d3
JB
52372008-10-22 Juanma Barranquero <lekktu@gmail.com>
5238
5239 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5240 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5241
4626499f
KH
52422008-10-22 Kenichi Handa <handa@m17n.org>
5243
e3681952
KH
5244 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5245 scripts.
5246
4626499f
KH
5247 * category.c (word_boundary_p): Check scripts instead of charset.
5248 Handle nil value in word-separating-categories and
5249 word-combining-categories.
5250 (syms_of_category): Fix docstrings of word-separating-categories
5251 and word-combining-categories.
5252
1560f91a
EZ
52532008-10-21 Eli Zaretskii <eliz@gnu.org>
5254
5255 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5256 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5257
f4668441
MR
52582008-10-21 Martin Rudalics <rudalics@gmx.at>
5259
5260 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5261 Rename arg "buffer" to "buffer_or_name".
5262 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5263 it optional.
5264 (no_switch_window): Remove since the return value is not used.
a9b555d3 5265 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5266 Consider window as dedicated when Fwindow_dedicated_p returns a
5267 non-nil value.
5268 * lisp.h: Remove prototype for no_switch_window.
5269
fd75ddb2
JD
52702008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5271
5272 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5273 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5274
07295713
KH
52752008-10-21 Kenichi Handa <handa@m17n.org>
5276
5277 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5278 check Vlatin_extra_code_table.
5279
712adc82
EZ
52802008-10-20 Eli Zaretskii <eliz@gnu.org>
5281
5282 * fileio.c (Fset_file_modes): Doc fix.
5283
f549eb0b
MA
52842008-10-19 Michael Albinus <michael.albinus@gmx.de>
5285
5286 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5287 in arrays.
5288
aac0c6e3
MR
52892008-10-19 Martin Rudalics <rudalics@gmx.at>
5290
5291 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5292 Mention kill-buffer in doc-string.
5293 (Fset_window_buffer): Reinsert tem check removed in last commit.
5294 (Fenlarge_window, Fshrink_window): Have argument names and
5295 doc-string follow Elisp manual more closely.
5296
52972008-10-18 Eli Zaretskii <eliz@gnu.org>
5298
5299 * fileio.c (Fset_file_modes): Doc fix.
5300
53012008-10-18 Martin Rudalics <rudalics@gmx.at>
5302
5303 * window.c (Fwindow_width, Fset_window_start)
5304 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5305 (Fdelete_windows_on, Freplace_buffer_in_windows):
5306 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5307 (Fwindow_dedicated_p): Make window argument optional.
5308 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5309 (Fset_window_buffer): Respect any non-nil dedicated value for
5310 window. Rename "buffer" argument to "buffer_or_name".
5311
53122008-10-18 Ulrich Mueller <ulm@gentoo.org>
5313
5314 * m/sh3.h: New file, machine description for SuperH.
5315
53162008-10-17 Martin Rudalics <rudalics@gmx.at>
5317
5318 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5319
53202008-10-17 Kenichi Handa <handa@m17n.org>
5321
5322 * ftfont.c (ftfont_otf_features): Fix indexing
5323 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5324
53252008-10-16 Magnus Henoch <mange@freemail.hu>
5326
5327 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5328 (Fdbus_call_method_asynchronously): Ditto.
5329 This change makes C-h f display the argument list.
5330
53312008-10-16 Chong Yidong <cyd@stupidchicken.com>
5332
5333 * fileio.c (Fexpand_file_name): Doc fix.
5334
5335 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5336 of :foreground and :background equivalent to unspecified (20.x
5337 compatibility).
5338
53392008-10-15 Eli Zaretskii <eliz@gnu.org>
5340
5341 * buffer.c (syms_of_buffer): Doc fix.
5342
53432008-10-14 Kenichi Handa <handa@m17n.org>
5344
5345 * font.c (font_clear_prop): When clearing font width, clear the
5346 average width field too.
5347
53482008-10-12 Andreas Schwab <schwab@suse.de>
5349
5350 * ftfont.c (ftfont_shape_by_flt): Make static.
5351 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5352
5353 * font.c: Don't include <m17n-flt.h>.
5354
53552008-10-10 Eli Zaretskii <eliz@gnu.org>
5356
5357 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5358
53592008-10-09 Eli Zaretskii <eliz@gnu.org>
5360
5361 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5362 away code.
5363
53642008-10-09 Chong Yidong <cyd@stupidchicken.com>
5365
5366 * dispnew.c (update_text_area): Avoid looping due to large glyph
5367 overhangs (bug#1070).
5368
53692008-10-09 Kenichi Handa <handa@m17n.org>
5370
5371 * fontset.c (face_for_char): If face->fontset is negative, just
5372 return ascii_face.
5373
f5385255
SM
5374 * font.c (font_delete_unmatched): Fix previous change.
5375 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5376
53772008-10-09 Martin Rudalics <rudalics@gmx.at>
5378
5379 * frame.c (Fraise_frame): On text-only terminals select frame in
5380 order to make it visible. (Bug#1061)
5381
53822008-10-08 Chong Yidong <cyd@stupidchicken.com>
5383
5384 * fontset.c (fontset_find_font): Check frame validity.
5385
53862008-10-07 Chong Yidong <cyd@stupidchicken.com>
5387
a9b555d3 5388 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5389 (xg_display_close): Allow Emacs to close all displays (bug#985).
5390
53912008-10-06 Andreas Schwab <schwab@suse.de>
5392
f5385255 5393 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5394
53952008-10-06 Chong Yidong <cyd@stupidchicken.com>
5396
f5385255 5397 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5398
a9b555d3 5399 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5400
5401 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5402 during initialization.
5403
54042008-10-04 Eli Zaretskii <eliz@gnu.org>
5405
5406 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5407 whole thing on MSDOS frames as well as on a TTY.
5408
5409 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5410 well as for TTY.
5411 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5412 well as on a TTY.
5413
5414 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5415 as well as for TTY.
5416
5417 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5418
5419 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5420 MSDOS frames as well.
5421
54222008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5423
5424 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5425 correct arguments.
b71ac3dd 5426 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5427
54282008-10-03 Glenn Morris <rgm@gnu.org>
5429
5430 * emacs.c (USAGE1): Add --daemon.
5431
54322008-10-02 Eli Zaretskii <eliz@gnu.org>
5433
5434 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5435 100, so it's in percents as advertised.
5436
54372008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5438
5439 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5440 (ns_output.current_cursor, ns_output.desired_cursor)
5441 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5442 (FRAME_NEW_CURSOR_COLOR): Remove.
5443
5444 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5445 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5446 enumeration (HOLLOW_BOX_CURSOR, etc.).
5447
5448 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5449 (draw_window_cursor): Simplify code.
f5385255
SM
5450 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5451 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5452 updates manually.
a9b555d3
JB
5453 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5454 Use core Emacs cursor types.
aac0c6e3 5455
b8ff72fa 5456 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5457
54582008-10-02 Martin Rudalics <rudalics@gmx.at>
5459
5460 * process.c (Faccept_process_output): Fix doc-string.
5461
54622008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5463
5464 * gmalloc.c (__sbrk): Also define for uClibc.
5465
5466 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5467 for uClibc.
5468
54692008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5470
5471 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5472 styles.
5473 (nsfont_open): Reenable the cache.
5474
54752008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5476
5477 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5478 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5479
54802008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5481
5482 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5483 a suspended terminal.
5484
54852008-09-30 Michael Albinus <michael.albinus@gmx.de>
5486
5487 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5488
54892008-09-30 Eli Zaretskii <eliz@gnu.org>
5490
5491 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5492
54932008-09-30 Chong Yidong <cyd@stupidchicken.com>
5494
5495 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5496 in a continued line coincides with a line beginning.
5497
54982008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5499
5500 * nsfont.m (nsfont_trait_distance): Fix bug.
5501 (nsfont_list): Return a list rather than a vector (syncs with Handa
5502 changes of 2008-05-14).
5503 (nsfont_open): Improve logging.
5504
55052008-09-29 Andreas Schwab <schwab@suse.de>
5506
5507 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5508
55092008-09-28 Martin Rudalics <rudalics@gmx.at>
5510
5511 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5512 name as char-resolve-modifiers.
5513 Reported by: Markus Triska <markus.triska@gmx.at>
5514
55152008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5516
5517 * dispnew.c (init_display): Return earlier when running as a daemon.
5518
55192008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5520
5521 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5522
55232008-09-27 Eli Zaretskii <eliz@gnu.org>
5524
5525 * composite.c (Fcomposition_get_gstring)
5526 (Fcompose_region_internal, Fcompose_string_internal)
5527 (Ffind_composition_internal): Doc fix.
5528 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5529 (syms_of_composite) <auto-composition-function>: Doc fix.
5530 (syms_of_composite) <composition-function-table>: Doc fix.
5531
55322008-09-25 Chong Yidong <cyd@stupidchicken.com>
5533
5534 * search.c (wordify): New argument for lax word-ends.
5535 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5536
55372008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5538
5539 * lisp.h (is_daemon): Declare.
5540 * dispnew.c (init_display): Do not try to initialize the terminal
5541 when running as a daemon.
5542
55432008-09-22 Chong Yidong <cyd@stupidchicken.com>
5544
5545 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5546 x_display_pixel_height.
5547
55482008-09-22 Martin Rudalics <rudalics@gmx.at>
5549
5550 * undo.c (record_point): Don't call Fundo_boundary for first
5551 change. (Bug#731)
5552
55532008-09-22 Juanma Barranquero <lekktu@gmail.com>
5554
5555 * emacs.c (Fdaemonp): Doc fix.
5556
55572008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5558
5559 * emacs.c (main): Place #ifdef in the proper place.
5560
55612008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5562
5563 * emacs.c (standard_args): Add --daemon.
5564 (main): Disconnect from the terminal when --daemon is passed.
5565 (is_daemon): New variable.
5566 (Fdaemonp): New function.
5567 (syms_of_emacs): Defsubr it.
5568
55692008-09-20 Chong Yidong <cyd@stupidchicken.com>
5570
5571 * xdisp.c (get_next_display_element): Handle string display
5572 correctly when checking for the end of a box run.
5573
55742008-09-20 Glenn Morris <rgm@gnu.org>
5575
5576 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5577 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5578 (Frename_file): Avoid copying to trash if a rename involves
5579 a delete. (Bug#964).
5580
55812008-09-20 Eli Zaretskii <eliz@gnu.org>
5582
5583 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5584 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5585 frames as well as termcap frames.
5586 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5587 get_named_tty.
5588
55892008-09-19 Eli Zaretskii <eliz@gnu.org>
5590
5591 * process.c (procfs_system_process_attributes): Fix cmdline in
5592 case /proc/PID/cmdline is empty.
5593
5594 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5595 x_display_pixel_height.
5596
55972008-09-19 Juanma Barranquero <lekktu@gmail.com>
5598
5599 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5600
5601 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5602 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5603
56042008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5605
5606 * dispextern.h (struct it): Move line_wrap away from the middle of
5607 bitfields. Move voffset in struct iterator_stack_entry after the
5608 bitfields. Move tab_width near after another short.
5609
56102008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5611
5612 * frame.h (struct frame): Move alpha from the middle of bitfields.
5613
5614 * window.h (struct window): Move frozen_window_start_p after the
5615 rest of the bitfields to reduce padding.
5616
56172008-09-18 Chong Yidong <cyd@stupidchicken.com>
5618
5619 * xterm.h (x_display_info): Remove `height' and `width' members.
5620
5621 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5622
5623 * w32term.h (w32_display_info): Remove `height', `width',
5624 `height_in', and `width_in' members.
5625
b8ff72fa
SM
5626 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5627 New functions.
aac0c6e3
MR
5628 (x_calc_absolute_position): Use them.
5629 (x_term_init): Omit removed `height' and `width' members.
5630
b8ff72fa
SM
5631 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5632 New functions.
aac0c6e3
MR
5633 (w32_read_socket, x_calc_absolute_position): Use them.
5634 (w32_initialize_display_info, w32_term_init): Omit removed members
5635 of w32_display_info.
5636
b8ff72fa
SM
5637 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5638 New functions.
5639 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5640
b8ff72fa
SM
5641 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5642 New functions.
aac0c6e3
MR
5643 (x_calc_absolute_position): Use them.
5644 (x_term_init): Omit removed `height' and `width' members.
5645
5646 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5647 (compute_tip_xy):
5648 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5649 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5650 x_display_pixel_width.
5651
56522008-09-18 Kenichi Handa <handa@m17n.org>
5653
5654 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5655 (composition_compute_stop_pos): Fix handling of static composition.
5656 (Fcomposition_get_gstring): Check FROM and TO at first.
5657
56582008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5659
46e722a9 5660 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5661 mixup (YAILOM).
5662
56632008-09-17 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * indent.c (Fvertical_motion): Use position reported by iterator
5666 instead of PT for determining screen motion (bug#943).
5667
56682008-09-17 Romain Francoise <romain@orebokech.com>
5669
5670 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5671
56722008-09-17 Kenichi Handa <handa@m17n.org>
5673
5674 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5675
5676 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5677 if necessary.
5678
56792008-09-16 Kenichi Handa <handa@m17n.org>
5680
5681 * coding.c (make_conversion_work_buffer): Avoid calling
5682 Fget_buffer_create if it is not necessary.
5683
56842008-09-15 Martin Rudalics <rudalics@gmx.at>
5685
5686 * window.c (Fselect_window): Don't update window_select_count and
5687 use_time when norecord is not nil.
5688
56892008-09-14 Kenichi Handa <handa@m17n.org>
5690
5691 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5692 specpdl_ptr.
5693
56942008-09-12 Kenichi Handa <handa@m17n.org>
5695
5696 * indent.c (scan_for_column): Don't handle automatic composition
5697 if the current buffer is not associated with a window.
5698
5699 * composite.c (composition_reseat_it): If the current buffer is
5700 not associated with a window, ignore the automatic composition.
5701 (find_automatic_composition): Likewise.
5702
57032008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5704
5705 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5706 (Fgpm_mouse_stop): Use it.
5707 * termhooks.h (close_gpm): Declare.
5708 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5709 connection if Gpm_GetEvent fails.
5710
5711 * window.c (set_window_buffer): Always preserve current-buffer.
5712
57132008-09-12 Glenn Morris <rgm@gnu.org>
5714
5715 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5716
57172008-09-11 Glenn Morris <rgm@gnu.org>
5718
5719 * charset.c (charset-map-path): Doc fix.
5720
57212008-09-10 Kenichi Handa <handa@m17n.org>
5722
5723 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5724
5725 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5726 compose a grapheme cluster with the preceding base glyph.
5727
5728 * composite.c (composition_compute_stop_pos): Fix previous change.
5729 Reset cmp_it->id to -1 at first.
5730
57312008-09-10 Glenn Morris <rgm@gnu.org>
5732
5733 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5734
57352008-09-09 Chong Yidong <cyd@stupidchicken.com>
5736
5737 * keyboard.c (read_key_sequence): Reapply translation maps when
5738 switching keyboards.
5739
57402008-09-09 Kenichi Handa <handa@m17n.org>
5741
5742 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5743 characters.
5744
5745 * composite.c (FORWARD_CHAR): Fix calculation
5746 of (POSITION).pos_byte.
5747 (composition_compute_stop_pos): Limit the search of composition to
5748 at most 500 characters ahead. If we reach the limit or find a
5749 newline, set cmp_it->ch to -2 and return 0.
5750 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5751
57522008-09-08 Kenichi Handa <handa@m17n.org>
5753
5754 * indent.c (Fvertical_motion): Be sure to set
5755 it_overshoot_expected if it.cmp_it.id is non-negative.
5756
57572008-09-07 Andreas Schwab <schwab@suse.de>
5758
5759 * callproc.c (Fcall_process): Don't hold references to string data
5760 across garbage collection. Move initialisation of new_argv down
5761 to avoid compiler bug.
5762
57632008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5764
5765 * process.c (Fsystem_process_attributes): Doc fix.
5766
57672008-09-07 Chong Yidong <cyd@stupidchicken.com>
5768
5769 * callproc.c (Fcall_process): Canonicalize current directory name.
5770
5771 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5772 iterator advances to the next line if the current line ends in a
5773 continued tab.
5774
57752008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5776
5777 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5778 member to point to cmp_from.
5779
5780 * xdisp.c: Doc fix for references to gidx data member.
5781
57822008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5783
5784 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5785
57862008-09-07 Kenichi Handa <handa@m17n.org>
5787
5788 * composite.c (FORWARD_CHAR): Check STOP after
5789 incrementing (POSITION).pos.
5790
57912008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5792
5793 * process.c (Fsystem_process_attributes): Doc fix.
5794
57952008-09-06 Chong Yidong <cyd@stupidchicken.com>
5796
5797 * keyboard.c (Ftop_level): Doc fix.
5798
57992008-09-06 Eli Zaretskii <eliz@gnu.org>
5800
5801 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5802 minibuffer, don't let lower part of menu invade the echo area.
5803
5804 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5805 "char *q" to access menu text and advance through it. Revert the
5806 change that displayed ">" instead of ASCII character 0x10.
5807
58082008-09-05 Eli Zaretskii <eliz@gnu.org>
5809
5810 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5811 toggle boxes and radio buttons on MS-DOS as well.
5812
58132008-09-05 Kenichi Handa <handa@m17n.org>
5814
5815 * composite.c (autocmp_chars): Check lookback count.
5816 (composition_compute_stop_pos): Set cmp_it->lookback.
5817 (composition_reseat_it): Check lookback count.
5818 (struct position_record): New struct.
5819 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5820 (find_automatic_composition): New function.
5821 (composition_adjust_point): Use find_automatic_composition.
5822
5823 * dispextern.h (struct composition_it): New member lookback.
5824
58252008-09-02 Chong Yidong <cyd@stupidchicken.com>
5826
5827 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5828 if moving by a single line.
5829
58302008-09-02 Andreas Schwab <schwab@suse.de>
5831
5832 * xterm.c (x_delete_display): Fix merge error.
5833
5834 * fileio.c (Fexpand_file_name): Remove unused variables.
5835
58362008-09-02 Eli Zaretskii <eliz@gnu.org>
5837
5838 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5839 storage on all platforms, not just on DOS_NT.
5840
58412008-09-02 Jason Rumney <jasonr@gnu.org>
5842
b8ff72fa
SM
5843 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5844 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5845
58462008-09-01 Chong Yidong <cyd@stupidchicken.com>
5847
5848 * xfaces.c (Finternal_set_alternative_font_family_alist)
5849 (Finternal_set_alternative_font_registry_alist): Properly copy
5850 entire alist structure.
5851
58522008-09-01 Kenichi Handa <handa@m17n.org>
5853
d66c0241 5854 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5855 representative chars of the script is a vector.
d66c0241
JB
5856 (ftfont_list): Handle the case where the representative chars of
5857 the script is a vector.
aac0c6e3
MR
5858
5859 * character.c (syms_of_character): Docstring of
5860 script-representative-chars fixed.
5861
58622008-08-31 Eli Zaretskii <eliz@gnu.org>
5863
5864 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5865 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5866 the menu. Allocate larger buffer for `text', to account for
5867 possible ^C characters.
5868
58692008-08-31 Martin Rudalics <rudalics@gmx.at>
5870
5871 * xdisp.c (prepare_menu_bars): Don't call
5872 Vwindow_size_change_functions with arg Qt.
5873
58742008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5875
5876 * font.h (font_range):
5877 * fileio.c (report_file_error):
46e722a9
SM
5878 * composite.c (composition_update_it): Yet another int/Lisp_Object
5879 mixup (YAILOM).
aac0c6e3
MR
5880
58812008-08-30 Glenn Morris <rgm@gnu.org>
5882
5883 * data.c (Fmake_variable_frame_local): Doc fix.
5884
5885 * frame.c (Fmodify_frame_parameters): Doc fix.
5886
58872008-08-30 Eli Zaretskii <eliz@gnu.org>
5888
5889 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5890 needed by GetTokenInformation.
5891 (w32_system_process_attributes): Check return values of all system
5892 APIs.
5893
5894 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5895 only when the state changes.
5896 (IT_update_begin, IT_update_end): Add termscript trace.
5897
5898 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5899 clipboard is unavailable. Set dst to NULL if it doesn't point to
5900 malloc'ed data.
5901 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5902 passing random values to xfree.
5903
5904 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5905 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5906
59072008-08-29 Jason Rumney <jasonr@gnu.org>
5908
5909 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5910
59112008-08-29 Eli Zaretskii <eliz@gnu.org>
5912
5913 * composite.c (fill_gstring_body): Avoid compiler warnings.
5914
5915 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5916 LGLYPH_SET_CODE to avoid compiler warnings.
5917
2ae37cf0 5918 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5919
5920 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5921
5922 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5923 LGLYPH_SET_CODE.
5924
59252008-08-29 Kenichi Handa <handa@m17n.org>
5926
5927 * fileio.c (report_file_error): Don't downcase the first character
5928 of errstring if it is still unibyte.
5929
59302008-08-29 Kenichi Handa <handa@m17n.org>
5931
5932 These changes are to re-implement the automatic composition so
5933 that it doesn't use text properties.
5934
5935 * Makefile.in (ftfont.o): Depend on composite.h.
5936 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5937
5938 * character.h (Vunicode_category_table): Extern it.
5939
5940 * character.c (Vunicode_category_table): New variable.
5941 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5942
5943 * chartab.c (optimize_sub_char_table): Perform more greedy
5944 optimization.
5945
b8ff72fa
SM
5946 * composite.h (enum composition_method):
5947 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5948 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5949 (Vcomposition_function_table): Extern it.
5950 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5951 (composition_gstring_put_cache, composition_gstring_from_id)
5952 (composition_gstring_p, composition_gstring_width)
5953 (composition_compute_stop_pos, composition_reseat_it)
5954 (composition_update_it, composition_adjust_point): Extern them.
5955 (Fcomposition_get_gstring): EXFUN it.
5956
d66c0241 5957 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5958 (Vcomposition_function_table)
5959 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5960 (gstring_hash_table, gstring_work, gstring_work_headers):
5961 New variables.
aac0c6e3
MR
5962 (gstring_lookup_cache, composition_gstring_put_cache)
5963 (composition_gstring_from_id, composition_gstring_p)
5964 (composition_gstring_width, fill_gstring_header)
5965 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5966 (composition_reseat_it, composition_update_it)
b8ff72fa 5967 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5968 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5969 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5970 Defsubr compostion_get_gstring.
5971
5972 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5973 cmp_id.
5974 (struct glyph_string): Delete the member gidx. New members
5975 cmp_id, cmp_from, and cmp_to.
5976 (enum it_method): Delete GET_FROM_COMPOSITION.
5977 (struct composition_it): New struct.
5978 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5979 Delete c, len, cmp_id, cmp_len in u.comp.
5980
5981 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5982 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5983 (enum lglyph_indices): Likewise.
b8ff72fa 5984 (font_range): Adjust extern.
aac0c6e3
MR
5985 (font_fill_lglyph_metrics): Extern it.
5986
5987 * font.c (QCf): New variable.
5988 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5989 (font_prepare_composition): Delete this function.
5990 (font_range): Type and arguments changed.
5991 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5992 (font_fill_lglyph_metrics): New function.
b8ff72fa 5993 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5994 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5995 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5996 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5997
5998 * fontset.h (font_for_char): Extern it.
5999
6000 * fontset.c (font_for_char): New function.
6001
6002 * ftfont.c: Include composite.h.
6003 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 6004 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
6005
6006 * indent.c: Include composite.h and dispextern.h.
6007 (check_composition): Delete this function.
6008 (scan_for_column): Handle composition by
6009 composition_compute_stop_pos, composition_reseat_it, and
6010 composition_update_it.
6011 (compute_motion): Likewise.
6012 (Fvertical_motion): Fix checking of composition.
6013
6014 * keyboard.c (adjust_point_for_property): Check composition by
6015 composition_adjust_point.
6016
b8ff72fa 6017 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
6018 struct glyph_string.
6019
b8ff72fa
SM
6020 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
6021 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
6022 struct glyph.
6023 (produce_composite_glyph): Likewise.
6024
b8ff72fa
SM
6025 * w32term.c (x_draw_composite_glyph_string_foreground):
6026 Adjust for the change of struct glyph_string.
aac0c6e3
MR
6027 (x_draw_glyph_string): Likewise.
6028
6029 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
6030 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
6031
6032 * xdisp.c: Include font.h.
6033 (it_props): Delete the entry for Qauto_composed.
6034 (init_iterator): Initialize it->cmp_it.id to -1.
6035 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 6036 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
6037 (handle_auto_composed_prop): Delete it.
6038 (handle_composition_prop): Handle only static composition.
6039 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
6040 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 6041 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
6042 (pop_it): Likewise.
6043 (get_next_element): Delete next_element_from_composition.
6044 (CHAR_COMPOSED_P): New macro.
6045 (get_next_display_element): For automatic composition, get a face
6046 from the font in the glyph-string.
6047 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6048 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6049 (next_element_from_string): Check if the character at the current
6050 position is composed by CHAR_COMPOSED_P.
6051 (next_element_from_buffer): Likewise.
d66c0241
JB
6052 (next_element_from_composition): Adjust for the change of struct it.
6053 Update it->cmp_it.
b8ff72fa
SM
6054 (dump_glyph): Adjust for the change of struct glyph.
6055 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6056 it and struct glyph. Don't handle automatic composition here.
6057 (fill_gstring_glyph_string): New function.
6058 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6059 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6060 (BUILD_GSTRING_GLYPH_STRING): New macro.
6061 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6062 automatic composition.
b8ff72fa 6063 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6064 struct glyph.
b8ff72fa 6065 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6066
b8ff72fa 6067 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6068 the change of struct glyph_string.
6069 (x_draw_glyph_string): Likewise.
6070
60712008-08-29 Glenn Morris <rgm@gnu.org>
6072
6073 * buffer.c (word-wrap): Doc fix.
6074 * xdisp.c (truncate-partial-width-windows): Doc fix.
6075 Increase default to 50.
6076
60772008-08-29 Chong Yidong <cyd@stupidchicken.com>
6078
6079 * xdisp.c (update_tool_bar_unwind): New function.
6080 (update_tool_bar): Temporarily set selected frame before building
6081 tool-bar items.
6082
60832008-08-28 Michael Albinus <michael.albinus@gmx.de>
6084
6085 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6086 snprintf, respectively.
6087 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6088
60892008-08-28 Chong Yidong <cyd@stupidchicken.com>
6090
6091 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6092 LDFLAGS to GNUstep CC invocation.
6093
60942008-08-27 Chong Yidong <cyd@stupidchicken.com>
6095
6096 * indent.c (Fvertical_motion): Revert last change. Handle the
6097 general case where we are moving forward, and PT spans multiple
6098 screen lines.
6099
6100 * eval.c (find_handler_clause): Temporarily increase
6101 max-lisp-eval-depth while printing the backtrace buffer, to
6102 guarantee that help-mode code can run.
6103
61042008-08-27 Eli Zaretskii <eliz@gnu.org>
6105
6106 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6107 colors under -rv.
6108 (IT_set_frame_parameters): Don't swap foreground and background
6109 colors if `(reverse . t)' is present in the frame properties.
6110 (internal_terminal_init): Call init_frame_faces only for the
6111 initial frame.
6112
61132008-08-27 Andreas Schwab <schwab@suse.de>
6114
6115 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6116
61172008-08-27 Andreas Schwab <schwab@suse.de>
6118
6119 * search.c (search_buffer): Set char_base to zero only at the end.
6120
61212008-08-27 Kenichi Handa <handa@m17n.org>
6122
b8ff72fa 6123 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6124
61252008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6126
6127 * xterm.c (x_term_init): Temporarily hide the partially
6128 initialized terminal while calling vendor-specific-keysyms.
6129
61302008-08-26 Eli Zaretskii <eliz@gnu.org>
6131
6132 * msdos.c (internal_terminal_init): Most initializations done only
6133 once, especially initial_screen_colors[] and termscript open.
6134
61352008-08-26 Chong Yidong <cyd@stupidchicken.com>
6136
6137 * eval.c (Fcondition_case): Doc fix.
6138
6139 * widgetprv.h (EmacsFramePart): Change font member to the new font
6140 struct.
6141
6142 * widget.c: Include character.h and font.h for XSETFONT.
6143 (setup_frame_gcs): Compute X font id from font struct, just once.
6144
61452008-08-26 Eli Zaretskii <eliz@gnu.org>
6146
6147 * term.c (get_named_tty): Fix last change.
6148
61492008-08-26 Chong Yidong <cyd@stupidchicken.com>
6150
6151 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6152 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6153
61542008-08-25 Eli Zaretskii <eliz@gnu.org>
6155
6156 * frame.c (do_switch_frame): Mark previously displayed frame as
6157 obscured for FRAME_MSDOS_P frames as well.
6158
61592008-08-24 Eli Zaretskii <eliz@gnu.org>
6160
6161 * frame.c (make_terminal_frame): Initialize f->terminal,
6162 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6163 Set the top frame to newly created frame.
6164 (Fmake_terminal_frame): Reuse the_only_display_info.
6165
6166 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6167 estimating available memory.
6168
b97439ce 61692008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6170
6171 * nsterm.m (ns_draw_window_cursor): Don't call
6172 NSDisableScreenUpdates and NSEnableScreenUpdates on
6173 non-NS_IMPL_COCOA systems.
6174
61752008-08-23 Andreas Schwab <schwab@suse.de>
6176
6177 * process.c (procfs_system_process_attributes): Fix use of
6178 uninitialized variables.
6179
61802008-08-23 Eli Zaretskii <eliz@gnu.org>
6181
6182 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6183
6184 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6185 calling tty-set-up-initial-frame-faces.
6186
b8ff72fa
SM
6187 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6188 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6189
6190 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6191 addition to output_termcap.
6192
6193 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6194
6195 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6196 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6197 highlight.
6198
6199 * process.c [!subprocesses]: Define QCname.
6200 (syms_of_process): Intern and staticpro it.
6201
6202 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6203 Adjust for changes in encoding/decoding routines.
6204 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6205 encode_coding and decode_coding.
6206
b8ff72fa 6207 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6208
6209 * dosfns.c: Include frame.h before termhooks.h.
6210 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6211 variable termscript.
6212
6213 * s/msdos.h (USER_FULL_NAME): Define.
6214 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6215
6216 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6217 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6218 pw->pw_gecos.
6219
6220 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6221 SELECTED_FRAME as additional (1st) argument.
6222 (tty_read_avail_input): Handle output_msdos_raw in
6223 addition to output_termcap.
6224
6225 * msdos.c: Include frame.h before termhooks.h.
6226 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6227 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6228 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6229 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6230 (IT_set_terminal_modes, IT_reset_terminal_modes)
6231 (IT_set_frame_parameters): Use tty->termscript instead of a global
6232 variable termscript.
6233 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6234 global variable terminal_coding. Don't refer to
6235 Vnonascii_translation_table.
6236 (internal_terminal_init): Set Vwindow_system in current_kboard.
6237 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6238 Announce date and time of session start, if termscript is open.
6239 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6240 term.c:init_tty). Open termscript only of not already open.
6241 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6242 here instead of dos_ttraw. Don't initialize display if this is an
6243 initial tty. Don't set FRAME_FONT.
6244 (Vwindow_system_version): Bump to 23.
6245 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6246 is available, set up mouse_position_hook.
6247 (dos_ttraw, IT_set_terminal_modes): If called with initial
6248 terminal, do nothing.
6249 (IT_set_frame_parameters): Handle the Qtty_type frame
6250 parameter by calling internal_terminal_init.
6251 (dos_set_window_size, show_mouse_face)
6252 (clear_mouse_face, IT_note_mode_line_highlight)
6253 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6254 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6255 (initialize_msdos_display): New function.
6256 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6257 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6258 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6259 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6260 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6261 (request_sigio, unrequest_sigio): Don't define, now defined on
6262 sysdep.c.
6263 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6264
6265 * term.c [MSDOS]: Include msdos.h.
6266 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6267 conditional to DOS_NT. Allow only one call to this function in a
6268 session. Don't allocate a new struct tty_display_info; instead,
6269 reuse the_only_display_info. Call get_tty_size to get screen
6270 dimensions. Call init_baud_rate to set bad_rate.
6271 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6272 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6273 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6274 (get_tty_terminal, get_named_tty, Ftty_type)
6275 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6276 output_termcap.
b8ff72fa
SM
6277 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6278 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6279 only when subprocesses are supported.
aac0c6e3
MR
6280
6281 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6282 f->output_data.x.
6283 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6284 terminal devices.
6285
5582fbc7 6286 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6287 x_output.
6288 (FRAME_FONT): Use output_data.tty.
6289 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6290 (struct x_display_info): Rename from display_info. Update all users in
6291 msdos.c.
aac0c6e3 6292 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6293 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6294 (dos_ttraw): Update prototype.
6295
6296 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6297 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6298
62992008-08-23 Jason Rumney <jasonr@gnu.org>
6300
6301 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6302 (fn_TIFFSetDirectory): New library function used.
6303 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6304 (tiff_load): Use :index to select among multiple images. Set count
6305 property when multiple images exist.
6306 (gif_format): Use :index, not :image.
6307
63082008-08-23 Chong Yidong <cyd@stupidchicken.com>
6309
6310 * xdisp.c (try_scrolling): Check INT_MAX instead of
6311 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6312 to obtain INT_MAX.
6313
63142008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6315
6316 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6317
63182008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6319
6320 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6321 GNUstep library location.
6322
63232008-08-21 Chong Yidong <cyd@stupidchicken.com>
6324
6325 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6326 before using it.
6327
6328 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6329
63302008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6331
6332 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6333 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6334 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6335 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6336 (EmacsApp-cursor_blink_handler): Remove declaration.
6337 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6338 match 01 Feb 2008 changes in xterm.c.
6339 (ns_read_socket): Add cast to avoid warning.
6340 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6341 GNUstep.
6342
63432008-08-20 Chong Yidong <cyd@stupidchicken.com>
6344
6345 * xselect.c (x_get_foreign_selection): Return nil if desired
6346 selection could not be obtained, instead of signalling an error.
6347
63482008-08-20 David Reitter <david.reitter@gmail.com>
6349
6350 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6351 * nsterm.m: Remove ns-specific code for cursor blinking.
6352 (ns_draw_window_cursor): Clear cursor properly rather than
6353 redrawing the area. Respect width of bar cursors.
6354 These changes enable the use of generic blink-cursor-mode and
6355 generic cursor types in NS and support smooth cursor movements (do
6356 not blink off after command).
6357 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6358 Nextstep, too.
6359
63602008-08-19 Kenichi Handa <handa@m17n.org>
6361
6362 * font.c (Vfont_log_deferred): New variable.
6363 (font_add_log): Check Vfont_log_deferred.
6364 (font_deferred_log): New function.
6365
6366 * font.h (font_deferred_log): Extern it.
6367
6368 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6369 for sorting.
6370 (face_for_char): Use deferred log.
6371
63722008-08-18 Kenichi Handa <handa@m17n.org>
6373
6374 * fontset.c (face_for_char): Add font log.
6375
6376 * font.c (font_add_log): Add the font properties :script, :lang,
6377 and :otf in the log.
6378
63792008-08-17 Chong Yidong <cyd@stupidchicken.com>
6380
6381 * xdisp.c: Remove dead code.
6382 (handle_invisible_prop, next_overlay_string): Defer call to
6383 setup_for_ellipsis.
6384 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6385
63862008-08-15 Chong Yidong <cyd@stupidchicken.com>
6387
6388 * xfaces.c (lookup_derived_face): Properly handle possible zero
6389 return value of get_lface_attributes.
6390 (merge_faces): Don't tell lookup_derived_face to signal an error
6391 if face is not found.
6392
6393 * dired.c (Fdirectory_files): Doc fix.
6394
6395 * process.c (make_process): Initialize kill_without_query struct
6396 member.
6397
63982008-08-15 Eli Zaretskii <eliz@gnu.org>
6399
6400 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6401 Alternative calculation of totphys for Visual Studio 6.
6402
6403 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6404
6405 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6406 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6407 All users changed.
6408 (stat): Only root directory passed to GetDriveType. Allow RAM
6409 disk as well as local fixed disk when w32-get-true-file-attributes
6410 is set to `local'.
6411 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6412 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6413 (w32_cached_id, w32_add_to_cache): New functions.
6414 (get_name_and_id): Look account names in the cache before calling
6415 lookup_account_sid.
6416 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6417 New initialization flags.
6418 (globals_of_w32): Initialize them to zero.
6419 (w32_system_process_attributes): Use w32_cached_id and
6420 w32_add_to_cache.
6421
64222008-08-14 Lawrence Mitchell <wence@gmx.li>
6423
6424 * lread.c (Fread_char, Fread_char_exclusive): If no character
6425 event is read before timeout is reached, return nil, rather than
6426 converting to a number.
6427
64282008-08-14 Chong Yidong <cyd@stupidchicken.com>
6429
6430 * fns.c (use_dialog_box): Doc fix.
6431
6432 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6433 on OS X.
6434
64352008-08-13 Chong Yidong <cyd@stupidchicken.com>
6436
6437 * frame.c (Qns_parse_geometry): New var.
6438 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6439
64402008-08-11 Chong Yidong <cyd@stupidchicken.com>
6441
6442 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6443 space character in calculating tabs.
6444
64452008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6446
6447 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6448
64492008-08-10 Glenn Morris <rgm@gnu.org>
6450
6451 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6452 silence gcc "limited range of data type" warnings in some
6453 make_fixnum_or_float calls.
6454
64552008-08-09 Eli Zaretskii <eliz@gnu.org>
6456
6457 * w32.c (w32_system_process_attributes): If the process does not
6458 exist, return nil.
6459
6460 * w32.c: Include thelp32.h, psapi.h and coding.h.
6461 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6462 declarations.
6463 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6464 (Process32Next_Proc): New typedefs.
6465 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6466 (g_b_init_process32_next, g_b_init_open_thread_token)
6467 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6468 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6469 (g_b_init_get_process_working_set_size)
6470 (g_b_init_global_memory_status_ex): New static variables.
6471 (globals_of_w32): Initialize them.
6472 (create_toolhelp32_snapshot, process32_first, process32_next)
6473 (open_thread_token, impersonate_self, revert_to_self)
6474 (get_process_memory_info, get_process_working_set_size)
6475 (global_memory_status, global_memory_status_ex): New wrapper
6476 functions.
6477 (w32_list_system_processes, w32_system_process_attributes)
6478 (enable_privilege, restore_privilege, ltime, process_times):
6479 New functions.
6480 (convert_time_raw): New function.
6481 (convert_time): Remove conversion of FILETIME into time in 100
6482 nsec units, call convert_time_raw instead.
6483
6484 * process.h (w32_list_system_processes, w32_system_process_attributes):
6485 Add prototypes.
6486 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6487 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6488 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6489 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6490
6491 * process.c (Fsystem_process_attributes): Doc fix.
6492
64932008-08-08 Chong Yidong <cyd@stupidchicken.com>
6494
6495 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6496 a continued multi-char glyph; if so, advance to the actual glyph.
6497
64982008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6499
6500 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6501
6502 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6503 (.m.o): Use it.
6504 * config.in: Regenerate.
6505
65062008-08-07 Chong Yidong <cyd@stupidchicken.com>
6507
6508 * xdisp.c (redisplay_window): Revert last change.
6509 (try_window): Check bottom scroll margin too.
6510
65112008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6512
6513 * config.in: Regenerate.
6514
6515 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6516 -list-load-path-shadows'.
6517 (nsgui.h): Reduce number of things depending on it.
6518
65192008-08-06 Chong Yidong <cyd@stupidchicken.com>
6520
6521 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6522 instead of window-end which does the wrong thing at eob.
6523 (try_cursor_movement): Minor optimization.
6524 (redisplay_window): If scroll margin is defined, don't assume
6525 window doesn't need scrolling.
6526
65272008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6528
6529 * config.in: Regenerate.
6530
6531 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6532 (mostlyclean): Don't delete *.d under NS.
6533
6534 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6535
65362008-08-06 Kenichi Handa <handa@m17n.org>
6537
6538 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6539
65402008-08-06 Andreas Schwab <schwab@suse.de>
6541
6542 * config.in: Regenerate.
6543
65442008-08-05 Chong Yidong <cyd@stupidchicken.com>
6545
6546 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6547 forcing a window start.
6548
6549 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6550 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6551
65522008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6553
6554 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6555 argument.
6556
65572008-08-05 Juanma Barranquero <lekktu@gmail.com>
6558
6559 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6560 <scroll-down-aggressively, before-change-functions>:
6561 <after-change-functions>: Reflow docstrings.
6562
65632008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6564 Ken Raeburn <raeburn@gnu.org>
6565
6566 Dock menu customization, based on a patch by Ken Raeburn, plus some
6567 other fixes.
6568 * nsmenu.m (dockMenu): New variable.
6569 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6570
6571 * nsterm.h (dockMenu): Declare.
6572
6573 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6574 (ns_term_init): Initialize dockMenu.
6575 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6576 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6577 left.
6578
6579 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6580
65812008-08-04 Chong Yidong <cyd@stupidchicken.com>
6582
6583 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6584
6585 * config.in: Regenerate.
6586
65872008-08-04 Seiji Zenitani <zenitani@mac.com>
6588
6589 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6590
65912008-08-04 Chong Yidong <cyd@stupidchicken.com>
6592
6593 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6594
65952008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6596
6597 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6598
6599 * keyboard.h: Comment an #endif.
6600
6601 * lisp.h (have_menus_p): Adjust comment.
6602
6603 * menu.c (find_and_return_menu_selection): Fix comparison with
6604 client_data.
6605
6606 * nsmenu.m (popup_activated_flag): New variable.
6607 (popup_activated): New function.
6608 (menu-or-popup-active-p): New exported lisp definition.
6609 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6610 when popup done.
6611 (ns_popup_dialog): Set popup_activated_flag.
6612
6613 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6614 version for GNUstep (handled by conditional typedef in nsterm.m).
6615 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6616 in rgb.txt).
6617
6618 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6619
6620 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6621
6622 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6623
6624 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6625 shortcircuit if popup_activated like GTK and X toolkit.
6626
6627 * m/inter386.h: Change DARWIN to DARWIN_OS.
6628
6629 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6630 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6631 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6632 comment on NO_SOCK_SIGIO.
6633
66342008-08-03 Chong Yidong <cyd@stupidchicken.com>
6635
6636 * nsterm.m (windowDidResize): Remove stopModal call.
6637
66382008-08-03 Andreas Schwab <schwab@suse.de>
6639
6640 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6641 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6642
66432008-08-02 Chong Yidong <cyd@stupidchicken.com>
6644
6645 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6646 Don't use uninitialized pointer variable when using getrlimit.
6647
66482008-08-02 Jason Rumney <jasonr@gnu.org>
6649
6650 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6651
66522008-08-02 Eli Zaretskii <eliz@gnu.org>
6653
6654 * alloc.c (NSTATICS): Bump to 0x640.
6655
6656 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6657
6658 * lisp.h: Add prototype for directory_files_internal.
6659
6660 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6661 New functions.
6662 (syms_of_process): Defsubr them. Add initializations for various
6663 Q* symbols used in procfs_system_process_attributes.
6664 (procfs_list_system_processes, procfs_system_process_attributes)
6665 [HAVE_PROCFS]: New functions.
6666 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6667 (procfs_get_total_memory): New functions.
6668
66692008-08-01 Juanma Barranquero <lekktu@gmail.com>
6670
6671 * xfaces.c (Fx_load_color_file): Fix previous change;
6672 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6673
66742008-08-01 Michael Albinus <michael.albinus@gmx.de>
6675
6676 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6677
66782008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6679
6680 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6681
66822008-08-01 Chong Yidong <cyd@stupidchicken.com>
6683
6684 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6685
6686 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6687 define NSApplicationDelegateReplySuccess.
6688 (EmacsView -converstationIdentifier): Use long instead of
6689 NSInteger for GNUstep, since it doesn't have NSInteger.
6690
6691 * xmenu.c: Revert last change.
6692
6693 * keyboard.h: Fix last change.
6694
66952008-08-01 Juanma Barranquero <lekktu@gmail.com>
6696
6697 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6698 on Windows.
6699
67002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6701
6702 Warning clearing and clean-up in NS port.
6703 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6704 Add prototypes.
6705 * nsgui.h (FACE_DEFAULT): Remove, unused.
6706 (XGCValues): Change colors to unsigned long.
6707 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6708 nsterm.m.
6709 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6710 (ns_list_fonts): Remove, unused.
6711 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6712 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6713 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6714 (nsfont_draw): Compare face colors to 0, not nil.
6715 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6716 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6717 (-addSubmenuWithTitle:): Use NSMenuItem class.
6718 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6719 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6720 (ns_clip_to_row): Make gc arg a BOOL.
6721 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6722 ns_clip_to_row() call.
6723 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6724 used). Cast FRAME_FONT assignments.
6725 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6726 (ns_string_to_lispmod): Change arg to const char.
6727 (ns_term_init): Use NSMenuItem class.
6728 (EmacsApp -openFile:): Move to different section of file.
6729 (EmacsApp -application:openFiles:): Don't return a value, call
6730 -replyToOpenOrPrint:.
6731 (EmacsView -keyDown:): Fix up cast.
6732 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6733 (EmacsView -menuDown:): Cast tag in call to
6734 find_and_call_menu_selection().
6735 (ns_list_fonts): Remove, unused.
6736 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6737 (ns_fontname_to_xlfd): Make static.
6738 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6739 Remove prototypes (now in keyboard.h).
6740 (next_menubar_widget_id): Remove, unused.
6741 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6742 Remove prototypes (now in keyboard.h).
6743 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6744
67452008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6746
6747 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6748 (floatfns.o): Depend on syssignal.h.
6749 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6750
6751 * systty.h: Fix previous change that removed BSD_TERMIOS.
6752 Add comments to #ifdefs.
6753
67542008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6755
6756 * w32fns.c (w32-load-color-file): Remove.
6757 (x-open-connection): Use renamed Fx_load_color_file.
6758 * xfaces.c (x-load-color-file): Add.
6759 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6760 Emacs.clr.
6761 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6762
67632008-07-31 Michael Albinus <michael.albinus@gmx.de>
6764
6765 * dbusbind.c (Fdbus_call_method_asynchronously)
6766 (Fdbus_method_error_internal): New defuns.
6767 (xd_read_message): Handle also reply messages.
6768 (Vdbus_registered_functions_table): Extend docstring.
6769
67702008-07-31 Juanma Barranquero <lekktu@gmail.com>
6771
6772 * keyboard.c (gobble_input): Fix previous change.
6773
67742008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6775
6776 * bitmaps/README:
6777 * xfns.c:
6778 * termcap.c:
6779 * term.c:
6780 * syswait.h:
6781 * systty.h:
6782 * systime.h:
6783 * syssignal.h:
6784 * sysdep.c:
6785 * process.h:
6786 * process.c:
6787 * print.c:
6788 * ndir.h:
6789 * lread.c:
6790 * keyboard.c:
6791 * getpagesize.h:
6792 * floatfns.c:
6793 * fileio.c:
6794 * emacs.c:
6795 * doc.c:
6796 * dispnew.c:
6797 * dired.c:
6798 * data.c:
6799 * callproc.c:
6800 * buffer.c:
6801 * README:
6802 * Makefile.in:
6803 * s/template.h:
6804 * s/msdos.h:
6805 * m/vax.h: Remove VMS support.
6806 * s/vms.h:
6807 * vlimit.h:
6808 * uaf.h:
6809 * temacs.opt:
6810 * param.h:
6811 * ioctl.h: Remove file.
6812
68132008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6814
6815 * s/ms-w32.h (MULTI_KBOARD): Remove.
6816 * xterm.c:
6817 * xselect.c:
6818 * xfns.c:
6819 * window.c:
6820 * w32term.c:
6821 * w32fns.c:
6822 * terminal.c:
6823 * termhooks.h:
6824 * term.c:
6825 * sysdep.c:
6826 * keyboard.h:
6827 * keyboard.c:
6828 * frame.h:
6829 * frame.c:
6830 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6831 * config.in: Regenerate.
6832
68332008-07-30 Jason Rumney <jasonr@gnu.org>
6834
6835 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6836
6837 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6838 (w32font_open_internal): Get unicode version of textmetrics.
6839 Don't enable or disable glyph indices here.
6840 (w32font_open): Disable use of glyph indices.
6841
6842 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6843
68442008-07-30 Chong Yidong <cyd@stupidchicken.com>
6845
6846 * minibuf.c (Vread_buffer_function): Doc fix.
6847
68482008-07-30 John Paul Wallington <jpw@pobox.com>
6849
6850 * minibuf.c (read_buffer_completion_ignore_case): New var.
6851 (Fread_buffer): Use it.
6852
68532008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6854
6855 * systty.h (sensemode): Remove empty #if. Remove reference to
6856 BSD_TERMIOS, unused.
6857
6858 * sysdep.c: Remove reference to DGUX.
6859 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6860
6861 * config.in: Regenerate.
6862
68632008-07-30 Jason Rumney <jasonr@gnu.org>
6864
6865 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6866
68672008-07-29 Jason Rumney <jasonr@gnu.org>
6868
6869 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6870 is populated.
6871 (uniscribe_encode_char): Always use uniscribe.
6872 Avoid using context if cache is populated.
6873
68742008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6875
6876 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6877 open menu.
6878
6879 * gtkutil.c (menu_nav_ended): Remove.
6880 (create_menus): Remove signal connect for menu_nav_ended.
6881
68822008-07-28 Chong Yidong <cyd@stupidchicken.com>
6883
6884 * xdisp.c (redisplay_window): Check return value of
6885 compute_window_start_on_continuation_line before forcing a window
6886 start.
6887
68882008-07-28 Jason Rumney <jasonr@gnu.org>
6889
6890 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6891
6892 * w32term.c (w32_enable_unicode_output, cleartype_active):
6893 Remove obsolete display options.
6894 (x_draw_glyph_string_background): Don't use old cleartype_active
6895 workaround.
6896 (w32_initialize): Remove cleartype_active initialization.
6897 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6898
68992008-07-28 Andreas Schwab <schwab@suse.de>
6900
6901 * lisp.h (init_weak_hash_tables, syms_of_font)
6902 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6903 (remove_hash_entry): Don't declare.
6904 * eval.c (maybe_call_debugger): Make static and move before use.
6905 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6906 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6907 * xterm.h (x_set_frame_alpha): Declare.
6908
69092008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6910
6911 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6912 (create_menus): Connect selection-done to menu_nav_ended.
6913
69142008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6915
6916 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6917 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6918 parameter with read of 'alpha' one.
6919 (Qns_frame_parameter): Remove.
5582fbc7 6920 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6921 (next-selection-coding-system, Vselection_coding_system)
6922 (Vnext_selection_coding_system): Drop.
6923
69242008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6925
6926 * nsfns.m (do-applescript, do_applescript): Rename to
6927 ns-do-applescript, ns_do_applescript, and move within file.
6928
69292008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6930
6931 Remove support for Mac Carbon.
6932 * mactoolbox.c:
6933 * macterm.h:
6934 * macterm.c:
6935 * macselect.c:
6936 * macmenu.c:
6937 * macgui.h:
6938 * macfns.c:
6939 * mac.c: Remove file.
6940 * s/darwin.h:
6941 * m/intel386.h:
6942 * xfaces.c:
6943 * xdisp.c:
6944 * window.c:
6945 * tparam.c:
6946 * termhooks.h:
6947 * termcap.c:
6948 * term.c:
6949 * syssignal.h:
6950 * sysselect.h:
6951 * sysdep.c:
6952 * process.c:
6953 * lread.c:
6954 * lisp.h:
6955 * keyboard.c:
6956 * image.c:
6957 * fringe.c:
6958 * frame.h:
6959 * frame.c:
6960 * fontset.c:
6961 * font.h:
6962 * font.c:
6963 * fns.c:
6964 * fileio.c:
6965 * emacs.c:
6966 * dispnew.c:
6967 * dispextern.h:
6968 * config.in:
6969 * atimer.c:
2ae37cf0 6970 * Makefile.in: Remove code for Carbon.
aac0c6e3 6971
f0131492 69722008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6973
6974 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6975
69762008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6977
6978 * macterm.h (kCGBitmapByteOrder32Host): New define for
6979 non-universal SDKs.
6980
6981 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6982 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6983
6984 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6985 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6986
69872008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6988
6989 * w32inevt.c: Include dispextern.h.
6990
69912008-07-26 Andreas Schwab <schwab@suse.de>
6992
6993 * print.c (print_object): Fix off-by-one in last change.
6994
69952008-07-25 Juanma Barranquero <lekktu@gmail.com>
6996
6997 * term.c (syms_of_term): Don't initialize default_orig_pair,
6998 default_set_foreground and default_set_background on Windows.
6999
70002008-07-25 Jason Rumney <jasonr@gnu.org>
7001
7002 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
7003 ScriptItemize. Clean up return value checking. Remove unused
7004 variables.
7005 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
7006 shaping engine.
7007
7008 * w32font.c (w32font_has_char): Handle the case where we can't
7009 determine the script for a character.
7010
70112008-07-25 Chong Yidong <cyd@stupidchicken.com>
7012
7013 * term.c (syms_of_term): Initialize default_orig_pair,
7014 default_set_foreground, and default_set_background.
7015
7016 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
7017 clash (bug#86).
7018 (getloadavg): Callers changed.
7019
7020 * image.c (svg_load_image): Fix last change.
7021 (svg_load_image): Use rsvg_handle_get_dimensions to check that
7022 image size is valid. Use g_object_unref instead of deprecated
7023 rsvg_handle_free to free rsvg handle.
7024 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7025
70262008-07-25 Jason Rumney <jasonr@gnu.org>
7027
7028 * w32font.c (w32font_encode_char): Encode characters outside BMP as
7029 surrogates before looking up glyph index.
7030 (w32font_text_extents): Encode as surrogates if falling back to
7031 functions that need UTF-16 wide chars.
7032
7033 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
7034 BMP as surrogates before looking up glyph index.
7035
70362008-07-25 Chong Yidong <cyd@stupidchicken.com>
7037
7038 * image.c (svg_load_image): Check for failure in return value of
7039 rsvg_handle_get_pixbuf. Free rsvg handle when done.
7040
70412008-07-25 Jason Rumney <jasonr@gnu.org>
7042
7043 * w32font.c (Fx_select_font): Reverse sense of second arg.
7044
70452008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
7046
7047 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7048 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7049
7050 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7051 (PURESIZE): Use it.
7052
70532008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7054
7055 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7056 * m/alpha.h (TEXT_END):
7057 * m/ibmrs6000.h (TEXT_END):
7058 * m/macppc.h (TEXT_END):
7059 * s/darwin.h (TEXT_END):
7060 * s/msdos.h (TEXT_END): Remove, unused.
7061 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7062 * s/cygwin.h: Remove comment.
7063
7064 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7065 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7066 * m/intel386.h (DOT_GLOBAL_START):
7067 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7068 (USG): Remove, file not used on USG platforms.
7069
7070 * Makefile.in (HAVE_X11): Remove empty #else.
7071
70722008-07-24 Andreas Schwab <schwab@suse.de>
7073
7074 * fileio.c (Finsert_file_contents): Properly adjust undo list
7075 after format conversion.
7076
70772008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7078
7079 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7080 (menu_nav_ended): Remove.
7081 (create_menus): Remove signal connect for menu_nav_ended.
7082 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7083 create_menus.
7084 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7085
70862008-07-23 Jason Rumney <jasonr@gnu.org>
7087
7088 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7089 with opened font.
7090 (w32font_open): Set font type to gdi.
7091
7092 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7093
70942008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7095
7096 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7097 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7098 defines it.
7099 * unexec.c (ADDR_CORRECT): Define unconditionally.
7100
7101 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7102
7103 * unexec.c: Remove code depending on !COFF and USG, the file is
7104 not used for such systems.
7105
7106 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7107 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7108 (LD_SWITCH_SYSTEM_1): Remove, update users.
7109
7110 * s/darwin.h (DATA_END):
7111 * m/intel386.h (DATA_END):
7112 * m/ibmrs6000.h (DATA_END):
7113 * m/alpha.h (DATA_END): Remove, unused.
7114
7115 * config.in: Regenerate.
7116 * s/ms-w32.h (subprocesses): Define unconditionally.
7117 * s/template.h (subprocesses): Update comment.
7118 * s/vms.h (subprocesses):
7119 * s/usg5-4.h (subprocesses):
7120 * s/hpux10-20.h (subprocesses):
7121 * s/gnu-linux.h (subprocesses):
7122 * s/cygwin.h (subprocesses):
7123 * s/bsd-common.h (subprocesses):
7124 * s/aix4-2.h (subprocesses):
7125 * s/darwin.h (subprocesses): Do not define, defined by default now.
7126
7127 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7128 Remove all references.
7129 (temacs): Add GNUstep specific ld flags.
7130
7131 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7132 similarly to what X does.
7133
71342008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7135
7136 * nsfns.m (x-list-fonts): Remove.
7137 (syms_of_nsfns): Drop the x-list-fonts declaration.
7138 * nsterm.m: Get rid of remaining "//" comments.
7139
71402008-07-22 Chong Yidong <cyd@stupidchicken.com>
7141
7142 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7143
7144 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7145 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7146 (Fns_own_selection_internal, Fx_disown_selection_internal)
7147 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7148
7149 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7150 ... */' style of docstrings. Doc fixes.
7151
71522008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7153
7154 * terminfo.c (UP, BC, PC): Undo previous change.
7155
7156 * nsfns.m: Rename ns prefixed functions/variables to the
7157 corresponding x versions. Update references.
7158
71592008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7160
7161 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7162
71632008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7164
7165 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7166 Remove forwarding functions.
7167 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7168 non-static.
7169 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7170 non-static.
7171 (ns_frame_parm_handlers): Use the new names.
7172 (syms_of_nsfns): Move to the end of file.
7173
7174 * nsterm.m (syms_of_nsterm): Move to the end of file.
7175
7176 * dispnew.c (init_display): Remove code for X10.
7177
71782008-07-22 Jason Rumney <jasonr@gnu.org>
7179
7180 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7181 bare drive.
7182
71832008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7184
7185 * nsterm.m (syms_of_nsterm): Remove debugging println.
7186
71872008-07-22 David Reitter <david.reitter@gmail.com>
7188
7189 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7190 Carbon implementation of the same functionality: execute arbitrary
7191 AppleScript code.
7192
71932008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7194
7195 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7196 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7197 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7198 (Fx_display_mm_height, Fx_display_mm_width)
7199 (Fx_display_backing_store, Fx_display_visual_class)
7200 (Fx_display_save_under, Fx_open_connection)
7201 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7202 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7203 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7204 (Fx_display_pixel_width, Fx_display_pixel_height)
7205 (Fx_display_usable_bounds, Fx_display_planes)
7206 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7207 ... */' style of docstrings.
7208
72092008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7210
7211 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7212 on this platform.
7213 (mips):
7214 * m/iris4d.h (mips): Do not define.
7215 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7216
7217 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7218
7219 * image.c:
7220 * nsfns.m:
7221 * nsselect.m:
7222 * nsterm.h:
7223 * nsterm.m: Rename ns prefixed functions/variables to the
7224 corresponding x versions. Update references.
7225
7226 * m/ibms390x.h (NO_REMAP): Do not undefine.
7227
7228 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7229
72302008-07-21 Chong Yidong <cyd@stupidchicken.com>
7231
7232 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7233 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7234 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7235 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7236 (Fns_display_mm_height, Fns_display_mm_width)
7237 (Fns_display_backing_store, Fns_display_visual_class)
7238 (Fns_display_save_under, Fns_open_connection)
7239 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7240 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7241 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7242 (Fns_display_pixel_width, Fns_display_pixel_height)
7243 (Fns_display_usable_bounds, Fx_display_planes)
7244 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7245
72462008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7247
7248 * print.c (print_object): Check print_depth before searching for
7249 circularities.
7250
72512008-07-21 Michael Albinus <michael.albinus@gmx.de>
7252
7253 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7254 only sprintf.
7255
72562008-07-21 Kenichi Handa <handa@m17n.org>
7257
7258 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7259
72602008-07-20 Andreas Schwab <schwab@suse.de>
7261
7262 * syntax.c (find_start_pos, find_start_value)
7263 (find_start_value_byte, find_start_begv, find_defun_start)
7264 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7265
72662008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7267
7268 * s/sol2-3.h: Insert contents of s/sol2.h.
7269 (LD_SWITCH_SYSTEM): Remove redundant definition.
7270 * s/sol2.h: Remove, unused.
7271
72722008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7273
7274 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7275
72762008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7277
7278 * Makefile.in (ns_appdir): Fix typo in find command.
7279
72802008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7281
7282 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7283
7284 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7285 added not supported anymore.
7286
7287 * s/usg5-4-2.h (LIBS_SYSTEM):
7288 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7289
7290 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7291 * s/lynxos.h (GETPGRP_NO_ARG):
7292 * s/hpux10-20.h (NO_SIOCTL_H):
7293 * s/gnu.h (GETPGRP_NO_ARG):
7294 * s/gnu-linux.h (NO_SIOCTL_H):
7295 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7296 * s/cygwin.h (GETPGRP_NO_ARG):
7297 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7298 (C_DEBUG_SWITCH): Remove duplicate definition.
7299
7300 * m/ibms390.h: Remove boilerplate comments.
7301
7302 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7303
7304 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7305 (wait_reading_process_output): Remove code for SunOS, platform not
7306 supported anymore. Use SOLARIS2 instead of sun.
7307
73082008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7309
7310 * font.c (font_open_by_name): Under NS, default lface height to zero.
7311 (font_open_for_lface): Under NS, set size based on frame fontsize.
7312 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7313 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7314
73152008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7316
7317 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7318 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7319 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7320 YES/NO.
7321 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7322 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7323 * Makefile.in (clean): Clear out build destination dir.
7324
73252008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7326
7327 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7328 xterm, xselect.
7329 * lisp.h: Remove declaration of hash_remove.
7330 * nsgui.h: Remove redefinitions of hash_remove.
7331 * fns.c (hash_remove): Rename to hash_remove_from_table.
7332
73332008-07-19 Seiji Zenitani <zenitani@mac.com>
7334
7335 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7336 strdup() the family UTF8String before modifying it.
7337
73382008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7339
7340 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7341 NS_FACE_BACKGROUND with 0 instead of nil.
7342 * nsfont.m (nsfont_draw): Same.
7343
73442008-07-19 Chong Yidong <cyd@stupidchicken.com>
7345
7346 * nsfns.m (ns_set_background_color): Fix crash.
7347
73482008-07-18 Chong Yidong <cyd@stupidchicken.com>
7349
7350 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7351
73522008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7353
7354 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7355
73562008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7357
7358 * gtkutil.c: Include <config.h> instead of "config.h".
7359
7360 * lisp.h (Foverlay_buffer): Add EXFUN.
7361
7362 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7363 child process to complete child_setup. Undo 2005-09-21 change.
7364
7365 * s/darwin.h: Mention setsid after vfork.
7366
73672008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7368
7369 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7370 Depend on macgui.h.
7371
7372 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7373 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7374
7375 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7376 and f19.
7377 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7378
7379 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7380 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7381 Remove enumerators.
7382
7383 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7384 Check if FACE_FROM_ID returns NULL.
7385
73862008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7387
7388 * w32inevt.c (change_frame_size): Remove extern declaration.
7389 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7390 change_frame_size.
7391
73922008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7393
7394 * getloadavg.c: Revert last change (2008-07-15).
7395
73962008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7397
7398 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7399 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7400 from configure.
7401
74022008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7403
7404 * s/sol2.h:
7405 * s/sol2-4.h: Reorganize conditionals.
7406
7407 * ecrt0.c: Remove code depending on m68000, not used anymore.
7408
7409 * fns.c (hash_remove): Make static.
7410 * lisp.h (hash_remove): Don't prototype.
7411
7412 * m/ibmrs6000.h:
7413 * m/ibms390x.h:
7414 * m/macppc.h: Remove boilerplate comments.
7415
7416 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7417 Solaris, which does not need them.
7418
7419 * m/vax.h: Remove comments about unsupported systems.
7420
7421 * s/darwin.h: Reorganize ifdefs.
7422
74232008-07-17 Andreas Schwab <schwab@suse.de>
7424
7425 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7426
74272008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7428
7429 Use SDATA. Follow coding convention of placing operators at
7430 beginning of next line rather than end of previous line, and placing
7431 spaces around infix operators.
7432
7433 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7434 in case it was defined already.
7435 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7436 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7437 ns_default.
7438 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7439 Lisp_Objects.
7440 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7441 (ns_defined_color, ns_color_to_lisp): Declare.
7442 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7443 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7444 it's accepted even with USE_LISP_UNION_TYPE.
7445 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7446 (update_frame_tool_bar): Remove apparently obsolete tests for
7447 non-integerness of f->tool_bar_lines.
7448 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7449 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7450 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7451 (nsfont_open): Don't confuse NULL for Qnil.
7452 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7453 * menu.h (find_and_call_menu_selection):
7454 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7455 (find_and_return_menu_selection): Always return something.
7456 * frame.h: Include dispextern.h for Display_Info.
7457 (display_x_get_resource): Declare.
7458
74592008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7460
7461 * syntax.c: Remove stdio.h include accidentally introduced in
7462 Emacs.app commit.
7463 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7464 NS_IMPL_COCOA.
7465 * keyboard.c (handle_async_input, input_available_signal): Remove
7466 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7467
74682008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7469
7470 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7471 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7472 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7473 Use SDATA.
7474
7475 * keymap.c: Remove all NS-specific code.
7476 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7477 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7478 where_is_preferred_modifier, return a different value depending on how
7479 preferred is the binding.
7480 (where_is_internal): Adjust accordingly.
7481 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7482 Adjust to new preferred_sequence_p.
7483 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7484 * keyboard.c (parse_solitary_modifier): Not static any more.
7485 * keyboard.h (parse_solitary_modifier): Declare.
7486
74872008-07-16 Andreas Schwab <schwab@suse.de>
7488
7489 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7490 of easymenu.
7491
74922008-07-16 Chong Yidong <cyd@stupidchicken.com>
7493
7494 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7495 that we don't move off the line.
7496
74972008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7498
7499 * keyboard.c (Qsuper): Remove.
7500 (parse_menu_item): Don't call where_is_internal specially for NS.
7501
75022008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7503
7504 * s/gnu-linux.h: Remove boilerplate comments.
7505
7506 * m/alpha.h (__ELF__): Consolidate conditions.
7507
7508 * m/m68k.h (linux): Use GNU_LINUX instead.
7509 Remove boilerplate comments.
7510
7511 * m/intel386.h: Undo refactoring from previous change.
7512 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7513 too, remove dead code.
7514 (linux): Use GNU_LINUX instead.
7515
75162008-07-16 Jason Rumney <jasonr@gnu.org>
7517
7518 * w32gui.h: Repeat 26 June changes lost by last change.
7519
75202008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7521
7522 * systty.h: Remove code for Aix on 386, unsupported platform.
7523
7524 * s/ms-w32.h: Remove boilerplate comments.
7525 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7526
7527 * s/gnu-linux.h (TERM): Remove support.
7528 (HAVE_SYSVIPC): Remove, unused.
7529 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7530 for this system.
7531
7532 * process.c: Remove support for IRIS, unused.
7533 Remove support for TERM, not relevant anymore.
7534
7535 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7536 used with the definition.
7537
7538 * s/aix4-2.h (static): Do not undef.
7539
7540 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7541 only used on Aix.
7542 (HAVE_SYSVIPC): Remove, unused.
7543
7544 * m/hp800.h (CANNOT_DUMP): Do not undef.
7545
7546 * m/alpha.h: Fix comment.
7547
7548 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7549 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7550 used by this configuration.
7551 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7552 * unexec.c: Remove code depending on HPUX and
7553 USG_SHARED_LIBRARIES, not used with this file. Remove code
7554 depending on IRIS, unused. Remove if 0-ed code.
7555
7556 * s/template.h: Remove comments about static.
7557
7558 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7559 Remove if 0-ed code.
7560 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7561 were the same as the default.
7562 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7563 Remove boilerplate comments.
7564 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7565 (HAVE_SYSVIPC): Remove, unused.
7566 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7567
7568 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7569 Remove boilerplate comments.
7570 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7571 Remove boilerplate comments.
7572 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7573 Remove boilerplate comments.
7574 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7575
7576 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7577 USG systems which do not use DATA_SEG_BITS.
7578 Refactor code. Remove boilerplate comments.
7579
7580 * m/ibms390.h:
7581 * m/m68k.h:
7582 * s/bsd-common.h:
7583 * s/cygwin.h:
7584 * s/darwin.h:
7585 * s/freebsd.h:
7586 * s/gnu.h:
7587 * s/msdos.h: Remove boilerplate comments.
7588
7589 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7590 do not use this file.
aac0c6e3
MR
7591 (IRIS_4D): Remove, unused.
7592
7593 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7594 do not use this file.
aac0c6e3
MR
7595 (SIGN_EXTEND_CHAR):
7596 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7597 * unexmips.c: Remove file, unused.
7598
7599 * editfns.c (Fuser_full_name): Replace the only use of
7600 USER_FULL_NAME with its value.
7601 * config.in: Regenerate.
7602
76032008-07-16 David Reitter <david.reitter@gmail.com>
7604
7605 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7606 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7607
76082008-07-16 Glenn Morris <rgm@gnu.org>
7609
7610 * emacs.c (system-type): Doc fix.
7611
76122008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7613
7614 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7615 If the cache doesn't work, let's fix it, rather than work around it.
7616
76172008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7618
7619 * Makefile.in: Correct additions for nsfont.o in last commit.
7620 * nsfont.m: New file (forgot last commit).
7621
76222008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7623
7624 * callproc.c (set_initial_environment): Initialize
7625 Vprocess_environment under CANNOT_DUMP (fixes crash when
7626 batch-compiling for bootstrap).
7627
76282008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7629 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7630
7631 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7632 fix crash due to different init order.
7633
76342008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7635
7636 Changes and additions for NeXTstep windowing system (Cocoa and
7637 GNUstep) support.
7638
7639 * Makefile.in:
7640 * config.in: Support defines and build commands for NS port.
7641 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7642 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7643 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7644 windowing.
7645 (struct face): Add synth_ital field.
7646 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7647 (init_display): Initialize Vinitial_window_system to "ns" when so
7648 compiled.
7649 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7650 (display_arg): Use under NS.
7651 (main): Under NS, allocate autorelease pool and handle command line
7652 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7653 (standard_args): Add NS-specific args.
7654 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7655 * font.c (DEFAULT_ENCODING): New variable.
7656 (font_find_for_lface): Use it.
7657 (syms_of_font): Load syms_of_nsfont under NS.
7658 * font.h: Declare nsfont_driver when compiled under NS.
7659 * fontset.c: When compiling under NS, include nsterm.h.
7660 (fontset_from_font): Autoconstruct fontset under NS.
7661 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7662 symbol, document and use it.
7663 (do_switch_frame): When for_deletion under Cocoa, add
7664 Fraise_frame(Qnil).
7665 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7666 (x_get_arg): Allow "yes" and "no" as boolean values.
7667 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7668 Qright under Cocoa.
7669 (focus-follows-mouse): Default to 0 under NS.
7670 * frame.h (enum output_method): Add output_ns.
7671 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7672 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7673 (FRAME_WINDOW_P): NS-specific definition.
7674 * fringe.c (max_used_fringe_bitmap): Make public.
7675 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7676 (getloadavg): Use NeXT code under descendant OS's.
7677 * image.c (includes and header section, x_create_bitmap_from_data)
7678 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7679 (image_background_transparent, x_clear_image_1)
7680 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7681 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7682 (x_to_xcolors, x_from_xcolors, x_disable_image)
7683 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7684 other GUIs, including XPM support using code originally written for
7685 Carbon GUI.
7686 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7687 using NS API.
7688 (image_ascent): Use font metrics macros instead of direct struct field
7689 access.
7690 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7691 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7692 Also, handle NS as GTK for menu bar purposes.
7693 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7694 toolkit where they differ.
7695 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7696 use cachelist, still needed under NS.
7697 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7698 (struct widget_value): Define it here for menu.c.
7699 * keymap.c (includes): Include modifier internals.
7700 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7701 NS.
7702 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7703 support for preferring sequences using certain modifiers, specified by
7704 the FIRSTONLY argument.
7705 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7706 under NS GNUstep implementation.
7707 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7708 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7709 * menu.c: Include nsterm.h under NS.
7710 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7711 (free_menubar_widget_tree_value, update_submenu_strings)
7712 (find_and_call_menu_selection): Treat NS as X and NT.
7713 (find_and_return_menu_selection): New function, used for popup menus.
7714 * nsgui.h:
7715 * nsterm.h:
7716 * nsfns.m:
7717 * nsimage.m:
7718 * nsmenu.m:
7719 * nsselect.m:
7720 * nsterm.m: New files.
7721 * process.c (wait_reading_process_output): Under NS, call ns_select()
7722 instead of plain select().
7723 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7724 beginning of buffer.
7725 * sysselect.h (init_process): Rename when compiling under Cocoa to
7726 avoid name conflict.
7727 * termhooks.h (display_info): Add ns_display_info to union.
7728 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7729 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7730 COCOA environment.
7731 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7732 unexec() signature. (Note, this will dump, but the resulting file
7733 crashes; unexosx is used instead; keeping around for reference and
7734 possible aid in getting dump working under GNUstep.)
7735 * w32gui.h (button_type, widget_value): Remove definitions (now in
7736 keyboard.h).
7737 * window.c: Include nsterm.h when compiling under NS.
7738 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7739 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7740 other GUI windowing systems.
7741 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7742 GTK.
7743 (x_consider_frame_title): Under NS, set icon type and frame
7744 modified-state indicator; use ns_set_name_as_filename() when using
7745 formatted title.
7746 (update_window_cursor): Make public when compiling under NS.
7747 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7748 (hourglass_atimer, Vhourglass_delay
7749 * xfaces.c (header section, init_frame_faces, clear_font_table)
7750 (defined_color, unload_color, x_face_list_fonts)
7751 (prepare_face_for_display): Add NS support parallel to other GUIs.
7752 Emulate GCs like other non-X GUIs.
7753 (split_font_name): Don't lowercase font name under NS.
7754 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7755 under NS.
7756 * s/darwin.h: Add support for compilation under NS.
7757
77582008-07-15 Jason Rumney <jasonr@gnu.org>
7759
7760 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7761 (w32_show_hourglass): Rename from show_hourglass.
7762 (w32_hide_hourglass): Rename from hide_hourglass.
7763 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7764 (Vhourglass_delay): Declare extern.
7765 (hourglass_started): Remove.
7766
7767 * xdisp.c (Vhourglass_delay): Remove static.
7768 (hourglass_started, start_hourglass, cancel_hourglass):
7769 Don't include these versions on WINDOWSNT.
7770
77712008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7772
7773 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7774 variables (formerly in xfns.c).
7775 (show_hourglass, hide_hourglass): New prototypes (same).
7776 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7777 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7778 in xfns.c).
7779 (syms_of_xdisp): Declare/initialize display-hourglass,
7780 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7781 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7782 formerly in xfns.c.
7783 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7784 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7785 (start_hourglass, cancel_hourglass): Remove.
7786 (show_hourglass, hide_hourglass): Remove prototypes and static
7787 modifiers.
7788 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7789 hourglass_atimer, hourglass_shown_p declaration/initialization.
7790 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7791 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7792 (start_hourglass, cancel_hourglass): Remove.
7793 (show_hourglass, hide_hourglass): Remove prototypes and static
7794 modifiers.
7795 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7796 hourglass_atimer, hourglass_shown_p declaration/initialization.
7797 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7798 (DEFAULT_HOURGLASS_DELAY): Remove.
7799 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7800 hourglass_shown_p declaration/initialization.
7801
78022008-07-14 Jason Rumney <jasonr@gnu.org>
7803
7804 * w32fns.c (w32_get_arg): Remove wrapper function.
7805 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7806 directly.
7807 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7808
78092008-07-14 Kenichi Handa <handa@m17n.org>
7810
7811 * xfont.c (xfont_open): Add workaround for X's bug.
7812
78132008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7814
7815 * fontset.c: Include <stdio.h> unconditionally.
7816
78172008-07-13 Michael Albinus <michael.albinus@gmx.de>
7818
7819 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7820 for filtering.
7821
78222008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7823
7824 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7825
7826 * m/macppc.h:
7827 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7828
7829 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7830 (SPECIAL_EMACS_INT):
7831 * m/ia64.h (SPECIAL_EMACS_INT):
7832 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7833 * s/gnu.h (NLIST_STRUCT):
7834 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7835 * s/gnu-linux.h (LINUX):
7836 * s/msdos.h (HAVE_FACES):
7837 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7838
7839 * systty.h:
7840 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7841 anymore.
7842
78432008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7844
7845 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7846 always defined as int.
7847
7848 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7849 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7850 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7851 * s/freebsd.h (HAVE_WAIT_HEADER):
7852 * s/bsd-common.h (HAVE_UNION_WAIT):
7853 * s/aix4-2.h (HAVE_WAIT_HEADER):
7854 * m/mips.h (HAVE_UNION_WAIT):
7855 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7856 (COFF, static): Do not define, they are undefined later in the file.
7857
7858 * process.c (update_status): Don't use a union.
7859 (status_convert):
7860 (sigchld_handler): Use int instead of WAITTYPE.
7861
78622008-07-12 Chong Yidong <cyd@stupidchicken.com>
7863
7864 * indent.c (Fvertical_motion): Restore hscroll before moving to
7865 goal column.
7866
78672008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7868
7869 * lisp.h: Remove left over code.
7870
78712008-07-11 Andreas Schwab <schwab@suse.de>
7872
7873 * lisp.h: Fix logic in last change.
7874
7875 * menu.h: New file.
7876 * menu.c: Include it.
7877 * xmenu.c: Likewise.
7878 * Makefile.in: Update dependencies.
7879
78802008-07-11 Kenichi Handa <handa@m17n.org>
7881
7882 * fontset.c (fontset_from_font): Cancel the previous change.
7883
78842008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7885
7886 * lisp.h:
7887 * w32heap.c:
7888 * emacs.c:
7889 * alloc.c: Replace all references of NO_UNION_TYPE with
7890 USE_LISP_UNION_TYPE.
7891
7892 * m/xtensa.h (NO_UNION_TYPE):
7893 * m/vax.h (NO_UNION_TYPE):
7894 * m/template.h (NO_UNION_TYPE):
7895 * m/sparc.h (NO_UNION_TYPE):
7896 * m/mips.h (NO_UNION_TYPE):
7897 * m/macppc.h (NO_UNION_TYPE):
7898 * m/m68k.h (NO_UNION_TYPE):
7899 * m/iris4d.h (NO_UNION_TYPE):
7900 * m/intel386.h (NO_UNION_TYPE):
7901 * m/ibms390x.h (NO_UNION_TYPE):
7902 * m/ibms390.h (NO_UNION_TYPE):
7903 * m/ibmrs6000.h (NO_UNION_TYPE):
7904 * m/ia64.h (NO_UNION_TYPE):
7905 * m/hp800.h (NO_UNION_TYPE):
7906 * m/arm.h (NO_UNION_TYPE):
7907 * m/amdx86-64.h (NO_UNION_TYPE):
7908 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7909 defining it the same.
7910
79112008-07-10 Chong Yidong <cyd@stupidchicken.com>
7912
7913 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7914
79152008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7916
7917 * fileio.c:
7918 * sysdep.c
7919 * systty.h:
7920 * m/ibmrs6000.h:
7921 * m/iris4d.h:
7922 * s/aix4-2.h:
7923 * s/freebsd.h:
7924 * s/gnu-linux.h:
7925 * s/hpux10-20.h:
7926 * s/hpux11.h:
7927 * s/netbsd.h:
7928 * s/sol2-3.h:
7929 * s/sol2-4.h:
7930 * s/sol2.h:
7931 * s/usg5-4.h:
7932 * s/vms.h: Remove references to unused variables.
7933
79342008-07-10 Andreas Schwab <schwab@suse.de>
7935
7936 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7937 pattern before matching the generic family.
7938
79392008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7940
7941 * unexec.c:
7942 * s/vms.h:
7943 * s/usg5-4-2.h:
7944 * s/sol2-5.h:
7945 * s/freebsd.h:
7946 * s/darwin.h: Remove dead code.
7947
7948 * m/template.h:
7949 * m/sparc.h:
7950 * m/mips.h:
7951 * m/m68k.h:
7952 * m/iris4d.h:
7953 * m/intel386.h:
7954 * m/ibms390x.h:
7955 * m/ibms390.h:
7956 * m/ia64.h:
7957 * m/hp800.h:
7958 * m/arm.h:
7959 * m/amdx86-64.h: Remove dead code and references to unused
7960 and compiler defined symbols.
7961
7962 * unexmips.c:
7963 * unexelf.c: Remove references to desupported systems.
7964
7965 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7966
7967 * m/powermac.h: Remove boilerplate comments.
7968 (NO_REMAP): Remove unused definition.
7969
7970 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7971 define them.
7972
79732008-07-10 Kenichi Handa <handa@m17n.org>
7974
7975 * xfont.c (xfont_open): Log the reason of failure.
7976
79772008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7978
7979 * fontset.c (fontset_get_font_group):
7980 * font.c (font_check_otf): Specify argument types.
7981
79822008-07-09 Kenichi Handa <handa@m17n.org>
7983
7984 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7985 non-ASCII char is found.
7986
7987 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7988 (reorder_font_vector): Change the arg preferred_family to font.
7989 Prefer the spec matching with font.
7990 (fontset_get_font_group): New function.
7991 (fontset_find_font): Change the format of an element of a realized
7992 fontset. Use fontset_get_font_group.
7993 (fontset_font): Try the current fontset, the default fontset, the
7994 fallbacks of the current fontset, and the fallbacks of the default
7995 fontset in this order.
7996 (face_for_char): Delete the shortcut to use the current font.
7997 (fontset_from_font): Don't set fonts for Latin in the fontset.
7998
7999 * font.h (font_make_object, font_match_p): Adjust prototypes.
8000
8001 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
8002
8003 * font.c (font_make_object): New arg entity and pixelsize.
8004 (font_check_otf_features, font_check_otf): New functions.
8005 (font_match_p): Check :lang, :script, and :otf properties.
8006
8007 * xfont.c (xfont_open): Adjust it for the change of
8008 font_make_object.
8009 (xfont_text_extents): Fix initial setting of metrics.
8010
8011 * ftfont.c (struct ftfont_info): New member index, delete member
8012 fc_charset_idx. Make the member order compatible with struct
8013 xftfont_info.
8014 (fc_charset_table): Change charset names to registry names.
8015 (ftfont_pattern_entity): Delete the args registry and
8016 fc_charset_idx. Change the value of :font-entity property
8017 to (FONTNAME . INDEX). Always set :registry property to
8018 `iso10646-1'.
8019 (struct ftfont_cache_data): New struct.
8020 (ftfont_lookup_cache): New arg for_face.
8021 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
8022 (ftfont_driver): Set the member otf_capability.
8023 (ftfont_get_charset): Adjust it for the change of
8024 fc_charset_table.
8025 (OTF_TAG_SYM): New macro.
8026 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
8027 for the change of fc_charset_table.
8028 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
8029 ftfont_pattern_entity. Add FC_INDEX to objset.
8030 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
8031 and ftfont_pattern_entity.
8032 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
8033 font_make_object, struct ftfont_info.
8034 (ftfont_has_char): Use ftfont_get_fc_charset.
8035 (ftfont_otf_features, ftfont_otf_capability): New functions.
8036 (ftfont_shape): Use ftfont_get_otf.
8037 (ftfont_text_extents): Fix initial setting of metrics.
8038
8039 * xftfont.c (struct xftfont_info): New member ft_size. Make the
8040 member order compatible with struct ftfont_info.
8041 (xftfont_open): Add FC_CHARSET to the pattern. Set
8042 xftfont_info->ft_size. Don't unlock the face. Check BDF
8043 properties if appropriate.
8044 (xftfont_close): Unlock the face.
8045 (xftfont_anchor_point, xftfont_shape): Deleted.
8046 (syms_of_xftfont): Don't set members anchor_point and shape of
8047 xftfont_driver.
8048
8049 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8050 font_make_object.
8051
8052 * w32font.c (w32font_open): Adjust it for the change of
8053 font_make_object.
8054 (w32font_open_internal): Don't set properties of font_object here.
8055
80562008-07-08 Chong Yidong <cyd@stupidchicken.com>
8057
8058 * macfns.c (x_create_tip_frame):
8059 * w32fns.c (x_create_tip_frame):
8060 * xfns.c (x_create_tip_frame): Pass parameter argument to
8061 face-set-after-frame-default.
8062
8063 * xfaces.c (Finternal_merge_in_global_face): Save merged
8064 attributes for the default face back into the face vector.
8065
80662008-07-08 Andreas Schwab <schwab@suse.de>
8067
8068 * fontset.h: Declare fontset_from_font. Don't declare
8069 new_fontset_from_font and fontset_from_font_name.
8070 * xterm.c: Include "fontset.h".
8071 * Makefile.in (xterm.o): Update dependencies.
8072
80732008-07-08 Glenn Morris <rgm@gnu.org>
8074
8075 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8076 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8077
80782008-07-07 Chong Yidong <cyd@stupidchicken.com>
8079
8080 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8081 (x_set_frame_parameters): Don't bind it.
8082
80832008-07-07 Juanma Barranquero <lekktu@gmail.com>
8084
8085 * w32fns.c (map_w32_filename): Declare extern.
8086
80872008-07-07 Jason Rumney <jasonr@gnu.org>
8088
8089 * w32term.c (WS_EX_LAYERED): Define if not already.
8090
80912008-07-06 Chong Yidong <cyd@stupidchicken.com>
8092
8093 * xfaces.c (set_font_frame_param): Don't try to set the font
8094 parameter if it is still unspecified in the lface.
8095
80962008-07-05 Chong Yidong <cyd@stupidchicken.com>
8097
8098 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8099 face if it didn't already exist.
8100
8101 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8102
81032008-07-05 Andreas Schwab <schwab@suse.de>
8104
8105 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8106
81072008-07-05 Chong Yidong <cyd@stupidchicken.com>
8108
8109 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8110 word-wrapping.
8111 (IT_DISPLAYING_WHITESPACE): New macro.
8112 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8113 when word-wrapping. Simplify word-wrapping logic. Use correct
8114 pixel positions when saving copies of the iterator.
8115 (display_line): Use proper wrap point if the last character on a
8116 line was preceded by whitespace.
8117
81182008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8119
8120 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8121
81222008-07-04 Kenichi Handa <handa@m17n.org>
8123
8124 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8125
8126 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8127
81282008-07-02 Jason Rumney <jasonr@gnu.org>
8129
8130 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8131 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8132
8133 * xdisp.c (next_element_from_display_vector): Move assignment out
8134 of if statement.
8135
81362008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8137
8138 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8139
8140 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8141 (syms_of_fileio): Initialize and export them.
8142 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8143
8144 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8145 (Fsystem_move_file_to_trash): New function.
8146 (syms_of_w32fns): Export it to lisp.
8147
81482008-07-01 Jason Rumney <jasonr@gnu.org>
8149
8150 * w32font.c (w32font_text_extents): Don't count overhang as part
8151 of width.
8152
81532008-06-30 Miles Bader <miles@gnu.org>
8154
8155 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8156 Add `avoid_cursor_p' field.
8157
8158 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8159 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8160 (append_glyph, append_composite_glyph, produce_image_glyph)
8161 (append_stretch_glyph): Initialize avoid_cursor_p.
8162 (get_it_property): Rename from `get_line_height_property'.
8163 (x_produce_glyphs): Use get_it_property.
8164 (handle_line_prefix, push_display_prop): New functions.
8165 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8166 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8167 New variables.
8168 (syms_of_xdisp): Initialize them.
8169
81702008-06-30 Kenichi Handa <handa@m17n.org>
8171
8172 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8173 XftDefaultSubstitute (they are called in XftFontMatch).
8174 (xftfont_open): Fix args to ftfont_font_format.
8175
8176 * ftfont.c (fc_charset_table): New member lang.
8177 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8178 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8179 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8180 (ftfont_open): Fix args to ftfont_font_format.
8181 (ftfont_font_format): New arg filename.
8182
81832008-06-30 Chong Yidong <cyd@stupidchicken.com>
8184
8185 * xfaces.c (Finternal_merge_in_global_face): If default face was
8186 modified, realize it again. Update the font face attribute.
8187
81882008-06-29 Jason Rumney <jasonr@gnu.org>
8189
8190 * w32term.c (x_set_frame_alpha): Fix logic.
8191
81922008-06-29 Kenichi Handa <handa@m17n.org>
8193
8194 * fontset.c (Finternal_char_font): Return font-object instead of
8195 font-name.
8196
8197 * composite.c (get_composition_id): Fix the width calculation for TAB.
8198
81992008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8200
8201 * indent.c (Fvertical_motion): Properly handle float column arg.
8202
82032008-06-28 Jason Rumney <jasonr@gnu.org>
8204
8205 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8206 (pfnSetLayeredWindowAttributes): New function pointer.
8207 (w32_initialize): Initialize it when supported.
8208 (x_set_frame_alpha): New function.
8209
8210 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8211 (w32_frame_parm_handlers): Set alpha handler.
8212
8213 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8214
82152008-06-27 Jason Rumney <jasonr@gnu.org>
8216
8217 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8218 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8219 (w32_to_x_charset, x_to_w32_charset)
8220 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8221 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8222 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8223 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8224 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8225 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8226 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8227 (Qw32_charset_unicode): Remove.
8228 (syms_of_w32fns): Update for above changes.
8229
8230 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8231 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8232 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8233 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8234 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8235 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8236 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8237 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8238 (syms_of_w32font): Update for above changes.
8239
82402008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8241
8242 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8243 removed #if.
8244 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8245
82462008-06-26 Juanma Barranquero <lekktu@gmail.com>
8247 Eli Zaretskii <eliz@gnu.org>
8248
8249 * makefile.w32-in (LOCAL_FLAGS):
8250 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8251
8252 * sysdep.c (_spawnlp, _getpid):
8253 Declare with explicit _cdecl instead of _CRTAPI1.
8254
8255 * editfns.c (Fget_internal_run_time):
8256 Check for WINDOWSNT with #ifdef, not #if.
8257
82582008-06-26 Jason Rumney <jasonr@gnu.org>
8259
8260 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8261
8262 * w32term.c (x_draw_glyph_string_foreground)
8263 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8264 Use FONT_HANDLE macro.
8265 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8266
8267 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8268 (uniscribe_encode_char): Use FONT_HANDLE macro.
8269
8270 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8271 (w32font_text_extents): Use precast w32_font.
8272 (w32font_close): Free cached metrics.
8273 (w32font_open_internal): Allocate space for name on stack.
8274
82752008-06-26 Chong Yidong <cyd@stupidchicken.com>
8276
8277 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8278
82792008-06-26 Jason Rumney <jasonr@gnu.org>
8280
8281 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8282 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8283
82842008-06-26 Juanma Barranquero <lekktu@gmail.com>
8285
8286 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8287
82882008-06-26 Jason Rumney <jasonr@gnu.org>
8289
8290 * w32bdf.c, w32bdf.h: Remove obsolete files.
8291
8292 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8293
8294 * w32gui.h: Don't include w32bdf.h.
8295 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8296 Remove obsolete font support.
8297
8298 * w32font.h (struct w32font_info): Remove compat_w32_font.
8299 Add hfont member.
8300 (FONT_COMPAT): Remove obsolete macro.
8301
8302 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8303 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8304 (w32font_open_internal): Remove compat code. Set new hfont member.
8305 (Fx_select_font): Use new hfont member.
8306
8307 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8308 (uniscribe_encode_char): Use new hfont member.
8309
8310 * w32term.c (x_draw_glyph_string_foreground)
8311 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8312 (x_draw_glyph_string): Use metrics in w32font_info.
8313
83142008-06-26 Kenichi Handa <handa@m17n.org>
8315
8316 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8317
83182008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8319
8320 * unexnext.c:
8321 * m/ews4800.h:
8322 * m/hp9000s300.h:
8323 * m/ibm370aix.h:
8324 * m/mips-siemens.h:
8325 * m/ncr386.h:
8326 * m/next.h:
8327 * m/pmax.h:
8328 * m/powerpcle.h:
8329 * m/tandem-s2.h:
8330 * s/386bsd.h:
8331 * s/bsd386.h:
8332 * s/bsd4-1.h:
8333 * s/bsd4-2.h:
8334 * s/bsdos2-1.h:
8335 * s/bsdos2.h:
8336 * s/bsdos3.h:
8337 * s/bsdos4.h:
8338 * s/nextstep.h:
8339 * s/ultrix4-3.h:
8340 * s/usg5-0.h:
8341 * s/usg5-2-2.h:
8342 * s/usg5-2.h:
8343 * s/usg5-4-3.h:
8344 * s/ux4800.h:
8345 * s/uxpds.h:
8346 * s/uxpv.h: Remove support for obsolete systems.
8347 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8348 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8349 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8350 Remove, insert contents in s/aix4-2.h.
8351 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8352 * s/bsd4-3.h: Rename to ...
8353 * s/bsd-common.h: ... this.
8354 * data.c:
8355 * doc.c:
8356 * ecrt0.c:
8357 * emacs.c:
8358 * fileio.c:
8359 * floatfns.c:
8360 * keyboard.c:
8361 * mem-limits.h:
8362 * print.c:
8363 * process.c:
8364 * sysdep.c:
8365 * syssignal.h:
8366 * systty.h:
8367 * syswait.h:
8368 * term.c:
8369 * unexec.c:
8370 * unexelf.c:
8371 * unexhp9k800.c:
8372 * m/hp800.h:
8373 * m/ibmrs6000.h:
8374 * m/mips.h:
8375 * m/vax.h:
8376 * s/darwin.h:
8377 * s/freebsd.h:
8378 * s/gnu.h:
8379 * s/ms-w32.h:
8380 * s/msdos.h:
8381 * s/netbsd.h:
8382 * s/template.h: Remove references to obsolete variables.
8383
8384 * Makefile.in: Add dependencies for all unexec files.
8385 (admindir): Remove unused variable.
8386 (UNEXEC_SRC): Remove references.
8387
83882008-06-25 Chong Yidong <cyd@stupidchicken.com>
8389
8390 * xfns.c (x_default_font_parameter): If Xft is available, first
8391 try Monospace-12 for the default font.
8392
83932008-06-25 Jason Rumney <jasonr@gnu.org>
8394
8395 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8396
83972008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8398
8399 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8400
8401 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8402
84032008-06-25 Juanma Barranquero <lekktu@gmail.com>
8404
8405 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8406 <scroll-conservatively>: Fix typo in docstring.
8407
8408 * xselect.c (Fx_send_client_event): Doc fix.
8409
84102008-06-25 Kenichi Handa <handa@m17n.org>
8411
8412 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8413
8414 * font.c (font_parse_fcname): Remove unused variables.
8415 (font_sort_entites): Delete the arg SPEC. Caller changed.
8416 Fix for the case of ! best_only.
8417 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8418
8419 * lisp.h (Fstring_to_unibyte): EXFUN it.
8420
8421 * character.h (str_to_unibyte): Extern it.
8422
8423 * character.c (str_to_unibyte): New function.
8424
8425 * fns.c (Fstring_to_unibyte): New function.
8426 (syms_of_fns): Defsubr it.
8427
84282008-06-24 Kenichi Handa <handa@m17n.org>
8429
8430 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8431 DPI too.
8432 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8433
84342008-06-24 Andreas Schwab <schwab@suse.de>
8435
8436 * Makefile.in (${lispsource}loaddefs.el): Rename from
8437 ../lisp/loaddefs.el.
8438 (bootstrap-clean): Do what distclean does but don't remove
8439 Makefile.
8440 (distclean): Depend on bootstrap-clean and remove Makefile.
8441
84422008-06-24 Chong Yidong <cyd@stupidchicken.com>
8443
8444 * buffer.h (struct buffer): New member word_wrap.
8445
8446 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8447 word-wrap.
8448 (init_buffer_once): Initialize them.
8449
8450 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8451 line_wrap enum possessing three possible values.
8452
8453 * termopts.h: Replace truncate_partial_width_windows with
8454 Vtruncate_partial_width_windows.
8455
8456 * dispnew.c (direct_output_for_insert): Avoid direct output when
8457 inserting a space with word wrap on.
8458
8459 * indent.c (compute_motion): Obey integer values of
8460 truncate-partial-width-windows.
8461
8462 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8463 replacing truncate_partial_width_windows.
8464 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8465 truncate only if the window width is below that integer.
8466 (start_display, resize_mini_window, produce_stretch_glyph)
8467 (display_string, move_it_in_display_line_to): Use line_wrap.
8468 (back_to_previous_visible_line_start, reseat_1): Reset
8469 string_from_display_prop_p.
8470 (display_line): Extend default face to end of line when wrapping.
8471
84722008-06-24 Kim F. Storm <storm@cua.dk>
8473
8474 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8475 to wrap continued lines at word boundaries.
8476
84772008-06-24 Jason Rumney <jasonr@gnu.org>
8478
8479 * font.c (Ffont_face_attributes): Multiply pixel size before point
8480 conversion to avoid multiplying rounding error.
8481
84822008-06-23 Jason Rumney <jasonr@gnu.org>
8483
8484 * w32term.c (x_draw_glyph_string_background)
8485 (x_draw_glyph_string): Remove old bdf font code.
8486
8487 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8488
84892008-06-22 Kenichi Handa <handa@m17n.org>
8490
8491 * font.c (font_find_for_lface): Try the adstyle specified in
8492 the property of LFACE_FONT of LFACE (if any).
8493
84942008-06-21 Seiji Zenitani <zenitani@mac.com>
8495 Ryo Yoshitake <ryo@shiftmode.net>
8496
8497 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8498
84992008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8500
8501 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8502 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8503 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8504 (witness-emacs): Remove.
8505 (lisp, shortlisp): Move loaddefs.el earlier.
8506 (mostlyclean): Forget about witness-emacs.
8507
85082008-06-22 Glenn Morris <rgm@gnu.org>
8509
8510 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8511 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8512
85132008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8514
8515 * Makefile.in (PRECOMP): Remove.
8516 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8517 (witness-emacs): Run `compile-first'.
8518 (.el.elc): Use the new compile-onefile target.
8519
85202008-06-21 Kenichi Handa <handa@m17n.org>
8521
8522 * xftfont.c (xftfont_open): Handle QCembolden only when
8523 FC_EMBOLDEN is defined.
8524
85252008-06-21 Andreas Schwab <schwab@suse.de>
8526
8527 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8528 (.el.elc): Likewise.
8529
85302008-06-21 Miles Bader <miles@gnu.org>
8531
8532 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8533 build dir, not the lisp source dir.
8534
85352008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8536
8537 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8538 (bootstrapclean): Remove.
8539 (.el.elc): New rule.
8540 (PRECOMP): New var.
8541 (../lisp/subdirs.el): Remove.
8542 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8543 (witness-emacs): New target.
8544 (mostlyclean): Remove witness-emacs as well.
8545 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8546 Add witness-emacs dependency.
8547
85482008-06-20 Chong Yidong <cyd@stupidchicken.com>
8549
8550 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8551 defined by the font.
8552
85532008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8554
8555 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8556 (bootstrap-clean): New target that keeps TAGS around.
8557 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8558 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8559
85602008-06-20 Jason Rumney <jasonr@gnu.org>
8561
8562 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8563 Remove obsolete font code.
8564
8565 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8566 to determine language support.
8567
85682008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8569
8570 * sysdep.c (cfsetspeed): New fun extracted from the code.
8571 (cfmakeraw): Move before first use.
8572
85732008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8574
8575 * sysdep.c (cfmakeraw): Provide fallback implementation.
8576 (serial_configure): Provide fallback implementation of cfsetspeed.
8577
85782008-06-20 Kenichi Handa <handa@m17n.org>
8579
8580 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8581 the pattern.
8582
8583 * fontset.c (fontset_from_font): Copy font_spec before changing
8584 the elements.
8585
8586 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8587
85882008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8589
8590 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8591 for explicit `font' parameters.
8592
8593 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8594
85952008-06-19 Kenichi Handa <handa@m17n.org>
8596
8597 * frame.c: Include <ctype.h>.
8598 (x_set_font_backend): Allow spacing characters in the X resource
8599 for FontBackend.
8600
86012008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8602
8603 * w32fns.c, xfns.c (Qfont_param): New var.
8604 (syms_of_w32fns): Initialize it.
8605 (x_default_font_parameter): Record explicit `font' into
8606 `font-parameter'.
8607
86082008-06-18 Kenichi Handa <handa@m17n.org>
8609
8610 * font.c (font_parse_xlfd): Fix previous change.
8611 (font_parse_fcname): Don't use :fc-unknown-spec.
8612 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8613 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8614 (font_add_log): Prepend the driver name to the resulting fonts.
8615
8616 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8617 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8618 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8619
8620 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8621 (QCembolden): New variables.
8622 (syms_of_xftfont): DEFSYM them.
8623 (xftfont_open): Call XftFontMatch. Don't trust the result of
8624 XftTextExtents8 if the pixel_size is less than 5.
8625
86262008-06-18 Andreas Schwab <schwab@suse.de>
8627
8628 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8629 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8630
86312008-06-18 Jason Rumney <jasonr@gnu.org>
8632
8633 * w32font.c (w32font_list, w32font_match): Add logging.
8634
8635 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8636
86372008-06-17 Chong Yidong <cyd@stupidchicken.com>
8638
8639 * font.c (font_parse_fcname): Store divider characters for
8640 unknown-spec list. For known key symbols, intern using correct
8641 symbol name.
8642
86432008-06-17 Kenichi Handa <handa@m17n.org>
8644
8645 * xfaces.c (realize_default_face): If the frame is not on window
8646 system, set the fontset of face to nil.
8647
86482008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8649
8650 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8651
86522008-06-16 Juanma Barranquero <lekktu@gmail.com>
8653
8654 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8655 (build_font_name_from_vector): Delete externs.
8656
8657 * xfaces.c (struct font_name): Don't declare.
8658
86592008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8660
8661 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8662
86632008-06-16 Chong Yidong <cyd@stupidchicken.com>
8664
8665 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8666
86672008-06-16 Juanma Barranquero <lekktu@gmail.com>
8668
8669 * font.c (Ffont_spec): Fix usage in docstring.
8670 (Ffont_face_attributes): Doc fix.
8671
86722008-06-16 Andreas Schwab <schwab@suse.de>
8673
8674 * font.c (Ffont_face_attributes): Fix definition.
8675
86762008-06-16 Jason Rumney <jasonr@gnu.org>
8677
8678 * font.h (font_style_symbolic_from_value): Remove.
8679
8680 * font.c (font_style_symbolic_from_value): Remove.
8681 (font_style_symbolic): Revert to pre 2008-06-13 version.
8682
8683 * w32font.c (w32_to_fc_weight): New function.
8684 (w32font_full_name, logfont_to_fcname): Use it.
8685
86862008-06-16 Kenichi Handa <handa@m17n.org>
8687
8688 * font.c (font_check_object): Delete it.
8689 (font_clear_cache): Check if a font-object is alive.
8690 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8691 font-object to nil.
8692 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8693 (font_at): Don't call font_check_object.
8694 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8695
86962008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8697
8698 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8699
87002008-06-16 Chong Yidong <cyd@stupidchicken.com>
8701
8702 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8703
87042008-06-15 Chong Yidong <cyd@stupidchicken.com>
8705
8706 * font.c (font_parse_fcname): Only one decimal point.
8707 (font_unparse_fcname): Handle data in family and foundry indices
8708 as symbols, not strings.
8709 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8710
8711 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8712
8713 * font.h (font_unparse_gtkname): Add prototype.
8714
87152008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8716
8717 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8718
87192008-06-15 Andreas Schwab <schwab@suse.de>
8720
8721 * font.c (font_update_drivers): Fix crash when no drivers match.
8722
87232008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8724
8725 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8726 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8727
87282008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8729
8730 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8731
87322008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8733
8734 * process.c (Fserial_process_configure, Fprocess_send_eof):
8735 Use EQ to compare Lisp_Objects.
8736
87372008-06-13 Jason Rumney <jasonr@gnu.org>
8738
8739 * w32fns.c (Fw32_select_font): Remove old font API function.
8740
8741 * w32font.c (logfont_to_fcname): New function.
8742 (Fx_select_font): New font dialog function compatible with
8743 GTK/fontconfig version.
8744
8745 * font.c (font_style_symbolic_from_value): New function.
8746 (font_style_symbolic): Use it.
8747
8748 * font.h (font_style_symbolic_from_value): Declare new function.
8749
87502008-06-13 Juanma Barranquero <lekktu@gmail.com>
8751
8752 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8753 <font-width-table>: Fix typos in docstrings.
8754
87552008-06-13 Daniel Engeler <engeler@gmail.com>
8756
8757 These changes add serial port access.
8758 * process.c: Add HAVE_SERIAL.
8759 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8760 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8761 (list_processes_1, select_wrapper, Fstop_process)
8762 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8763 (status_notify): Modify to handle serial processes.
8764 [HAVE_SERIAL] (Fserial_process_configure)
8765 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8766 New functions.
8767 * process.h (struct Lisp_Process): Add `type'.
8768 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8769 New functions.
8770 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8771 serial ports.
b71ac3dd 8772 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8773 * w32.h: Add FILE_SERIAL.
8774 (struct _child_process): Add ovl_read, ovl_write.
8775
87762008-06-13 Kenichi Handa <handa@m17n.org>
8777
8778 * dispextern.h (enum lface_attribute_index): New member
8779 LFACE_FOUNDRY_INDEX.
8780
8781 * font.c (font_score): Delete arg alternate_families. Check only
8782 weight, slant, width, and size. Ignore the difference of alias
8783 style symbols.
8784 (font_sort_entites): Adjust for the above change. Reflect the
8785 order of font-driver to scores.
8786 (font_list_entities): Don't check alternate_familes here.
8787 (font_clear_prop): Handle foundry.
8788 (font_update_lface): Don't parse "foundry-family" form here.
8789 Handle FONT_FOUNDRY_INDEX.
8790 (font_find_for_lface): Likewise. Handle alternate families here.
8791 If registry is nil, try iso8859-1 and ascii-0.
8792 (font_open_for_lface): Pay attention to size in ENTITY.
8793 (font_open_by_name): Simplify by calling font_load_for_lface.
8794 (free_font_driver_list): Delete it.
8795 (font_update_drivers): Preserve the order of backends.
8796 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8797 of font_score and font_sort_entites.
8798 (font_update_sort_order): Likewise.
8799
8800 * xfaces.c (LFACE_FOUNDRY): New macro.
8801 (check_lface_attrs): Check foundry.
8802 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8803 (merge_face_vectors): Check foundry.
8804 (merge_face_ref): Likewise.
8805 (Finternal_set_lisp_face_attribute): Likewise.
8806 (x_update_menu_appearance): Likewise.
8807 (Finternal_get_lisp_face_attribute): Likewise.
8808 (lface_hash): Likewise.
8809 (lface_same_font_attributes_p): Likewise.
8810 (x_supports_face_attributes_p): Likewise.
8811 (tty_supports_face_attributes_p): Likewise.
8812 (Finternal_set_alternative_font_family_alist): Intern strings.
8813 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8814 (realize_default_face): Set LFACE_FOUNDRY (lface).
8815
8816 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8817 font-driver at first.
8818
8819 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8820
88212008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8822
8823 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8824
88252008-06-12 Jim Meyering <meyering@redhat.com>
8826
8827 Make unexec_free handle NULL the same way free does.
8828 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8829
88302008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8831
8832 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8833 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8834 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8835 (WEAK_ALIAS): Simplify.
8836 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8837 when searching a unibyte buffer.
8838
88392008-06-12 Chong Yidong <cyd@stupidchicken.com>
8840
8841 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8842
88432008-06-12 Juanma Barranquero <lekktu@gmail.com>
8844
8845 * w32font.c: Include ctype.h.
8846
88472008-06-11 Jason Rumney <jasonr@gnu.org>
8848
8849 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8850 misreported as space.
8851 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8852 as aliases for registry iso10646-1.
8853
88542008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8855
8856 * buffer.c (clone_per_buffer_values): Skip `name'.
8857
88582008-06-11 Chong Yidong <cyd@stupidchicken.com>
8859
8860 * font.c (font_parse_fcname): Fix last change; accept decimal
8861 points in font size.
8862
88632008-06-10 Jason Rumney <jasonr@gnu.org>
8864
8865 * w32uniscribe.c (add_opentype_font_name_to_list):
8866 Skip non unicode fonts.
8867
88682008-06-10 Chong Yidong <cyd@stupidchicken.com>
8869
8870 * xfns.c (Fx_font_dialog): New function.
8871
8872 * gtkutil.c (xg_dialog_response_cb): Rename from
8873 xg_file_response_callback.
8874 (pop_down_dialog): Rename from pop_down_file_dialog.
8875 (xg_get_file_name): Callers changed.
8876 (xg_get_font_name): New function.
8877
8878 * gtkutil.h (xg_get_font_name): Insert prototype.
8879
88802008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8881
8882 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8883 x_underline_minimum_display_offset.
8884 (syms_of_xdisp): Declare it here rather than in xterm.c.
8885 * dispextern.h (underline_minimum_offset): Declare it.
8886 * w32term.c (x_draw_glyph_string): Use it.
8887 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8888 (syms_of_xterm): Don't declare it any more.
8889 (x_draw_glyph_string): Adjust to the new name.
8890
88912008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8892
8893 * xterm.c (x_underline_minimum_display_offset): New var.
8894 (x_draw_glyph_string): Use it.
8895 (syms_of_xterm): Declare it.
8896
88972008-06-10 Chong Yidong <cyd@stupidchicken.com>
8898
8899 * font.c (font_parse_fcname): Accept GTK-style font names too.
8900
89012008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8902
8903 * dired.c (file_name_completion): Don't return t if the match is exact
8904 but with different capitalization.
8905 * minibuf.c (Ftry_completion): Simplify.
8906
8907 * window.c (Vwindow_point_insertion_type): New var.
8908 (set_window_buffer): Use it.
8909 (syms_of_window): Init and export it to Lisp.
8910
89112008-06-10 Kenichi Handa <handa@m17n.org>
8912
8913 * font.h (font_intern_prop): Prototype adjusted.
8914
8915 * font.c (font_intern_prop): New arg force_symbol.
8916 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8917 Adjust for the change of font_intern_prop.
8918
8919 * ftfont.c (ftfont_pattern_entity):
8920 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8921 (w32_registry):
8922 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8923 the change of font_intern_prop.
8924
89252008-06-09 Juanma Barranquero <lekktu@gmail.com>
8926
8927 * w32menu.c (digest_single_submenu): Declare extern.
8928
89292008-06-09 Jason Rumney <jasonr@gnu.org>
8930
8931 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8932
8933 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8934 (parse_single_submenu): Remove.
8935 (digest_single_submenu): Remove.
8936 (syms_of_w32menu): Don't initialise variables that have moved
8937 to menu.c.
8938 (set_frame_menubar): Sync with version in xmenu.c.
8939 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8940
8941 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8942 Make static again.
8943
89442008-06-09 Jason Rumney <jasonr@gnu.org>
8945
8946 Changes to w32 files related to the move of common menu code
8947 to menu.c on 2008-06-08 by Chong Yidong.
8948
8949 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8950 defs to w32gui.h.
8951 (single_keymap_panes, push_menu_item, push_menu_pane):
8952 Make globally visible.
8953
8954 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8955 (local_free, malloc_widget_value, free_widget_value)
8956 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8957 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8958 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8959 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8960 (menu_items, menu_items_allocated, menu_items_used)
8961 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8962 (init_menu_items, finish_menu_items, discard_menu_items)
8963 (grow_menu_items, push_submenu_start, push_submenu_end)
8964 (push_left_right_boundary, push_menu_pane, push_menu_item)
8965 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8966 (free_menubar_widget_tree_value, parse_single_submenu)
8967 (update_submenu_strings): Remove functions.
8968 (xmalloc_widget_value): Remove and declare extern.
8969
8970 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8971 (OBJ1): Build it.
8972
8973 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8974 (local_heap, local_alloc, local_free, malloc_widget_value)
8975 (free_widget_value): Define here.
8976
89772008-06-09 Kenichi Handa <handa@m17n.org>
8978
8979 * font.h (Qascii_0): Extern it.
8980
8981 * font.c (Qascii_0): New variable.
8982 (syms_of_font): DEFSYM it.
8983 (font_open_by_name): If the registry "iso8859-1" fails, try also
8984 "ascii-0".
8985
8986 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8987
89882008-06-08 Kenichi Handa <handa@m17n.org>
8989
8990 * .gdbinit (xfont): New command.
8991
89922008-06-08 Andreas Schwab <schwab@suse.de>
8993
8994 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8995 * Makefile.in (menu.o): Update dependencies.
8996
8997 * Makefile.in (obj): Always add menu.o.
8998 * emacs.c (main): Always call syms_of_menu.
8999 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
9000
90012008-06-08 Chong Yidong <cyd@stupidchicken.com>
9002
9003 * Makefile.in: Compile menu.c.
9004
9005 * lisp.h: Declare syms_of_menu.
9006
9007 * emacs.c (main): Call syms_of_menu.
9008
9009 * keyboard.h: Relocate platform-independent menu definitions from
9010 xmenu.c.
9011
9012 * menu.c: New file. Relocate platform-independent menu
9013 definitions from xmenu.c. Suggested by Adrian Robert.
9014
9015 * xmenu.c: Remove platform-independent menu definitions.
9016 (menu_items menu_items_inuse, menu_items_allocated)
9017 (menu_items_used, menu_items_n_panes)
9018 (menu_items_submenu_depth): Move to keyboard.h.
9019 (init_menu_items, finish_menu_items, unuse_menu_items)
9020 (discard_menu_items, restore_menu_items, save_menu_items)
9021 (grow_menu_items, push_submenu_start, push_submenu_end)
9022 (push_left_right_boundary, push_menu_pane, push_menu_item)
9023 (keymap_panes, single_keymap_panes, single_menu_item)
9024 (list_of_panes, list_of_items, find_and_call_menu_selection)
9025 (xmalloc_widget_value, free_menubar_widget_value_tree)
9026 (parse_single_submenu, digest_single_submenu)
9027 (update_submenu_strings): Move to menu.c.
9028
90292008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
9030
9031 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
9032
90332008-06-06 Miles Bader <miles@gnu.org>
9034
9035 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
9036 face, not frame default.
9037
90382008-06-05 Martin Rudalics <rudalics@gmx.at>
9039
9040 * window.c (pop_up_windows, pop_up_frames)
9041 (display_buffer_reuse_frames, Vpop_up_frame_function)
9042 (Vdisplay_buffer_function, Veven_window_heights)
9043 (Vspecial_display_buffer_names, Vspecial_display_regexps)
9044 (Vspecial_display_function, Vsame_window_buffer_names)
9045 (Vsame_window_regexps, split_height_threshold)
9046 (Vsplit_window_preferred_function): Move those vars to window.el.
9047 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9048 (Fdisplay_buffer): Move those functions to window.el.
9049 (syms_of_window): Remove corresponding declarations.
9050 (display_buffer): New function.
9051 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9052 * dispnew.c (Flast_nonminibuf_frame): New function.
9053 * buffer.c (Fpop_to_buffer): Move to window.el.
9054
90552008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9056
9057 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9058
90592008-06-05 Kenichi Handa <handa@m17n.org>
9060
9061 * coding.c (detect_coding): Fix previous change.
9062 (detect_coding_system): Likewise.
9063
90642008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9065
9066 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9067
9068 * keymap.c (Vminibuffer_local_filename_must_match_map):
9069 Rename from Vminibuffer_local_must_match_filename_map.
9070 (syms_of_keymap):
9071 * minibuf.c (Fcompleting_read): Adjust accordingly.
9072 * commands.h: Rename declaration as well.
9073
90742008-06-05 Kenichi Handa <handa@m17n.org>
9075
9076 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9077 family name.
9078 (Ffont_put): Likewise.
9079
9080 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9081 current font-spec.
9082
9083 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9084 is unspecified.
9085
9086 * xfaces.c (realize_x_face): If the font-related face attributes
9087 are the same as those of default face, realize a new fontset from
9088 default->fontset.
9089 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9090
90912008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9092
9093 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9094 (move_it_in_display_line): New wrapper.
9095
9096 * window.c (window_scroll_pixel_based_preserve_x)
9097 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9098 (window_scroll_pixel_based, window_scroll_line_based):
9099 Use them to preserve column positions.
9100 (syms_of_window): Initialize them.
9101
9102 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9103 (HPOS . VPOS) pair.
9104
9105 * dispextern.h (move_it_in_display_line): Declare.
9106
91072008-06-05 Juanma Barranquero <lekktu@gmail.com>
9108
9109 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9110 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9111 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9112
91132008-06-04 Juanma Barranquero <lekktu@gmail.com>
9114
9115 * window.c (Fset_window_parameter): Doc fix.
9116 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9117
91182008-06-04 Joakim Verona <joakim@verona.se>
9119
9120 * window.h (struct window): Add new member window_parameters.
9121
9122 * window.c (Fwindow_parameters, Fwindow_parameter)
9123 (Fset_window_parameter): New defuns.
9124 (syms_of_window): Defsubr the new defuns.
9125 (make_window): Initialize window_parameters to nil.
9126
91272008-06-04 John Paul Wallington <jpw@pobox.com>
9128
9129 * eval.c (Fdefmacro): Doc fix.
9130
91312008-06-04 Kenichi Handa <handa@m17n.org>
9132
9133 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9134 Be sure to call setup_coding_system when we find a proper coding system.
9135 (detect_coding_system): Fix handling of coding->head_ascii.
9136
91372008-06-03 Andreas Schwab <schwab@suse.de>
9138
9139 * font.c (font_prop_validate_spacing): Fix last change.
9140
91412008-06-03 Kenichi Handa <handa@m17n.org>
9142
9143 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9144 (font_parse_fcname): Fix handling of unknown key.
9145
9146 * xfont.c (xfont_list): Try an alias.
9147
9148 * charset.c (char_charset): Return NULL if the arg charset_list is
9149 specified and C doesn't belong to any of them.
9150
91512008-06-02 Chip Coldwell <coldwell@redhat.com>
9152
9153 * font.c (font_pixel_size): Don't take cdr of an integer.
9154
91552008-06-02 Jim Meyering <meyering@redhat.com>
9156
9157 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9158 * alloc.c (xfree): Return right away for a NULL arg.
9159 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9160 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9161 * mac.c (create_apple_event_from_event_ref): Likewise.
9162 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9163 Likewise.
9164 * doprnt.c (doprnt1): Likewise.
9165 * frame.c (frame): Likewise.
9166 * keyboard.c (wipe_kboard): Likewise.
9167 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9168 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9169 * term.c (tty_default_color_capabilities, maybe_fatal)
9170 (delete_tty): Likewise.
9171 * w16select.c (string): Likewise.
9172 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9173 * w32bdf.c (w32_free_bdf_font): Likewise.
9174 * w32fns.c (w32_unload_font): Likewise.
9175 * w32font.c (w32font_close): Likewise.
9176 * window.c (size_window): Likewise.
9177 * xselect.c (receive_incremental_selection): Likewise.
9178 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9179 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9180 * w32.c (stat): Likewise.
9181
9182 Remove useless if-before-free tests.
9183 * editfns.c (Fset_time_zone_rule): Likewise.
9184 * lread.c (nosuffix): Likewise.
9185 * ralloc.c (get_bloc): Likewise.
9186 * regex.c (reg_free): Likewise.
9187 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9188 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9189 * xsmfns.c (smc_save_yourself_CB): Likewise.
9190
91912008-06-02 Kenichi Handa <handa@m17n.org>
9192
9193 * font.c (font_find_for_lface): Handle float font size.
9194 (font_open_for_lface): Likewise.
9195
9196 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9197 comparing the properties.
9198
91992008-06-01 Jason Rumney <jasonr@gnu.org>
9200
9201 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9202 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9203 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9204 Don't add empty script list.
9205 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9206
92072008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9208
9209 * Makefile.in (dot, dotdot): Remove, update users.
9210 ".." has been used elsewhere in the file for a long time.
9211 (LIBXT_STATIC): Remove conditional based on unused variable.
9212
92132008-06-01 Miles Bader <miles@gnu.org>
9214
9215 * xfaces.c (Vface_remapping_alist): New variable.
9216 (syms_of_xfaces): Initialize it.
9217 (enum named_merge_point_kind): New type.
9218 (struct named_merge_point): Add `named_merge_point_kind' field.
9219 (push_named_merge_point): Make cycle detection respect different
9220 named-merge-point kinds.
9221 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9222 Remove face-name alias resolution.
9223 (lface_from_face_name): New definition using
9224 `lface_from_face_name_no_resolve'.
9225 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9226 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9227 (get_lface_attributes): New definition that layers face-remapping on
9228 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9229 (lookup_basic_face): New function.
9230 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9231 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9232 `get_lface_attributes'.
9233 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9234 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9235 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9236
9237 * xdisp.c (init_iterator): Pass base_face_id through
9238 `lookup_basic_face' when we actually use it as a face-id.
9239 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9240 DEFAULT_FACE_ID.
9241
9242 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9243 lookup the initial face-id.
9244
9245 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9246
92472008-06-01 Juanma Barranquero <lekktu@gmail.com>
9248
9249 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9250 (Fremove_text_properties): Fix typos in docstrings.
9251
92522008-05-31 Kenichi Handa <handa@m17n.org>
9253
9254 * font.c (font_list_entities): Fix the car part of data to be
9255 stored in the cache.
9256
9257 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9258
92592008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9260
9261 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9262 Add a `test' argument so another predicate than `equal' can be used.
9263 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9264 (map_char_table): Remove unused vars `c' and `i'.
9265 * lisp.h (Foptimize_char_table): Adjust declaration.
9266 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9267
92682008-05-30 Kenichi Handa <handa@m17n.org>
9269
9270 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9271 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9272 defined.
9273
92742008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9275
9276 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9277 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9278 frame-local settings for the same variable.
9279
92802008-05-30 Kenichi Handa <handa@m17n.org>
9281
9282 * fontset.c (Ffont_info): Move to font.c.
9283 (syms_of_fontset): Delete defsubr of Sfont_info.
9284
9285 * font.c (font_style_to_value, font_score): Delete casting of the
9286 args to xstcasecmp.
9287 (register_font_driver): Increment num_font_drivers only when
9288 registering the driver globally.
9289 (Ffont_info): Move from fontset.c. Handle a font object too.
9290 (syms_of_font): Defsubr Sfont_info.
9291
92922008-05-29 Kenichi Handa <handa@m17n.org>
9293
9294 * coding.h (enum define_coding_utf8_arg_index): New enum.
9295 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9296 coding_attr_utf_bom.
9297 (enum utf_bom_type): Rename from utf_16_bom_type.
9298 (struct utf_16_spec): Adjust for the above change.
9299 (struct coding_system): Add utf_8_bom in `spec' union.
9300
9301 * coding.c (CODING_UTF_8_BOM): New macro.
9302 (enum coding_category): Delete coding_category_utf_8, add
9303 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9304 coding_category_utf_8_sig.
9305 (CATEGORY_MASK_UTF_8): Delete it.
9306 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9307 (CATEGORY_MASK_UTF_8_SIG): New macros.
9308 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9309 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9310 CATEGORY_MASK_UTF_8_SIG.
9311 (CATEGORY_MASK_UTF_8): New macro.
9312 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9313 (detect_coding_utf_8): Check BOM.
9314 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9315 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9316 (encode_coding_utf_16): Likewise.
9317 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9318 (detect_coding, detect_coding_system): Handle utf-8-auto.
9319 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9320 (syms_of_coding): Fix setting up of Vcoding_category_table.
9321
93222008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9323
9324 * process.c (Faccept_process_output): If `millisec' is non-nil,
9325 `seconds' default to 0.
9326 (wait_reading_process_output): Also return non-nil if we read output
9327 from a non-running process.
9328
93292008-05-29 Jason Rumney <jasonr@gnu.org>
9330
9331 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9332 `raster' specified.
9333 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9334 in the uniscribe backend, but disallow any font that has no
9335 unicode subrange support.
9336
93372008-05-29 Juanma Barranquero <lekktu@gmail.com>
9338
9339 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9340 Fix typos in docstrings.
9341
93422008-05-29 Kenichi Handa <handa@m17n.org>
9343
9344 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9345 (Fx_family_fonts): Set frame correctly.
9346
93472008-05-28 Jason Rumney <jasonr@gnu.org>
9348
9349 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9350
93512008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9352
9353 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9354 calling build_annotations.
9355
93562008-05-28 Juanma Barranquero <lekktu@gmail.com>
9357
9358 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9359 (Fencode_coding_string):
9360 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9361 <latin-extra-code-table>: Fix typos in docstrings.
9362 (syms_of_coding) <coding-system-alist>: Doc fix.
9363 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9364
93652008-05-28 Kenichi Handa <handa@m17n.org>
9366
9367 * fontset.c (Ffont_info): Don't call font_close_object.
9368
9369 * font.c (font_parse_family_registry): Use Ffont_put to validate
9370 foundry and family.
9371 (font_delete_unmatched): Don't check spacing.
9372 (font_list_entities): Add spacing to the spec to list fonts.
9373
9374 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9375 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9376
9377 * coding.c (encode_coding_raw_text): Fix previous change.
9378 (encode_coding_object): When the dst_object is a buffer and is
9379 different from src_object, move gap to PT.
9380
93812008-05-27 Chong Yidong <cyd@stupidchicken.com>
9382
9383 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9384
93852008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9386
9387 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9388 all branches. Compute it differently.
9389
9390 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9391
93922008-05-27 Juanma Barranquero <lekktu@gmail.com>
9393
9394 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9395 into "else if () ... else ...".
9396
93972008-05-27 Jason Rumney <jasonr@gnu.org>
9398
9399 * w32font.c (w32font_open_internal): Determine if glyph indices
9400 are likely to work here.
9401
94022008-05-27 Chong Yidong <cyd@stupidchicken.com>
9403
9404 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9405 draw overlap glyphs with appropriate highlighting.
9406
94072008-05-27 Kenichi Handa <handa@m17n.org>
9408
9409 * xfont.c (xfont_open): Fix calculation of font->average_width.
9410
94112008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9412
9413 * casefiddle.c (casify_object): Try to guess better whether the
9414 argument is a byte or a char.
9415
94162008-05-26 Andreas Schwab <schwab@suse.de>
9417
9418 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9419 Always send multiples of format size.
9420
9421 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9422
94232008-05-26 Jason Rumney <jasonr@gnu.org>
9424
9425 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9426 (compute_metrics): Don't set failure if we just cleared the cache.
9427 (w32_weight_table): Remove unused variable.
9428 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9429 backwards compatibility.
9430
94312008-05-25 Kenichi Handa <handa@m17n.org>
9432
9433 * w32term.c (x_draw_glyph_string):
9434 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9435
9436 * xfaces.c: Delete unused function prototypes.
9437 (xstrlwr, font_frame): Delete them.
9438 (clear_face_cache): Delete unused variable.
9439
9440 * xftfont.c (xftfont_open): Delete unused variable.
9441 If underline_thickness is not 1, adjust underline_position.
9442
9443 * ftxfont.c (ftxfont_open): Delete unused variable.
9444
9445 * fontset.c (face_for_char): Optimize for the case of no charset
9446 property.
9447
9448 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9449 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9450 (otf_open, font_otf_capability, generate_otf_features)
9451 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9452 Comment out by surrounding "#if 0" and "#endif" for the moment.
9453 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9454 (syms_of_font): Codes for accessing above commented out.
9455
94562008-05-24 Eli Zaretskii <eliz@gnu.org>
9457
9458 * w32proc.c: Include dispextern.h.
9459
9460 * w32.c: Include dispextern.h.
9461
94622008-05-23 Juanma Barranquero <lekktu@gmail.com>
9463
9464 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9465 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9466 Fix typos in docstrings.
9467
94682008-05-23 Jason Rumney <jasonr@gnu.org>
9469
9470 * xsmfns.c: Remove includes that are already included by config.h.
9471
94722008-05-23 Kenichi Handa <handa@m17n.org>
9473
9474 * charset.c (Qemacs, charset_emacs): New variables.
9475 (char_charset): Fix for non-Unicode characters.
9476 (syms_of_charset): Define charset_emacs.
9477
9478 * w32term.c (x_draw_glyph_string): Be sure to update
9479 s->underline_thickness and s->underline_position. Be sure to draw
9480 underline within the current line area.
9481
9482 * xterm.c (x_draw_glyph_string): Be sure to update
9483 s->underline_thickness and s->underline_position. Be sure to draw
9484 underline within the current line area.
9485
9486 * fontset.c: Delete unused variables and add casting for char *
9487 throughout the file.
9488 (fontset_font): Try the fallback fonts of the current fontset
9489 before consulting the default fontset.
9490
9491 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9492
9493 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9494
94952008-05-22 Jason Rumney <jasonr@gnu.org>
9496
9497 * font.c: Don't include strings.h.
9498
9499 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9500
9501 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9502 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9503 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9504 to call xstrcasecmp.
9505
9506 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9507
9508 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9509
9510 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9511
9512 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9513
95142008-05-22 Kenichi Handa <handa@m17n.org>
9515
9516 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9517
9518 * font.c (font_prop_validate_style): Adjust for the format
9519 change of font_style_table.
9520
9521 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9522 two args.
9523
9524 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9525 two args.
9526
95272008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9528
9529 * minibuf.c (keys_of_minibuf): Delete.
9530 * lisp.h (keys_of_minibuf): Delete.
9531 * emacs.c (main): Don't call keys_of_minibuf.
9532
95332008-05-22 Kenichi Handa <handa@m17n.org>
9534
9535 * ftfont.c (ftfont_resolve_generic_family): Rename from
9536 ftfont_list_generic_family. Return a single family for each
9537 generic family.
9538 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9539 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9540 Call font_add_log.
9541 (ftfont_match): Call font_add_log.
9542
9543 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9544 (FONT_DEBUG): Define it.
9545 (font_add_log): Extern it.
9546 (font_assert): Rename from xassert.
9547
9548 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9549 (xfont_list_family): Call font_add_log.
9550 (xfont_match): Likewise.
9551 (memq_no_quit): Delete.
9552
9553 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9554 call of Ffont_xlfd_name.
9555
9556 * xfaces.c (struct table_entry, slant_table, weight_table)
9557 (swidth_table): Move to font.c.
9558
9559 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9560 xassert are changed to font_assert. Delete many unused variables.
9561 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9562 New variables.
9563 (struct table_entry): Move from xfaces.c and modified.
9564 (weight_table, slant_table, width_table): Move from xfaces.c and
9565 contents adjusted for the change of struct table_entry.
9566 (font_style_to_value, font_style_symbolic): Adjust for the
9567 format change of font_style_table.
9568 (font_parse_family_registry): Don't overwrite existing foundry and
9569 family of font_spec.
9570 (font_score): Fix calculation of diff for sizes.
9571 (font_sort_entites): Call font_add_log.
9572 (font_delete_unmatched): Return a newly created list.
9573 (font_list_entities): Fix previous change. Call font_add_log.
9574 (font_matching_entity, font_open_entity, font_close_entity):
9575 Call font_add_log.
9576 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9577 (Finternal_set_font_style_table): Delete.
9578 (BUILD_STYLE_TABLE): New macro.
9579 (build_style_table): New function.
9580 (Vfont_log, font_log_env_checked): New variables.
9581 (font_add_log): New function.
9582 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9583 Declare Lisp variables "font-weight-table", "font-slant-table",
9584 "font-width-table", and "font-log". Initialize font_style_table.
9585
95862008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9587
9588 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9589
95902008-05-21 Seiji Zenitani <zenitani@mac.com>
9591 Ryo Yoshitake <ryo@shiftmode.net>
9592
9593 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9594 (Vframe_alpha_lower_limit): New variable.
9595 (x_set_alpha): New function.
9596
9597 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9598
9599 * xfns.c (x-create-frame, Qalpha):
9600 Initialize the frame parameter `alpha'.
9601 * xterm.c (OPAQUE, OPACITY): New.
9602 (x_set_frame_alpha): New function.
9603 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9604
9605 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9606 * w32fns.c (w32_frame_parm_handlers): Likewise.
9607
96082008-05-20 Jason Rumney <jasonr@gnu.org>
9609
9610 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9611 truetype fonts to opentype list.
9612
96132008-05-20 Juanma Barranquero <lekktu@gmail.com>
9614
9615 * fontset.c (Ffontset_info): Doc fix.
9616 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9617 <ignore-relative-composition>: Fix typos in docstrings.
9618
9619 * font.c (syms-of-font) <font-encoding-alist>:
9620 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9621 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9622 (Ffont_otf_alternates): Doc fixes.
9623
96242008-05-20 Kenichi Handa <handa@m17n.org>
9625
9626 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9627 font.h through out the file.
9628 (FONT_DRIVERS): Rename from FONTOBJ.
9629 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9630 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9631
9632 * emacs.c (main): Call syms_of_font unconditionally.
9633
9634 * font.h (find_font_encoding): Extern it.
9635
9636 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9637 fontset.c.
9638 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9639 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9640 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9641 only when HAVE_WINDOW_SYSTEM is defined.
9642 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9643 when HAVE_WINDOW_SYSTEM is defined.
9644
9645 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9646 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9647
9648 * xfaces.c: Include font.h unconditionally.
9649 (merge_face_ref, merge_face_vectors)
9650 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9651
96522008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9653
9654 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9655 indirect_variable.
9656 * eval.c (lisp_indirect_variable): New fun.
9657 (Fuser_variable_p): Use it.
9658
96592008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9660
9661 * lisp.h (indirect_variable):
9662 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9663 Use Lisp_Symbol pointers rather than Lisp_Object.
9664 Adjust callers.
9665 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9666 To this end, change calling-convention.
9667
9668 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9669 if some non-hidden buffers are selected by string&pred.
9670
96712008-05-19 Chong Yidong <cyd@stupidchicken.com>
9672
9673 * process.c (wait_reading_process_output): Always check status
9674 when in batch mode.
9675
96762008-05-19 Kenichi Handa <handa@m17n.org>
9677
9678 * font.c (font_list_entities): Fix handling of cache.
9679 (font_matching_entity): Likewise.
9680
9681 * ftfont.c (cs_iso8859_1): Delete.
9682 (ft_face_cache): New variable.
9683 (struct ftfont_info): New member fc_charset_idx.
9684 (ftfont_build_basic_charsets): Delete.
9685 (fc_charset_table): New variable.
9686 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9687 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9688 Callers changed.
9689 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9690 (ftfont_spec_pattern): New argument fc_charset_idx.
9691 Check registry more rigidly. Change callers.
9692 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9693 change of :font-entity property of the font.
9694
9695 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9696 property of the font.
9697
96982008-05-18 Juanma Barranquero <lekktu@gmail.com>
9699
9700 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9701 (Funencodable_char_position, Fcheck_coding_systems_region)
9702 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9703 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9704 (Ffind_operation_coding_system, Fset_coding_system_priority)
9705 (Fcoding_system_eol_type): Doc fixes.
9706
97072008-05-17 Glenn Morris <rgm@gnu.org>
9708
9709 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9710
97112008-05-16 Eli Zaretskii <eliz@gnu.org>
9712
9713 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9714 and st_gid.
9715
9716 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9717 HAVE_WINDOW_SYSTEM is not defined.
9718
9719 * xfaces.c (merge_face_ref, merge_face_vectors)
9720 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9721 HAVE_WINDOW_SYSTEM is defined.
9722 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9723
97242008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9725
9726 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9727
97282008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9729
9730 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9731
97322008-05-15 Kenichi Handa <handa@m17n.org>
9733
9734 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9735 preference.
9736
97372008-05-15 Glenn Morris <rgm@gnu.org>
9738
9739 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9740
97412008-05-15 Chong Yidong <cyd@stupidchicken.com>
9742
9743 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9744 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9745
9746 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9747
97482008-05-15 Kenichi Handa <handa@m17n.org>
9749
9750 * ftfont.c (ftfont_list): Downcase family name to check generic
9751 families.
9752
9753 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9754 font-spec for QCfont value.
9755
9756 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9757 buffer. Check the return value of it.
9758
97592008-05-14 Jason Rumney <jasonr@gnu.org>
9760
9761 * w32term.c (w32_get_glyph_overhangs): Remove.
9762 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9763
97642008-05-14 Kenichi Handa <handa@m17n.org>
9765
9766 * font.c (font_prop_validate): Make nil a valid value.
9767 (font_clear_cache): Check if the cached vector of entities is nil
9768 or not.
9769
97702008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9771
9772 * emacs.c (main_thread): Conditionalize on
9773 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9774 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9775
9776 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9777 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9778 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9779
97802008-05-14 Kenichi Handa <handa@m17n.org>
9781
9782 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9783 has no corresponding coding system.
9784
97852008-05-14 Jason Rumney <jasonr@gnu.org>
9786
9787 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9788
9789 * w32font.h (w32font_open_internal): Update declaration.
9790
9791 * w32font.c (w32font_open_internal): Change last argument from
9792 w32font_info struct to font object. Fill in font object from
9793 font_entity. Get Outline metrics if possible. Use them to
9794 calculate underline position and thickness. Use xlfd name as name
9795 property. Don't set codepage.
9796 (w32font_open): Pass font_object to w32font_open_internal. Don't
9797 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9798 (w32font_draw): Use s->font.
9799 (clear_cached_metrics): Don't clear non-existent blocks.
9800
9801 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9802 font was not found.
9803 (x_draw_glyph_string): Use underline position and thickness from font.
9804
9805 * w32uniscribe.c (uniscribe_open): Pass font_object to
9806 w32font_open_internal.
9807
98082008-05-14 Kenichi Handa <handa@m17n.org>
9809
9810 These changes are to delete all legacy font-handling codes, and
9811 make Emacs use only font-backends.
9812
9813 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9814 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9815
9816 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9817
9818 * charset.h (Vcharset_non_preferred_head)
9819 (Vcurrent_iso639_language): Extern them.
9820
9821 * charset.c (Vcharset_non_preferred_head): New variable.
9822 (Vcurrent_iso639_language): New variable.
9823 (syms_of_charset): Declare it as a Lisp variable.
9824 (char_charset): Don't check non preferred charsets. As a last
9825 resort, return charset_unicode.
9826 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9827
9828 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9829 conditionals. Don't check enable_font_backend. Delete all codes
9830 used only when USE_FONT_BACKEND is not defined.
9831
9832 * dispextern.h (struct glyph_string): Change type of `font' to
9833 `struct font *'.
9834 (struct glyph_string): New member underline_position and
9835 underline_thickness.
9836 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9837 (struct face): Change type of `font' to `struct font *'. Remove
9838 members `font_name', `font_info_id'.
9839 (per_char_metric, encode_char): Delete externs.
9840 (calc_pixel_width_or_height): Adjust the prototype.
9841
9842 * emacs.c (enable_font_backend): Delete extern.
9843 (main): Don't set enable_font_backend. Don't check the command
9844 line argument "-disable-font-backend".
9845
9846 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9847 (enum font_property_index): New members FONT_DPI_INDEX,
9848 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9849 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9850 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9851 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9852 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9853 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9854 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9855 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9856 (struct font_spec, struct font_entity): New structs.
9857 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9858 (struct font): Many members from old "struct font_info" moved to
9859 here. Members font and entity deleted.
9860 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9861 the new font-related objects.
9862 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9863 (CHECK_FONT_GET_OBJECT): Likewise.
9864 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9865 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9866 (struct font_driver): New members case_sensitive anc check. Type
9867 of the member list and open changed.
9868 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9869 (font_symbolic_width, font_find_object, font_get_spec)
9870 (font_set_lface_from_name): Delete extern.
9871 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9872
9873 * font.c: Include <strings.h>.
9874 (enable_font_backend): Delete it.
9875 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9876 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9877 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9878 (null_string): Delete it.
9879 (null_vector): Make it static.
9880 (font_family_alist): Delete it.
9881 (Qnormal): Extern it.
9882 (QCextra, QClanguage): Delete it.
9883 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9884 (font_make_spec, font_make_entity, font_make_object)
9885 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9886 the string. Callers changed.
9887 (font_pixel_size): Adjusted for the format change of font-related
9888 objects.
9889 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9890 (font_style_to_value, font_style_symbolic): New function.
9891 (build_font_family_alist): Delete it.
9892 (font_registry_charsets): Use Fassoc_string instead of
9893 assq_no_quit.
9894 (font_prop_validate_symbol): Don't return null_string.
9895 (font_prop_validate_style): Adjusted for the change of
9896 style-related values in a font vector.
9897 (font_property_table): Delete entries for QClanguage and
9898 QCantialias, add entries for QCavgwidth.
9899 (get_font_prop_index): Delete the 2nd argument FROM.
9900 (font_prop_validate): Arguments changed.
9901 (font_put_extra): Adjusted for the change of font-related objects.
9902 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9903 (font_parse_fcname, font_unparse_fcname)
9904 (font_prepare_composition): Likewise.
9905 (font_parse_family_registry): Renamed from font_merge_old_spec.
9906 (otf_open): Delete the 1st arg entity.
9907 (font_otf_capability): Adjusted for the above change.
9908 (font_score): New arg alternate_families. Adjusted for the change
9909 of font-related objects.
9910 (font_sort_entites): New arg best_only.
9911 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9912 Delete them.
9913 (font_match_p): Check alternate families.
9914 (font_find_object): Delete it.
9915 (font_check_object): New function.
9916 (font_clear_cache): Adjusted for the change of font-related objects.
9917 (font_delete_unmatched): New arg.
9918 (font_list_entities): Call font_driver->list with a spec that
9919 doesn't specify style-related properties.
9920 (font_matching_entity): Arguments changed. Caller changed.
9921 (font_open_entity): Adjusted for the change of font-related objects.
9922 (font_close_object, font_has_char, font_encode_char)
9923 (font_get_name, font_get_spec): Likewise.
9924 (font_spec_from_name, font_clear_prop, font_update_lface):
9925 New functions.
9926 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9927 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9928 (font_at): Adjusted for the change of font-related objects.
9929 (font_range): New function.
9930 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9931 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9932 (Fcopy_font_spec, Fmerge_font_spec): New function.
9933 (Ffont_family_list): Renamed from list-families.
9934 (Finternal_set_font_style_table): Arguments changed.
9935 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9936 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9937 change of font-related objects.
9938 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9939
9940 * fontset.h (struct font_info): Delete it. Most members go to
9941 struct font.
9942 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9943 (enum FONT_SPEC_INDEX): Delete it.
9944 (font_info, list_fonts_func, load_font_func, query_font_func)
9945 (set_frame_fontset_func, find_ccl_program_func)
9946 (get_font_repertory_func, new_fontset_from_font_name): Delete
9947 externs.
9948 (fontset_from_font_name): Extern it.
9949 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9950 (FONT_INFO_FROM_FACE): Deleted.
9951 (face_for_font): Adjust prototype.
9952
9953 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9954 conditionals. Don't check enable_font_backend. Delete all codes
9955 used only when USE_FONT_BACKEND is not defined.
9956 (get_font_info_func, list_font_func, load_font_func)
9957 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9958 (get_font_repertory_func): Delete them.
9959 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9960 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9961 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9962 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9963 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9964 (fontset_compare_rfontdef): New function.
9965 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9966 rfont-defs by qsort. Adjusted for the change of font-group vector.
9967 (load_font_get_repertory): Deleted.
9968 (fontset_find_font): Use new macros to ref/set elements of
9969 font-def and rfont-def.
9970 (fontset_font): Fix the timing of remembering that no font for C.
9971 (free_face_fontset): Do nothing if the face has no fontset.
9972 (face_suitable_for_char_p): Use new macros to ref/set elements of
9973 rfont-def.
9974 (face_for_char): Likewise. Call face_for_char with font_object.
9975 (fs_load_font): Delete. Delete #pragma surrounding it.
9976 (fs_query_fontset): Use strcasecmp instead of strcmp.
9977 (generate_ascii_font_name): Adjusted for the format change of
9978 font-spec.
9979 (Fset_fontset_font): Likewise. Use new macros to set elements of
9980 font-def.
9981 (Fnew_fontset): Use font_unparse_xlfd to generate
9982 FONTSET_ASCII (fontset).
9983 (new_fontset_from_font_name): Deleted.
9984 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9985 a fontset is already created for the font. FIx updating of
9986 Vfontset_alias_alist.
9987 (fontset_ascii_font): Deleted.
9988 (Ffont_info): Adjusted for the format change of font-spec.
9989 (Finternal_char_font): Likewise.
9990 (Ffontset_info): Likewise.
9991 (syms_of_fontset): Don't check load_font_func.
9992
9993 * fns.c (internal_equal): Handle PREV_FONT.
9994
9995 * frame.h: Delete USE_FONT_BACKEND conditional.
9996
9997 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9998 conditionals. Don't check enable_font_backend. Delete all codes
9999 used only when USE_FONT_BACKEND is not defined.
10000 (x_set_font): Call x_new_font, not x_new_fontset2.
10001 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
10002 already set for the frame.
10003
10004 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
10005 a font-entity by font_make_entity. Use font_intern_prop instead
10006 of intern_downcase. Use FONT_SET_STYLE to set a style-related
10007 font property. If a font is scalable, set avgwidth property to 0.
10008 Set font-entity property by font_put_extra.
10009 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
10010 (ffont_driver): Adjusted for the change of struct font_driver.
10011 (ftfont_spec_pattern): New function.
10012 (ftfont_list): Return a list, not vector.
10013 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
10014 (ftfont_list_family): Don't downcase names.
10015 (ftfont_free_entity): Deleted.
10016 (ftfont_open): Return a font-object. Adjusted for the change of
10017 struct font. Get underline_thickness and underline_position from
10018 font property. Don't update dpyinfo->smallest_font_height and
10019 dpyinfo->smallest_char_width.
10020 (ftfont_close): Don't free `struct font'.
10021 (ftfont_has_char): Adjusted for the format change of font-entity.
10022 (ftfont_encode_char, ftfont_text_extents): Likewise.
10023
10024 * ftxfont.c (ftxfont_list): Return a list, not vector.
10025 (ftxfont_open): Return a font-object. Adjusted for the change of
10026 struct font. Get underline_thickness and underline_position from
10027 font property. Don't update dpyinfo->smallest_font_height and
10028 dpyinfo->smallest_char_width.
10029 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
10030 (ftxfont_draw): Adjusted for the change of struct font.
10031
10032 * image.c (image_ascent): Don't include "charset.h". Include
10033 "character.h" and "font.h".
10034
10035 * lisp.h (enum pvec_type): New member PREV_FONT.
10036 (Fassoc_string): EXFUN it.
10037
10038 * print.c: Include font.h.
10039 (print_object): Handle font-related objects.
10040
10041 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
10042 conditionals. Don't check enable_font_backend. Delete all codes
10043 used only when USE_FONT_BACKEND is not defined.
10044 (handle_auto_composed_prop): Do nothing if it->f is not on a
10045 window system. Check how many following characters can be
10046 displayed by the same font.
10047 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10048 'struct font *'.
10049 (get_char_face_and_encoding): Assign the whole encoding task to
10050 the `encode-char' method of a font driver.
10051 (fill_composite_glyph_string): Adjusted for the change of `struct
10052 face' and `struct glyph_string'.
10053 (fill_glyph_string): Likewise.
10054 (get_per_char_metric): Arguments changed.
10055 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10056 and `struct glyph_string'.
10057 (produce_stretch_glyph, calc_line_height_property)
10058 (x_produce_glyphs): Likewise.
10059
10060 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10061 conditionals. Don't check enable_font_backend. Delete all codes
10062 used only when USE_FONT_BACKEND is not defined. Use
10063 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10064 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10065 (Qp): Extern them.
10066 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10067 Deleted.
10068 (struct font_name): Deleted.
10069 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10070 (compare_fonts_by_sort_order): New function.
10071 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10072 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10073 Deleted.
10074 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10075 compare_fonts_by_sort_order.
10076 (Fx_font_family_list): Call Ffont_family_list.
10077 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10078 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10079 (face_symbolic_slant, face_symbolic_swidth)
10080 (split_font_name_into_vector, build_font_name_from_vector)
10081 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10082 (font_rescale_ratio, split_font_name, build_font_name)
10083 (free_font_names, sort_fonts, x_face_list_fonts)
10084 (face_font_available_p, sorted_font_list, cmp_font_names)
10085 (font_list_1, concat_font_list, font_list, remove_duplicates):
10086 Deleted.
10087 (Fx_list_fonts): Use Ffont_list.
10088 (LFACE_AVGWIDTH): Deleted.
10089 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10090 by FONTP.
10091 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10092 (set_lface_from_font_name): Delete it.
10093 (set_lface_from_font): Renamed from
10094 set_lface_from_font_and_fontset. Caller changed. Don't set
10095 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10096 for face.
10097 (merge_face_vectors): Copy font-spec if necessary.
10098 Clear properties of the font-spec if necessary.
10099 (merge_face_ref): Clear properties of the font-spec if necessary.
10100 (Finternal_set_lisp_face_attribute): Likewise.
10101 (set_font_frame_param): Use font_load_for_lface to load a
10102 font-object, and call Fmodify_frame_parameters with it.
10103 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10104 font name by Ffont_xlfd_name.
10105 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10106 QCslant, and QCwidth.
10107 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10108 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10109 Compare fonts by EQ.
10110 (lookup_non_ascii_face): Deleted.
10111 (face_for_font): The 2nd argument changed.
10112 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10113 Check atomic font properties by case insensitive.
10114 (realize_non_ascii_face): Set face->overstrike correctly.
10115 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10116 (dump_realized_face): Get font name from
10117 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10118
10119 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10120 conditionals. Don't check enable_font_backend. Delete all codes
10121 used only when USE_FONT_BACKEND is not defined.
10122 (xic_create_xfontset): Original code deleted and renamed from
10123 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10124 (x_make_gc): Don't set GCFont in GCs.
10125 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10126 opened by "fixed".
10127 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10128 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10129 get_font_repertory_func.
10130
10131 * xfont.c: Include <stdlib.h> and "ccl.h".
10132 (struct xfont_info): New structure.
10133 (xfont_query_font): Deleted.
10134 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10135 moved from xterm.c.
10136 (xfont_driver): Adjusted for the change of struct font_driver.
10137 (compare_font_names): New function.
10138 (xfont_list_pattern): Sort font names case insensitively. Make
10139 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10140 (xfont_list): Return a list, not vector.
10141 (xfont_match): If the font doesn't have QCname property, generate
10142 a name from the other font properties.
10143 (xfont_open): Return a font-object. Adjusted for the change of
10144 struct font. Get underline_thickness and underline_position from
10145 font property. Don't update dpyinfo->smallest_font_height and
10146 dpyinfo->smallest_char_width.
10147 (xfont_close): Don't free struct font.
10148 (xfont_prepare_face): Adjusted for the change of struct font.
10149 (xfont_done_face): Deleted.
10150 (xfont_has_char): Adjusted for the change of struct font.
10151 (xfont_encode_char, xfont_draw): Likewise.
10152 (xfont_check): New function.
10153
10154 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10155 callback function.
10156 (xftfont_match): Adjusted for the format change of font-entity.
10157 (xftfont_open): Adjusted for the format change of font-entity and
10158 font-object. Adjusted for the change of struct font. Return a
10159 font-object. Don't update dpyinfo->smallest_font_height and
10160 dpyinfo->smallest_char_width.
10161 (xftfont_close): Block input while calling XftFontClose.
10162 (xftfont_prepare_face): Don't block input while calling
10163 xftfont_get_colors. Adjusted for the change of struct font.
10164 (xftfont_shape): Return value of error case fixed.
10165
10166 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10167
10168 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10169 conditionals.
10170 (FONT_WIDTH): Return (f)->max_width.
10171 (struct x_display_info): Delete member `font'.
10172 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10173 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10174 (struct x_output): Change type of `font' to `struct font *'.
10175
10176 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10177 conditionals. Don't check enable_font_backend. Delete all codes
10178 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10179 (x_per_char_metric, x_encode_char): Deleted.
10180 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10181 (x_compute_glyph_string_overhangs): Adjusted for the change of
10182 `struct face'.
10183 (x_draw_glyph_string_foreground)
10184 (x_draw_composite_glyph_string_foreground): Likewise.
10185 (x_draw_glyph_string): Likewise. Use font->underline_position and
10186 font->underline_thickness.
10187 (x_new_font): Renamed from x_new_fontset2.
10188 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10189 (x_check_font): Call `check' method of a font driver.
10190 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10191 (x_query_font, x_get_font_repertory): Deleted.
10192 (x_find_ccl_program): Renamed and moved to xfont.c.
10193 (x_redisplay_interface): Adjusted for the change of `struct
10194 redisplay_interface'.
10195
10196 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10197 conditionals. Don't check enable_font_backend. Delete all codes
10198 used only when USE_FONT_BACKEND is not defined. Surround non-used
10199 code by "#ifdef OLD_FONT" and "endif".
10200 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10201
10202 * w32font.h (struct w32font_info): New member.
10203 (FONT_COMPAT): New macro.
10204 (w32font_open_internal): Prototype adjusted.
10205
10206 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10207 OLD_FONT" and "endif".
10208
10209 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10210 conditionals. Don't check enable_font_backend. Delete all codes
10211 used only when USE_FONT_BACKEND is not defined.
10212 (w32font_open): Return a font-object. Make a font-object by
10213 font_make_object. Adjusted for the change of struct w32font_info.
10214 (w32font_close): Don't free struct font. Adjusted for the change
10215 of struct w32font_info.
10216 (w32font_encode_char, w32font_text_extents, w32font_draw):
10217 Adjusted for the change of struct w32font_info.
10218 (w32font_draw): Likewise.
10219 (w32font_list_internal): Return a list, not vector.
10220 (w32font_open_internal): Change the 4th arg to font-object.
10221 Adjusted for the change of struct w32font_info and font-object format.
10222 (add_font_name_to_list): Don't downcase names.
10223 (w32_enumfont_pattern_entity): Make a font-entity by
10224 font_make_entity. Adjusted for the format change of font-entity.
10225 Use FONT_SET_STYLE to set a style-related font property. If a
10226 font is scalable, set avgwidth property to 0. Set font-entity
10227 property by font_put_extra.
10228 (font_matches_spec): Adjusted for the format change of font-entity.
10229 (w32_weight_table, w32_decode_weight): New variables.
10230 (w32_encode_weight): New function.
10231 (fill_in_logfont): Adjusted for the format change of font-spec.
10232 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10233 weight value.
10234 (w32font_driver): Adjusted for the change of struct font_driver.
10235
10236 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10237 conditionals. Don't check enable_font_backend. Surround non-used
10238 code by "#ifdef OLD_FONT" and "endif".
10239 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10240 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10241
10242 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10243 conditionals. Don't check enable_font_backend. Delete all codes
10244 used only when USE_FONT_BACKEND is not defined. Surround non-used
10245 code by "#ifdef OLD_FONT" and "endif".
10246
10247 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10248 (uniscribe_open): Return value changed to font-object.
10249 Adjusted for the format change of font-object.
10250 (uniscribe_otf_capability): Adjusted for the change of struct font.
10251 (add_opentype_font_name_to_list): Don't downcase names.
10252 (uniscribe_font_driver): Adjusted for the change of struct
10253 font_driver.
10254
102552008-05-13 Chong Yidong <cyd@stupidchicken.com>
10256
10257 * dispnew.c (update_frame_1): Check if tty output is still valid
10258 before flushing it.
10259
102602008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10261
10262 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10263 to Gtk+ menus.
10264
102652008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10266
10267 * dired.c (file_name_completion): Tweak the code so as to always do it
10268 in a single pass. Tighten the scope of some variables.
10269
10270 * dired.c (Qdefault_directory): New var.
10271 (file_name_completion): Use it instead of Fexpand_file_name.
10272 (syms_of_dired): Initialize it.
10273
102742008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10275
10276 * fileio.c (double_dollars): Remove dead code.
10277
102782008-05-10 Eli Zaretskii <eliz@gnu.org>
10279
10280 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10281 Mention w32-get-true-file-attributes in doc string.
10282
10283 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10284
102852008-05-09 Glenn Morris <rgm@gnu.org>
10286
10287 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10288 2008-04-23.
10289
102902008-05-09 Eli Zaretskii <eliz@gnu.org>
10291
10292 Support for reporting owner and group of each file on MS-Windows:
10293 * dired.c (stat_uname, stat_gname): New functions, with special
10294 implementation for w32.
10295 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10296
10297 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10298 (dflt_group_name): New static variable.
10299 (dflt_group): Rename from the_group.
10300 (init_user_info): Init dflt_group fields. Get user's group name
10301 from LookupAccountSid.
10302 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10303 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10304 New initialization states.
10305 (globals_of_w32): Initialize them to zero. Initialize the default
10306 group name to "None".
10307 (GetFileSecurity_Name): New global var, the name of the function
10308 to call for GetFileSecurity.
10309 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10310 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10311 (get_file_security, get_security_descriptor_owner)
10312 (get_security_descriptor_group, is_valid_sid)
10313 (get_file_security_desc, get_rid, get_name_and_id)
10314 (get_file_owner_and_group): New functions.
10315 (stat): Use get_file_security_desc and get_file_owner_and_group to
10316 report the owner and primary group of each file. Don't ignore the
10317 high 32 bits of file's size, now that st_size is 64-bit wide.
10318 Fix test when to get true file attributes.
10319 (init_user_info): Use get_rid instead of equivalent inline code.
10320 (fstat): Don't ignore the high 32 bits of file's size.
10321
103222008-05-09 Chong Yidong <cyd@stupidchicken.com>
10323
10324 * image.c (png_load): Use correct bit-depth for setting background
10325 color.
10326
103272008-05-08 Eli Zaretskii <eliz@gnu.org>
10328
10329 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10330 epa-hook.elc.
10331
103322008-05-08 Juanma Barranquero <lekktu@gmail.com>
10333
10334 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10335
103362008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10337
10338 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10339 because the original parameters are in pure storage now.
10340 (mac_window): Remove unused params. Update callers.
10341
103422008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10343
10344 * lread.c (substitute_object_recurse): Use lower-level primitives.
10345 Don't signal errors when traversing sub-char-tables.
10346 Don't loop over all the possible characters when traversing char-tables.
10347
10348 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10349 just like we do in print.c.
10350
103512008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10352
10353 * minibuf.c (Ftry_completion): Remove code left over from when we used
10354 scmp instead of Fcompare_strings.
10355
103562008-05-04 Juanma Barranquero <lekktu@gmail.com>
10357
10358 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10359
103602008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10361
10362 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10363 Create bitmap context in native byte order.
10364
10365 * macterm.c (XDrawLine)
10366 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10367 context in native byte order.
10368
103692008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10370
10371 * config.in: Regenerate.
10372
10373 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10374 New definitions for Image I/O support.
10375 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10376 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10377 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10378 (mac_data_provider_release_data, image_load_image_io)
10379 [USE_MAC_IMAGE_IO]: New functions.
10380 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10381 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10382 (init_image_func_pointer) [MAC_OSX]: Remove function.
10383 (image_load_quartz2d) [MAC_OSX]: Check availability of
10384 CGImageCreateWithPNGDataProvider at compile time.
10385 Use lowercase `false' for boolean constant.
10386 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10387 Use image_load_image_io.
10388 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10389 Don't check MyCGImageCreateWithPNGDataProvider.
10390 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10391 Don't call init_image_func_pointer.
10392
10393 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10394
10395 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10396 Make variable non-static.
10397 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10398 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10399
10400 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10401 (RED_FROM_ULONG): Mask off higher bits.
10402 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10403
10404 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10405 Include AvailabilityMacros.h.
10406 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10407 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10408
104092008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10410
10411 * chartab.c (Fset_char_table_range): If range is t, really set all
10412 chars to that value.
10413
104142008-05-03 Eli Zaretskii <eliz@gnu.org>
10415
10416 * dired.c (Ffile_attributes): Don't allow the device number become
10417 negative.
10418
104192008-05-02 Daiki Ueno <ueno@unixuser.org>
10420
10421 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10422
104232008-05-02 Juri Linkov <juri@jurta.org>
10424
10425 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10426 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10427 DEFAULT argument as a list of default values in docstrings.
10428
104292008-05-01 Chong Yidong <cyd@stupidchicken.com>
10430
10431 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10432
104332008-05-01 Martin Rudalics <rudalics@gmx.at>
10434
10435 * dispnew.c (change_frame_size_1): Preserve small windows when
10436 shrinking frames by calling set_window_height|width with third
10437 arg 2.
10438
10439 * window.h (struct window): Replace field too_small_ok by field
10440 resize_proportionally.
10441
10442 * window.c (make_window): Initialize resize_proportionally.
10443 (enlarge_window): Temporarily set resize_proportionally to make
10444 sure that shrink_windows does scale the window proportionally.
10445 (shrink_windows): When window has resize_proportionally set try
10446 to shrink it proportionally by stealing from other windows.
10447 (struct saved_window, Fset_window_configuration)
10448 (compare_window_configurations): Handle resize_proportionally.
10449 (WINDOW_TOTAL_SIZE): New macro.
10450 (window_min_size, shrink_windows, size_window): Use it.
10451 (check_min_window_sizes): Remove. Invalid values of
10452 window-min-height|width are handled by window_min_size_2 now.
10453 (size_window, Fsplit_window, enlarge_window)
10454 (adjust_window_trailing_edge, grow_mini_window): Don't call
10455 check_min_window_sizes.
10456 (window_min_size_2, window_min_size_1, window_min_size):
10457 New argument safe_p for retrieving "safe" minimum sizes.
10458 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10459 (adjust_window_trailing_edge, grow_mini_window):
10460 Adjust arguments of window_min_size... functions.
10461 (shrink_windows): Argument min_size removed. New argument
10462 safe_p allows shrinking windows to their safe minimum sizes.
10463 Calculate minimum size and decide whether a window shall be
10464 deleted for each window individually.
10465 (size_window): When nodelete_p equals 2, tell shrink_windows to
10466 delete windows only if their new minimum size is no more safe.
10467 (shrink_window_lowest_first): Call window_min_size_1 to make
10468 sure to preserve modeline of bottom-most window when resizing
10469 the minibuffer.
10470 (Fset_window_configuration, Fcurrent_window_configuration)
10471 (compare_window_configurations): Do not handle
10472 window-min-height|width any more.
10473 (syms_of_window): Clarify window-min-height|width doc-strings.
10474
104752008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10476
10477 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10478 some more. Copy some of the code from Ftry_completions.
10479 Remove special case code that dates back to initial revision when the
10480 slash was only added when necessary and that can't trigger nowadays.
10481
104822008-04-27 Kenichi Handa <handa@m17n.org>
10483
10484 * font.c (font_prop_validate): Signal `error' instead of `font'.
10485
104862008-04-29 Jason Rumney <jasonr@gnu.org>
10487
10488 * w32fns.c (Fw32_battery_status): New defun.
10489 (syms_of_w32fns): Defsubr it.
10490
104912008-04-28 Andreas Schwab <schwab@suse.de>
10492
10493 * dired.c (file_name_completion): Fix another mixing of encoded
10494 and decoded names.
10495
104962008-04-28 Juanma Barranquero <lekktu@gmail.com>
10497
10498 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10499
105002008-04-27 Juanma Barranquero <lekktu@gmail.com>
10501
10502 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10503
105042008-04-27 Andreas Schwab <schwab@suse.de>
10505
10506 * dired.c (file_name_completion): Fix inappropriate mixing of
10507 encoded and decoded names.
10508
10509 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10510
10511 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10512
105132008-04-26 Eli Zaretskii <eliz@gnu.org>
10514
10515 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10516 2008-03-31, it's not needed anymore with `struct stat' definition
10517 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10518 for the same reasons.
10519
105202008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10521
10522 * m/sparc.h: Additional redefinitions for GNU/Linux.
10523
105242008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10525
10526 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10527 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10528 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10529 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10530 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10531 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10532 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10533 Likewise.
10534
10535 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10536 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10537 (mac_ax_number_of_characters): Add externs.
10538 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10539 [USE_MAC_TSM]: Likewise.
10540 (mac_handle_text_input_event) [MAC_OSX]:
10541 Handle kEventTextInputOffsetToPos for no active input area case.
10542 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10543 (mac_handle_document_access_event)
10544 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10545 (install_application_handler) [MAC_OSX]: Register handlers for
10546 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10547 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10548 Register mac_handle_document_access_event.
10549
10550 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10551 Make functions non-static.
10552
105532008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10554
10555 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10556 (read_file_name_completion_ignore_case, insert_default_directory)
10557 (Qdefault_directory): Move to minibuffer.el.
10558 (Fread_file_name): Call the new `read-file-name' instead.
10559
105602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10561
10562 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10563 Make function non-static.
10564 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10565 Remove function.
10566 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10567 Move to mactoolbox.c.
10568 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10569
10570 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10571 (mac_rect_make): New macro.
10572
10573 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10574 instead of float.
10575 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10576 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10577 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10578 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10579 CGRectMake.
10580 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10581 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10582 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10583 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10584 instead of WindowRef in argument type.
10585 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10586 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10587 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10588 instead of DISPLAY. All uses changed.
10589 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10590 (x_calc_absolute_position): Simplify so as not to use
10591 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10592
10593 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10594 instead of WindowRef in argument type.
10595 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10596 [TARGET_API_MAC_CARBON]: Remove externs.
10597 (create_apple_event, mac_event_parameters_to_lisp)
10598 [TARGET_API_MAC_CARBON]: Add externs.
10599
10600 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10601 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10602 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10603 is clicked.
10604 (x_activate_menubar): Remove extern for saved_menu_event_location.
10605 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10606 Move from mac.c.
10607
106082008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10609
10610 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10611 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10612
106132008-04-23 Jason Rumney <jasonr@gnu.org>
10614
10615 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10616 attributes only for local files.
10617
10618 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10619 default to Qlocal.
10620
106212008-04-22 Juri Linkov <juri@jurta.org>
10622
10623 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10624 read-buffer-to-switch instead of using the letter "B".
10625
106262008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10627
10628 * fileio.c (Qdefault_directory): New variable.
10629 (Fread_file_name): Use it to pass `dir' to the completion functions.
10630
106312008-04-20 Chong Yidong <cyd@stupidchicken.com>
10632
10633 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10634
106352008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10636
10637 * keyboard.c (Vpre_help_message): Remove.
10638 (show_help_echo): Remove default C code.
10639
10640 * dired.c (directory_files_internal, file_name_completion):
10641 Only call ENCODE_FILE if the string is indeed decoded.
10642
106432008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10644
10645 * Makefile.in (TOOLKIT_DEFINES): Remove.
10646 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10647
106482008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10649
10650 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10651 (mactoolbox.o): New target.
10652
10653 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10654 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10655
10656 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10657 Use mac_set_frame_window_background instead of XSetWindowBackground.
10658 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10659 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10660 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10661 instead of SetWindowTitleWithCFString.
10662 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10663 Move function to mactoolbox.c.
10664 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10665 Use mac_set_window_modified instead of SetWindowModified.
10666 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10667 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10668 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10669 FrontNonFloatingWindow. Use mac_activate_window instead of
10670 ActivateWindow. Use mac_active_non_floating_window instead of
10671 ActiveNonFloatingWindow.
10672 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10673 Use mac_show_hourglass and mac_hide_hourglass.
10674 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10675 instead of GetGlobalMouse.
10676 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10677 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10678 Use mac_bring_window_to_front instead of BringToFront.
10679 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10680 mactoolbox.c.
10681 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10682 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10683 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10684 mactoolbox.c.
10685
10686 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10687 (XtPointer): Move typedef from macmenu.c.
10688 (enum button_type): Move enum from macmenu.c.
10689 (widget_value): Move typedef from macmenu.c.
10690 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10691 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10692 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10693 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10694 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10695 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10696 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10697 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10698 (Selection): Move typedef from macselect.c.
10699 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10700 macterm.c.
10701 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10702 (mac_is_window_collapsed, mac_bring_window_to_front)
10703 (mac_send_window_behind, mac_hide_window, mac_show_window)
10704 (mac_collapse_window, mac_front_non_floating_window)
10705 (mac_active_non_floating_window, mac_activate_window)
10706 (mac_move_window_structure, mac_move_window, mac_size_window)
10707 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10708
10709 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10710 (enum mac_menu_kind): Move enum to mactoolbox.c.
10711 (min_menu_id): Move variable to mactoolbox.c.
10712 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10713 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10714 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10715 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10716 [TARGET_API_MAC_CARBON]: Likewise.
10717 (XtPointer): Move typedef to macgui.h.
10718 (enum button_type): Move enum to macgui.h.
10719 (widget_value): Move typedef to macgui.h.
10720 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10721 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10722 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10723 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10724 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10725 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10726 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10727 (popup_activated_flag): Make variable non-static.
10728 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10729 (add_menu_item, fill_menu, dispose_menus):
10730 Move functions to mactoolbox.c.
10731 (restore_show_help_function, menu_target_item_handler)
10732 (install_menu_target_item_handler, mac_handle_dialog_event)
10733 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10734 [TARGET_API_MAC_CARBON]: Likewise.
10735 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10736 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10737 (find_and_call_menu_selection, name_is_separator): Make function
10738 non-static.
10739 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10740 to mactoolbox.c.
10741 (set_frame_menubar): Don't call install_menu_quit_handler.
10742 (menu_item_selection): New variable.
10743 (mac_menu_show): Use create_and_show_popup_menu.
10744 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10745 selection but set variable menu_item_selection. All uses changed.
10746 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10747 Call install_menu_quit_handler. Move to mactoolbox.c.
10748
10749 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10750 (Selection): Move typedef to macgui.h.
10751 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10752 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10753 Make variables non-static.
10754 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10755 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10756 Make functions non-static.
10757 (Vmac_service_selection) [MAC_OSX]: Likewise.
10758 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10759 (mac_valid_selection_target_p, mac_clear_selection)
10760 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10761 (mac_put_selection_value, mac_selection_has_target_p)
10762 (mac_get_selection_value, mac_get_selection_target_list)
10763 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10764 Move functions to mactoolbox.c.
10765 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10766 Likewise.
10767 (copy_scrap_flavor_data, mac_handle_service_event)
10768 (install_service_handler) [MAC_OSX]: Likewise.
10769 (syms_of_macselect) <Vmac_dnd_known_types>:
10770 Use mac_dnd_default_known_types.
10771
10772 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10773 Move to mactoolbox.c.
10774 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10775 (Fx_selection_owner_p): Add EXFUN.
10776 (install_window_handler, remove_window_handler, XSetWindowBackground):
10777 Remove externs.
10778 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10779 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10780 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10781 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10782 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10783 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10784 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10785 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10786 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10787 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10788 (mac_valid_selection_target_p, mac_clear_selection)
10789 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10790 (mac_put_selection_value, mac_selection_has_target_p)
10791 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10792 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10793 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10794 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10795 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10796 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10797 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10798 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10799 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10800
10801 * mactoolbox.c: New file.
10802
108032008-04-18 Jason Rumney <jasonr@gnu.org>
10804
10805 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10806
108072008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10808
10809 * character.c (Fmultibyte_char_to_unibyte):
10810 Return latin1 chars unchanged.
10811
10812 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10813 relocated if it points to `name'.
10814
108152008-04-17 Kenichi Handa <handa@m17n.org>
10816
10817 * data.c (Faset): Allow setting a multibyte character in an
10818 ASCII-only unibyte string.
10819
10820 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10821
108222008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10823
10824 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10825 done in config.h.
10826
108272008-04-16 Juanma Barranquero <lekktu@gmail.com>
10828
10829 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10830 (Fchar_direction): Add usage in the docstring.
10831
108322008-04-15 Chong Yidong <cyd@stupidchicken.com>
10833
10834 * keyboard.c (read_key_sequence): Remove always-true checks.
10835
108362008-04-14 Jason Rumney <jasonr@gnu.org>
10837
10838 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10839 compatibility struct, for better underline positioning.
10840
108412008-04-13 David Hansen <david.hansen@gmx.net>
10842
10843 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10844 string.
10845
108462008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10847
10848 * m/hp800.h (XUINT, XSET): Remove.
10849
108502008-04-12 Juanma Barranquero <lekktu@gmail.com>
10851
10852 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10853 previous change.
10854
108552008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10856
10857 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10858 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10859
108602008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10861
10862 * keymap.h (map_keymap_canonical): Declare.
10863 * xmenu.c (single_keymap_panes): Use it.
10864
108652008-04-11 Glenn Morris <rgm@gnu.org>
10866
10867 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10868 set the target's value to that of the alias.
10869
108702008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10871
10872 * term.c (set_tty_color_mode): Left over typo.
10873
108742008-04-10 Michael Albinus <michael.albinus@gmx.de>
10875
10876 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10877 only after check for file name handler functions. Signal, when
10878 native functionality is not supported.
10879 (syms_of_fileio): Declare it unconditionally.
10880
108812008-04-10 Jason Rumney <jasonr@gnu.org>
10882
10883 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10884 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10885
10886 * w32.c (logon_network_drive): Also logon to remote drives that
10887 are mapped to drive letters.
10888
108892008-04-10 Glenn Morris <rgm@gnu.org>
10890
10891 * xdisp.c (truncate-partial-width-windows): Doc fix.
10892
108932008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10894
10895 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10896 Move functions to minibuffer.el.
10897 (syms_of_fileio): Don't declare them.
10898
108992008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10900
10901 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10902 (syms_of_minibuf): Remove its initialization.
10903
10904 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10905
109062008-04-09 Juanma Barranquero <lekktu@gmail.com>
10907
10908 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10909
109102008-04-09 Jason Rumney <jasonr@gnu.org>
10911
10912 * makefile.w32-in (distclean): Delete makefile too.
10913 (maintainer-clean): New target.
10914
10915 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10916
10917 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10918 for new font backend and composite cases.
10919
109202008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10921
10922 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10923 Most of the code moved to run_timers.
10924 (do_pending_atimers): Call run_timers.
10925 (run_timers): New function.
10926
10927 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10928 run atimers.
10929
10930 * process.c (wait_reading_process_output): The same as above.
10931
109322008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10933
10934 * minibuf.c (last_exact_completion): Remove variable.
10935 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10936 (complete_and_exit_1, complete_and_exit_2)
10937 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10938 (Fdisplay_completion_list, display_completion_list_1)
10939 (Fminibuffer_completion_help, Fself_insert_and_exit)
10940 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10941 minibuffer.el.
10942 (syms_of_minibuf): Remove corresponding initializations.
10943
10944 * keyboard.c (Qdeactivate_mark): New var.
10945 (command_loop_1): Use it to call `deactivate-mark'.
10946 (syms_of_keyboard): Initialize it.
10947
10948 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10949 to another frame.
10950 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10951 Don't call set_tty_color_mode.
10952 (store_frame_param): Reset previous_frame rather than call
10953 set_tty_color_mode.
10954 * term.c (set_tty_color_mode): Rewrite.
10955 * dispextern.h (set_tty_color_mode): New type.
10956 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10957
109582008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10959
10960 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10961 for generic chars, which do not exist any more in emacs-unicode.
10962
109632008-04-08 Michael Albinus <michael.albinus@gmx.de>
10964
10965 * coding.c (detect_coding_emacs_mule)
10966 (Ffind_operation_coding_system): Fix typo.
10967
109682008-04-08 Jason Rumney <jasonr@gnu.org>
10969
10970 * w32uniscribe.c (SNAME): Extract only symbol name.
10971
10972 * w32font.h (struct w32_metric_cache): New struct.
10973 (w32font_info): Use it.
10974 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10975 (CACHE_BLOCKSIZE): New constants.
10976
10977 * w32font.c (Qja, Qko, Qzh): New symbols.
10978 (syms_of_w32font): Initialise them.
10979 (font_matches_spec): Use them to filter by language.
10980 (recompute_cached_metrics): Remove function.
10981 (compute_metrics, clear_cached_metrics): New functions.
10982 (w32font_encode_char): Use them to manage metric cache.
10983 (w32font_text_extents): Cache metrics for all glyphs on demand.
10984 Delay converting glyph indices to WORD until needed.
10985 (w32font_open_internal): Initialize metric cache to empty.
10986 (registry_to_w32_charset): Charset should always be a symbol.
10987 (fill_in_logfont, list_all_matching_fonts): Family should
10988 always be a symbol.
10989
109902008-04-06 Jason Rumney <jasonr@gnu.org>
10991
10992 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10993 Give up if glyph indices not supported. Use uniscribe obtained
10994 ABC widths for individual metrics. Map glyph clusters back to
10995 characters using fClusterStart flag. Return number of glyphs
10996 produced, not chars processed.
10997 (uniscribe_shape): Map char at FROM to current glyph.
10998
109992008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11000
11001 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
11002 Use SetMenuItemHierarchicalMenu.
11003
110042008-04-05 Jason Rumney <jasonr@gnu.org>
11005
11006 * image.c (pbm_load): Allow color values up to 65535.
11007 Throw an error if max_color_idx is outside the supported range.
11008 Report an error when image size is invalid.
11009 Read two bytes at a time when raw images have max_color_idx above 255.
11010
110112008-04-05 Eli Zaretskii <eliz@gnu.org>
11012
11013 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11014 cFileName a file name that includes `?' characters, use the 8+3
11015 alias in cAlternateFileName instead.
11016
110172008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
11018
11019 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
11020 append "CCL: Quitted" when the CCL program is quitted.
11021 (setup_ccl_program): Initialize ccl->quit_silently to zero.
11022
11023 * ccl.h (struct ccl_program): New member quit_silently.
11024
110252008-04-05 Chong Yidong <cyd@stupidchicken.com>
11026
11027 * search.c (compile_pattern_1): Treat non-nil and non-string of
11028 search-spaces-regexp as nil.
11029
11030 * minibuf.c (Fassoc_string): Tweak docstring.
11031
110322008-04-05 Eli Zaretskii <eliz@gnu.org>
11033
11034 * dired.c (Ffile_attributes): Support inode numbers wider than 32
11035 bits. Remove ugly WINDOWSNT-specific kludge introduced on
11036 2008-03-14 to force inode be positive.
11037
11038 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
11039 _S_* ones, since we now use our own sys/stat.h.
11040 (stat, fstat): Don't mangle the inode number.
11041 (init_user_info): Don't restrict UID and GID to 0-60000 range.
11042
110432008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
11044
11045 * frame.h (struct frame): Give one more bit to `visible' since we use
11046 values larger than 1 to indicate obscured frames on ttys.
11047
11048 * keymap.c (Qkeymap_canonicalize): New var.
11049 (Fmap_keymap_internal): New fun.
11050 (describe_map): Use keymap-canonicalize.
11051
11052 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11053 (Fundo_boundary): Set them.
11054 (syms_of_undo): Initialize them.
11055 (record_point): Use them instead of last_point_position*.
11056 (last_undo_buffer): Change type.
11057
110582008-04-04 Jason Rumney <jasonr@gnu.org>
11059
11060 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11061 (recompute_cached_metrics): Don't set ascent and descent per char.
11062
11063 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11064 (uniscribe_check_otf): Add GC protection before consing.
11065 Rearrange loop for counting features.
11066
110672008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11068
11069 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11070 buffer with byte-size of source buffer.
11071
110722008-04-03 Chong Yidong <cyd@stupidchicken.com>
11073
11074 * callint.c (Fcall_interactively): Handle temporary region even
11075 when shift-select-mode is off.
11076
110772008-04-03 Jason Rumney <jasonr@gnu.org>
11078
11079 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11080
110812008-04-03 Kenichi Handa <handa@m17n.org>
11082
11083 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11084 (CATEGORY_MASK_UTF_16): Likewise.
11085 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11086 binary file.
11087 (detect_coding): Add null-byte detection for a binary file.
11088 (detect_coding_system): Likewise.
11089
110902008-04-03 Jason Rumney <jasonr@gnu.org>
11091
11092 * w32uniscribe.c: New file.
11093
11094 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11095
11096 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11097
11098 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11099 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11100 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11101 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11102 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11103 (Qphonetic): New symbols.
11104 (syms_of_w32font): Initialize them.
11105 (font_supported_scripts): Use them.
11106 (w32font_list_family): List all charsets.
11107 (w32font_text_extents, recompute_cached_metrics): Fix metric
11108 calculations.
11109 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11110 Give opentype fonts their own format.
11111 (font_matches_spec): New arguments backend and logfont.
11112 Handle :otf spec for uniscribe backend.
11113 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11114 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11115
11116 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11117 font backend.
11118 (globals_of_w32fns): Initialize uniscribe font backend.
11119
11120 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11121 dependencies.
11122 (w32uniscribe.$(O)): New file to build.
11123 (FONT_OBJ): Include w32uniscribe.$(O).
11124 (LIBS): Add uniscribe libraries.
11125
11126 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11127
111282008-04-02 Chong Yidong <cyd@stupidchicken.com>
11129
11130 * callint.c (Vshift_select_mode): New var.
11131 (Finteractive): Document new ^ spec.
11132 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11133 is present.
11134
11135 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11136 (command_loop_1): Avoid running the direct display versions of
11137 forward-char and backward-char if shift-selection may occur.
11138 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11139 shift-translation takes place.
11140
11141 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11142 avoid clobbering by define-minor-mode.
11143
11144 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11145 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11146
11147 * syntax.c (Fforward_word): Add ^ interactive spec.
11148
11149 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11150 (Fscroll_right): Add ^ interactive spec.
11151
111522008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11153
11154 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11155
11156 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11157
11158 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11159
111602008-03-31 Juri Linkov <juri@jurta.org>
11161
11162 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11163
111642008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11165
11166 * gtkutil.c (xg_set_geometry): Fix indentation.
11167 (xg_resize_outer_widget): Remove.
11168 (x_wm_size_hint_off): Fix indentation.
11169 (xg_frame_set_char_size): Call flush_and_sync after
11170 gtk_window_resize.
11171 (x_wm_set_size_hint): Pass NULL as geometry window to
11172 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11173 Add menu bar and tool bar height to base height.
11174 (xg_update_frame_menubar, free_frame_menubar)
11175 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11176 (update_frame_tool_bar, free_frame_tool_bar):
11177 Change xg_resize_outer_widget to xg_frame_set_char_size.
11178
111792008-03-30 Michael Albinus <michael.albinus@gmx.de>
11180
11181 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11182 (Fdbus_call_method): New parameter TIMEOUT.
11183 (dbus-send-signal): Optimize UNGCPRO call.
11184
111852008-03-29 Juri Linkov <juri@jurta.org>
11186
11187 * window.c (Fdisplay_buffer): Move call to
11188 Vsplit_window_preferred_function out of conditions that check
11189 if window is eligible for vertical splitting.
11190 When Vsplit_window_preferred_function is non-nil, call it and use
11191 its non-nil return value as window. Otherwise, continue doing
11192 vertical splitting using Fsplit_window with arg horflag=nil.
11193 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11194 default value from `split-window' to nil.
11195
111962008-03-29 Juri Linkov <juri@jurta.org>
11197
11198 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11199 for interactive code letters 'b' and 'B'.
11200
112012008-03-29 Eli Zaretskii <eliz@gnu.org>
11202
11203 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11204 multibyte string.
11205
112062008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11207
11208 * keyboard.c (pending_funcalls): New var.
11209 (timer_check): Run it.
11210 (syms_of_keyboard): Initialize it.
11211 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11212 (Vdelete_terminal_functions): New vars.
11213 (syms_of_terminal): Initialize them.
11214 (Fdelete_terminal): Run delete-terminal-functions.
11215 * xdisp.c (safe_eval): Rewrite.
11216 (safe_call2): New fun.
11217 * frame.c (Qdelete_frame_functions): New var.
11218 (syms_of_frame): Initialize it.
11219 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11220 * lisp.h (safe_call2, pending_funcalls): Declare.
11221
112222008-03-28 Andreas Schwab <schwab@suse.de>
11223
11224 * indent.c (Fmove_to_column): Move declaration before statements.
11225
112262008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11227
11228 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11229 (struct frame): Use bit fields for boolean vars.
11230
11231 * process.c (server_accept_connection): Simplify naming.
11232 (emacs_get_tty_pgrp): Use SDATA.
11233
11234 * coding.c (decode_coding_object): Fix last change.
11235
112362008-03-27 Jason Rumney <jasonr@gnu.org>
11237
11238 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11239
112402008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11241
11242 * charset.c (Fdefine_charset_internal): Change the way of
11243 registering charsets in Vcharset_order_list.
11244 (syms_of_charset): Make the charset `eight-bit' supplementary.
11245
112462008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11247
11248 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11249 operations, to avoid having the difference between pointers
11250 overflow.
11251
112522008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11253
11254 * indent.c (check_display_width): New fun.
11255 (scan_for_column): Use it.
11256
11257 * data.c (syms_of_data): Mark most-positive-fixnum and
11258 most-negative-fixnum as constants.
11259
11260 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11261
11262 * indent.c (scan_for_column): Extract from current_column_1.
11263 Merge with the same code from Fmove_to_column.
11264 (current_column_1, Fmove_to_column): Use it.
11265
112662008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11267
11268 * keymap.c (map_keymap_internal): New fun.
11269 (map_keymap): Use it.
11270 (Fmap_keymap_internal): New fun.
11271 (Fmap_keymap): Remove left-out test from before make_save_value.
11272
11273 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11274
11275 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11276 Use XCAR/XCDR.
11277
11278 * process.h (struct Lisp_Process): Remove filter_multibyte.
11279 * process.c (QCfilter_multibyte): Remove.
11280 (setup_process_coding_systems): Don't use filter_multibyte.
11281 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11282 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11283 (Fset_process_filter_multibyte): Change the coding-system to
11284 approximate the previous behavior.
11285 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11286 coding-system.
11287
11288 * coding.c (decode_coding_object): When not decoding into a buffer,
11289 obey the coding system's preference of (uni|multi)byte.
11290
112912008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11292
11293 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11294 every char is changed and has a different byte-length.
11295 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11296 Fix int -> EMACS_INT.
11297
112982008-03-23 David Hansen <david.hansen@gmx.net>
11299
11300 * dbusbind.c (xd_read_message): Remove extra copying of message
11301 strings. Check for NULL `interface' or `member'.
11302
113032008-03-22 Eli Zaretskii <eliz@gnu.org>
11304
11305 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11306 cFileName a file name that includes `?' characters, use the 8+3
11307 alias in cAlternateFileName instead.
11308
113092008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11310
11311 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11312
113132008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11314
11315 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11316 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11317 work on current_buffer only instead (that was already the case
11318 for some of the code anyway).
11319 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11320 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11321 (SET_PT, SET_PT_BOTH): Adjust.
11322 * intervals.h (set_point, temp_set_point, set_point_both)
11323 (temp_set_point_both): Remove redundant declarations.
11324
113252008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11326
11327 * fileio.c (Finsert_file_contents):
11328 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11329 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11330 when buffer != current_buffer anyway.
11331
113322008-03-20 Andreas Schwab <schwab@suse.de>
11333
11334 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11335 as default.
11336
113372008-03-19 Jason Rumney <jasonr@gnu.org>
11338
11339 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11340 (syms_of_w32fns): Initialize them.
11341 (HOURGLASS_ID): New constant.
11342 (x_window_to_frame): Don't check hourglass_window.
11343 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11344 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11345 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11346 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11347 Only change the cursor if hourglass is not active.
11348 (Fx_create_frame): Initialize frame's current_cursor.
11349 (hourglass_atimer): Remove.
11350 (hourglass_started): New function.
11351 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11352 (show_hourglass): Adapt to w32, changing argument to frame.
11353
11354 * w32term.h (struct w32_output): Remove hourglass_window.
11355 Add current_cursor.
11356
11357 * eval.c (call_debugger, Fsignal):
11358 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11359 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11360 (Fexecute_extended_command, cancel_hourglass_unwind):
11361 * minibuf.c (read_minibuf):
11362 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11363
113642008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11365
11366 * window.c (run_funs): New fun.
11367 (run_window_configuration_change_hook): Use it to run the buffer-local
11368 and the global part of the hook.
11369
11370 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11371 (unwind_format_mode_line): Restore selected window.
11372 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11373
113742008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11375
11376 * editfns.c (Fchar_equal): Check they are valid characters.
11377
11378 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11379
113802008-03-17 Andreas Schwab <schwab@suse.de>
11381
11382 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11383 against a charset.
11384
11385 * lisp.h (Fbuffer_list): Declare.
11386
113872008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11388
aac0c6e3
MR
11389 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11390 handlebox_widget is != 0.
11391
113922008-03-16 Juri Linkov <juri@jurta.org>
11393
11394 * callint.c (Fcall_interactively): For interactive code letters
11395 'b' and 'B' put the buffer list into the list of default "future"
11396 values of the minibuffer.
11397
113982008-03-16 Andreas Schwab <schwab@suse.de>
11399
11400 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11401 modifiers.
11402
11403 * regex.c (re_match_2_internal): Correct matching of a charset
11404 against latin-1 characters.
11405
114062008-03-16 Kenichi Handa <handa@m17n.org>
11407
11408 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11409 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11410 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11411 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11412 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11413 CHAR_STRING_ADVANCE.
11414 (produce_chars): Fix for the case that the source and the
11415 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11416 instead of CHAR_STRING_ADVANCE.
11417 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11418 STRING_CHAR_ADVANCE.
11419
114202008-03-15 Andreas Schwab <schwab@suse.de>
11421
11422 * regex.c (re_match_2_internal): Correct matching of eight bit
11423 characters in unibyte strings.
11424
114252008-03-15 Martin Rudalics <rudalics@gmx.at>
11426
11427 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11428 at end of range when it coincides with the end of the buffer.
11429
114302008-03-14 Eli Zaretskii <eliz@gnu.org>
11431
11432 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11433
11434 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11435
114362008-03-14 Jason Rumney <jasonr@gnu.org>
11437
11438 * editfns.c (initial_tz): New variable.
11439 (syms_of_editfns): Initialize it.
11440 (Fset_time_zone_rule): Set it when first called.
11441 Use it when TZSTRING is nil.
11442
11443 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11444 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11445 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11446 (globals_of_w32fns): Initialize them.
11447 (compute_tip_xy): Use them to position tooltips.
11448
114492008-03-14 Glenn Morris <rgm@gnu.org>
11450
11451 * emacs.c (main): Revert previous change.
11452 (standard_args): Revert -internal-script back to -scriptload,
11453 and remove the long-option form.
11454
114552008-03-13 Glenn Morris <rgm@gnu.org>
11456
11457 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11458 Remove option -enable-font-backend.
11459
114602008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11461
11462 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11463
114642008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11465
11466 * xterm.c (x_connection_closed): For GTK: If this is the last
11467 terminal just exit without closing the display.
11468
114692008-03-11 Jason Rumney <jasonr@gnu.org>
11470
11471 * w32font.c (w32font_full_name): Use floor to round.
11472
f0131492 114732008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11474
11475 * sound.c (alsa_configure): Declare vol at beginning of block.
11476
11477 * fontset.c (Ffontset_info): Remove extra semicolon.
11478
114792008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11480
11481 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11482 size of resulting string.
11483
114842008-03-10 Jason Rumney <jasonr@gnu.org>
11485
11486 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11487
114882008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11489
11490 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11491 Don't pretend as if characters with display property haven't been
11492 consumed for string-replacing-string case.
11493
114942008-03-08 Kim F. Storm <storm@cua.dk>
11495
11496 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11497 (get_next_display_element, next_element_from_string)
11498 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11499
115002008-03-08 Andreas Schwab <schwab@suse.de>
11501
11502 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11503
115042008-03-06 Jason Rumney <jasonr@gnu.org>
11505
11506 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11507 when charset not specified. Only translate ANSI to unicode when
11508 font_type is truetype.
11509 (w32font_coverage_ok): New function.
11510 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11511
115122008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11513
11514 * lread.c (Fread_char): Resolve modifiers.
11515 (Fread_char_exclusive): Likewise.
11516
11517 * character.c (char_resolve_modifier_mask): New function.
11518 (char_string): Use char_resolve_modifier_mask.
11519 (Fchar_resolve_modifiers): New function.
11520 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11521 function.
11522
115232008-03-04 Jason Rumney <jasonr@gnu.org>
11524
11525 * makefile.w32-in: Always include w32font.c in the build.
11526 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11527
115282008-03-04 Andreas Schwab <schwab@suse.de>
11529
11530 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11531 (versionclean): Likewise.
11532
115332008-03-04 Juanma Barranquero <lekktu@gmail.com>
11534
11535 * .cvsignore: Add oo.
11536
115372008-03-03 Andreas Schwab <schwab@suse.de>
11538
11539 * coding.c (decode_coding_object): Inhibit gap shrinking while
11540 decoding in place.
11541
115422008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11543
11544 * w32term.c: Remove unused include "gnu.h".
11545 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11546
11547 * gnu.h: Rename to ...
11548 * emacs-icon.h: ... this.
11549 * xterm.c: Use emacs-icon.h instead of gnu.h.
11550 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11551
115522008-03-03 Juanma Barranquero <lekktu@gmail.com>
11553
11554 * w32font.c: Include math.h.
11555
115562008-03-03 Jason Rumney <jasonr@gnu.org>
11557
11558 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11559 Compute options separately.
11560 (w32font_open_internal): Set glyph_idx before caching metrics.
11561
11562 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11563 Define if system headers don't.
11564 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11565 (w32font_encode_char): Don't declare here.
11566
11567 * w32font.c (Quniscribe, QCformat): New symbols.
11568 (syms_of_w32font): Define them.
11569 (w32font_has_char): Indicate uncertainty.
11570 (w32font_encode_char): Encode as glyph point. Make static.
11571 (recompute_cached_metrics): New function.
11572 (w32font_open_internal): Use it. Set font to use glyph points
11573 initially. Set format based on type of font.
11574 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11575 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11576 on it. Set format based on information available here.
11577 (add_font_entity_to_list): Identify backend based on opentype_only.
11578
115792008-03-02 Andreas Schwab <schwab@suse.de>
11580
11581 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11582
11583 * coding.c (decode_coding_big5, produce_chars):
11584 Fix typos in last change.
11585
115862008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11587
11588 * gnu.h: New icon.
11589
115902008-03-02 Kenichi Handa <handa@m17n.org>
11591
11592 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11593 `dos', don't decode '\r' if that is the last in the source.
11594 (decode_coding_utf_16, decode_coding_emacs_mule)
11595 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11596 (decode_coding_raw_text, decode_coding_charset): Likewise.
11597 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11598
115992008-03-01 Jason Rumney <jasonr@gnu.org>
11600
11601 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11602
116032008-03-01 Kim F. Storm <storm@cua.dk>
11604
11605 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11606
116072008-03-01 Jason Rumney <jasonr@gnu.org>
11608
11609 * w32font.c (w32font_full_name): New function.
11610 (w32font_open_internal): Use it.
11611
116122008-03-01 Kim F. Storm <storm@cua.dk>
11613
11614 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11615
116162008-03-01 Jason Rumney <jasonr@gnu.org>
11617
11618 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11619
116202008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11621
11622 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11623 xg_frame_resized when the event is for the edit widget.
11624
11625 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11626
11627 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11628 set_char_size.
11629 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11630 operations on widgets here. Just set frame size if needed.
11631 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11632 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11633 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11634 the whole frame.
11635 (xg_create_tool_bar): Move attachment of the tool bar to
11636 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11637 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11638
116392008-03-01 Jason Rumney <jasonr@gnu.org>
11640
11641 * w32fns.c (w32_msg_pump): Disable debug code.
11642
116432008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11644
11645 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11646
116472008-02-29 Chong Yidong <cyd@stupidchicken.com>
11648
11649 * xdisp.c (next_overlay_string): Don't set
11650 overlay_strings_at_end_processed_p if we're currently reading from
11651 a display string.
11652
116532008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11654
11655 * xdisp.c (get_overlay_strings_1): Fix typo.
11656
116572008-02-29 Chong Yidong <cyd@stupidchicken.com>
11658
11659 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11660
116612008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11662
11663 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11664
11665 * xdisp.c (display_mode_element): Cancel the previous change.
11666 (decode_mode_spec): Likewise.
11667 (handle_auto_composed_prop): Don't make composition if it->string
11668 is a string.
11669
116702008-02-27 Kim F. Storm <storm@cua.dk>
11671
11672 * lisp.h (GLYPH): Change type from int to struct with separate char
11673 and face_id members.
11674 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11675 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11676 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11677 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11678 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11679 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11680 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11681 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11682 handle new Lisp glyph code encoding, either an integer or a cons.
11683
11684 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11685 (GLYPH_ALIAS): Delete.
11686 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11687 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11688 (GLYPH_FROM_CHAR): Replace macro by ...
11689 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11690
11691 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11692 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11693 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11694 (GLYPH_INVALID_P): New macro.
11695 (spec_glyph_lookup_face): Update prototype.
11696
11697 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11698 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11699 new glyph code encoding.
11700 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11701 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11702
11703 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11704 Adapt to new glyph type and new glyph code encoding.
11705
11706 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11707
11708 * indent.c (current_column, current_column_1, Fmove_to_column)
11709 (compute_motion): Adapt to new glyph code encoding.
11710
11711 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11712
117132008-02-27 Chong Yidong <cyd@stupidchicken.com>
11714
11715 * process.c (wait_reading_process_output): Check for window
11716 changes caused by timers.
11717 Suggested by Johan Bockgård.
11718
117192008-02-27 Glenn Morris <rgm@gnu.org>
11720
11721 * emacs.c (USAGE1): Add `--disable-font-backend'.
11722
117232008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11724
11725 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11726 is made to the buffer.
11727
117282008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11729
11730 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11731 (face_at_string_position):
11732 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11733 (face_at_string_position):
11734 * xdisp.c (display_string, next_overlay_change):
11735 * buffer.h (overlays_at):
11736 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11737 Update callers.
11738
117392008-02-26 Chong Yidong <cyd@stupidchicken.com>
11740
11741 * editfns.c (Fformat): Doc fix.
11742
117432008-02-26 Juanma Barranquero <lekktu@gmail.com>
11744
11745 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11746 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11747 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11748
117492008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11750
11751 * buffer.c (Fbuffer_swap_text): New function.
11752 (syms_of_buffer): Defsubr it.
11753
117542008-02-25 Chong Yidong <cyd@stupidchicken.com>
11755
11756 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11757
117582008-02-25 Jason Rumney <jasonr@gnu.org>
11759
11760 * w32font.c (w32font_draw): Draw one character at a time when padding.
11761
117622008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11763
11764 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11765 Handle a nil arg. Use run_window_configuration_change_hook.
11766 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11767 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11768 Use run_window_configuration_change_hook.
11769
117702008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11771
11772 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11773 1-pixel width.
11774
117752008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11776
11777 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11778 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11779 if the glyph in the font is zero pixel with.
11780
11781 * dispextern.h (struct glyph_string): New member padding_p.
11782
11783 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11784
11785 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11786
11787 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11788
11789 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11790
11791 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11792
117932008-02-25 Jason Rumney <jasonr@gnu.org>
11794
11795 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11796
117972008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11798
11799 Allow fine-grained image-cache flushing.
11800 * dispextern.h (struct image): Add `dependencies' field.
11801 (clear_image_caches): Change arg to Lisp_Object.
11802 * image.c (make_image): Initialize `dependencies' field.
11803 (clear_image_cache): Change arg to allow fine-grained flushing.
11804 Perform the flush even if image-cache-eviction-delay is nil.
11805 (clear_image_caches): Change arg to Lisp_Object.
11806 (Fclear_image_cache): Expand meaning of the argument.
11807 (mark_image): Mark `dependencies' field.
11808 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11809 (lface_hash): Use XHASH rather than XFASTINT.
11810 (face_at_buffer_position): Fix int -> EMACS_INT position.
11811 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11812 (select_frame_for_redisplay): Remove code duplication.
11813 (redisplay_internal): Adapt arg to call to clear_image_caches.
11814
118152008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11816
11817 * s/vms4-0.h:
11818 * s/vms4-2.h:
11819 * s/vms4-4.h:
11820 * s/vms5-5.h: Remove, unused.
11821
11822 * s/irix5-2.h:
11823 * s/irix6-0.h:
11824 * s/riscos5.h:
11825 * s/mach-bsd4-3.h:
11826 * m/mips4.h: Remove files for obsolete systems.
11827
11828 * Makefile.in:
11829 * filelock.c:
11830 * unexmips.c:
11831 * m/hp9000s300.h:
11832 * m/iris4d.h:
11833 * s/aix3-1.h:
11834 * s/hpux.h:
11835 * s/msdos.h:
11836 * s/usg5-0.h:
11837 * s/usg5-2-2.h:
11838 * s/usg5-2.h:
11839 * s/usg5-3.h: Remove references to obsolete variables.
11840
11841 * s/irix5-0.h: Remove, move all the contents ...
11842 * s/irix6-5.h: ... here. Simplify.
11843 * config.in: Regenerate.
11844
118452008-02-24 Jason Rumney <jasonr@gnu.org>
11846
11847 * w32term.c (x_draw_glyph_string_background): Clear the background
11848 manually when cleartype is in use.
11849 (x_draw_glyph_string_foreground): Draw text transparently when
11850 cleartype is in use.
11851
11852 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11853 a font into it unless we have to.
11854
118552008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11856
11857 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11858 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11859
aac0c6e3
MR
118602008-02-18 Jason Rumney <jasonr@gnu.org>
11861
11862 * w32fns.c (Fw32_shell_execute): Encode parameters.
11863
118642008-02-09 Eli Zaretskii <eliz@gnu.org>
11865
11866 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11867
118682008-02-05 Juanma Barranquero <lekktu@gmail.com>
11869
11870 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11871
118722008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11873
11874 * xterm.c (x_set_offset): Don't change the gravity if
11875 CHANGE_GRAVITY is -1.
11876
118772008-02-23 Chong Yidong <cyd@stupidchicken.com>
11878
11879 * fileio.c (auto_save_error_occurred): New var.
11880 (auto_save_error): Set it.
11881 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11882 error occurred.
11883
118842008-02-23 Eli Zaretskii <eliz@gnu.org>
11885
11886 * w32.c (globals_of_w32): Add initializations for
11887 g_b_init_get_sid_sub_authority and
11888 g_b_init_get_sid_sub_authority_count.
11889
118902008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11891
11892 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11893 (font_parse_xlfd): Use them for sanity check.
11894 (Finternal_set_font_style_table): Make sure the table is bijective.
11895
11896 Consolidate the image_cache to the terminal struct.
11897 * termhooks.h (P_): Remove redundant def.
11898 (struct terminal): New field `image_cache'.
11899 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11900 of FRAME_X_IMAGE_CACHE.
11901 * xterm.h (struct x_display_info): Remove image_cache field.
11902 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11903 * w32term.h (struct w32_display_info): Remove image_cache field.
11904 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11905 * macterm.h (struct mac_display_info): Remove image_cache field.
11906 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11907 * xterm.c (x_term_init):
11908 * w32term.c (w32_term_init):
11909 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11910 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11911 Remove declarations.
11912 (clear_image_caches, mark_image_cache): New declarations.
11913 * xfaces.c (clear_face_cache):
11914 * xdisp.c (redisplay_internal): Use clear_image_caches.
11915 * image.c (clear_image_cache): Don't check that a frame is on
11916 a window-system before checking if it shares the same cache.
11917 (clear_image_caches): New function.
11918 (Fclear_image_cache): Use it.
11919 (mark_image): Move from allo.c.
11920 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11921 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11922 (mark_object): Don't call mark_image_cache for frames.
11923 (mark_terminals): Call mark_image_cache.
11924
11925 * lisp.h (Fdelete_terminal): Declare.
11926
11927 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11928 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11929 wrong_type_argument.
11930
119312008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11932
11933 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11934 malayalam.el, and tamil.el. Add sinhala.el.
11935
119362008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11937
11938 * xterm.c (x_connection_closed): Consolidate identical tests.
11939 (x_delete_terminal): Don't crash if called via x_connection_closed.
11940
119412008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11942
11943 * xdisp.c (decode_mode_spec): New arg string.
11944 (display_mode_element): Adjust for the above change.
11945
119462008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11947
11948 * callint.c (Fcall_interactively): Use AREF.
11949
119502008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11951
11952 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11953
119542008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11955
11956 * xfns.c (Fx_show_tip): Set string to " " if empty.
11957
119582008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11959
11960 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11961 with Qt.
11962
119632008-02-17 Kenichi Handa <handa@m17n.org>
11964
11965 * ftfont.c (ftfont_shape): Return Lispy number.
11966
11967 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11968 for GCs.
11969 (Finternal_set_font_selection_order): Call font_update_sort_order
11970 only when enable_font_backend is set.
11971 (realize_x_face): Set face->font_info to that of default face only
11972 when enable_font_backend is set.
11973
11974 * xdisp.c (handle_composition_prop): Set it->c to the fist
11975 character of the composed region.
11976 (fill_composite_glyph_string): Set base_face->font_info to
11977 s->font_info. Get a face for ascii from base_face->ascii_face.
11978 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11979 with a face already decided.
11980 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11981 non-negative.
11982 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11983 call font_prepare_composition unconditionally.
11984
11985 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11986
11987 * xterm.h (struct x_display_info): New member font.
11988
11989 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11990 (x_set_mouse_face_gc, x_new_font): Likewise.
11991 (x_term_init): Setup display_info->font.
11992 (x_delete_terminal): Free display_info->font.
11993
11994 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11995
11996 * ftxfont.c (ftxfont_default_fid): Delete it.
11997 (ftxfont_open): Set xfont->fid to 0.
11998 (ftxfont_end_for_frame): Clear data specific to the frame and the
11999 font-driver.
12000
12001 * xftfont.c (xftfont_default_fid): Delete it.
12002 (xftfont_open): Set xfont->fid to 0.
12003
12004 * fontset.c (FONTSET_OBJLIST): New macro.
12005 (fontset_find_font): Update font-object list of the fontset.
12006 (free_realized_fontset): New function.
12007 (free_face_fontset): Call free_realized_fontset.
12008 (Ffont_info): Call font_close_object only when enable_font_backend
12009 is set.
12010
12011 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
12012 [HAVE_NTGUI]: Include w32term.h.
12013 [MAC_OS]: Include macterm.ch.
12014 (font_otf_ValueRecord): Use make_number.
12015 (font_finish_cache): Fix handling of reference count.
12016 (font_clear_cache): Update num_fonts.
12017 (font_open_entity): Update smallest_char_width and
12018 smallest_font_height of the frame.
12019 (font_close_object): Update num_fonts.
12020 (Fclear_font_cache): Fix finding the target cache data.
12021
120222008-02-16 Glenn Morris <rgm@gnu.org>
12023
12024 * fontset.c (Finternal_char_font): Fix compilation warning.
12025
120262008-02-16 Eli Zaretskii <eliz@gnu.org>
12027
12028 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
12029 instead of char arrays. Enlarge the size of array passed to
12030 get_token_information.
12031
12032 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
12033 warnings.
12034
120352008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
12036
12037 * .gdbinit: Don't set `args', it breaks gdb --args.
12038
120392008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
12040
12041 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
12042 within a narrowed buffer.
12043
120442008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
12045
12046 * coding.c (decode_coding_object, encode_coding_object):
12047 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12048
120492008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12050
12051 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12052 hardcoding 1.
12053 (detect_coding_system):
12054 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12055 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12056 * insdel.c (insert_from_gap):
12057 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12058 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12059 (string_to_multibyte):
12060 * character.c (chars_in_text, multibyte_chars_in_text):
12061 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12062
12063 * character.h (FETCH_STRING_CHAR_ADVANCE)
12064 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12065 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12066 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12067
12068 * casefiddle.c (casify_region): Only call after-change and composition
12069 functions on the part of the region that was changed.
12070
12071 * keyboard.c (read_avail_input):
12072 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12073
120742008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12075
12076 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12077 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12078
120792008-02-11 Juanma Barranquero <lekktu@gmail.com>
12080
12081 * w32menu.c (push_submenu_start, push_submenu_end)
12082 (push_left_right_boundary, push_menu_pane, push_menu_item):
12083 * keyboard.c (read_key_sequence): Don't pass args with side effects
12084 to AREF, it fails when compiling with -DENABLE_CHECKING.
12085
120862008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12087
12088 * Makefile.in (${lispsource}international/charprop.el):
12089 Delete this target.
12090
12091 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12092 emacs-unicode-2.
12093
120942008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12095
12096 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12097
120982008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12099
12100 * frame.c (Qnoelisp): New symbol.
12101 (syms_of_frame): Initialize it.
12102 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12103 harmless Elisp code, from a strong `force' from x_connection_closed.
12104 * frame.h (Qnoelisp): Declare.
12105 * xterm.c (x_connection_closed): Pass `noelisp'.
12106
12107 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12108 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12109 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12110 rather than `int' for the type of `type'.
12111
121122008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12113
12114 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12115
12116 * Makefile.in (GNUC): Remove support for gcc-1.x.
12117
121182008-02-10 Richard Stallman <rms@gnu.org>
12119
12120 * lisp.h (ASET): Use AREF, not ASLOT.
12121
121222008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12123
12124 * lisp.h (ASET): Check bounds.
12125
121262008-02-10 Glenn Morris <rgm@gnu.org>
12127
12128 * buffer.c (mode-name): Doc fix.
12129
121302008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12131
12132 * Makefile.in:
12133 * emacs.c:
12134 * gmalloc.c:
12135 * keyboard.c:
12136 * lisp.h:
12137 * m/ibm370aix.h:
12138 * process.c:
12139 * regex.c:
12140 * s/hpux.h:
12141 * sysdep.c:
12142 * sysselect.h:
12143 * systty.h:
12144 * unexec.c:
12145 * w32term.c:
12146 * xsmfns.c:
12147 * xterm.c: Remove code that deals with obsolete variables.
12148
12149 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12150
12151 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12152 nothing else needs it anymore.
12153
121542008-02-09 Eli Zaretskii <eliz@gnu.org>
12155
12156 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12157 instead of unibyte_char_to_multibyte.
12158
121592008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12160
12161 * s/gnu-linux.h: Remove commented out code.
12162
12163 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12164
12165 * Makefile.in: Update what RMS says about using autoconf.
12166 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12167 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12168 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12169 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12170
121712008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12172
12173 * keymap.c (Fkey_description): Move side effect outside of macro call.
12174
12175 * xfaces.c (Finternal_make_lisp_face):
12176 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12177
12178 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12179 (syms_of_fontset): Use ASET.
12180
12181 * fns.c (concat): Move side effect outside of macro call.
12182 (hash_clear): Use ASET.
12183
121842008-02-08 Richard Stallman <rms@gnu.org>
12185
12186 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12187 If FORCE, and frame has a surrogate minibuffer for another frame,
12188 delete the other frame first.
12189
121902008-02-07 Timo Savola <timo.savola@iki.fi>
12191
12192 * xterm.c (x_detect_focus_change): Handle embed client message.
12193 (handle_one_xevent): Ditto.
12194 (handle_one_xevent): If embedded and we get a button press/release,
12195 request focus.
12196 (xembed_set_info, xembed_send_message): New functions.
12197 (x_make_frame_visible): Call xembed_set_info if embedded.
12198 (x_make_frame_invisible): Call xembed_set_info if embedded.
12199 (x_term_init): Initialize Xatom_XEMBED.
12200 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12201 (x_iconify_frame): Ditto.
12202
12203 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12204 (enum xembed_info, enum xembed_message, enum xembed_focus)
12205 (enum xembed_modifier, enum xembed_accelerator): New.
12206 (xembed_set_info, xembed_send_message): Declare.
12207 (FRAME_X_EMBEDDED_P): New.
12208
12209 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12210 gtk_plug_new.
12211
12212 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12213 window ID of a frame.
12214 (x_window): Reparent frame if embedded.
12215 (Fx_create_frame): Don't set border width if embedded.
12216
12217 * emacs.c (USAGE3): Add --parent-id.
12218 (standard_args): Ditto.
12219
122202008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12221
12222 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12223
122242008-02-07 Jim Meyering <meyering@redhat.com>
12225
12226 Use "do...while (0)", not "if (1)...else" in macro definitions.
12227 The latter provokes a warning from gcc about the empty else, when
12228 followed by ";". Also, without that trailing semicolon, it would
12229 silently swallow up any following statement.
12230 * syntax.h (SETUP_SYNTAX_TABLE)
12231 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12232 * buffer.h (DECODE_POSITION): Likewise.
12233 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12234 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12235 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12236 (FETCH_CHAR_ADVANCE): Likewise.
12237 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12238
122392008-02-07 Jim Meyering <meyering@redhat.com>
12240
12241 * lread.c [lint]: Don't include <sys/inode.h>.
12242
122432008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12244
12245 * xselect.c (x_handle_dnd_message):
12246 * xmenu.c (digest_single_submenu, xmenu_show):
12247 * xdisp.c (with_echo_area_buffer_unwind_data)
12248 (format_mode_line_unwind_data, unwind_format_mode_line)
12249 (display_menu_bar):
12250 * eval.c (Ffetch_bytecode):
12251 * doc.c (store_function_docstring):
12252 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12253 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12254 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12255
122562008-02-07 Kenichi Handa <handa@m17n.org>
12257
12258 * ftxfont.c (ftxfont_open): Don't set
12259 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12260
12261 * ftfont.c (ftfont_open): Fix previous change.
12262
122632008-02-06 Jason Rumney <jasonr@gnu.org>
12264
12265 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12266 Use cached metrics for ASCII characters.
12267 (w32font_open_internal): Don't set font's owning_frame.
12268 Cache metrics for ASCII characters.
12269
12270 * w32font.h (struct w32font_info): Add ascii_metrics.
12271 Remove owning_frame.
12272
122732008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12274
12275 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12276 to negative value.
12277
12278 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12279
12280 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12281
12282 * charset.c (syms_of_charset): Set QCtest and Qeq.
12283
122842008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12285
12286 * process.c (Fstart_process):
12287 * callproc.c (Fcall_process): Handle the case where
12288 Funhandled_file_name_directory returns nil.
12289
12290 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12291 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12292 * font.c (check_gstring): Use them and AREF to access the vector before
12293 we know it's really a gstring.
12294 (Ffont_shape_text): Fix typo.
46e722a9 12295 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12296
12297 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12298 Declare.
12299
12300 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12301
123022008-02-05 Jason Rumney <jasonr@gnu.org>
12303
12304 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12305 Set smallest_font_height and smallest_char_width in display info.
12306
123072008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12308
12309 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12310
123112008-02-05 Miles Bader <miles@gnu.org>
12312
12313 * xfaces.c (get_lface_attributes, merge_named_face)
12314 (lookup_named_face, lookup_derived_face, realize_named_face):
12315 Revert 2008-02-01 change by cyd@stupidchicken.com.
12316
123172008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12318
12319 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12320 fallback fonts.
12321 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12322
123232008-02-04 Jason Rumney <jasonr@gnu.org>
12324
12325 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12326 set full_name.
12327 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12328
123292008-02-03 Jason Rumney <jasonr@gnu.org>
12330
12331 * makefile.w32-in (OBJ1): Include font.o here.
12332 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12333
123342008-02-02 Jason Rumney <jasonr@gnu.org>
12335
12336 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12337
123382008-02-01 Jason Rumney <jasonr@gnu.org>
12339
12340 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12341
12342 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12343
123442008-02-01 Andreas Schwab <schwab@suse.de>
12345
12346 * Makefile.in (shortlisp, lisp): Update for rename of
12347 ../lisp/language/myanmar.el.
12348
123492008-02-01 Chong Yidong <cyd@stupidchicken.com>
12350
12351 * xfaces.c (get_lface_attributes): Delete function.
12352 (merge_named_face, lookup_named_face, lookup_derived_face)
12353 (realize_named_face): Call lface_from_face_name directly, and use
12354 the fact that merge_face_vectors does not alter its FROM argument.
12355
123562008-02-01 Jason Rumney <jasonr@gnu.org>
12357
12358 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12359 input in the default locale. Handle non-Unicode multibyte input.
12360
123612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12362
12363 * fontset.c (reorder_font_vector): Exclude nil elements from the
12364 font group. Don't try multiple fonts.
12365 (fontset_font): Adjust for the above change.
12366 (Finternal_char_font): Return nil if the found font doesn't
12367 contain the character ch.
12368
12369 * Makefile.in (lisp, shortlisp): Add cham.el.
12370
123712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12372
12373 * font.h (FONTP): Make it return 1 also for a font-object.
12374
12375 * .gdbinit (xfontset): New function.
12376
12377 * font.c (font_find_for_lface): Check if the character C is
12378 supported or not only for the first font.
12379
12380 * fontset.c (reorder_font_vector): Fix typo.
12381 (fontset_find_font): Don't add a font-spec specifying a script.
12382 Use 0 (not Qt) for the indication of empty font-group. Change the
12383 format of RFONT-DEF. Return Qt if no font in the font-group
12384 support the character.
12385 (fontset_font): Adjust for the above change. If no font was
12386 found the character, remember that.
12387 (face_for_char): Adjust for the change of RFONT-DEF.
12388 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12389 no font for the target.
12390 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12391
123922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12393
12394 * font.c (font_load_for_face): Handle the case that the font in
12395 face->lface is a string.
12396
123972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12398
12399 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12400
124012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12402
12403 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12404 Fix previous change. If the frame is not on a window system,
12405 signal an error.
12406
124072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12408
12409 * coding.c (decode_coding_object, encode_coding_object): Adjust
12410 marker positions after conversion.
12411
12412 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12413
124142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12415
12416 * font.c (font_find_for_lface): Fix the handling of the return
12417 value of font_has_char.
12418 (Ffont_shape_text): Fix previous change.
12419
12420 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12421 (fontset_ref_and_range): Delete it.
12422 (fontset_find_font): Call char_table_ref_and_range instead of
12423 FONTSET_REF_AND_RANGE.
12424 (make_fontset): Don't setup font groups of Latin here.
12425 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12426 (new_fontset_from_font): Make the specified font the default for
12427 all Latin characters.
12428
124292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12430
12431 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12432 is on a window system before accessing the fontset of the frame.
12433
124342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12435
12436 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12437
12438 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12439 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12440
12441 * font.c (Ffont_shape_text): If the font driver doesn't have a
12442 shaper function, make zero-width glyphs to have at least one-pixel
12443 width. Fix setting of `to' field of glyphs.
12444
124452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12446
12447 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12448 glyphs.
12449
12450 * font.h (struct font_driver): Improve docstring of member `shape'.
12451
124522008-02-01 Kenichi Handa <handa@m17n.org>
12453
12454 * composite.c (syms_of_composite): Fix docstring of
12455 auto-composition-function.
12456
12457 * font.h (LGLYPH_SIZE): New macro.
12458
12459 * font.c (Ffont_fill_gstring): Stop filling when a character not
12460 supported by the font is found.
12461 (Ffont_shape_text): When a shape callback function returns nil,
12462 try at most two more times with larger gstring.
12463 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12464
12465 * xdisp.c (handle_auto_composed_prop): Change the argument to
12466 auto-composition-function.
12467
12468 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12469 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12470 Lispy glyph and store it in the lgstring.
12471
12472 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12473
12474 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12475
124762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12477
12478 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12479
12480 * fontset.c (Vfont_encoding_charset_alist): New variable.
12481 (syms_of_fontset): DEFVAR it.
12482 (reorder_font_vector, fontset_find_font): Optimize for the case of
12483 no need of reordering.
12484 (face_for_char): Map the charset property by
12485 Vfont_encoding_charset_alist.
12486
124872008-02-01 Jason Rumney <jasonr@gnu.org>
12488
12489 * w32font.c (logfonts_match): Don't check adstyle here.
12490 (font_matches_spec): Check here against physical font instead.
12491 (add_font_entity_to_list): Avoid some substitutions.
12492
12493 * font.c (font_parse_fcname): Default weight and slant to normal.
12494 (font_score): Prefer normal fonts if weight or slant unspecified.
12495 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12496 match freetype scores.
12497
124982008-02-01 Jason Rumney <jasonr@gnu.org>
12499
12500 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12501 font, as it may have been deleted.
12502 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12503 most common hyphenless variation.
12504 (logfonts_match): Check generic family.
12505 (font_matches_spec): Don't check generic family here.
12506 (fill_in_logfont): Set generic family based on adstyle.
12507
12508 * w32font.h (w32font_get_cache): Update declaration.
12509
125102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12511
12512 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12513
12514 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12515 If none of the new drivers are available, call font_update_drivers
12516 with the old drivers.
12517
12518 * w32font.c (w32font_get_cache): Adjust the argument type.
12519
12520 * xfont.c (xfont_get_cache): Adjust the argument type.
12521
12522 * font.h (struct font_driver): Change argument type of get_cache.
12523
12524 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12525
12526 * font.c (Ffont_get): Fix arguments to Fassoc.
12527 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12528 (font_clear_cache): New function.
12529 (font_list_entities, font_matching_entity): Use font_get_cache.
12530 (font_update_drivers): Call font_clear_cache when finishing a driver.
12531
12532 * fontset.c (fontset_find_font): Fix previous change.
12533
125342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12535
12536 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12537 dpyinfo->font_table.
12538 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12539 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12540
12541 * font.c (font_at): Handle the case that the arg C is negative.
12542 Handle the unibyte case.
12543 (Ffont_at): Call font_at with the arg C -1.
12544
12545 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12546 the position here, and call font_at with the arg C -1.
12547 Don't check the range of the existing composition at the point.
12548
125492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12550
12551 * fontset.c (fontset_add): New args charset_id and family.
12552 Change caller.
12553 (load_font_get_repertory, fontset_find_font): Assume that
12554 font_spec is always a font-spec object.
12555 (Fset_fontset_font): Always store a font-spec object in a fontset.
12556
12557 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12558 instead of get_property_and_range.
12559
125602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12561
12562 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12563 (xftfont_open): Don't keep locking face.
12564 (xftfont_close): Don't unlock face.
12565 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12566
12567 * fontset.c (fontset_find_font): Don't prefer a font of
12568 supplementary charset.
12569
125702008-02-01 Kenichi Handa <handa@m17n.org>
12571
12572 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12573 script, langsys_tag to langsys, new member script.
12574 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12575 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12576 listing to the script specified in that property. Fix arg to
12577 OTF_check_features.
12578
125792008-02-01 Jason Rumney <jasonr@gnu.org>
12580
12581 * w32font.h: New file.
12582
12583 * w32font.c: Include it.
12584 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12585 (w32font_open): Set owning_frame.
12586 (w32font_text_extents): Use owning_frame.
12587 (struct font_callback_data): Add opentype_only field.
12588 (add_font_entity_to_list): Use it to filter fonts.
12589 Don't check against full name.
12590 (w32font_list_internal): New function.
12591 (w32font_list): Use it.
12592 (w32font_match_internal): New function.
12593 (w32font_match): Use it.
12594 (w32font_open_internal): New function.
12595 (w32font_open): Use it.
12596 (w32font_get_cache, w32font_close, w32font_has_char)
12597 (w32font_encode_char, w32font_text_extents, w32font_draw):
12598 Make non-static.
12599
12600 * makefile.w32-in (w32font.o): Depend on w32font.h.
12601
126022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12603
12604 * charset.c (Fdefine_charset_internal): Record a supplementary
12605 charset at the tail of Vcharset_order_list.
12606
12607 * font.c (Ffont_shape_text): Fix the return value.
12608
12609 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12610
12611 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12612
126132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12614
12615 * ftfont.c (struct OpenTypeSpec): New struct.
12616 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12617 (ftfont_get_open_type_spec): New function.
12618 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12619
12620 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12621
126222008-02-01 Jason Rumney <jasonr@gnu.org>
12623
12624 * w32font.c (add_font_entity_to_list): Compare only the beginning
12625 of full name.
12626
126272008-02-01 Kenichi Handa <handa@m17n.org>
12628
12629 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12630 Never return HANDLED_RECOMPUTE_PROPS.
12631
126322008-02-01 Kenichi Handa <handa@m17n.org>
12633
12634 * font.c (font_gstring_produce): Delete it.
12635
12636 * composite.h (COMPOSITION_METHOD):
12637 Handle COMPOSITION_WITH_GLYPH_STRING.
12638
126392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12640
12641 * xfont.c (Qx): Delete.
12642 (syms_of_xfont): Don't initialize Qx.
12643
12644 * composite.h (enum composition_method):
12645 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12646
126472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12648
12649 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12650 (choose_face_font): Accept new form of font-spec.
12651
12652 * frame.h (font_driver_list): Declare it unconditionally.
12653 (struct frame): Define members font_driver_list and font_data_list
12654 unconditionally.
12655
12656 * fontset.c: Include "font.h" unconditionally.
12657 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12658 (Fset_fontset_font): Accept a font-spec object.
12659
12660 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12661 PIXEL_SIZE part a wild card.
12662
12663 * dispextern.h (struct glyph_string): Define members clip and
12664 num_clips unconditionally.
12665 (struct face): Define members font_info and extra unconditionally.
12666
12667 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12668 ftfont_info only when HAVE_LIBOTF is defined.
12669
126702008-02-01 Andreas Schwab <schwab@suse.de>
12671
12672 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12673 and end.
12674
126752008-02-01 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32font.c (w32font_driver): Add new fields.
12678
126792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12680
12681 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12682 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12683 (LIBES): Add @M17N_FLT_CFLAGS@.
12684
12685 * composite.c (compose_text): Don't treat the new style
12686 composition specially.
12687
12688 * emacs.c (main): Call syms_of_font unconditionally.
12689
12690 * font.h (FONT_ENTITY_NOT_LOADABLE)
12691 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12692 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12693 (struct font_driver): New member shape.
12694 (font_registry_charsets): Extern it.
12695 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12696 (font_otf_capability, font_drive_otf): Delete their externs.
12697
12698 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12699 (font_charset_alist, font_registry_charsets): Move from xfont.c
12700 and rename.
12701 (font_prop_validate_otf): New function.
12702 (font_property_table): Register it for QCotf.
12703 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12704 (font_drive_otf): Delete.
12705 (font_prepare_composition): New arg F. Adjust for the change of
12706 lispy gstring.
12707 (font_find_for_lface): New arg C.
12708 (font_load_for_face): Adjust for the change of font_find_for_lface.
12709 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12710 lispy gstring.
12711 (Ffont_shape_text): New function.
12712 (Fopen_font): If the font size is not given, use 12-pixel.
12713 (Ffont_at): New arg STRING.
12714 (syms_of_font): Initalize font_charset_alist.
12715 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12716 conditionally.
12717
12718 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12719 fonts of the same font-spec. Change the format of RFONT-DEF.
12720 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12721 Adjust for the change of RFONT-DEF.
12722 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12723
12724 * ftfont.h: New file.
12725
12726 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12727 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12728 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12729 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12730 font_otf_capability and font_drive_otf, set ftfont_shape.
12731 (ftfont_list): Adjust for the change of :otf property value.
12732 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12733 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12734 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12735 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12736 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12737 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12738
12739 * w32term.c (x_draw_composite_glyph_string_foreground):
12740 Adjust for the change of lispy gstring.
12741
12742 * xdisp.c (handle_composition_prop): Adjust for the change of
12743 lispy gstring. Call a function for auto-composition with the
12744 third arg it->window.
12745 (fill_composite_glyph_string): Adjust for the change of lispy string.
12746 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12747
12748 * xfaces.c (set_font_frame_param): Adjust for the change of
12749 font_find_for_lface.
12750
12751 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12752 (xfont_registry_charsets): Likewise. Change caller.
12753 (syms_of_xfont): Don't handle x_font_charset_alist.
12754
12755 * xftfont.c: Include "ftfont.h".
12756 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12757 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12758 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12759 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12760 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12761 Set xftfont_driver.shape to xftfont_shape.
12762
12763 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12764 the change of lispy gstring.
12765
127662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12767
12768 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12769
127702008-02-01 Jason Rumney <jasonr@gnu.org>
12771
12772 * w32font.c (w32font_draw): Fill background manually.
12773
127742008-02-01 Jason Rumney <jasonr@gnu.org>
12775
12776 * font.c (Qfontp): Remove unused symbol.
12777 (QCantialias): New symbol.
12778 (syms_of_font): Define it.
12779 (font_property_table): Set a validator for QCantialias.
12780
12781 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12782 Define if not already.
12783 (QCfamily): Share with xfaces.c.
12784 (Qstandard, Qsubpixel, Qnatural): New symbols.
12785 (syms_of_w32font): Define them. Don't define QCfamily here.
12786 (w32_antialias_type, lispy_antialias_type): New functions.
12787 (w32_enumfont_pattern_entity): New arg requested_font.
12788 Set antialias parameter if non-default was requested.
12789 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12790
127912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12792
12793 * lread.c (read1): Undo the previous change.
12794
127952008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12796
12797 * frame.c (Fdelete_frame): Call font_update_drivers only when
12798 USE_FONT_BACKEND is defined.
12799
128002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12801
12802 * font.h (struct font_bitmap): New member bits_per_pixel.
12803 (struct font_driver): New members start_for_frame and end_for_frame.
12804 (struct font_data_list): New struct.
12805 (font_put_frame_data, font_get_frame_data): Extern them.
12806
12807 * frame.h (struct frame): New member font_data_list.
12808
12809 * font.c (font_update_drivers): Call driver->start_for_frame and
12810 driver->end_for_frame at proper timings.
12811 (font_put_frame_data, font_get_frame_data): New functions.
12812 (Ffont_spec): Add usage in the docstring.
12813
12814 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12815 (Fdelete_frame): Call font_update_drivers.
12816
12817 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12818 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12819 (xftfont_get_xft_draw): New function.
12820 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12821 (xftfont_end_for_frame): New function.
12822 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12823
12824 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12825 Change argument. Cache GCs in the per-frame data.
12826 (struct ftxfont_frame_data): New struct.
12827 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12828 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12829 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12830 (ftxfont_end_for_frame): New function.
12831 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12832
12833 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12834
128352008-02-01 Kenichi Handa <handa@m17n.org>
12836
12837 * xselect.c (Vselection_coding_system)
12838 (Vnext_selection_coding_system): Delete them.
12839 (syms_of_xselect): Don't declare selection-coding-system and
12840 next-selection-coding-system. They are declared in select.el.
12841
128422008-02-01 Jason Rumney <jasonr@gnu.org>
12843
12844 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12845
12846 * w32fns.c: Include imm.h.
12847 (get_composition_string_fn, get_ime_context_fn): New optional
12848 system functions.
12849 (globals_of_w32fns): Load them from imm32.dll.
12850 (ignore_ime_char): New flag.
12851 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12852 WM_IME_ENDCOMPOSITION messages.
12853
12854 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12855 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12856
128572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12858
12859 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12860 (READCHAR_REPORT_MULTIBYTE): New macro.
12861 (readchar): New 2nd arg MULTIBYTE.
12862 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12863 Make symbol's name multibyte according to the multibyteness of the
12864 source.
12865
128662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12867
12868 * xfaces.c (face_for_overlay_string): Call lookup_face with
12869 correct arguments (fix of synching with the trunk).
12870
128712008-02-01 Kenichi Handa <handa@m17n.org>
12872
12873 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12874 (font_prop_validate_non_neg, font_prop_validate_spacing):
12875 Delete argument prop_index.
12876 (font_property_table): Change arguments to validater. Change Callers.
12877 (font_lispy_object): Delete.
12878 (font_at): Use font_find_object instead fo font_lispy_object.
12879
128802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12881
12882 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12883 and file names.
12884
128852008-02-01 Jason Rumney <jasonr@gnu.org>
12886
12887 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12888 (font_matches_spec): Remove debug output.
12889 (add_font_entity_to_list): Avoid using substituted fonts.
12890
128912008-02-01 Jason Rumney <jasonr@gnu.org>
12892
12893 * doc.c (Fsnarf_documentation):
12894 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12895
128962008-02-01 Miles Bader <miles@gnu.org>
12897
12898 * dispextern.h (struct glyph_row): Only define "clip" field if
12899 HAVE_WINDOW_SYSTEM is defined.
12900
129012008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12902
12903 Fix up multi-tty merge.
12904
12905 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12906 and indentation.
12907
12908 * xfaces.c (free_realized_face, clear_face_gcs):
12909 Include font_done_for_face in the input_blocked section, just in case.
12910
12911 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12912 (get_char_face_and_encoding): Undo last change and remove the *other*
12913 duplicate definition (i.e. keep the one that's better scoped and that
12914 includes code for the font-backend).
12915
12916 * terminal.c (create_terminal): Default keyboard_coding to
12917 `no-conversion' and terminal_coding to `undecided'.
12918
12919 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12920
12921 * fontset.c (free_realized_fontsets): Check that the table entry does
12922 contain a fontset before trying to compare it to `base'.
12923
12924 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12925 syms_of_charset, and syms_of_coding earlier because init_window_once
12926 now needs Vcoding_system_hash_table to be setup.
12927
12928 * coding.h (default_buffer_file_coding): Remove.
12929
12930 * coding.c (default_buffer_file_coding): Remove.
12931 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12932 than ->symbol, and use the terminal-local coding system.
12933 (syms_of_coding): Don't setup the coding-systems that are not
12934 terminal-local.
12935 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12936
12937 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12938 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12939
12940 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12941 in chartab.c and were re-added here by mistake.
12942 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12943
12944 * doc.c (Fsnarf_documentation):
12945 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12946 src to etc.
12947
12948 * ChangeLog.10: Add mistakenly removed entry.
12949
129502008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12951
12952 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12953
129542008-02-01 Miles Bader <miles@gnu.org>
12955
12956 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12957 Add extra args to FACE_FOR_CHAR.
12958
129592008-02-01 Kenichi Handa <handa@m17n.org>
12960
12961 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12962 in sequence.
12963
12964 * chartab.c (map_sub_char_table, map_char_table): If the range
12965 contains just one character, call the function with that character
12966 even if the depth is not 3.
12967
129682008-02-01 Jason Rumney <jasonr@gnu.org>
12969
12970 * w32font.c (w32font_text_extents): Calculate metrics for the
12971 whole string.
12972
129732008-02-01 Jason Rumney <jasonr@gnu.org>
12974
12975 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12976
129772008-02-01 Jason Rumney <jasonr@gnu.org>
12978
12979 * w32term.c (x_set_glyph_string_clipping): Use
12980 get_glyph_string_clip_rects.
12981 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12982 Adjust for the change of struct glyph_string.
12983
12984 * w32font.c (w32font_draw): Do clipping here.
12985
129862008-02-01 Kenichi Handa <handa@m17n.org>
12987
12988 * xftfont.c (xftfont_draw): Adjust for the change of struct
12989 glyph_string.
12990
12991 * xterm.c (x_set_glyph_string_clipping): Use
12992 get_glyph_string_clip_rects.
12993 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12994 Adjust for the change of struct glyph_string.
12995
12996 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12997 the resulting clip(s}.
12998 (expose_overlaps): Add arg r. Change callers. Set it to
12999 row->clip temporarily.
13000 (expose_window): Redraw rows overlapping the exposed area.
13001
13002 * dispextern.h (struct glyph_row): New member clip.
13003 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
13004 clip_height, new member clip, and num_clips.
13005
130062008-02-01 Kenichi Handa <handa@m17n.org>
13007
13008 * data.c (Fchar_or_string_p): Fix docstring.
13009
130102008-02-01 Kenichi Handa <handa@m17n.org>
13011
13012 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
13013 create a temporary XftDraw object.
13014
130152008-02-01 Kenichi Handa <handa@m17n.org>
13016
13017 * font.c (Ffontp): Fix docstring.
13018
13019 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
13020 strong evidence of ISO-2022.
13021
130222008-02-01 Kenichi Handa <handa@m17n.org>
13023
13024 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
13025 SYNTAX_ENTRY_FOLLOW_PARENT.
13026
130272008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13028
13029 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
13030 its type.
13031 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13032 Update to the new type of weak_hash_tables and next_weak.
13033
13034 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
13035 a plain C pointer to Lisp_Hash_Table.
13036
13037 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
13038 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
13039 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
13040 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
13041 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
13042 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
13043 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
13044 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
13045 (GC_EQ): Remove since they've been identical to their non-GC_
13046 alter-egos ever since the markbit was eradicated.
13047
13048 * alloc.c:
13049 * buffer.c:
13050 * buffer.h:
13051 * data.c:
13052 * fileio.c:
13053 * filelock.c:
13054 * fns.c:
13055 * frame.h:
13056 * lisp.h:
13057 * macterm.c:
13058 * print.c:
13059 * process.c:
13060 * w32fns.c:
13061 * w32menu.c:
13062 * w32term.c:
13063 * xfns.c:
13064 * xmenu.c:
13065 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13066
130672008-02-01 Kenichi Handa <handa@m17n.org>
13068
13069 * chartab.c (map_sub_char_table): Make it work for the top-level
13070 char-table. Fix handling of parent char-table.
13071 (map_char_table): Adjust for the above change.
13072
130732008-02-01 Jason Rumney <jasonr@gnu.org>
13074
13075 * w32font.c (Qgdi): Rename from Qw32.
13076
130772008-02-01 Jason Rumney <jasonr@gnu.org>
13078
13079 * w32bdf.c (get_quoted_string): Make function static.
13080
130812008-02-01 Kenichi Handa <handa@m17n.org>
13082
13083 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13084 bigger ascent and descent than those of the font, use them as
13085 font's ascent and descent.
13086
130872008-02-01 Kenichi Handa <handa@m17n.org>
13088
13089 * Makefile.in (${lispsource}international/charprop.el): Move this
13090 target within "#ifdef HAVE_UNIDATA" and "#endif".
13091
130922008-02-01 Kenichi Handa <handa@m17n.org>
13093
13094 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13095 (shortlisp): Add ../lisp/language/tai-viet.el.
13096
130972008-02-01 Ulrich Mueller <ulm@gentoo.org>
13098
13099 * Makefile.in (${lispsource}international/charprop.el): Depend on
13100 temacs${EXEEXT}.
13101
131022008-02-01 Jason Rumney <jasonr@gnu.org>
13103
13104 * w32font.c (w32font_close): Delete the GDI font object.
13105
13106 * w32menu.c: Include character.h.
13107
13108 * w32proc.c: Likewise.
13109
13110 * w32select.c: Likewise.
13111
13112 * makefile.w32-in (w32proc.o): Depend on character.h.
13113
131142008-02-01 Jason Rumney <jasonr@gnu.org>
13115
13116 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13117
13118 * w32menu.c (syms_of_w32menu): Likewise.
13119
13120 * w32proc.c (syms_of_ntproc): Likewise.
13121
13122 * w32select.c (syms_of_w32select): Likewise.
13123
13124 * w32term.c (syms_of_w32term): Likewise.
13125
131262008-02-01 Jason Rumney <jasonr@gnu.org>
13127
13128 * w32font.c (w32font_draw): Delete brush after using it.
13129
131302008-02-01 Jason Rumney <jasonr@gnu.org>
13131
13132 * w32font.c (w32font_open): Don't set font_idx.
13133 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13134 to font settings.
13135 (w32font_draw): Fill background explicitly.
13136
131372008-02-01 Jason Rumney <jasonr@gnu.org>
13138
13139 * w32term.c (w32_initialize): Don't call w32font_initialize.
13140
13141 * w32font.c (w32font_info): Remove subranges.
13142 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13143 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13144 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13145 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13146 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13147 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13148 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13149 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13150 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13151 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13152 New symbols.
13153 (font_callback_data): New struct.
13154 (w32font_list, w32font_match): Use it.
13155 (w32font_open): Don't populate subranges.
13156 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13157 (w32font_encode_char): Always return unicode code-point as-is.
13158 (w32font_text_extents): Supply a transformation matrix to
13159 GetGlyphOutline. Never look up by glyph index. Avoid looping
13160 twice. Use unicode version of GetTexExtentPoint32 instead of
13161 glyph index version.
13162 (set_fonts_frame): Remove.
13163 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13164 set frame parameter. Use backward compatible fake foundries.
13165 Save generic family in extra slot under QCfamily. Make width slot
13166 constant. Save QCspacing value. Save list of scripts instead of
13167 binary subranges.
13168 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13169 (add_font_entity_to_list): Use font_callback_data struct. Filter
13170 unwanted fonts.
13171 (add_one_font_entity_to_list): Use font_callback_data struct.
13172 (w32_registry): Default to iso10646_1.
13173 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13174 string font registries. Don't fill in font name if it is a generic
13175 family name, fill family instead. Use spacing, family and script
13176 extra info to fill pitch, family and charset fields.
13177 (list_all_matching_fonts): Use font_callback_data struct.
13178 (unicode_range_for_char): Remove.
13179 (font_supported_scripts): New function.
13180 (w32font_initialize): Remove.
13181 (syms_of_w32font): Update which symbols are defined.
13182
131832008-02-01 Jason Rumney <jasonr@gnu.org>
13184
13185 * font.c (font_pixel_size): Reverse assq_no_quit args.
13186
13187 * w32term.h (FONT_WIDTH): Report max width, not average.
13188 (FONT_MAX_WIDTH): Remove.
13189 (FONT_AVG_WIDTH): New macro.
13190
13191 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13192 redefinition of FONT_WIDTH.
13193
13194 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13195 (w32_cache_char_metrics): Use FONT_WIDTH.
13196
13197 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13198
131992008-02-01 Jason Rumney <jasonr@gnu.org>
13200
13201 * w32font.c (w32font_open): Make lfHeight negative.
13202
13203 * w32fns.c (x_default_font_parameter): Use new style font name.
13204 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13205
132062008-02-01 Jason Rumney <jasonr@gnu.org>
13207
13208 * w32font.c (QCsubranges): New symbol.
13209 (w32font_open, w32font_has_char): Get subranges from subproperty
13210 of extra.
13211 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13212 (syms_of_w32font): Define :subranges symbol.
13213
13214 * font.c (font_put_extra): Expose externally.
13215
13216 * font.h (font_put_extra): Move declaration from font.c.
13217
13218 * font.c (Ffont_get): Use font driver to determine otf capability.
13219 (adjust_anchor): Check if driver defines anchor_point before using.
13220
13221 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13222 (w32font_draw): Use options.
13223 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13224 Fix detection of truetype fonts.
13225 (registry_to_w32_charset): Handle charsets other than iso8859-1
13226 expressed as lisp symbols.
13227 (w32_registry): Express charset as lisp symbol.
13228 (fill_in_logfont): Reverse pixel and point height logic.
13229 Don't set width here. Set quality to default.
13230
13231 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13232 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13233
13234 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13235 Remove redundant loop and allocation.
13236
13237 * makefile.w32-in (font.o, w32font.o): New objects.
13238 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13239 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13240
13241 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13242 STORE_XCHARB a valid l-value.
13243
13244 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13245 calculations for non-Truetype fonts.
13246 (x_draw_glyph_string): Sync with xterm.c.
13247 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13248 Remove redundant code.
13249 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13250
13251 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13252 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13253
13254 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13255 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13256
13257 * w32font.c: New file for w32 font backend.
13258
132592008-02-01 Kenichi Handa <handa@m17n.org>
13260
13261 * term.c: Don't include "buffer.h" twice.
13262
132632008-02-01 Kenichi Handa <handa@m17n.org>
13264
13265 * character.c (Funibyte_string): New function.
13266 (syms_of_character): Defsubr it.
13267
132682008-02-01 Jason Rumney <jasonr@gnu.org>
13269
13270 * w32term.c [USE_FONT_BACKEND]:
13271 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13272 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13273 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13274 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13275 (x_free_frame_resources): Sync with xterm.c.
13276
132772008-02-01 Andreas Schwab <schwab@suse.de>
13278
13279 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13280 char-table size.
13281
132822008-02-01 Kenichi Handa <handa@m17n.org>
13283
13284 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13285
132862008-02-01 Kenichi Handa <handa@m17n.org>
13287
13288 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13289 font_otf_gpos, add font_drive_otf.
13290
13291 * fontset.c (fontset_find_font): Pay attention to font size
13292 specified for a font.
13293 (reorder_font_vector): Check contents of font_def.
13294
13295 * font.c (struct otf_list): Delete it.
13296 (otf_list): Make it a lisp variable.
13297 (otf_open): Use lispy otf_list.
13298 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13299 (check_otf_features): New function.
13300 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13301 New functions.
13302 (font_drive_otf): New function merging font_otf_gsub and
13303 font_otf_gpos.
13304 (font_open_for_lface): New arg spec. Change argument order.
13305 (font_load_for_face): Adjust for the change of font_open_for_lface.
13306 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13307 Ffont_otf_gpos.
13308 (syms_of_font): Staticpro otf_list. Delete defsubr of
13309 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13310
13311 * xfaces.c (set_font_frame_param): Adjust for the change of
13312 font_open_for_lface.
13313
13314 * font.h (font_open_for_lface): Adjust prototype.
13315 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13316 member otf_drive.
13317 (font_otf_gsub, font_otf_gpos): Delete externs.
13318 (font_drive_otf): Extern it.
13319
133202008-02-01 Kenichi Handa <handa@m17n.org>
13321
13322 * font.c (font_at): If the window W is not on a window system,
13323 return Qnil.
13324
13325 * coding.c (produce_chars, encode_coding): Don't call
13326 insert_from_gap if no characters to produce.
13327
133282008-02-01 Kenichi Handa <handa@m17n.org>
13329
13330 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13331 Fclear_face_cache.
13332
13333 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13334
133352008-02-01 Miles Bader <miles@gnu.org>
13336
13337 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13338 Parse "--disable-font-backend" option.
13339 (standard_args): Add "--disable-font-backend" option.
13340
133412008-02-01 Kenichi Handa <handa@m17n.org>
13342
13343 * fontset.c (fontset_find_font): New function.
13344 (fontset_font): Use fontset_find_font.
13345 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13346 Register the specified font for all Latin characters.
13347 (new_fontset_from_font): Register the specified font for all Latin
13348 characters.
13349 (dump_fontset): For a realized fontset, include the base fontset
13350 name in the returned vector.
13351
133522008-02-01 Kenichi Handa <handa@m17n.org>
13353
13354 * character.h (CHAR_STRING): Cast C to unsigned on calling
13355 char_string.
13356
13357 * character.c (char_string): Type of arg C changed to unsigned.
13358 Signal an error if C is an invalid character code.
13359
13360 * editfns.c (general_insert_function, Fchar_to_string):
13361 Use CHARACTERP, not INTEGERP.
13362
133632008-02-01 Kenichi Handa <handa@m17n.org>
13364
13365 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13366 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13367
13368 * regex.c (analyse_first): Fix for multibyte characters in "case
13369 charset:" and "case categoryspec:".
13370
133712008-02-01 Andreas Schwab <schwab@suse.de>
13372
13373 * Makefile.in (LIBES): Move standard libraries to the end.
13374
133752008-02-01 Kenichi Handa <handa@m17n.org>
13376
13377 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13378 nonzero, don't shrink the buffer nextb.
13379
13380 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13381
13382 * coding.c (coding_alloc_by_making_gap): New arg offset.
13383 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13384 offset.
13385 (decode_coding_iso_2022): Update coding->safe_charsets.
13386 (decode_coding_gap): Temporarily set
13387 current_buffer->text->inhibit_shrinking to 1.
13388
133892008-02-01 Kenichi Handa <handa@m17n.org>
13390
13391 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13392 indexing into elements of s->cmp and s->char2b.
13393
133942008-02-01 Juanma Barranquero <lekktu@gmail.com>
13395
13396 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13397
133982008-02-01 Kenichi Handa <handa@m17n.org>
13399
13400 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13401 target_multibyte instead of multibyte.
13402 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13403 (bcmp_translate): Change the argument name from multibyte to
13404 target_multibyte.
13405
134062008-02-01 Kenichi Handa <handa@m17n.org>
13407
13408 These changes are to compile a regexp into a pattern that can be
13409 used both for multibyte and unibyte targets.
13410
13411 * Makefile.in (search.o): Depend on charset.h.
13412
13413 * character.c (multibyte_char_to_unibyte_safe): New function.
13414
13415 * search.c: Include "charset.h".
13416 (compile_pattern_1): Delete argument multibyte. Don't set
13417 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13418 (compile_pattern): Don't compare cp->buf.target_multibyte.
13419 Compare cp->buf.charset_unibyte.
13420 (compile_pattern): Set cp->buf.target_multibyte.
13421
13422 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13423
13424 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13425
13426 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13427 multibyte. Change callers.
13428 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13429 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13430 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13431 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13432 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13433 (regex_compile): Make the compiled pattern usable both for
13434 multibyte and unibyte targets.
13435 (analyse_first): Make the fastmap usable both for multibyte and
13436 unibyte targets.
13437 (TRANSLATE_VIA_MULTIBYTE): Delete.
13438 (re_match_2_internal): Pay attention to the case that the
13439 multibyteness of bufp and target may be different.
13440
134412008-02-01 Kenichi Handa <handa@m17n.org>
13442
13443 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13444 empty box occupy at least one column width.
13445
134462008-02-01 Miles Bader <miles@gnu.org>
13447
13448 * Makefile.in: Remove redundant HAVE_XFT clause.
13449
134502008-02-01 Kenichi Handa <handa@m17n.org>
13451
13452 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13453
134542008-02-01 Kenichi Handa <handa@m17n.org>
13455
13456 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13457 being nil.
13458
134592008-02-01 Kenichi Handa <handa@m17n.org>
13460
13461 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13462
134632008-02-01 Kenichi Handa <handa@m17n.org>
13464
13465 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13466
134672008-02-01 Kenichi Handa <handa@m17n.org>
13468
13469 * search.c (simple_search): Fix previous change.
13470
134712008-02-01 Kenichi Handa <handa@m17n.org>
13472
13473 * xftfont.c (ftfont_font_format): Extern declaration.
13474
13475 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13476
13477 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13478 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13479
13480 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13481 (ftfont_font_format): Fix previous change.
13482
13483 * font.h (Ffont_xlfd_name): EXFUN it.
13484
13485 * font.c (font_parse_xlfd): Fix the array size of `f'.
13486 (register_font_driver): Use EQ to compare driver->type.
13487
13488 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13489 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13490 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13491
134922008-02-01 Kenichi Handa <handa@m17n.org>
13493
13494 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13495 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13496
134972008-02-01 Kenichi Handa <handa@m17n.org>
13498
13499 * xfont.c (xfont_open): Set font->format.
13500
13501 * xftfont.c (xftfont_open): Set font->format.
13502
13503 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13504 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13505 (ftfont_open): Set font->format.
13506 (ftfont_font_format): New function.
13507
13508 * font.h (struct font): New member format.
13509
13510 * font.c (Qopentype): New variable.
13511 (syms_of_font): Defsym it.
13512 (Fquery_font): Change the format of the last element of the return
13513 value.
13514
135152008-02-01 Kenichi Handa <handa@m17n.org>
13516
13517 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13518 last resort.
13519
135202008-02-01 Kenichi Handa <handa@m17n.org>
13521
13522 * coding.c (detect_coding_charset): Fix detection of multi-byte
13523 charset.
13524
135252008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13526
13527 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13528
135292008-02-01 Kenichi Handa <handa@m17n.org>
13530
13531 * xdisp.c (get_next_display_element): Set it->face_id for the
13532 first component of a composition.
13533 (x_produce_glyphs): Check if the font is changed or not for composition.
13534
135352008-02-01 Kenichi Handa <handa@m17n.org>
13536
13537 * fontset.c (Qlatin): New variable.
13538 (syms_of_fontset): Define it as a lisp symbol.
13539 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13540
135412008-02-01 Kenichi Handa <handa@m17n.org>
13542
13543 * font.c (font_unparse_fcname): Pay attention to the case that
13544 some of font property is a null string.
13545
135462008-02-01 Kenichi Handa <handa@m17n.org>
13547
13548 * term.c: Include "composite.h".
13549 (encode_terminal_code): Output all components of composition.
13550 Check the size of encode_terminal_src.
13551 (produce_glyphs): For composition, call produce_composite_glyph.
13552 (append_composite_glyph, produce_composite_glyph): New functions.
13553
13554 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13555 is not found, get font_info from the current ascii face.
13556
135572008-02-01 Kenichi Handa <handa@m17n.org>
13558
13559 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13560 buffer-file-name to Qnil before calling insert_from_buffer.
13561
13562 * font.c (font_unparse_fcname): Pay attention to the case that
13563 foundry is a null string.
13564
135652008-02-01 Kenichi Handa <handa@m17n.org>
13566
13567 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13568
13569 * font.c (Qunicode_sip): New variable.
13570 (syms_of_font): Declare it as a Lisp symbol.
13571
13572 * font.h (Qunicode_sip): Extern it.
13573
135742008-02-01 Kenichi Handa <handa@m17n.org>
13575
13576 * composite.c (get_composition_id): Pay attention to TAB component.
13577
13578 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13579 TAB. Adjust for the change of s->char2b which always points to
13580 the first element of allocated memory.
13581
13582 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13583
13584 * xdisp.c (handle_composition_prop): Set it->c to the first
13585 non-TAB component.
13586 (fill_composite_glyph_string): Change argument.
13587 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13588 (x_produce_glyphs): Fix handling of left/right padding.
13589
135902008-02-01 Kenichi Handa <handa@m17n.org>
13591
13592 * coding.c (detect_coding_system): Fix for handling off
13593 inhibit_iso_escape_detection. Fix for the case that no coding
13594 system is defined for a specific coding category.
13595
135962008-02-01 Kenichi Handa <handa@m17n.org>
13597
13598 * font.c (font_matching_entity): Delete unused local var.
13599
13600 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13601 opening a font.
13602
13603 * fileio.c (Finsert_file_contents): On recovering a file, assume
13604 Unix-like eol.
13605 (choose_write_coding_system): On auto-saving a file, force
13606 Unix-like eol.
13607
13608 * coding.c (setup_coding_system): Fix setting of
13609 coding->common_flags based on eol_type.
13610 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13611 inherit from it.
13612
136132008-02-01 Kenichi Handa <handa@m17n.org>
13614
13615 * alloc.c (NSTATICS): Increas to 0x600.
13616
136172008-02-01 Kenichi Handa <handa@m17n.org>
13618
13619 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13620 (ftfont_list): Don't check :name property.
13621 (ftfont_match): New function.
13622 (ftfont_pattern_entity): If the pattern doesn't contain
13623 FC_SPACING, don't assume FC_MONO.
13624
13625 * font.h (struct font_driver): New member `match'.
13626 (font_update_drivers): Adjust prototype.
13627
13628 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13629 property of FONT.
13630 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13631 them unconditionally.
13632 (font_matching_entity): New function.
13633 (font_open_by_name): Try font_matching_entity if exact match is
13634 not found.
13635 (font_update_drivers): Delete the arg FONT. Return a list of
13636 actually used backends. Don't free faces, font caches here.
13637 Don't store data in frame parameters. Don't call x_set_font.
13638 (Ffont_spec): Store :name property as is.
13639 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13640 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13641 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13642 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13643 Call font->driver->otf_gsub instead of font_otf_gsub.
13644
13645 * frame.c (x_set_font_backend): Do more works that were done in
13646 font_update_drivers before.
13647
13648 * xfont.c (xfont_match): New function.
13649 (xfont_driver): Set xfont_driver.match to xfont_match.
13650 (xfont_draw): Set font in GC if necessary.
13651
13652 * ftxfont.c (ftxfont_match): New function.
13653 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13654
13655 * xftfont.c (xftfont_match): New function.
13656 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13657
136582008-02-01 Kenichi Handa <handa@m17n.org>
13659
13660 * font.h (struct font): New member scalable.
13661 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13662 (font_otf_gsub): Adjust prototype.
13663
13664 * font.c (font_otf_capability): Fix handling of the default langsys.
13665 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13666 Check the contents of SPEC.
13667 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13668 (check_gstring): New function.
13669 (REPLACEMENT_CHARACTER): New macro.
13670 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13671 glyph codes of GSTRING.
13672 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13673 (font_prepare_composition): Set cmp->glyph_len.
13674 (font_open_entity): Set font->scalable.
13675 (Ffont_get): Handle :otf property.
13676 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13677 functions.
13678 (Fquery_font): Use font->font.full_name.
13679 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13680 Sfont_otf_alternates.
13681
13682 * ftfont.c (ftfont_open): Set font->font.full_name and
13683 font->font.name properly. Fix calculation of font->font.height
13684 and font->min_width.
13685
13686 * ftxfont.c (ftxfont_create_gcs): New function.
13687 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13688 (ftxfont_draw_backgrond): Fix filling region.
13689 (ftxfont_default_fid): New function.
13690 (ftxfont_open): Set xfont->fid to the return value of
13691 ftxfont_default_fid.
13692 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13693 (ftxfont_done_face): Free only GCs that are created by
13694 ftxfont_create_gcs.
13695 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13696
13697 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13698 Clip to src->width, etc (not src->clip_XXX).
13699
13700 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13701 FontBackend frame parameter.
13702
137032008-02-01 Kenichi Handa <handa@m17n.org>
13704
13705 * font.h (struct font_driver_list): New member `on'.
13706 (Fclear_font_cache): EXFUN it.
13707 (font_update_drivers): Extern it.
13708
13709 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13710 (font_list_entities): Check driver_list->on.
13711 (register_font_driver): Initalize `on' member to 0.
13712 (font_update_drivers): New function.
13713 (Fclear_font_cache): Check driver_list->on.
13714
13715 * frame.h (Qfont_backend): Extern it.
13716 (x_set_font_backend): Extern it.
13717
13718 * frame.c (Qfont_backend): New variable.
13719 (frame_parms): New element for font-backend.
13720 (x_set_font_backend): New function.
13721
13722 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13723 FontBackend frame parameter.
13724 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13725 x_set_font_backend.
13726
13727 * xfont.c (xfont_list): Don't try listing by :name property if the
13728 name is not for XLFD.
13729
137302008-02-01 Kenichi Handa <handa@m17n.org>
13731
13732 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13733 (LGLYPH_SET_TO): New macros.
13734 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13735 element of G is vector or not.
13736 (font_at): Extern it.
13737
13738 * font.c: Include window.h.
13739 (font_lispy_object): New function.
13740 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13741 end of valid glyph.
13742 (font_close_object): Fix getting (struct font *).
13743 (font_at): New function.
13744 (Ffont_get): If FONT is a font-object, get entity from it.
13745 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13746 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13747 range check.
13748 (Ffont_at): New function.
13749 (syms_of_font): Defsubr Sfont_at.
13750
13751 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13752 before the entry for Qcomposition.
13753 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13754 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13755 the font in gstring.
13756 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13757 LGLYPH_FORM (g) to detect the end of valid glyph.
13758 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13759 we are composing with gstring.
13760
13761 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13762 Check if adjustment is vector or not.
13763
13764 * Makefile.in (font.o): Make it depends on window.h.
13765
137662008-02-01 Kenichi Handa <handa@m17n.org>
13767
13768 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13769 adjustment is vector or not.
13770
137712008-02-01 Miles Bader <miles@gnu.org>
13772
13773 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13774
137752008-02-01 Kenichi Handa <handa@m17n.org>
13776
13777 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13778 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13779 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13780
13781 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13782 (DEVICE_DELTA): Fix typo.
13783 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13784 LGLYPH format.
13785
13786 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13787 the change of LGLYPH format.
13788
137892008-02-01 Kenichi Handa <handa@m17n.org>
13790
13791 * ftfont.c (ftfont_list): Fix typo.
13792 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13793
137942008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13795
13796 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13797
13798 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13799 xftface_info is non-NULL.
13800
138012008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13802
13803 * ftfont.c (ftfont_list): Move misplaced #endif.
13804
138052008-02-01 Kenichi Handa <handa@m17n.org>
13806
13807 * ftfont.c (ftfont_list): Pay attention to the case that
13808 FC_CAPABILITY is not defined.
13809
138102008-02-01 Kenichi Handa <handa@m17n.org>
13811
13812 * xftfont.c (xftfont_open): Set charset related members to -1.
13813
13814 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13815 QCname.
13816 (ftfont_open): Set charset related members to -1.
13817
13818 * fontset.c (Votf_script_alist): New variable.
13819 (syms_of_fontset): Initialize it.
13820 (fontset_font): Delete unused variable.
13821
13822 * fontset.h (Votf_script_alist): Extern it.
13823
13824 * font.c (font_find_for_lface): Optimize code.
13825
13826 * font.h (font_close_object, font_merge_old_spec): Extern them.
13827
138282008-02-01 Kenichi Handa <handa@m17n.org>
13829
13830 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13831 (syms_of_font): Initialize them.
13832 (font_pixel_size): Allow float value in dpi.
13833 (font_prop_validate_type): Delete.
13834 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13835 Change caller.
13836 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13837 (font_prop_validate_extra): Delete.
13838 (font_prop_validate_spacing): New function.
13839 (font_property_table): Add elements for all known properties.
13840 (get_font_prop_index): Rename from check_font_prop_name. New
13841 argument FROM. Change caller.
13842 (font_prop_validate): Validate all known properties.
13843 (font_put_extra): Delete argument force. Change caller.
13844 (font_expand_wildcards): Make it static. Fix the way of shrinking
13845 the possible range.
13846 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13847 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13848 Change caller.
13849 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13850 (font_parse_fcname): Delete argument merge. Fix parsing of point
13851 size. Don't validate properties values here. Change caller.
13852 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13853 (font_open_by_name): Delete unused variable.
13854 (Ffont_spec): Likewise. Validate property values.
13855 (Ffont_match_p): New function.
13856
13857 * font.h (QCscalable): Extern it.
13858 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13859
13860 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13861
13862 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13863 (xfont_list_pattern): New function.
13864 (xfont_list): Use xfont_list_pattern.
13865
138662008-02-01 Kenichi Handa <handa@m17n.org>
13867
13868 * font.h (Flist_fonts): EXFUN it.
13869
138702008-02-01 Jason Rumney <jasonr@gnu.org>
13871
13872 * w32term.c (w32_initialize): Add back smoothing_type and
13873 smoothing_enabled definitions.
13874
138752008-02-01 Kenichi Handa <handa@m17n.org>
13876
13877 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13878 s->face->font on determining underline position.
13879
138802008-02-01 Kenichi Handa <handa@m17n.org>
13881
13882 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13883 (font_has_char): Accept font-object too.
13884 (font_find_for_lface): Try at first with a size specified in face.
13885
138862008-02-01 Kenichi Handa <handa@m17n.org>
13887
13888 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13889 font_open_by_name.
13890
138912008-02-01 Kenichi Handa <handa@m17n.org>
13892
13893 * font.h (QCspacing, QCdpi): Extern them.
13894 (enum font_spacing): New enum.
13895 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13896
13897 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13898 (QCspacing, QCdpi): New variables.
13899 (syms_of_font): Initialize them.
13900 (font_pixel_size): New function.
13901 (font_put_extra): New function.
13902 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13903 in FONT_EXTRA.
13904 (font_parse_fcname): Handle enumerated values (e.g. bold).
13905 Fix handling font size. Add QCname property that contains only
13906 unknown properties.
13907 (font_score): Change argument. Change caller. Pay attention to
13908 FONT_PIXEL_SIZE_QUANTUM.
13909 (font_sort_entites, font_list_entities, font_find_for_lface)
13910 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13911 (Ffont_spec): Add QCname property that contains only unknown properties.
13912
13913 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13914 include weight in listing pattern, instead check weight of each
13915 listed font. Don't include scalable in pattern. Pay attention to
13916 FONT_PIXEL_SIZE_QUANTUM.
13917
139182008-02-01 Kenichi Handa <handa@m17n.org>
13919
13920 * font.c (font_parse_fcname): Fix parsing of point-size.
13921 (font_unparse_fcname): Produce symbolic names for style properties.
13922 (font_list_entities): Handle float size correctly.
13923 (font_open_by_name): Prefer `normal' property values if the name
13924 doesn't specify them.
13925
13926 * fontset.c (Finternal_char_font): Use font_get_name, not
13927 Ffont_xlfd_name.
13928
13929 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13930 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13931 pattern. Don't force scalable.
13932
13933 * xftfont.c (xftfont_open): For generating a name, start from
13934 96-byte buffer.
13935
139362008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13937
13938 * frame.h (x_new_fontset2): Fix prototype.
13939
139402008-02-01 Kenichi Handa <handa@m17n.org>
13941
13942 * font.h (struct font_driver): Delete member parse_name.
13943 (font_match_p, font_get_spec, font_parse_fcname)
13944 (font_unparse_fcname): Extern them.
13945 (font_get_name): Adjust prototype.
13946
13947 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13948 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13949 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13950 unnecessary checks for weight, slant, and swidth.
13951 (font_parse_fcname): New function.
13952 (font_unparse_fcname): New function.
13953 (font_parse_name): New function.
13954 (font_match_p): New function.
13955 (font_get_name): Change return value to Lisp string.
13956 (font_get_spec): New function.
13957 (Qunspecified, Qignore_defface): Don't extern them.
13958 (font_find_for_lface): Assume that LFACE is fully specified.
13959 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13960 object, use it for FACE.
13961 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13962 driver->parse_name.
13963 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13964
13965 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13966 prototype.
13967
13968 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13969 argument F. Don't call Fnew_fontset. Instead, directly call
13970 make_fontset.
13971
13972 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13973
13974 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13975 of x_new_fontset2.
13976
13977 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13978 (Qsans__serif): New variables.
13979 (ftfont_generic_family_list): New variable.
13980 (syms_of_ftfont): Initialize the above variables.
13981 (ftfont_pattern_entity): Delete argument NAME.
13982 (ftfont_list_generic_family): New function.
13983 (ftfont_parse_name): Delete this function.
13984 (ftfont_list): Try generic family only when FcFontList found no font.
13985 (ftfont_list_family): Fix args to FcObjectSetBuild.
13986
13987 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13988 object in attrs[LFACE_FONT_INDEX].
13989 (set_lface_from_font_name): Cancel all changes for font-backend.
13990 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13991 function.
13992 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13993 font object in QCfont attribute.
13994 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13995 (realize_default_face) [USE_FONT_BACKEND]: Call
13996 set_lface_from_font_and_fontset.
13997
13998 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13999 "fixed", and signal error here if no suitable font was found.
14000
14001 * xfont.c (xfont_parse_name): Delete this function.
14002
14003 * xftfont.c (xftfont_open): Change coding style of error
14004 handling. Generate fontconfig's fontname pattern.
14005
14006 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
14007 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
14008
14009 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
14010 Both args FONTSET and FONT_OBJECT must be existing ones.
14011
140122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14013
14014 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
14015
140162008-02-01 Kenichi Handa <handa@m17n.org>
14017
14018 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
14019
14020 * font.h (struct font): Fix typo.
14021
14022 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
14023 XLFD_XXX_INDEX.
14024 (enum xlfd_field_mask): New enum.
14025 (intern_font_field): Changed argument. Change caller. If digits
14026 are followed by non-digits, return a symbol.
14027 (font_expand_wildcards): New function.
14028 (font_parse_xlfd): Fix wildcard handling.
14029 (Ffont_spec): If :name is specified, reflect the info in the other
14030 properties.
14031
14032 * ftfont.c (ftfont_pattern_entity): Fix typo.
14033 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
14034 locale.
14035
140362008-02-01 Kenichi Handa <handa@m17n.org>
14037
14038 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
14039
14040 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
14041 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
14042 registry doesn't specify encoding part.
14043 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
14044 (font_open_by_name): At first try parsing the name.
14045 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
14046 as Lisp symbols.
14047
14048 * fontset.c (reorder_font_vector): Pay attention to the case that
14049 the 3rd element of font_def is nil.
14050 (fontset_font): For the default fontset, append one more fontset
14051 elements for a script-based font specification. Don't add script
14052 attribute on finding a font.
14053 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14054 font name.
14055 (fontset_ascii_font): If a font can't be opened, return nil.
14056
14057 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14058 (ftfont_pattern_entity): New function.
14059 (ftfont_get_cache): Assume that freetype_font_cache is already
14060 initialized.
14061 (ftfont_list): Handle the case that a file is specified in font
14062 name. Use ftfont_pattern_entity to generate entities.
14063 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14064 (syms_of_ftfont): Initialize freetype_font_cache.
14065
14066 * xftfont.c (xftfont_open): Make the font name fontconfig's
14067 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14068 (xftfont_close): Free font->font.name if not NULL.
14069
14070 * xfont.c (xfont_list): If script is specified for a font, return
14071 null_vector.
14072 (xfont_list_family): Declare argument type.
14073
14074 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14075 name, set LFACE_FONT (lface) to nil.
14076
14077 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14078 return Qnil.
14079
140802008-02-01 Kenichi Handa <handa@m17n.org>
14081
14082 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14083 (standard_args): Add "-enable-font-backend".
14084
140852008-02-01 Kenichi Handa <handa@m17n.org>
14086
14087 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14088 (struct xftdraw_list, xftdraw_list): Delete them.
14089 (register_xftdraw, check_xftdraw): Delete them.
14090 (xftfont_prepare_face): Don't call register_xftdraw.
14091 (xftfont_done_face): Don't call check_xftdraw.
14092 (xftfont_draw): Get background color only when with_background is
14093 nonzero.
14094
14095 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14096
140972008-02-01 Kenichi Handa <handa@m17n.org>
14098
14099 These changes are for the new font handling codes.
14100
14101 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14102 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14103 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14104 (FONTSRC, FONTOBJ): New variables.
14105 (obj): Add $(FONTOBJ).
14106 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14107 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14108 @LIBOTF_LIBS@.
14109 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14110 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14111
14112 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14113
14114 * character.h (Vscript_representative_chars): Extern it.
14115
14116 * character.c (Vscript_representative_chars): New variable.
14117 (syms_of_character): Declare it as a Lisp variable.
14118
14119 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14120 enable_font_backend is nonzero, accept the composition method
14121 COMPOSITION_WITH_GLYPH_STRING.
14122
14123 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14124 enumeration COMPOSITION_WITH_GLYPH_STRING.
14125
14126 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14127 members clip_x, clip_y, clip_width, and clip_height.
14128 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14129
14130 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14131 --enable-font-backend. Call syms_of_font.
14132
14133 * fns.c (assoc_no_quit): New function.
14134
14135 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14136 (face_for_font, new_fontset_from_font)
14137 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14138
14139 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14140 (fontset_font, fontset_ascii, face_for_char)
14141 (make_fontset_for_ascii_face, Ffont_info)
14142 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14143 is nonzero, use font-backend mechanism.
14144 (find_font_encoding): Make it non-static.
14145 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14146 New functions.
14147
14148 * frame.h (struct frame): New members resx and resy.
14149 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14150 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14151
14152 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14153 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14154
14155 * lisp.h (assoc_no_quit): Extern it.
14156
14157 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14158 Through out the file, use FONT_INFO_FROM_FACE instead of
14159 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14160 rif->per_char_metric.
14161 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14162 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14163 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14164 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14165 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14166 nonzero, use font-backend mechanism.
14167 (get_per_char_metric): New function.
14168
14169 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14170 (set_lface_from_font_name)
14171 (set_font_frame_param, free_realized_face)
14172 (prepare_face_for_display, clear_face_gcs)
14173 (Finternal_set_font_selection_order, realize_x_face)
14174 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14175 font-backend mechanism.
14176 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14177 (load_face_font) [USE_FONT_BACKEND]: Abort.
14178 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14179 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14180
14181 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14182 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14183 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14184 nonzero, register all available font drivers. Call
14185 x_default_font_parameter for deciding a font.
14186 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14187
14188 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14189 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14190 (x_set_glyph_string_clipping_exactly)
14191 (x_compute_glyph_string_overhangs)
14192 (x_draw_glyph_string_foreground)
14193 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14194 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14195 enable_font_backend is nonzero, use font-backend mechanism.
14196 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14197
141982008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14201 system_eol_type.
14202 (syms_of_coding): Initialize system_eol_type.
14203
14204 * process.c (Fset_process_coding_system): Inherit system's eol
14205 format if necessary.
14206
142072008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14208
14209 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14210
142112008-02-01 Kenichi Handa <handa@m17n.org>
14212
14213 * coding.c (decode_eol): Pay attention to buffer relocation in
14214 del_range_2.
14215 (decode_coding): Call decode_eol before restoring undo_list.
14216
142172008-02-01 Kenichi Handa <handa@m17n.org>
14218
14219 * charset.c (Fdefine_charset_internal): Fix setting of
14220 emacs_mule_bytes.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 * keyboard.c (read_char): Check if C is a character or not before
14225 looking up Vkeyboard_translate_table.
14226
142272008-02-01 Kenichi Handa <handa@m17n.org>
14228
14229 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14230 condition to terminate the loop.
14231
142322008-02-01 Kenichi Handa <handa@m17n.org>
14233
14234 * coding.c (produce_composition): Compare charbuf[i] instead of
14235 args[i] against 0.
14236 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14237
142382008-02-01 Kenichi Handa <handa@m17n.org>
14239
14240 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14241 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14242 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14243 detect_coding.
14244 (emacs_mule_char): Handle old style (Emacs 20) component character
14245 of a composition.
14246 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14247 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14248 composition rule.
14249 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14250
142512008-02-01 Kenichi Handa <handa@m17n.org>
14252
14253 * coding.c (encode_coding_ccl): Allocate destination dynamically
14254 when necessary.
14255
142562008-02-01 Kenichi Handa <handa@m17n.org>
14257
14258 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14259 the loop. When quitted, show a proper error message.
14260
142612008-02-01 Kenichi Handa <handa@m17n.org>
14262
14263 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14264 src->clip_head and src->clip_tail temporarily instead of src->hl.
14265
14266 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14267 character sequence.
14268 (Fccl_execute_on_string): Use ASET, not XSET.
14269
142702008-02-01 Kenichi Handa <handa@m17n.org>
14271
14272 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14273
142742008-02-01 Kenichi Handa <handa@m17n.org>
14275
14276 * coding.c (decode_coding): Fix the condition of terminating the
14277 decoding loop.
14278
142792008-02-01 Kenichi Handa <handa@m17n.org>
14280
14281 * data.c (Faset): On setting a character bigger than 255 in a
14282 unibyte string, signal an error instead of make the string multibyte.
14283
142842008-02-01 Kenichi Handa <handa@m17n.org>
14285
14286 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14287 made by a mapping table.
14288
142892008-02-01 Kenichi Handa <handa@m17n.org>
14290
14291 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14292 not.
14293 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14294 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14295
14296 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14297 s->face is NULL or not.
14298
142992008-02-01 Kenichi Handa <handa@m17n.org>
14300
14301 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14302 (x_draw_glyph_string): Fix drawing of right_overhang and
14303 left_overhang around/on cursor.
14304
14305 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14306
143072008-02-01 Kenichi Handa <handa@m17n.org>
14308
14309 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * coding.c (Fdefine_coding_system_internal)
14314 (Fdefine_coding_system_alias): Avoid a duplicated element in
14315 Vcoding_system_alist.
14316
143172008-02-01 Kenichi Handa <handa@m17n.org>
14318
14319 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14320
14321 * coding.c (Qcoding_system_define_form): New variable.
14322 (syms_of_coding): Intern and staticpro it.
14323 (Fcoding_system_p): Check Qcoding_system_define_form.
14324 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14325
14326 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14327 Fcoding_system_p.
14328 (CHECK_CODING_SYSTEM): If ID is not available, call
14329 Fcheck_coding_system.
14330 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14331 Try also Fcheck_coding_system.
14332
143332008-02-01 Kenichi Handa <handa@m17n.org>
14334
14335 * coding.c (code_conversion_restore): GCPRO arg.
14336
143372008-02-01 Kenichi Handa <handa@m17n.org>
14338
14339 * character.c (lisp_string_width): Check multibyteness of STRING.
14340
143412008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14342
14343 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14344 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14345 (decode_mac_font_name): Use decode_coding_c_string instead of
14346 decode_coding.
14347 (x_load_font): Initialize fontp->fontset to -1. Set
14348 fontp->encoding_type.
14349
143502008-02-01 Kenichi Handa <handa@m17n.org>
14351
14352 * search.c (search_buffer): Give up BM search on case-fold-search
14353 if one of a target character has a case-equivalence of different
14354 byte length even if that target charcter is an ASCII.
14355 (simple_search): Fix calculation of byte length of matched text.
14356 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14357
143582008-02-01 Kenichi Handa <handa@m17n.org>
14359
14360 * coding.c (decode_coding): Fix handling of invalid bytes.
14361
143622008-02-01 Kenichi Handa <handa@m17n.org>
14363
14364 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14365 Unicode characters.
14366
143672008-02-01 Kenichi Handa <handa@m17n.org>
14368
14369 * coding.c (encode_coding_object): If a pre-write-conversion
14370 function makes a new buffer, kill it.
14371
143722008-02-01 Kenichi Handa <handa@m17n.org>
14373
14374 * coding.c (QCascii_compatible_p): New variable.
14375 (syms_of_coding): Initialize it.
14376 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14377 calling string_char.
14378 (record_conversion_result): Add `default:' case.
14379 (coding_charset_list): Delete unused variable `coding_type'.
14380 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14381 property in the plist of the coding system.
14382 (Fcoding_system_put): Check QCascii_compatible_p.
14383
143842008-02-01 Miles Bader <miles@gnu.org>
14385
14386 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14387 removed calculation of frame `f', as it's now used.
14388
143892008-02-01 Kenichi Handa <handa@m17n.org>
14390
14391 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14392 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14393 (UNIDATA): New variable.
14394 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14395 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14396 $(RUN_TEMACS) unconditionally.
14397
143982008-02-01 Kenichi Handa <handa@m17n.org>
14399
14400 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14401 (admindir): New variable.
14402 ($(lispsource)international/charprop.el): New target.
14403
144042008-02-01 Miles Bader <miles@gnu.org>
14405
14406 * character.c (chars-in-region): Remove obsolete function.
14407 (syms_of_character): Remove its initialization.
14408
144092008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14410
14411 * w32select.c (validate_coding_system)
14412 (setup_windows_coding_system): New functions.
14413 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14414 setup_windows_coding_system.
14415 (setup_config, Fw32_get_clipboard_data): Use
14416 validate_coding_system.
14417 (Fx_selection_exists): Move call to setup_config to a place
14418 where signals are allowed.
14419
14420 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14421 (Fcheck_coding_system): Add declarations.
14422
144232008-02-01 Kenichi Handa <handa@m17n.org>
14424
14425 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14426
144272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14428
14429 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14430 string as the second argument for x_new_fontset.
14431
144322008-02-01 Kenichi Handa <handa@m17n.org>
14433
14434 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14435 (encode_coding_object): Use safe_call instead of call2.
14436
144372008-02-01 Kenichi Handa <handa@m17n.org>
14438
14439 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14440
14441 * Makefile.in (lisp): Include charprop.el.
14442
144432008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14444
14445 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14446 Not sure if it's unnecessary.
14447
144482008-02-01 Steven Tamm <steventamm@mac.com>
14449
14450 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14451 some possibly unnecessary fontset checking code that crashed
14452 when creating a new frame.
14453
144542008-02-01 Kenichi Handa <handa@m17n.org>
14455
14456 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14457 lookup_face.
14458
14459 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14460
14461 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14462
144632008-02-01 Kenichi Handa <handa@m17n.org>
14464
14465 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14466 (coding_charset_list): New function.
14467
14468 * coding.h (coding_charset_list): Extern it.
14469
144702008-02-01 Kenichi Handa <handa@m17n.org>
14471
14472 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14473 concatenation of family and registry.
14474
144752008-02-01 Kenichi Handa <handa@m17n.org>
14476
14477 * character.h (BYTE8_STRING): Fix typo.
14478
14479 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14480 string to multibyte (sync to HEAD).
14481
14482 * casefiddle.c (casify_region): Handle changes in byte-length
14483 using replace_range_2 (sync to HEAD).
14484
144852008-02-01 Andreas Schwab <schwab@suse.de>
14486
14487 * chartab.c (map_char_table): GCPRO table and arg.
14488
144892008-02-01 Kenichi Handa <handa@m17n.org>
14490
14491 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14492 already at limit.
14493
144942008-02-01 Kenichi Handa <handa@m17n.org>
14495
14496 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14497 instead of fast_c_string_match_ignore_case.
14498 (find_font_encoding): Change argument to Lisp_Object. Use
14499 fast_string_match_ignore_case instead of
14500 fast_c_string_match_ignore_case. Change caller.
14501
145022008-02-01 Kenichi Handa <handa@m17n.org>
14503
14504 * xdisp.c (get_next_display_element): In unibyte case, decide to
14505 display in octal form by checking a character by
14506 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14507
14508 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14509
14510 * character.c (unibyte_has_multibyte_table): New variable.
14511
14512 * character.h (unibyte_has_multibyte_table): Extern it.
14513 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14514
145152008-02-01 Kenichi Handa <handa@m17n.org>
14516
14517 * coding.c (encode_coding_iso_2022): Fix handling of charset
14518 annotation.
14519
145202008-02-01 Kenichi Handa <handa@m17n.org>
14521
14522 * coding.c (setup_coding_system): If coding_system is nil, use
14523 Qundecided.
14524 (Fterminal_coding_system): Return nil if terminal coding system is
14525 `undecided'.
14526 (syms_of_coding): Define coding-system `undecided' here. Setup
14527 terminal_coding as `undecided'.
14528
145292008-02-01 Kenichi Handa <handa@m17n.org>
14530
14531 * xdisp.c (message_dolog, set_message_1): Call
14532 unibyte_char_to_multibyte with arg type int.
14533
14534 * lread.c (read1): Fix reading of a char-table.
14535
14536 * print.c (print_object): Include sub char-table in circularities
14537 detection.
14538
145392008-02-01 Kenichi Handa <handa@m17n.org>
14540
14541 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14542 Append the found sequences in car of ARGS instead of prepending.
14543
145442008-02-01 Kenichi Handa <handa@m17n.org>
14545
14546 * fileio.c (report_file_error): Make a unibyte string from
14547 strerror (errorno).
14548 (Fsubstitute_in_file_name): Fix the arg to
14549 unibyte_char_to_multibyte. It is evaluated twice.
14550
145512008-02-01 Kenichi Handa <handa@m17n.org>
14552
14553 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14554
145552008-02-01 Kenichi Handa <handa@m17n.org>
14556
14557 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14558 BOM is not found.
14559 (detect_coding, detect_coding_system): Optimization for ISO-2022
14560 when no 8-bit data is found.
14561
145622008-02-01 Jason Rumney <jasonr@gnu.org>
14563
14564 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14565
145662008-02-01 Kenichi Handa <handa@m17n.org>
14567
14568 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14569 CHARS.
14570
145712008-02-01 Steven Tamm <steventamm@mac.com>
14572
14573 * macterm.c (mac_encode_char): Add charset argument and update
14574 to use encoding_type.
14575 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14576 switch to pure fontset.
14577 (decode_mac_font_name): Temporarily remove decoding.
14578 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14579 (x_load_font): Temporarily remove encoding.
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * xfaces.c (Fface_font): If frame is not on a window system,
14584 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14585 refer to face->font.
14586 (split_font_name_into_vector, build_font_name_from_vector)
14587 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14588 when HAVE_WINDOW_SYSTEM is defined.
14589
145902008-02-01 Kenichi Handa <handa@m17n.org>
14591
14592 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14593 (x_produce_glyphs): Fix setting of members of cmp in case
14594 cmp->glyph_len is zero.
14595
14596 * fontset.c (Fset_fontset_font): Fix docstring.
14597 (Ffontset_info): Make it backward compatible. New arg ALL.
14598
145992008-02-01 Kim F. Storm <storm@cua.dk>
14600
14601 * process.c (read_process_output): Grow decoding_buf when needed;
14602 this could cause a crash in allocate_string and compact_small_strings.
14603
146042008-02-01 Kenichi Handa <handa@m17n.org>
14605
14606 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14607
146082008-02-01 Kenichi Handa <handa@m17n.org>
14609
14610 * coding.c (setup_coding_system): Set coding->common_flags
14611 correctly for raw-text.
14612 (consume_chars): On encoding unibyte text by raw-text, don't check
14613 multibyte form.
14614 (encode_coding): On encoding by raw-text, never use translation tables.
14615
14616 * fileio.c (e_write): Short cut for the case of no encoding.
14617
146182008-02-01 Kenichi Handa <handa@m17n.org>
14619
14620 * coding.c (detect_coding, detect_coding_system): Delete unused
14621 variables.
14622
146232008-02-01 Kenichi Handa <handa@m17n.org>
14624
14625 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14626 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14627
146282008-02-01 Kenichi Handa <handa@m17n.org>
14629
14630 * coding.c (Ffind_coding_systems_region_internal): Include
14631 raw-text and no-conversion in the result.
14632
146332008-02-01 Kenichi Handa <handa@m17n.org>
14634
14635 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14636 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14637 FONT_DEF.
14638 (font_def_arg, add_arg, from_arg, to_arg): New args.
14639 (set_fontset_font): Change argument.
14640 (Fset_fontset_font): Fix for the case that TARGET is a script
14641 name and charset name.
14642 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14643
146442008-02-01 Kenichi Handa <handa@m17n.org>
14645
14646 * fontset.c (fontset_font): Rename from fontset_face. Change return
14647 value.
14648 (face_suitable_for_char_p, face_for_char): Adjust for the change
14649 of fontset_font.
14650 (make_fontset_for_ascii_face): Fix setting of the fontset element
14651 for ASCII.
14652 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14653 to get a font name.
14654 (Ffontset_info): Adjust for the change of fontset_font.
14655
14656 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14657
14658 * character.h (LEADING_CODE_LATIN_1_MIN)
14659 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14660
146612008-02-01 Kenichi Handa <handa@m17n.org>
14662
14663 * editfns.c (check_translation): New function.
14664 (Ftranslate_region_internal): Handle M:N mapping.
14665
146662008-02-01 Kenichi Handa <handa@m17n.org>
14667
14668 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14669
146702008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14673 goto invalid_code.
14674 (decode_coding_iso_2022): Fix handling of invalid designation.
14675
14676 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14677 after calling code_conversion_save.
14678
146792008-02-01 Kenichi Handa <handa@m17n.org>
14680
14681 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14682
14683 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14684
14685 * fontset.c: Include "intervals.h".
14686 (fontset_face): Fix comparing of Lisp_Objects.
14687 (free_face_fontset, new_fontset_from_font_name): Fix
14688 Lisp_Object/int mixup.
14689
14690 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14691
14692 * coding.c: Add many prototypes for static functions.
14693 (get_translation_table): Allow max_lookup to be NULL.
14694 (decode_coding, Ffind_coding_systems_region_internal)
14695 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14696 get_translation_table with max_lookup NULL.
14697
146982008-02-01 Kenichi Handa <handa@m17n.org>
14699
14700 * coding.c (get_translation_table): Declare it as Lisp_Object.
14701 (LOOKUP_TRANSLATION_TABLE): New macro.
14702 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14703 instead of CHAR_TABLE_REF.
14704
147052008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14708 annotation data format.
14709 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14710 Change arguments FROM and TO to single argument NCHARS. Change caller.
14711 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14712 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14713 (decode_coding_ccl, decode_coding_charset): Pay attention to
14714 coding->charbuf_used.
14715 (get_translation): New function.
14716 (produce_chars): New arguments translation_table and last_block.
14717 Translate characters here. Return number of carryover chars.
14718 Change caller.
14719 (produce_composition): New argument pos. Change caller.
14720 Adjust for the change of annotation data format.
14721 (produce_charset, produce_annotation): Likewise.
14722 (decode_coding, encode_coding): Don't call translate_chars.
14723 (consume_chars): New arg translation_table. Change caller.
14724 (translate_chars): Delete.
14725 (syms_of_coding): Make translation-table's number of extra slots 2.
14726
147272008-02-01 Kenichi Handa <handa@m17n.org>
14728
14729 * search.c (simple_search): Fix setting this_pos_byte in backward
14730 search.
14731
14732 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14733 byte sequence.
14734 (detect_coding_ccl): Fix setting of the variable valids.
14735
147362008-02-01 Kenichi Handa <handa@m17n.org>
14737
14738 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14739
14740 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14741
14742 * editfns.c (Ftranslate_region_internal): Rename from
14743 Ftranslate_region. Accept a char-table in TABLE.
14744 (syms_of_editfns): Defsubr Stranslate_region_internal.
14745
14746 * xfaces.c (set_lface_from_font_name): If a font is specified for
14747 a frame, generate a fontset from the font.
14748 (build_scalable_font_name): If the scalable font is requested for
14749 a specific size, don't change that size.
14750 (try_font_list): Try a scalable font also in the case that a
14751 pattern string is specified.
14752
147532008-02-01 Kenichi Handa <handa@m17n.org>
14754
14755 * xfaces.c (Fface_font): New optional arg CHARACTER.
14756
147572008-02-01 Kenichi Handa <handa@m17n.org>
14758
14759 * charset.h (CHARSET_OFFSET): New macro.
14760
147612008-02-01 Kenichi Handa <handa@m17n.org>
14762
14763 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14764
14765 * fontset.c (fontset_face): Handle the case that repertory is a
14766 char-table.
14767 (find_font_encoding): Return nil for unknown encoding.
14768 (Fset_fontset_font): Ignore a font of unknown encoding.
14769
147702008-02-01 Kenichi Handa <handa@m17n.org>
14771
14772 * keymap.c (describe_vector): Handle default value of a char table.
14773
14774 * fontset.c (fontset_face): Handle fallback fonts correctly.
14775 (Ffontset_info): Return infomation about fallback fonts.
14776
147772008-02-01 Kenichi Handa <handa@m17n.org>
14778
14779 * fontset.c (FONTSET_DEFAULT): New macro.
14780 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14781 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14782 the case that it is nil.
14783 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14784 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14785
14786 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14787 subset or superset.
14788
147892008-02-01 Kenichi Handa <handa@m17n.org>
14790
14791 * emacs.c (main): Call init_charset after syms_of_XXX.
14792
14793 * charset.c (Vcharset_map_directory): Delete.
14794 (Vcharset_map_path): New variable.
14795 (load_charset_map_from_file): Use Vcharset_map_path instead.
14796 (init_charset): Initialize Vcharset_map_path.
14797 (syms_of_charset): Delete declaration of "charset-map-directory",
14798 add declaration of "charset-map-path".
14799
148002008-02-01 Kenichi Handa <handa@m17n.org>
14801
14802 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14803 ASCII only string.
14804
14805 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14806
14807 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14808 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14809
148102008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14813
14814 * coding.c (QCmnemonic, QCdefalut_char)
14815 (QCdecode_translation_table, QCencode_translation_table)
14816 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14817 (get_translation_table): Return a list of translation tables if
14818 necessary.
14819 (decode_coding): Call get_translation_table with ENCODEP 0.
14820 (char_encodable_p): If translation_table is non-nil, always call
14821 translate_char.
14822 (Fdefine_coding_system_internal): Accept list of translation
14823 tables as :encode-translation-table and :decode-translation-table.
14824 (Fcoding_system_put): New function.
14825 (syms_of_coding): Declare new symbols. Defsubr
14826 Scoding_system_put.
14827 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14828 typically JISX0212.
14829
14830 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14831 when the charset is superset type.
14832
14833 * character.c (translate_char): Accept list of translation tables.
14834
148352008-02-01 Kenichi Handa <handa@m17n.org>
14836
14837 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14838 (CODING_ATTR_TRANS_TBL): New macro.
14839
14840 * coding.c (get_translation_table): New function.
14841 (translate_chars): Fix the bug of skipping annotation data.
14842 (decode_coding, encode_coding): Utilize get_translation_table.
14843 (char_encodable_p, Funencodable_char_position): Translate char if
14844 necessary.
14845 (Ffind_coding_systems_region_internal)
14846 (Fcheck_coding_systems_region): Setup translation table for encode
14847 in a coding system attribute vector in advance.
14848 (Fdefine_coding_system_internal): Allow a symbol as translation
14849 table. For shift-jis type coding system, allow 4th charset.
14850
148512008-02-01 Kenichi Handa <handa@m17n.org>
14852
14853 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14854
14855 * xdisp.c (get_next_display_element): Pass -1 as POS to
14856 FACE_FOR_CHAR if displaying a C-string.
14857
148582008-02-01 Kenichi Handa <handa@m17n.org>
14859
14860 * composite.c (get_composition_id): Handle xoff and yoff in a
14861 composition rule.
14862
14863 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14864 (struct composition): New member lbearing and rbearing.
14865
14866 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14867 (x_get_glyph_overhangs): Handle a composition glyph.
14868 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14869
14870 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14871 composition glyph.
14872
148732008-02-01 Kenichi Handa <handa@m17n.org>
14874
14875 * print.c: Include charset.h.
14876 (Vprint_charset_text_property): New variable.
14877 (Qdefault): Extern it.
14878 (PRINT_STRING_NON_CHARSET_FOUND)
14879 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14880 (print_check_string_result): New variable.
14881 (print_check_string_charset_prop): New function.
14882 (print_prune_charset_plist): New variable.
14883 (print_prune_string_charset): New function.
14884 (print_object): Call print_prune_string_charset if
14885 Vprint_charset_text_property is not t.
14886 (print_interval): Print nothing if interval->plist is nil.
14887 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14888 variable. Init and staticpro print_prune_charset_plist.
14889
148902008-02-01 Kenichi Handa <handa@m17n.org>
14891
14892 * fontset.c (new_fontset_from_font_name): Use the specified font
14893 for all characters in the new fontset.
14894
14895 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14896 OBJECT args.
14897
14898 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14899 OBJECT args for composition too.
14900
14901 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14902 OBJECT args.
14903
149042008-02-01 Kenichi Handa <handa@m17n.org>
14905
14906 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14907
14908 * fontset.c (reorder_font_vector): Adjust for the change of
14909 FONT_DEF format.
14910 (fontset_face): New arg id. Change caller.
14911 (face_for_char): New args pos and object.
14912 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14913 (fs_query_fontset): Check NAME by Fassoc too.
14914 (Fset_fontset_font): Allow non-XLFD font name.
14915 (Ffontset_info): Adjust for the change of FONT_DEF format.
14916
14917 * fontset.h (face_for_char): Adjust prototype.
14918
14919 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14920 (append_space, extend_face_to_end_of_line)
14921 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14922 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14923
14924 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14925 POS and OBJECT args.
14926
14927 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14928 POS and OBJECT args.
14929
149302008-02-01 Jason Rumney <jasonr@gnu.org>
14931
14932 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14933 of GlobalAlloc'ed memory.
14934
149352008-02-01 Kenichi Handa <handa@m17n.org>
14936
14937 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14938
14939 * charset.h (charset_table_used): Delete extern.
14940
14941 * charset.c (charset_table_used): Make it static.
14942 (map_charset_chars): Fix args to c_function with.
14943
14944 * chartab.c (map_sub_char_table_for_charset): Fix args to
14945 c_function with.
14946
14947 * coding.h (enum coding_result_code): Delete
14948 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14949
14950 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14951 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14952 (Vlast_code_conversion_error): New variables.
14953 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14954 (ONE_MORE_BYTE): Record error if any instead of signaling an
14955 error. If non-ASCII multibyte char is found, return the negative
14956 value of the code. All callers changed to check it.
14957 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14958 (record_conversion_result): New function. Change all codes setting
14959 coding->result to call this function.
14960 (detect_coding_utf_8, decode_coding_utf_8)
14961 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14962 Don't use the local variable incomplete.
14963 (emacs_mule_char): Change the second arg to `const'.
14964 (decode_coding): Fix of flushing out unprocessed data.
14965 (make_conversion_work_buffer): Fix making of a work buffer.
14966 (decode_coding_object): Return coding->dst_object.
14967
14968 * fontset.c (set_fontset_font): Fix args.
14969
14970 * lisp.h (CHARACTERBITS): Define as 22.
14971
14972 * process.c (send_process): Be sure to set coding->src_multibyte.
14973
14974 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14975
149762008-02-01 Kenichi Handa <handa@m17n.org>
14977
14978 * xdisp.c (handle_auto_composed_prop): Give limit to
14979 Fnext_single_char_property_change.
14980
149812008-02-01 Kenichi Handa <handa@m17n.org>
14982
14983 * composite.c (syms_of_composite): Don't make the composition hash
14984 table weak.
14985
14986 * fontset.c (Fset_fontset_font): Fix docstring.
14987
14988 * lisp.h (detect_coding_system): Adjust prototype.
14989
14990 * fileio.c (kill_workbuf_unwind): Delete this function.
14991 (Finsert_file_contents): Adjust the call of detect_coding_system.
14992 Get conversion_buffer by code_conversion_save. Use the macro
14993 CODING_MAY_REQUIRE_DECODING. After decoding, update
14994 coding_system.
14995
14996 * coding.h (make_conversion_work_buffer): Delete extern.
14997 (code_conversion_save): Extern it.
14998
14999 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
15000 (CODING_GET_INFO): Delete argument eol_type. Change callers.
15001 (decode_coding_utf_8): Don't do eol converion.
15002 (detect_coding_utf_16): Check coding->src_chars, not
15003 coding->src_bytes. Add heuristics for those that have no signature.
15004 (decode_coding_emacs_mule, decode_coding_iso_2022)
15005 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15006 Don't do eol converion.
15007 (adjust_coding_eol_type): Return a new coding system.
15008 (detect_coding): Don't detect eol. Fix for utf-16 detection.
15009 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
15010 each change.
15011 (decode_coding): Pay attention to undo_list. Do eol conversion for
15012 all types of coding-systems (if necessary).
15013 (Vcode_conversion_work_buf_list): Delete it.
15014 (Vcode_conversion_reused_workbuf): Rename from
15015 Vcode_conversion_reused_work_buf.
15016 (Vcode_conversion_workbuf_name): New variable.
15017 (reused_workbuf_in_use): New variable.
15018 (make_conversion_work_buffer): Delete the arg DEPTH.
15019 (code_conversion_restore): Change argument to cons.
15020 (code_conversion_save): Delete the argument BUFFER. Change callers.
15021 (detect_coding_system): New argument src_chars. Change callers.
15022 Fix for utf-16 detection.
15023 (init_coding_once): Don't use ISO_carriage_return.
15024 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
15025 reused_workbuf_in_use.
15026
150272008-02-01 Kenichi Handa <handa@m17n.org>
15028
15029 * keymap.c (store_in_keymap): Pay attention to the case that idx
15030 is a cons specifying a character range.
15031
150322008-02-01 Kenichi Handa <handa@m17n.org>
15033
15034 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
15035 HANDLED_RECOMPUTE_PROPS.
15036
15037 * coding.c (Fdefine_coding_system_internal): Fix checking of
15038 ascii compatibility.
15039
150402008-02-01 Kenichi Handa <handa@m17n.org>
15041
15042 * charset.c (find_charsets_in_text): Delete unused locale variable.
15043 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
15044
15045 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
15046 Resync charset_list to Vemacs_mule_charset_list.
15047
15048 * keymap.c (store_in_keymap): Pay attention to the case that idx
15049 is a cons specifying a character range.
15050
150512008-02-01 Kenichi Handa <handa@m17n.org>
15052
15053 * composite.c (update_compositions): Bind inhibit-read-only, etc
15054 to t before calling remove-list-of-text-properties.
15055
15056 * print.c (print_object): Always print ASCII chars as is.
15057
150582008-02-01 Kenichi Handa <handa@m17n.org>
15059
15060 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15061
15062 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15063 is a char table.
15064
150652008-02-01 Kenichi Handa <handa@m17n.org>
15066
15067 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15068
150692008-02-01 Kenichi Handa <handa@m17n.org>
15070
15071 * xfaces.c (set_lface_from_font_name): Fix for the case that
15072 FONTNAME is not fontset name.
15073
150742008-02-01 Kenichi Handa <handa@m17n.org>
15075
15076 * fns.c (base64_encode_1): Fix previous change.
15077
150782008-02-01 Kenichi Handa <handa@m17n.org>
15079
15080 * fontset.c (set_fontset_font): New function.
15081 (Fset_fontset_font): If a font is specified for a charset, use
15082 map_charset_chars to store the font spec in a fontset.
15083
150842008-02-01 Kenichi Handa <handa@m17n.org>
15085
15086 * fontset.c (fontset_face): Create a fallback fontset on demand.
15087 (make_fontset): Don't create a fallback fontset here.
15088 (free_face_fontset): Free a fallback fontset (if any) too.
15089 (n_auto_fontsets): Delete this variable.
15090 (auto_fontset_alist): New variable.
15091 (new_fontset_from_font_name): Check auto_fontset_alist.
15092 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15093 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15094 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15095 Defsubr Sfontset_list_all.
15096
150972008-02-01 Kenichi Handa <handa@m17n.org>
15098
15099 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15100
151012008-02-01 Kenichi Handa <handa@m17n.org>
15102
15103 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15104
151052008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * editfns.c (Fgoto_char): Fix docstring.
15108
151092008-02-01 Kenichi Handa <handa@m17n.org>
15110
15111 * insdel.c (insert_from_gap): Adjust intervals correctly.
15112
151132008-02-01 Jason Rumney <jasonr@gnu.org>
15114
15115 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15116 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15117 (w32_initialize): Try to load it.
15118 (x_get_font_repertory): Use it if available.
15119 (w32_encode_char): Add shortcut for unicode output.
15120
15121 * w32fns.c (w32_load_system_font): Default charset to -1.
15122 (x_to_w32_charset): Match all fonts for unicode.
15123 (w32_to_x_charset): New parameter matching. Don't return partial
15124 or wildcard charsets.
15125 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15126 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15127 (w32_to_x_font): Match charset to real charset.
15128 (enum_font_cb2): Always list unicode versions.
15129
15130 * makefile.w32-in (temacs): Increase EMHEAP.
15131
151322008-02-01 Jason Rumney <jasonr@gnu.org>
15133
15134 * w32term.c (w32_encode_char): New charset parameter.
15135 font_info.encoding becomes encoding_type.
15136 (x_get_font_repertory): New function. Warning: stub only!
15137 (x_new_font): Return quickly if font already set.
15138 (x_new_fontset): fontsetname parameter is Lisp_Object.
15139 Use new fs_query_fontset. Try new_fontset_from_font_name.
15140 Use fontset_name for return value.
15141
15142 * w32term.h: Declare x_get_font_repertory.
15143
15144 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15145 place of find_charset_in_text. Use encode_coding_object in place
15146 of encode_coding.
15147 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15148 decode_coding.
15149
15150 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15151 of x_new_fontset.
15152 (w32_load_system_font): Initialize charset as unicode.
15153 font_info.encoding becomes encoding_type.
15154 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15155 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15156 (syms_of_w32fns): Set get_font_repertory_func.
15157
15158 * w32console.c: Include character.h. Use terminal_encode_buffer
15159 from term.c.
15160 (write_glyphs): Use new version of encode_terminal_code. Use
15161 encode_coding_object in place of encode_coding.
15162
15163 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15164 encoding becomes encoding_type.
15165
15166 * term.c (terminal_encode_buffer): Make externally visible.
15167
15168 * makefile.w32-in: Add character.h dependancies.
15169 (character.o, chartab.o): New targets.
15170
151712008-02-01 Kenichi Handa <handa@m17n.org>
15172
15173 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15174 CODING_ID_EOL_TYPE.
15175
151762008-02-01 Andreas Schwab <schwab@suse.de>
15177
15178 * coding.c (produce_chars): Revert last change.
15179
151802008-02-01 Kenichi Handa <handa@m17n.org>
15181
15182 * charset.h (charset_unicode): Extern it.
15183
15184 * charset.c (string_xstring_p): Check by (C >= 0x100).
15185 (find_charsets_in_text): Change format of the arc CHARSETS. New
15186 arg MULTIBYTE.
15187 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15188 change of find_charsets_in_text.
15189 (Fsplit_char): Fix doc. Never return unknown.
15190
15191 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15192
15193 * coding.c (Fdefine_coding_system_alias): Update
15194 Vcoding_system_list.
15195
15196 * fontset.c (load_font_get_repertory): Pay attention to the case
15197 that ENCODING of a font is specified by a char-table.
15198
15199 * xterm.c (x_get_font_repertory): Handle the case that the
15200 encoding of font is other than Unicode.
15201
152022008-02-01 Kenichi Handa <handa@m17n.org>
15203
15204 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15205 if a character is encodable by the terminal coding system. If
15206 not, produces proper number of `?'s. Update
15207 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15208 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15209
152102008-02-01 Kenichi Handa <handa@m17n.org>
15211
15212 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15213 variables.
15214 (encode_terminal_code): Change argument. Encode multiple
15215 characters at once. Store the result of encoding in
15216 terminal_encode_buffer.
15217 (write_glyphs, insert_glyphs): Adjust for the change of
15218 encode_terminal_code.
15219 (term_init): Initialize terminal_encode_buffer and
15220 terminal_encode_buf_size.
15221
15222 * coding.c (consume_chars): If coding->src_object is nil, don't
15223 check annotation.
15224
152252008-02-01 Kenichi Handa <handa@m17n.org>
15226
15227 * character.c (char_string): Use ASCII_CHAR_P instead of
15228 SINGLE_BYTE_CHAR_P.
15229
152302008-02-01 Kenichi Handa <handa@m17n.org>
15231
15232 * xdisp.c (handle_auto_composed_prop): Check if the last
15233 characters of auto-composed region is newly composed with the
15234 following characters.
15235 (handle_composition_prop): Fix checking of point being inside
15236 composition.
15237
152382008-02-01 Kenichi Handa <handa@m17n.org>
15239
15240 * fns.c (concat): Don't change multibyteness of the result by
15241 concatenating an 8-bit character.
15242
15243 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15244 multibyteness of the result when newelt is an 8-bit character.
15245
152462008-02-01 Dave Love <fx@gnu.org>
15247
15248 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15249 EMACS_INT.
15250
15251 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15252
15253 * xfaces.c (face_numeric_value): Declare dim size_t.
15254 (Finternal_lisp_face_equal_p): Remove unused f.
15255
15256 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15257 (MATRIX_ROW): Remove unused vars.
15258 (draw_glyphs, x_insert_glyphs, fast_find_position)
15259 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15260 byte/char counts.
15261
15262 * regex.c (regex_compile): Remove unused var.
15263
15264 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15265
15266 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15267 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15268
15269 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15270
15271 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15272
15273 * fileio.c (Fwrite_region): Remove unused var.
15274
15275 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15276 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15277
15278 * composite.c (Fremove_list_of_text_properties): Declare.
15279
15280 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15281 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15282 (coding_inherit_eol_type): Remove unused attrs.
15283 (detect_coding): Cast arg of detect_eol.
15284
15285 * charset.c (syms_of_charset): Remove unused var p.
15286 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15287 byte/char counts.
15288
15289 * casetab.c (set_case_table): Remove unused var.
15290
15291 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15292 unused vars.
15293
152942008-02-01 Dave Love <fx@gnu.org>
15295
15296 * xterm.c (x_bitmap_mask): Declare.
15297
152982008-02-01 Dave Love <fx@gnu.org>
15299
15300 * xterm.c (x_term_init): Fix type error.
15301
15302 * lisp.h: Add Funibyte_char_to_multibyte.
15303
15304 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15305 (Fset_coding_system_priority): Doc fix.
15306
15307 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15308
15309 * indent.c (check_composition): Make start and end EMACS_INT.
15310
15311 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15312
15313 * xdisp.c (handle_composition_prop, check_point_in_composition):
15314 Make buffer positions EMACS_INT.
15315
15316 * composite.c (find_composition, run_composition_function)
15317 (update_compositions, Ffind_composition_internal): Make buffer
15318 positions EMACS_INT.
15319
15320 * composite.h (find_composition, update_compositions): Make
15321 position args EMACS_INT.
15322
15323 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15324
15325 * intervals.c (get_property_and_range):
15326 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15327
15328 * unexalpha.c: Don't include varargs.h.
15329
153302008-02-01 Dave Love <fx@gnu.org>
15331
15332 * coding.h (ENCODE_UTF_8): New.
15333
15334 * Makefile.in (gtkutil.o): Depend on coding.h.
15335
15336 * coding.c (Fset_coding_system_priority): Doc fix.
15337
153382008-02-01 Kenichi Handa <handa@m17n.org>
15339
15340 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15341 the case of auto saving.
15342
153432008-02-01 Andreas Schwab <schwab@suse.de>
15344
15345 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15346 `range' from GC.
15347
153482008-02-01 Kenichi Handa <handa@m17n.org>
15349
15350 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15351
153522008-02-01 Kenichi Handa <handa@m17n.org>
15353
15354 * fileio.c (choose_write_coding_system): Return a decided coding system.
15355 (Fwrite_region): Set Vlast_coding_system_used to the return value
15356 of choose_write_coding_system.
15357
153582008-02-01 Kenichi Handa <handa@m17n.org>
15359
15360 * charset.c (Fset_charset_priority): Pay attention to duplicated
15361 arguments.
15362
15363 * coding.c (QCcategory): New variable.
15364 (syms_of_coding): Defsym it. Set all elements of
15365 Vcoding_category_table and their symbol values.
15366 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15367 coding-category-XXX, and coding-category-list.
15368 (Fdefine_coding_system_internal): Add category in the plist.
15369
153702008-02-01 Kenichi Handa <handa@m17n.org>
15371
15372 * callproc.c (Fcall_process): Handle carryover correctly.
15373
15374 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15375 (raw_text_coding_system): Check NILP (coding_system).
15376 (coding_inherit_eol_type): Check NILP (coding_system) and
15377 NILP (parent).
15378 (consume_chars): Fix for the case of raw-text.
15379
15380 * process.c (read_process_output): Handle carryover correctly.
15381
153822008-02-01 Dave Love <fx@gnu.org>
15383
15384 * regex.c (re_search_2): Fix last change.
15385
153862008-02-01 Kenichi Handa <handa@m17n.org>
15387
15388 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15389 target_multibyte. Even in a unibyte case, return a converted
15390 multibyte char.
15391 (GET_CHAR_AFTER): New macro.
15392 (PATFETCH): Translate via multibyte char.
15393 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15394 (SETUP_MULTIBYTE_RANGE): New macro.
15395 (regex_compile): Setup compiled code so that its multibyteness
15396 matches that of a target. Fix the handling of "[X-YZ]" using
15397 SETUP_MULTIBYTE_RANGE.
15398 (analyse_first) <charset>: For filling fastmap for all multibyte
15399 characters, don't check by BASE_LEADING_CODE_P.
15400 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15401 the same as RE_MULTIBYTE_P (bufp) now.
15402 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15403 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15404 (TRANSLATE_VIA_MULTIBYTE): New macro.
15405 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15406 It is the same as RE_MULTIBYTE_P (bufp) now.
15407 <exactn>: Translate via multibyte.
15408 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15409 translate it.
15410 <charset, charset_not>: Fetch a character by
15411 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15412 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15413 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15414 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15415 by GET_CHAR_AFTER.
15416 (bcmp_translate): Likewise.
15417
15418 * search.c (compile_pattern): Check the member target_multibyte,
15419 not the member multibyte of buf.
15420
15421 * lread.c (read1): While reading a string, set force_singlebyte
15422 and force_multibyte correctly.
15423
15424 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15425 up of unibyte_to_multibyte_table.
15426
154272008-02-01 Kenichi Handa <handa@m17n.org>
15428
15429 * coding.c (setup_coding_system): If coding has
15430 post-read-conversion or pre-write-conversion, set
15431 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15432 respectively.
15433 (decode_coding_gap): Run post-read-conversion if any.
15434
15435 * fileio.c (Finsert_file_contents): Even if we read into a
15436 unibyte buffer, check if we must decode the result or not.
15437
154382008-02-01 Kenichi Handa <handa@m17n.org>
15439
15440 * coding.c (make_conversion_work_buffer): Change the work buffer
15441 name to the same one as that of Emacs 21.
15442
154432008-02-01 Kenichi Handa <handa@m17n.org>
15444
15445 * coding.h (make_conversion_work_buffer): Adjust prototype.
15446 (code_conversion_restore): Don't extern it.
15447
15448 * coding.c (detected_mask): Delete unused variable.
15449 (decode_coding_iso_2022): Pay attention to the byte sequence of
15450 CTEXT extended segment, and retain those bytes as is.
15451 (decode_coding_ccl): Delete unused variable `valids'.
15452 (setup_coding_system): Delete unused variable `category'.
15453 (consume_chars): Delete unused variable `category'. Make it work
15454 for non-multibyte case.
15455 (make_conversion_work_buffer): Change argument.
15456 (saved_coding): Delete unused variable.
15457 (code_conversion_restore): Don't check saved_coding->destination.
15458 (code_conversion_save): New function.
15459 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15460 instead of record_unwind_protect.
15461 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15462 (detect_coding_system): Delete unused variable `mask'.
15463 (Fdefine_coding_system_internal): Delete unused variable id.
15464
15465 * fileio.c (kill_workbuf_unwind): New function.
15466 (Finsert_file_contents): On replacing, call
15467 make_conversion_work_buffer with correct args, and call
15468 record_unwind_protect with the first arg kill_workbuf_unwind.
15469
15470 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15471
154722008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15475 (fontset_add): Fix for the case that TO is less than TO1.
15476 (Ffontset_info): Don't use fallback fontset on checking the
15477 default fontset.
15478 (dump_fontset): New function for debugging.
15479
15480 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15481 coding_type is Qcharset.
15482
154832008-02-01 Kenichi Handa <handa@m17n.org>
15484
15485 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15486 (map_char_table): Don't inherit the value from the parent on
15487 initializing VAL. Adjust for the above change.
15488
154892008-02-01 Kenichi Handa <handa@m17n.org>
15490
15491 * coding.c (Qsignature, Qendian): Delete these variables.
15492 (syms_of_coding): Don't initialize them.
15493 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15494 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15495 detect_info->found.
15496 (decode_coding_utf_16): Don't detect BOM here.
15497 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15498 is NOT utf_16_without_bom.
15499 (setup_coding_system): For a coding system of type utf-16, check
15500 if the attribute :endian is Qbig or not (not nil or not), and set
15501 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15502 (detect_coding): If coding type is utf-16 and BOM detection is
15503 required, detect it.
15504 (Fdefine_coding_system_internal): For a coding system of type
15505 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15506
155072008-02-01 Kenichi Handa <handa@m17n.org>
15508
15509 * coding.c (coding_set_source): Fix for the case that the current
15510 buffer is different from coding->src_object.
15511 (decode_coding_object): Don't use the conversion work buffer if
15512 DST_OBJECT is a buffer.
15513
155142008-02-01 Dave Love <fx@gnu.org>
15515
15516 * lread.c (read_emacs_mule_char) [len==2]: Index
15517 emacs_mule_charset correctly.
15518
155192008-02-01 Dave Love <fx@gnu.org>
15520
15521 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15522 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15523 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15524 treated specially.)
15525 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15526 (detected_mask): Remove Big5 bits.
15527
155282008-02-01 Kenichi Handa <handa@m17n.org>
15529
15530 The following changes are to make the font rescaling facility
15531 compatible with Emacs 21.
15532
15533 * xfaces.c (Vface_font_rescale_alist): Rename from
15534 Vface_resizing_fonts.
15535 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15536 (font_rescale_ratio): Rename from font_resizing_ratio.
15537 (split_font_name): Set font->rescale_ratio.
15538 (better_font_p): Pay attention to font->rescale_ratio.
15539 (build_scalable_font_name): Likewise. Change RESX, and RESY
15540 fields.
15541 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15542
155432008-02-01 Kenichi Handa <handa@m17n.org>
15544
15545 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15546 (Qutf_16_le): Remove these variables.
15547 (syms_of_coding): Don't DEFSYM them.
15548 (decode_coding_utf_16): Fix handling of BOM.
15549 (encode_coding_utf_16): Fix handling of BOM.
15550
155512008-02-01 Kenichi Handa <handa@m17n.org>
15552
15553 * fileio.c (Finsert_file_contents): On replacing, before decoding
15554 the file into the work buffer, set point of the work buffer to the end.
15555
155562008-02-01 Dave Love <fx@gnu.org>
15557
15558 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15559
155602008-02-01 Dave Love <fx@gnu.org>
15561
15562 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15563 and fix C types.
15564
155652008-02-01 Kenichi Handa <handa@m17n.org>
15566
15567 * xdisp.c (SKIP_GLYPHS): New macro.
15568 (set_cursor_from_row): Pay attention to string display properties.
15569
15570 * category.c (copy_category_entry): Fix for the case that RANGE
15571 is an integer.
15572
15573 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15574
15575 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15576
155772008-02-01 Kenichi Handa <handa@m17n.org>
15578
15579 * charset.c (Fcharset_id_internal): New function.
15580 (syms_of_charset): Defsubr it.
15581
15582 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15583 with the last arg charset_list acquired from coding.
15584 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15585 the attribute coding_attr_ccl_valids.
15586
15587 * coding.h (enum define_coding_ccl_arg_index): Set the first
15588 member coding_arg_ccl_decoder to coding_arg_max.
15589
15590 * ccl.h (ccl_driver): Adjust prototype.
15591
15592 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15593 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15594 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15595 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15596 last arg Qnil.
15597
155982008-02-01 Kenichi Handa <handa@m17n.org>
15599
15600 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15601 call encode_char.
15602
15603 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15604
156052008-02-01 Dave Love <fx@gnu.org>
15606
15607 * composite.c (syms_of_composite): Make composition_hash_table weak.
15608
156092008-02-01 Kenichi Handa <handa@m17n.org>
15610
15611 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15612 (font_name_registry): Don't extern them.
15613 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15614
15615 * fontset.h (Qfontset): Don't extern it.
15616 (new_fontset_from_font_name): Extern it.
15617
15618 * fontset.c: Give 8 extra slots to fontset objects.
15619 (Qfontset_info): New variable.
15620 (syms_of_fontset): Defsym it.
15621 (FONTSET_FALLBACK): New macro.
15622 (fontset_face): Try also the default fontset.
15623 (make_fontset): Realize a fallback fontset from the default fontset.
15624 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15625 using split_font_name_into_vector and build_font_name_from_vector.
15626 (Fset_fontset_font): Access the elements of font_spec by enum
15627 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15628 name by using split_font_name_into_vector.
15629 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15630 generate a proper font name from the fontset name. Update
15631 Vfontset_alias_alist.
15632 (n_auto_fontsets): New variable.
15633 (new_fontset_from_font_name): New function.
15634 (Ffont_info): Store the information about fonts generated from the
15635 default fontset in the first extra slot of the returned char-table.
15636
15637 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15638 (font_name_registry): Delete function.
15639 (split_font_name_into_vector): New function.
15640 (build_font_name_from_vector): New function.
15641 (font_list): The argument REGISTRY is now a list of registry names.
15642 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15643 specifies an explicit font name, return the name as is. Make a
15644 list of registy names.
15645
15646 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15647 of x_new_fontset.
15648 (Fx_create_frame): Don't call x_new_fontset here. Just use
15649 x_list_fonts to check the existence of fonts.
15650
15651 * xterm.h (x_new_fontset): Adjust prototype.
15652
15653 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15654 string. Use new_fontset_from_font_name to create a fontset from a
15655 font name.
15656
156572008-02-01 Kenichi Handa <handa@m17n.org>
15658
15659 * syntax.c (Vfind_word_boundary_function_table): New name for
15660 Vnext_word_boundary_function_table.
15661 (find-word-boundary-function-table): New name for
15662 next-word-boundary-function-table.
15663
156642008-02-01 Dave Love <fx@gnu.org>
15665
15666 * Makefile.in: Fix some dependencies.
15667
15668 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15669 set it to nil before returning.
15670
15671 * composite.c (update_compositions): Fix type error.
15672
15673 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15674
156752008-02-01 Kenichi Handa <handa@m17n.org>
15676
15677 * xterm.c (x_new_font): Optimize for the case that the font is
15678 already set for the frame.
15679
156802008-02-01 Kenichi Handa <handa@m17n.org>
15681
15682 * chartab.c (char_table_ascii): Check if the char table contents
15683 is sub-char-table or not.
15684 (char_table_set, char_table_set_range): Fix argument to
15685 char_table_ascii.
15686
15687 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15688 (detect_coding_utf_8, detect_coding_utf_16)
15689 (detect_coding_emacs_mule, detect_coding_iso_2022)
15690 (detect_coding_sjis, detect_coding_big5)
15691 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15692 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15693 sequence is valid in this coding system. Change callers.
15694 (MAX_ANNOTATION_LENGTH): New macro.
15695 (ADD_ANNOTATION_DATA): New macro.
15696 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15697 ADD_ANNOTATION_DATA. Change the format of annotation data.
15698 (ADD_CHARSET_DATA): New macro.
15699 (emacs_mule_char): New argument ID. Change callers.
15700 (decode_coding_emacs_mule, decode_coding_iso_2022)
15701 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15702 Produce charset annotation data in coding->charbuf.
15703 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15704 to charset annotation data in coding->charbuf.
15705 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15706 coding->common_flags if the coding system is iso-2022 based and
15707 uses designation.
15708 (produce_composition): Adjust for the new annotation data format.
15709 (produce_charset): New function.
15710 (produce_annotation): Handle charset annotation.
15711 (handle_composition_annotation, handle_charset_annotation): New
15712 functions.
15713 (consume_chars): Handle charset annotation. Utilize the above two
15714 functions.
15715 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15716 buffer, get the deleted text as a string and set
15717 coding->src_object to that string.
15718 (detect_coding, detect_coding_system): Use the new struct
15719 coding_detection_info.
15720
15721 * coding.h (struct coding_detection_info): New structure.
15722 (struct coding_system): Adjust prototype of the member `detector'.
15723 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15724
157252008-02-01 Kenichi Handa <handa@m17n.org>
15726
15727 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15728
157292008-02-01 Dave Love <fx@gnu.org>
15730
15731 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15732 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15733 to new local and nullify apropos_accumulate before returning.
15734 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15735
157362008-02-01 Kenichi Handa <handa@m17n.org>
15737
15738 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15739 correctly.
e3eea1fc 15740
aac0c6e3
MR
157412008-02-01 Dave Love <fx@gnu.org>
15742
15743 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 The following changes are to make character composition happen
15748 automatically on displaying.
15749
15750 * Makefile.in (lisp, shortlisp): Add composite.elc.
15751
15752 * composite.h (Qauto_composed, Vauto_composition_function)
15753 (Qauto_composition_function): Extern them.
15754
15755 * composite.c (Vcomposition_function_table)
15756 (Qcomposition_function_table): Delete variables.
15757 (Qauto_composed, Vauto_composition_function)
15758 (Qauto_composition_function): New variables.
15759 (run_composition_function): Don't call
15760 compose-chars-after-function.
15761 (update_compositions): Clear `auto-composed' text property.
15762 (compose_chars_in_text): Delete this function.
15763 (syms_of_composite): Staticpro Qauto_composed and
15764 Qauto_composition_function. Declare Vauto_composition_function as
15765 a Lisp variable.
15766
15767 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15768
15769 * xdisp.c (it_props): Add an entry for Qauto_composed.
15770 (handle_auto_composed_prop): New function.
15771
15772 * xselect.c (selection_data_to_lisp_data): Don't call
15773 compose_chars_in_text.
15774
157752008-02-01 Dave Love <fx@gnu.org>
15776
15777 * keyboard.c (read_char): Modify checking around use of
15778 Vkeyboard_translate_table.
15779
15780 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15781 and fix C types.
15782
157832008-02-01 Kenichi Handa <handa@m17n.org>
15784
15785 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15786 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15787 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15788 the case that the last byte is '\r' correctly.
15789 (decode_coding): Flush out the unprocessed data correctly.
15790 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15791
157922008-02-01 Dave Love <fx@gnu.org>
15793
15794 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15795 Add XK_ISO... case.
15796 (xaw_scroll_callback): Revert last change.
15797
157982008-02-01 Kenichi Handa <handa@m17n.org>
15799
15800 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15801
158022008-02-01 Kenichi Handa <handa@m17n.org>
15803
15804 * xfaces.c (Vface_resizing_fonts): New variable.
15805 (struct font_name): New member `resizing_ratio'.
15806 (font_resizing_ratio): New function.
15807 (split_font_name): Set font->resizing_ratio.
15808 (better_font_p): Pay attention to font->resizing_ratio.
15809 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15810 RESX, and RESY fields.
15811 (try_alternative_families): Try scalable fonts if
15812 Vscalable_fonts_allowed is not Qt.
15813 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15814
158152008-02-01 Dave Love <fx@gnu.org>
15816
15817 * xterm.c (xaw_scroll_callback): Cast correctly.
15818
158192008-02-01 Dave Love <fx@gnu.org>
15820
15821 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15822 (lispy_kana_keys): Comment out.
15823 (make_lispy_event) [XK_kana_A]: Comment out.
15824
15825 * xterm.c (xaw_scroll_callback): Cast call_data.
15826 (XTread_socket): Deal with ASCII keysyms.
15827 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15828
158292008-02-01 Dave Love <fx@gnu.org>
15830
15831 * xterm.c (Vx_keysym_table): New.
15832 (syms_of_xterm): Initialize it.
15833 (XTread_socket): Use it.
15834 From head: Eliminate incorrect optimization that tried to avoid
15835 decoding the output of X*LookupString.
15836 (x_get_font_repertory): Delete charset declaration.
15837
158382008-02-01 Kenichi Handa <handa@m17n.org>
15839
15840 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15841 return 0.
15842 (Fdefine_coding_system_internal): Setup
15843 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15844
158452008-02-01 Dave Love <fx@gnu.org>
15846
15847 * coding.c (Fcheck_coding_system): Doc fix.
15848
15849 * editfns.c (Finsert_byte): Return a proper value.
15850
158512008-02-01 Kenichi Handa <handa@m17n.org>
15852
15853 * coding.c (decode_coding): Fix args to translate_chars. Pay
15854 attention to Vstandard_translation_table_for_decode.
15855 (encode_coding): Fix args to translate_chars. Pay attention to
15856 Vstandard_translation_table_for_encode.
15857
15858 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15859 SINGLE_BYTE_CHAR_P.
15860
15861 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15862 not by SINGLE_BYTE_CHAR_P.
15863
15864 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15865 SINGLE_BYTE_CHAR_P.
15866
15867 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15868 SINGLE_BYTE_CHAR_P.
15869
15870 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15871 by SINGLE_BYTE_CHAR_P.
15872
15873 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15874 SINGLE_BYTE_CHAR_P.
15875
158762008-02-01 Dave Love <fx@gnu.org>
15877
15878 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15879
158802008-02-01 Dave Love <fx@gnu.org>
15881
15882 * fns.c (Flanginfo): Fix typo.
15883
15884 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15885
158862008-02-01 Kenichi Handa <handa@m17n.org>
15887
15888 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15889 (detect_coding_emacs_mule, detect_coding_iso_2022)
15890 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15891 incomplete byte sequence. Don't update *mask when correctly detected.
15892 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15893 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15894 (detect_coding, detect_coding_system): Adjust for the changes above.
15895
158962008-02-01 Kenichi Handa <handa@m17n.org>
15897
15898 * character.c (char_string): Rename from
15899 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15900 (string_char): Rename from string_char.
15901
15902 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15903 if C is greater than MAX_3_BYTE_CHAR.
15904 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15905 string_char instead of string_char_with_unification.
15906
159072008-02-01 Dave Love <fx@gnu.org>
15908
15909 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15910
159112008-02-01 Kenichi Handa <handa@m17n.org>
15912
15913 * keymap.c (push_key_description): Pay attention to force_multibyte.
15914
15915 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15916
159172008-02-01 Dave Love <fx@gnu.org>
15918
15919 * charset.c (define_charset_internal): Rename `supprementary'.
15920
15921 * Makefile.in (lisp, shortlisp): Remove latin-N.
15922
159232008-02-01 Dave Love <fx@gnu.org>
15924
15925 * xfns.c (x_window, x_window): Use use_xim.
15926
15927 * xterm.c (use_xim): Initialize.
15928 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15929 (x_term_init): Maybe set use_xim.
15930
15931 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15932
159332008-02-01 Kenichi Handa <handa@m17n.org>
15934
15935 * search.c (search_buffer): Fix case-fold-search of multibyte
15936 characters.
15937 (boyer_moore): Rename the last argument to char_high_bits.
15938
159392008-02-01 Kenichi Handa <handa@m17n.org>
15940
15941 * xdisp.c (display_string): Fix for the case of zero width glyph.
15942
15943 * xfns.c (x_set_font): Change the error message of the case that
15944 x_new_fontset returns Qt.
15945
15946 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15947 (Finternal_set_lisp_face_attribute): Use signal_error for the
15948 error of invalid fontset.
15949
15950 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15951 fontset, return Qt.
15952
159532008-02-01 Dave Love <fx@gnu.org>
15954
15955 * unexelf.c (unexec): Make .got handling not SGI-specific.
15956
15957 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15958
15959 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15960
15961 * keyboard.c (read_key_sequence): Fix type error.
15962
15963 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15964 type error.
15965
15966 * fontset.c (fontset_add): Return Lisp_Object.
15967
159682008-02-01 Dave Love <fx@gnu.org>
15969
15970 * charset.h (charset_ordered_list_tick): Declare extern.
15971
159722008-02-01 Kenichi Handa <handa@m17n.org>
15973
15974 The following changes (and some of 2008-02-01 changes of mine) are
15975 for handling syntax, category, and case conversion for unibyte
15976 characters by converting them to multibyte on the fly. With these
15977 changes, we don't have to setup syntax and case tables for unibyte
15978 characters in each language environment.
15979
15980 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15981 multibyte if necessary.
15982
15983 * bytecode.c (Fbyte_code): Likewise.
15984
15985 * character.h (LEADING_CODE_LATIN_1_MIN)
15986 (LEADING_CODE_LATIN_1_MAX): New macros.
15987 (unibyte_to_multibyte_table): Extern it.
15988 (unibyte_char_to_multibyte): New macro.
15989 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15990 (CHAR_LEADING_CODE): New macro.
15991 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15992
15993 * character.c (unibyte_to_multibyte_table): New variable.
15994 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15995 (multibyte_char_to_unibyte): If C is an eight-bit character,
15996 convert it to the corresponding byte value.
15997
15998 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15999 not 1, signals an error. Update the elements of
16000 unibyte_to_multibyte_table.
16001 (init_charset_once): Initialize unibyte_to_multibyte_table.
16002 (syms_of_charset): Define the charset `iso-8859-1'.
16003
16004 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
16005 as is without converting it to unibyte. In a unibyte buffer,
16006 convert C to multibyte before checking the syntax.
16007
16008 * lisp.h (unibyte_char_to_multibyte): Delete extern.
16009
16010 * minibuf.c (Fminibuffer_complete_word): Use the macro
16011 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
16012
16013 * regex.h (struct re_pattern_buffer): New member target_multibyte.
16014
16015 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
16016 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
16017 that is zero, convert an eight-bit char to multibyte.
16018 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
16019 non-emacs case.
16020 (PATFETCH): Convert an eight-bit char to multibyte.
16021 (HANDLE_UNIBYTE_RANGE): New macro.
16022 (regex_compile): Setup the compiled pattern for multibyte chars
16023 even if the given regex string is unibyte. Use PATFETCH_RAW
16024 instead of PATFETCH in many places. To handle `charset'
16025 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
16026 only for ASCII chars.
16027 (analyse_first) <exactn>: Simplify because the compiled pattern
16028 is multibyte.
16029 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
16030 <charset>: Use CHAR_LEADING_CODE to get leading codes.
16031 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
16032 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
16033 multibyte always 1.
16034 (re_search_2): In emacs, set the locale variable multibyte to 1,
16035 otherwise to 0. New local variable target_multibyte. Check it
16036 to decide the multibyteness of STR1 and STR2. If
16037 target_multibyte is zero, convert unibyte chars to multibyte
16038 before translating and checking fastmap.
16039 (TARGET_CHAR_AND_LENGTH): New macro.
16040 (re_match_2_internal): In emacs, set the locale variable multibyte
16041 to 1, otherwise to 0. New local variable target_multibyte. Check
16042 it to decide the multibyteness of STR1 and STR2. Use
16043 TARGET_CHAR_AND_LENGTH to fetch a character from D.
16044 <charset, charset_not>: If multibyte is nonzero, check fastmap
16045 only for ASCII chars. Call bcmp_translate with
16046 target_multibyte, not with multibyte.
16047 <begline>: Declare the local variable C as `unsigned'.
16048 (bcmp_translate): Change the last arg name to target_multibyte.
16049
16050 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16051 the regexp pattern and the matching target. Set cp->buf.multibyte
16052 to the multibyteness of the regexp pattern. Set
16053 cp->but.target_multibyte to the multibyteness of the matching target.
16054 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16055 FETCH_STRING_CHAR_ADVANCE.
16056 (Freplace_match): Convert unibyte chars to multibyte.
16057
16058 * syntax.c (char_quoted, back_comment, scan_words)
16059 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16060 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16061 unibyte chars to multibyte.
16062 (skip_chars): Delete the arg syntaxp, and move the code for
16063 handling syntaxes to skip_syntaxes. Change callers.
16064 Fix the case that the multibyteness of STRING and the current
16065 buffer doesn't match.
16066 (skip_syntaxes): New function.
16067 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16068 SINGLE_BYTE_CHAR_P.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * xfaces.c (QCfontset): New variable.
16073 (LFACE_FONTSET): New macro.
16074 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16075 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16076 (Finternal_set_lisp_face_attribute)
16077 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16078 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16079 check also LFACE_FONTSET_INDEX.
16080 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16081 attrs[LFACE_FONT_INDEX].
16082 (syms_of_xfaces): Intern and staticpro QCfontset.
16083
16084 * dispextern.h (enum lface_attribute_index): New member
16085 LFACE_FONTSET_INDEX.
16086
16087 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * coding.c (coding_set_destination): Fix coding->destination for
16092 the case converting a region.
16093 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16094 (encode_coding_object): Fix coding->dst_pos and
16095 coding->dst_pos_byte for the case converting a region.
16096
16097 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16098
16099 * character.h (BYTE8_STRING): New macro.
16100
16101 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16102
161032008-02-01 Kenichi Handa <handa@m17n.org>
16104
16105 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16106 characters by octal form.
16107
16108 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16109
16110 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16111 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16112 _fetch_multibyte_char_len.
16113 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16114
16115 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16116
16117 * casefiddle.c (casify_object): Simplify. Handle the case that
16118 the case conversion change the byte length.
16119 (casify_region): Likewise.
16120
16121 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16122
16123 * character.c (_fetch_multibyte_char_len): Delete this variable.
16124 (syms_of_character): Setup Vprintable_chars.
16125
16126 * editfns.c (Fchar_equal): Fix for the unibyte case.
16127 (Finsert_byte): New function.
16128 (syms_of_editfns): Defsubr it.
16129
16130 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16131 of direct code 0x3ffff.
16132
16133 * search.c (Freplace_match): Fix for the unibyte case.
16134
161352008-02-01 Kenichi Handa <handa@m17n.org>
16136
16137 * lread.c (safe_to_load_p): Fix the logic.
16138
16139 * syntax.c (scan_words): Don't treat characters belonging to
16140 different scripts as constituting a word.
16141
16142 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16143
16144 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16145
16146 * emacs.c (main): In the case of --unibyte, instead of aborting on
16147 finding non-empty buffer, make it unibyte.
16148
161492008-02-01 Kenichi Handa <handa@m17n.org>
16150
16151 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16152 to create a fontset.
16153
161542008-02-01 Dave Love <fx@gnu.org>
16155
16156 * character.c (Funibyte_char_to_multibyte): Doc fix.
16157
16158 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16159
161602008-02-01 Kenichi Handa <handa@m17n.org>
16161
16162 * fontset.c (fontset_add): Make the type `int'.
16163 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16164
16165 * character.c (unibyte_char_to_multibyte)
16166 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16167 charset_unibyte, not charset_primary.
16168
16169 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16170
16171 * charset.c (charset_unibyte): Rename from charset_primary.
16172 (Funibyte_charset): Rename from Fprimary_charset.
16173 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16174 (syms_of_charset): Adjust for the above changes.
16175
16176 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16177 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16178 it->multibyte_p is zero.
16179
16180 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16181 Delete extern.
16182
161832008-02-01 Kenichi Handa <handa@m17n.org>
16184
16185 * coding.c (Fdefine_coding_system_internal): Fix category setting
16186 for a coding system of type iso-2022.
16187
161882008-02-01 Kenichi Handa <handa@m17n.org>
16189
16190 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16191
161922008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * syntax.c (Vnext_word_boundary_function_table): New variable.
16195 (next-word-boundary-function-table): Declare it as a Lisp variable
16196 in syms_of_syntax.
16197 (scan_words): Call functions in Vnext_word_boundary_function_table
16198 if any.
16199
16200 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16201
16202 * fontset.c (fs_load_font): If fontp->charset is not negative,
16203 return fontp without setting its members.
16204
162052008-02-01 Dave Love <fx@gnu.org>
16206
16207 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16208
16209 * m/sparc.h (HAVE_ALLOCA): Delete.
16210
16211 * s/irix6-5.h: Don't include strings.h.
16212 (bcopy, bzero, bcmp): Don't undef.
16213
16214 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16215
16216 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16217 (TIOCSIGSEND): Don't test IRIX6.
16218 (bcopy, bzero, bcmp): Define conditionally.
16219
162202008-02-01 Kenichi Handa <handa@m17n.org>
16221
16222 * buffer.c (Qas, Qmake, Qto): New variables.
16223 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16224 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16225
16226 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16227 we are inserting a process output into a multibyte buffer.
16228
16229 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16230 multibyte_char_to_unibyte.
16231
16232 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16233 by the primary charset, make it eight-bit char.
16234 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16235
16236 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16237 (charset_8_bit__control, charset_8_bit_graphic)
16238 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16239 (define_charset_internal): New function.
16240 (syms_of_charset): Call define_charset_internal for pre-defined
16241 charsets.
16242
16243 * charset.h (charset_8_bit): Extern it.
16244
16245 * coding.c (make_conversion_work_buffer): Adjust for the change
16246 of Fset_buffer_multibyte.
16247 (encode_coding_raw_text): Increment p0 in the loop.
16248
16249 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16250
16251 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16252 for the change of Fset_buffer_multibyte.
16253
16254 * fns.c (Fstring_to_multibyte): New function.
16255 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16256
162572008-02-01 Dave Love <fx@gnu.org>
16258
16259 * xfns.c (x_put_x_image): Declare args.
16260
16261 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16262 (try_font_list): Declare an arg.
16263
16264 * xdisp.c (message2_nolog, set_message): Declare an arg.
16265
16266 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16267
16268 * syntax.c (scan_sexps_forward): Declare an arg.
16269
16270 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16271 Declare an arg.
16272
16273 * lisp.h (Fnew_fontset): Declare.
16274
16275 * keymap.c (push_key_description): Call CHARACTERP correctly.
16276
16277 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16278 (face_for_char): Delete unused vars.
16279 (Fset_fontset_font): Doc fix. Delete unused vars.
16280
16281 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16282
16283 * composite.c (update_compositions): Declare arg.
16284
16285 * cm.c (calccost, cmgoto): Declare args.
16286
16287 * charset.c: Remove `emacs' conditional. Doc fixes.
16288 (map_char_table_for_charset): Declare.
16289
16290 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16291
16292 * ccl.c: Remove `emacs' conditional.
16293
162942008-02-01 Kenichi Handa <handa@m17n.org>
16295
16296 The following changes are to allow specifying multiple font
16297 patterns for a character range (specified by script or charset).
16298
16299 * Makefile.in (abbrev.o): Depend on syntax.h.
16300 (xfaces.o): Depend on charset.h.
16301
16302 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16303 SINGLE_BYTE_CHAR_P.
16304
16305 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16306
16307 * character.h (Vchar_script_table): Extern it.
16308
16309 * character.c (Vscript_alist): Delete.
16310 (Vchar_script_table, Qchar_script_table): New variable.
16311 (syms_of_character): Declare Vchar_script_table as a lisp variable
16312 and initialize it.
16313
16314 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16315 have property char-table-extra-slots, make no extra slot.
16316
16317 * dispextern.h (struct face): Delete member `charset'.
16318 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16319 SINGLE_BYTE_CHAR_P.
16320 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16321 Add prototypes.
16322 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16323 (generate_ascii_font_name): Rename from generate_ascii_font.
16324
16325 * fontset.h (get_font_repertory_func): New prototype.
16326 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16327 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16328
16329 * fontset.c (Qprepend, Qappend): New variables.
16330 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16331 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16332 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16333 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16334 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16335 (load_font_get_repertory): New functions.
16336 (fontset_set): Delete.
16337 (fontset_face): New arg FACE. Return face ID, not face.
16338 Complete re-write to handle new fontset structure. Change caller.
16339 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16340 (face_for_char): Don't call lookup_face.
16341 (make_fontset_for_ascii_face): New arg FACE.
16342 (fs_load_font): New arg CHARSET_ID. Don't check
16343 Vfont_encoding_alist here.
16344 (find_font_encoding): New function.
16345 (list_fontsets): Use STRINGP, not ! NILP.
16346 (accumulate_script_ranges): New function.
16347 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16348 re-written to handle new fontset structure.
16349 (Ffontset_font): Return a copy of element.
16350 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16351 docstring of font-encoding-alist.
16352
16353 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16354 (Fset_fotset_font): Fix arguments to 5.
16355
16356 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16357
16358 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16359 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16360 (highlight_trailing_whitespace): Adjust for the change of
16361 lookup_named_face.
16362
16363 * xfaces.c: Include charset.h.
16364 (load_face_font): Delete argument C. Change caller.
16365 (generate_ascii_font_name): Rename from generate_ascii_font.
16366 (font_name_registry): New function.
16367 (cache_face): Store ascii faces before non-ascii faces in buckets.
16368 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16369 Lookup only ascii faces.
16370 (lookup_non_ascii_face): New function.
16371 (lookup_named_face): Delete argument C. Change caller.
16372 (lookup_derived_face): Delete argument C. Change caller.
16373 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16374 a string, just call font_list with it.
16375 (choose_face_font): Delete arguments FACE and C. New arg
16376 FONT_SPEC. Change caller.
16377 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16378 Change caller.
16379 (realize_non_ascii_face): New function.
16380 (realize_x_face): Call load_face_font here.
16381 (realize_tty_face): Delete argument C. Change caller.
16382 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16383 get a face ID.
16384 (dump_realized_face): Don't print charset of FACE.
16385
16386 * xfns.c (x_set_font): Always call x_new_fontset and
16387 store_frame_parameter.
16388 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16389 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16390
16391 * xterm.h (x_get_font_repertory): Extern it.
16392
16393 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16394 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16395 it->multibyte_p is zero.
16396 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16397 (x_new_fontset): If FONTSETNAME doesn't match any existing
16398 fontsets, create a new one.
16399 (x_get_font_repertory): New function.
16400
164012008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * coding.c (Ffind_coding_systems_region_internal): Detect an
16404 ASCII only string correctly.
16405
16406 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16407 version is 0.
16408
164092008-02-01 Kenichi Handa <handa@m17n.org>
16410
16411 * lread.c: Include "coding.h".
16412 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16413 (load_each_byte, unread_char): New variables.
16414 (readchar_backlog): Delete.
16415 (readchar): Return a character unless load_each_byte is nonzero.
16416 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16417 cons. If unread_char is not -1, simply return it.
16418 (unreadchar): Handle the case that readcharfun is
16419 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16420 (read_multibyte): Delete.
16421 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16422 (read_emacs_mule_char): New functions.
16423 (Fload): Even if the file doesn't have the extension ".elc", if
16424 safe_to_load_p returns a positive version number, assume that the
16425 file contains bytecompiled code. If the version is less than 22,
16426 load the file while decoding multibyte sequences by emacs-mule.
16427 (readevalloop): Don't use readchar_backlog.
16428 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16429 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16430 (read_escape): Delete the arg BYTEREP.
16431 (read1): Set load_each_byte to 1 temporarily while handling
16432 #@NUMBER. Don't call read_multibyte.
16433 (read_vector): Call Fread with a cons. If readcharfun is
16434 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16435 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16436 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16437 and Qload_force_doc_strings.
16438
164392008-02-01 Kenichi Handa <handa@m17n.org>
16440
16441 * xdisp.c (face_before_or_after_it_pos): Call
16442 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16443
164442008-02-01 Kenichi Handa <handa@m17n.org>
16445
16446 * character.h (TRAILING_CODE_P): New macro.
16447 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16448 (string_char_with_unification): Fix prototype.
16449 (Vscript_alist): Extern it.
16450
16451 * character.c (Vscript_alist): New variable.
16452 (string_char_with_unification, str_as_unibyte)
16453 (string_escape_byte8): Add `const' to local variables.
16454 (syms_of_character): Declare script-alist as a Lisp variable.
16455
16456 * charset.h (Vcharset_ordered_list): Extern it.
16457 (charset_ordered_list_tick): Extern it.
16458 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16459 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16460 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16461 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16462 (Funify_charset): Adjust for the change of Funify_charset.
16463
16464 * charset.c (charset_ordered_list_tick): New variable.
16465 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16466 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16467 deunify intead of unify a charset.
16468 (string_xstring_p): Add `const' to local variables.
16469 (find_charsets_in_text): Add `const' to arguments and local variables.
16470 (encode_char): Adjust for the change of Funify_charset. Fix
16471 detecting of invalid code.
16472 (Fset_charset_priority): Increment charset_ordered_list_tick.
16473 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16474 and TO_CODE.
16475
16476 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16477 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16478 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16479 (decode_coding_ccl, consume_chars)
16480 (Ffind_coding_systems_region_internal)
16481 (Fcheck_coding_systems_region): Add `const' to local variables.
16482
16483 * print.c (print_object): Use octal form for printing the
16484 contents of a bool vector.
16485
164862008-02-01 Dave Love <fx@gnu.org>
16487
16488 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16489 <version == 20>: Refuse to load.
16490
164912008-02-01 Dave Love <fx@gnu.org>
16492
16493 * fns.c: Move coding.h.
16494 (Qcodeset, Qdays, Qmonths): New.
16495 (concat): Use CHARACTERP instead of INTEGERP.
16496 (Flocale_codeset): Delete.
16497 (Flanginfo): New function.
16498 (syms_of_fns): Change accordingly.
16499
16500 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16501
165022008-02-01 Dave Love <fx@gnu.org>
16503
16504 * casetab.c (init_casetab_once, init_casetab_once): Fix
16505 CHAR_TABLE_SET call.
16506
16507 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16508
16509 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16510
16511 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16512 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16513 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16514
16515 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16516
16517 * coding.c (ENCODE_DESIGNATION, decode_eol)
16518 (make_conversion_work_buffer, code_conversion_restore)
16519 (Fdefine_coding_system_internal): Convert Lisp types.
16520 (code_conversion_restore): Use EQ, not ==.
16521 (Fencode_coding_string): Fix code_convert_string call.
16522
16523 * coding.h (code_convert_region): Fix prototype.
16524
16525 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16526
16527 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16528 (Ffontset_info): Convert Lisp types.
16529
16530 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16531
16532 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16533
16534 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16535
16536 * chartab.c: Include "...h", not <...h> in some cases.
16537
16538 * callproc.c (Fcall_process): Remove unused variables.
16539
165402008-02-01 Dave Love <fx@gnu.org>
16541
16542 * coding.c (Fset_coding_system_priority): Allow null arg list.
16543
165442008-02-01 Dave Love <fx@gnu.org>
16545
16546 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16547 (Fself_insert_and_exit): Use CHARACTERP.
16548
16549 * callproc.c (Fcall_process): Remove unused vars.
16550
16551 * xterm.c (XTread_socket): Add extra dead keysyms.
16552
16553 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16554
16555 * dispextern.h: Remove prototypes for redraw_frame,
16556 redraw_garbaged_frames.
16557
16558 * cmds.c (Fself_insert_command): Use CHARACTERP.
16559
16560 * chartab.c (make_sub_char_table): Remove unused var.
16561 (Fset_char_table_default, Fmap_char_table): Doc fix.
16562
16563 * keymap.c (access_keymap): Remove generic char code.
16564 (push_key_description): Use CHARACTERP.
16565
165662008-02-01 Dave Love <fx@gnu.org>
16567
16568 * charset.c: Doc fixes.
16569 (Funify_charset): Extra checking.
16570
165712008-02-01 Dave Love <fx@gnu.org>
16572
16573 * lread.c: Remove some unused variables.
16574 (safe_to_load_p): If safe, return the magic number version byte.
16575 (Fload): Maybe use load-with-code-conversion.
16576
165772008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * category.c (Fmodify_category_entry): Don't modify the contents
16580 of category_set for characters out of the range. Avoid
16581 unnecessary modification.
16582
16583 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16584 Vchar_unify_table. The default value of the table is now nil.
16585
16586 * character.c (syms_of_character): Setup Vchar_width_table for
16587 eight-bit-control and raw-byte chars.
16588
16589 * charset.h (enum define_charset_arg_index): Delete
16590 charset_arg_parents and add charset_arg_subset and
16591 charset_arg_superset.
16592 (enum charset_attr_index): Delete charset_parents and add
16593 charset_subset and charset_superset.
16594 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16595 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16596 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16597 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16598 (CHARSET_SUPERSET): New macros.
16599 (charset_work): Extern it.
16600 (ENCODE_CHAR): Use charset_work.
16601 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16602 (map_charset_chars): Extern it.
16603
16604 * charset.c (load_charset_map): Set the default value of encoder
16605 and deunifier char-tables to nil.
16606 (map_charset_chars): Change argument. Change callers. Use
16607 map_char_table_for_charset instead of map_char_table.
16608 (Fmap_charset_chars): New optional args from_code and to_code.
16609 (Fdefine_charset_internal): Adjust for the change of
16610 `define-charset' (:parents -> :subset or :superset).
16611 (charset_work): New variable.
16612 (encode_char, syms_of_charset): Adjust for the change of
16613 Fdefine_charset_internal.
16614 (Ffind_charset_string): Setup the vector `charsets' correctly.
16615
16616 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16617 the previous change.
16618 (char_table_ref_and_range): Adjust for the above change.
16619 (map_sub_char_table_for_charset): New function.
16620 (map_char_table_for_charset): New function.
16621
16622 * keymap.c (describe_vector): Handle a char-table directly here.
16623 (describe_char_table): Delete.
16624
16625 * lisp.h (map_charset_chars): Delete.
16626
166272008-02-01 Dave Love <fx@gnu.org>
16628
16629 * fns.c (count_combining): Comment out (unused).
16630 (Flocale_codeset): New.
16631 (syms_of_fns): Defsubr it.
16632
16633 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16634 (size_t): Remove.
16635
166362008-02-01 Dave Love <fx@gnu.org>
16637
16638 * Makefile.in (chartab.o): Depend on charset.h.
16639
166402008-02-01 Kenichi Handa <handa@m17n.org>
16641
16642 * character.c (syms_of_character): Set the default value of
16643 Vprintable_chars to Qnil.
16644
166452008-02-01 Dave Love <fx@gnu.org>
16646
16647 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16648
166492008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * charset.c (load_charset_map): Handle the case that from < to
16652 correctly.
16653
16654 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16655 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16656 Pay attention to raw-8-bit chars.
16657
166582008-02-01 Kenichi Handa <handa@m17n.org>
16659
16660 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16661 It is not bytecompiled now.
16662
16663 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16664 (charset_jisx0208): New variables.
16665 (Fdefine_charset_internal): Setup them if appropriate.
16666 (init_charset_once): Initialize them to -1.
16667
16668 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16669 (charset_jisx0208): Extern them.
16670
16671 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16672 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16673 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16674 (setup_iso_safe_charsets): Fix arguments to Fassq.
16675 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16676 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16677 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16678 (encode_coding_iso_2022): Change the 1st arg to
16679 ENCODE_ISO_CHARACTER to a variable.
16680
166812008-02-01 Kenichi Handa <handa@m17n.org>
16682
16683 * charset.h (enum define_charset_arg_index): New enums
16684 charset_arg_min_code and charset_arg_max_code.
16685 (struct charset): New member char_index_offset.
16686
16687 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16688 Take charset->char_index_offset into account.
16689 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16690 args[charset_arg_max_code]. Setup charset.char_index_offset.
16691 (syms_of_charset): Fix args to Fdefine_charset_internal.
16692
166932008-02-01 Dave Love <fx@gnu.org>
16694
16695 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16696
166972008-02-01 Dave Love <fx@gnu.org>
16698
16699 * coding.c: Doc fixes.
16700 (Fcoding_system_aliases): Fix return value.
16701 (Qmac): Remove (duplicated) definition.
16702
167032008-02-01 Dave Love <fx@gnu.org>
16704
362654a6
JB
16705 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16706 New functions.
aac0c6e3
MR
16707
16708 * character.c (Fstring): Doc fix.
16709
16710 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16711
362654a6 16712 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16713 (font-encoding-alist): Doc fix.
16714
167152008-02-01 Dave Love <fx@gnu.org>
16716
16717 * term.c (costs_set): Declare static, non-initialized for pcc.
16718 (encode_terminal_code): Remove unused var.
16719
16720 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16721 for K&R.
16722
16723 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16724
16725 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16726 (suffixes): Move out of make_subsidiaries for K&R.
16727
16728 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16729
16730 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16731
167322008-02-01 Dave Love <fx@gnu.org>
16733
16734 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16735
16736 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16737
167382008-02-01 Yong Lu <lyongu@asia-infonet.com>
16739
16740 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16741
16742 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16743
167442008-02-01 Kenichi Handa <handa@m17n.org>
16745
16746 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16747 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16748
167492008-02-01 Kenichi Handa <handa@m17n.org>
16750
16751 * coding.c (decode_coding_charset): Adjust for the change of
16752 Fdefine_coding_system_internal.
16753 (Fdefine_coding_system_internal): For a coding system of
16754 `charset' type, store a list of charset IDs in
16755 `charset_attr_charset_valids' element of coding attributes.
16756
167572008-02-01 Kenichi Handa <handa@m17n.org>
16758
16759 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16760 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16761 caller. Handle 2-byte and 3-byte charsets correctly.
16762 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16763 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16764 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16765 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16766 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16767 sequence.
16768 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16769 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16770 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16771 and alt&rule composition.
16772 (decode_coding_iso_2022): Handle composition correctly.
16773 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16774
16775 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16776 re-defining a charset. If the charset has :emacs-mule-id, setup
16777 emacs_mule_bytes.
16778 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16779
167802008-02-01 Kenichi Handa <handa@m17n.org>
16781
16782 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16783 (encode_coding_big5, encode_coding_charset): If coding requires safe
16784 encoding, produce a character specified by
16785 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16786
167872008-02-01 Dave Love <fx@gnu.org>
16788
16789 * xterm.c (XSetIMValues): Declare.
16790
16791 * process.c: Conditionally include sys/wait.h, pty.h.
16792
16793 * print.c (print_object): Fix print format for 64-bit systems.
16794
16795 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16796
16797 * buffer.c (emacs_strerror): Declare.
16798
16799 * fontset.c (Fclear_face_cache): Declare.
16800 (accumulate_font_info): Comment-out (unused).
16801 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16802 variables.
16803
16804 * character.h (string_escape_byte8): Declare.
16805
16806 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16807 unused vars.
16808 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16809 (Fmap_charset_chars): Doc fix.
16810
16811 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16812 (Fset_coding_system_priority, Fset_coding_system_priority)
16813 (Fdefine_coding_system_internal): Doc fix.
16814
168152008-02-01 Dave Love <fx@gnu.org>
16816
16817 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16818
168192008-02-01 Kenichi Handa <handa@m17n.org>
16820
16821 * character.c (string_escape_byte8): Make multibyte string with
16822 correct size.
16823
16824 * charset.c (Fmake_char): Delete unnecessary code.
16825
168262008-02-01 Kenichi Handa <handa@m17n.org>
16827
16828 * xfns.c (x_encode_text): Allocate coding.destination here, and
16829 call encode_coding_object with dst_object Qnil.
16830
16831 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16832 multibyte form correctly.
16833
16834 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16835 against Vfont_encoding_alist.
16836
16837 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16838 handling of charset list.
16839 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16840 (decode_coding_object): Move point to coding->dst_pos before
16841 calling post-read-conversion function.
16842 (encode_coding_object): Give correct arguments to
16843 pre-write-conversion. Ignore the return value of
16844 pre-write-conversion function. Pay attention to the case that
16845 pre-write-conversion changes the current buffer. If dst_object is
16846 Qt, even if coding->src_bytes is zero, allocate at least one byte
16847 to coding->destination.
16848
16849 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16850
16851 * charset.c (Fmake_char): Make it more backward compatible.
16852 (Fmap_charset_chars): Fix docstring.
16853
168542008-02-01 Dave Love <fx@gnu.org>
16855
16856 * coding.c: Doc fixes.
16857 (Fdefine_coding_system_alias): Use names, not symbols, in
16858 coding-system-alist.
16859
168602008-02-01 Kenichi Handa <handa@m17n.org>
16861
16862 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16863 of calling free_realized_face.
16864
168652008-02-01 Yong Lu <lyongu@asia-infonet.com>
16866
16867 * charset.c (read_hex): Don't treat SPC as a comment starter.
16868 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16869 (Fdecode_char): Fix typo.
16870
168712008-02-01 Kenichi Handa <handa@m17n.org>
16872
16873 * charset.h (struct charset): New member `code_space_mask'.
16874
16875 * coding.c (coding_set_source): Delete the local variable beg_byte.
16876 (encode_coding_charset, Fdefine_coding_system_internal):
16877 Delete the local variable charset.
16878 (Fdefine_coding_system_internal): Setup
16879 attrs[coding_attr_charset_valids] correctly.
16880
16881 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16882 member to check if CODE is valid or not.
16883 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16884 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16885 is within the range of charset->min_code and carset->max_code.
16886
168872008-02-01 Dave Love <fx@gnu.org>
16888
16889 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16890
16891 * dispextern.h (generate_ascii_font): Fix return type.
16892
16893 * xfaces.c (generate_ascii_font): Fix arg declaration.
16894
16895 * coding.c (coding_inherit_eol_type)
16896 (Fset_terminal_coding_system_internal)
16897 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16898
168992008-02-01 Kenichi Handa <handa@m17n.org>
16900
16901 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16902 multiple charsets correctly.
16903
169042008-02-01 Kenichi Handa <handa@m17n.org>
16905
16906 * search.c (boyer_moore): Fix handling of multibyte character
16907 translation.
16908
16909 * xdisp.c (display_mode_element): When the variable `elt' is
16910 changed, update `this' and `lisp_string'.
16911
169122008-02-01 Kenichi Handa <handa@m17n.org>
16913
16914 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16915
16916 * callproc.c (Fcall_process): Be sure to give the current buffer
16917 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16918
16919 * charset.c (struct charset_map_entries): New struct.
16920 (load_charset_map): Rename from parse_charset_map. New args
16921 entries and n_entries. Change caller.
16922 (load_charset_map_from_file): Rename from load_charset_map.
16923 Change caller. New arg control_flag. Call load_charset_map at
16924 the tail.
16925 (load_charset_map_from_vector): New function.
16926 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16927 (encode_char): If the charset is compact, change a character index
16928 to a code point.
16929
16930 * coding.c (coding_alloc_by_making_gap): Check the case that the
16931 source and destination are the same correctly.
16932 (decode_coding_raw_text): Set coding->consumed_char and
16933 coding->consumed to 0.
16934 (produce_chars): If coding->chars_at_source is nonzero, update
16935 coding->consumed_char and coding->consumed before calling
16936 alloc_destination.
16937 (Fdefine_coding_system_alias): Register ALIAS in
16938 Vcoding_system_alist.
16939 (syms_of_coding): Define `no-conversion' coding system at the tail.
16940
16941 * fileio.c (Finsert_file_contents): Set coding_system instead of
16942 val. If the current buffer is multibyte, always call
16943 decode_coding_gap.
16944
16945 * xfaces.c (try_font_list): Give higher priority to fontset's
16946 family than face's family.
16947
169482008-02-01 Kenichi Handa <handa@m17n.org>
16949
16950 * callproc.c (Fcall_process): Be sure to give the current buffer
16951 to decode_coding_c_string.
16952
16953 * xfaces.c (try_font_list): Give a family specified in a fontset
16954 higher priority than a family specified in a face.
16955
169562008-02-01 Kenichi Handa <handa@m17n.org>
16957
16958 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16959 Fix arguments to insert_from_buffer.
16960
16961 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16962
169632008-02-01 Kenichi Handa <handa@m17n.org>
16964
16965 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16966 (decode_coding_gap): Set coding->dst_multibyte correctly.
16967
169682008-02-01 Kenichi Handa <handa@m17n.org>
16969
16970 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16971 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16972 (encode_coding_utf_16): Substitute coding->default_char for
16973 non-Unicode characters.
16974 (decode_coding): Don't call record_insert here.
16975 (setup_coding_system): Initialize `surrogate' of
16976 coding->spec.utf_16 to 0.
16977 (EMIT_ONE_BYTE): Fix for multibyte case.
16978
16979 * insdel.c (insert_from_gap): Call record_insert.
16980
169812008-02-01 Kenichi Handa <handa@m17n.org>
16982
16983 * casefiddle.c (casify_region): Fix multibyte case.
16984
16985 * character.c (c_string_width): Add return type `int'.
16986 (char_string_with_unification): Delete arg ADVANCED.
16987
16988 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16989 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16990 (CHAR_STRING_ADVANCE): Make it do-while statement.
16991
16992 * chartab.c (sub_char_table_set_range): Optimize for the case
16993 DEPTH == 3. Add workaround code for a GCC optimization bug.
16994
16995 * charset.c (parse_charset_map): Remove an unused variable.
16996
16997 * coding.c: Delete unused variables.
16998
16999 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
17000 earlier. If inserted is zero and the coding system doesn't
17001 require flushing, don't call decode_coding_gap.
17002
17003 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
17004
170052008-02-01 Kenichi Handa <handa@m17n.org>
17006
17007 The following changes are for using Unicode as an internal
17008 character model, and use UTF-8 format for buffer/string
17009 representation.
17010
17011 * .gdbinit (xchartable): Adjust for the change of char table structure.
17012 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
17013
17014 * Makefile.in (obj): Add character.o and chartab.o.
17015 (lisp, shortlisp): Remove utf-8.elc.
17016 (*.o): For many files, change dependency on charset.h to
17017 character.h, and add dependency on character.h.
17018 (character.o, chartab.o): New targets.
17019
17020 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
17021 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
17022 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
17023 of "charset.h".
17024
17025 * dired.c, filelock.c: Include "character.h".
17026
17027 * alloc.c: Include "character.h" instead of "charset.h".
17028 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
17029 (syms_of_alloc): Remove defsubr for Smake_char_table.
17030
17031 * buffer.c: Include "character.h" instead of "charset.h", don't
17032 include "coding.h".
17033 (Fset_buffer_multibyte): Adjust for UTF-8.
17034
17035 * buffer.h: EXFUN Fbuffer_live_p.
17036
17037 * callproc.c: Include "character.h" instead of "charset.h".
17038 (Fcall_process): Big change for the new code-conversion APIs.
17039
17040 * casetab.c: Include "character.h" instead of "charset.h".
17041 (set_canon, set_identity, shuffle): Adjust for the new
17042 map_char_table spec.
17043 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
17044 accessing the char table structure.
17045
17046 * chartab.c: New file that implements char table.
17047
17048 * category.c: Include "character.h".
17049 (copy_category_entry): New function.
17050 (copy_category_table): Call map_char_table and copy_category_entry.
17051 (Fmake_category_table): Initialize all top-level slots.
17052 (char_category_set): New function.
17053 (modify_lower_category_set): Delete.
17054 (Fmodify_category_entry): Call char_table_ref_and_range.
17055
17056 * category.h (CATEGORY_SET): Just call char_category_set.
17057
17058 * ccl.c: Include "character.h".
17059 (Qccl, Qcclp): New variables.
17060 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17061 it's less than 256.
17062 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17063 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17064 and DST type.
17065 (ccl_driver): Change types of argument, adjust code accordingly.
17066 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17067 ccl_driver.
17068 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17069
17070 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17071 New members src_multibyte, dst_multibyte, consumed, and produced.
17072 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17073 (CODING_SPEC_CCL_PROGRAM): New macro.
17074 (ccl_driver): Update prototype.
17075 (Qccl, Qcclp, Fccl_program_p): Extern them.
17076 (CHECK_CCL_PROGRAM): New macro.
17077
17078 * character.c, character.h, chartab.c: New files.
17079
17080 * charset.c: Mostly re-written. Move character and multibyte sequence
17081 handling codes to character.c.
17082
17083 * charset.h: Mostly re-written. Move character and multibyte sequence
17084 handling codes to character.h.
17085
17086 * coding.c, coding.h: Mostly re-written.
17087
17088 * composite.c: Include "character.h" instead of "charset.h".
17089 (CHAR_WIDTH): Move to character.h.
17090 (HASH_KEY, HASH_VALUE): Delete.
17091
17092 * composite.h (enum composition_method): Change order of enumeration
17093 symbols.
17094
17095 * data.c: Include "character.h" instead of "charset.h".
17096 (Faref): Call CHAR_TABLE_REF for a char table.
17097 (Faset): Call CHAR_TABLE_SET for a char table.
17098
17099 * dispextern.h (free_realized_face, check_face_attribytes)
17100 (generate_ascii_font): Extern them.
17101 (free_realized_multibyte_face): Delete extern.
17102
17103 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17104 table structure.
17105
17106 * editfns.c: Include "character.h" instead of "charset.h".
17107 (Fchar_to_string): Always call CHAR_STRING.
17108
17109 * emacs.c (main): Call init_charset_once, init_charset,
17110 syms_of_chartab, and syms_of_character.
17111
17112 * fileio.c: Include "character.h" instead of "charset.h".
17113 (Finsert_file_contents): Big change for the new code-conversion API.
17114 (choose_write_coding_system, Fwrite_region): Likewise.
17115 (build_annotations_2): Delete.
17116 (e_write): Big change for the new code-conversion API.
17117
17118 * fns.c: Include "character.h" instead of "charset.h".
17119 (copy_sub_char_table): Move to chartab.c.
17120 (Fcopy_sequence): Call copy_char_table for a char table.
17121 (concat): Delete codes calling count_multibyte.
17122 (string_char_to_byte, string_byte_to_char): Adjust for the new
17123 multibyte form.
17124 (internal_equal): Adjust for the change of char table structure.
17125 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17126 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17127 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17128 (char_table_translate, optimize_sub_char_table)
17129 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17130 chartab.c.
17131 (char_table_ref_and_index): Delete.
17132 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17133 (Fmd5): Call preferred_coding_system instead of accessing
17134 Vcoding_category_list. Adjust for the new code-conversion API.
17135 (syms_of_fns): Move defsubr for char table related functions to
17136 chartab.c.
17137
17138 * fontset.c: Mostly re-written.
17139
17140 * fontset.h (struct font_info): Change type of the member encoding_type.
17141 (enum FONT_SPEC_INDEX): New enum.
17142 (fontset_font_pattern, fs_load_font): Update prototype.
17143 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17144
17145 * indent.c: Include "character.h" instead of "charset.h".
17146 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17147
17148 * insdel.c: Include "character.h" instead of "charset.h".
17149 (copy_text): Don't refer to Vnonascii_translation_table.
17150 (insert_from_gap): New function.
17151
17152 * keyboard.c: Include "character.h" instead of "charset.h".
17153 (command_loop_1): Never call direct_output_forward_char before
17154 a non-ASCII character.
17155 (read_char): If Vkeyboard_translate_table is a char table, always
17156 translate a character.
17157
17158 * keymap.c: Include "character.h".
17159 (store_in_keymap): Handle the case that IDX is a cons.
17160 (Fdefine_key): Handle the case that KEY is a cons and the car part
17161 is also a cons (range).
17162 (push_key_description): Adjust for the new character code.
17163 (describe_vector): Call describe_char_table for a char table.
17164 (describe_char_table): New function.
17165
17166 * keymap.h (describe_char_table): Extern it.
17167
17168 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17169 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17170 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17171 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17172 Delete.
17173 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17174 structure.
17175 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17176 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17177 (CHARTAB_SIZE_BITS_3): New macros.
17178 (chartab_size): Extern it.
17179 (struct Lisp_Char_Table): Re-design.
17180 (struct Lisp_Sub_Char_Table): New structure.
17181 (HASH_KEY, HASH_VALUE): Move from fns.c.
17182 (CHARACTERBITS): Define as 22.
17183 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17184 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17185 (GC_SUB_CHAR_TABLE_P): New macro.
17186 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17187 (code_convert_string_norecord): Deleted extern.
17188 (init_character_once, syms_of_character, init_charset)
17189 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17190
17191 * lread.c: Include "character.h".
17192 (read_multibyte): New arg NBYTES.
17193 (read_escape): Change the meaning of returned *BYTEREP.
17194 (to_multibyte): Delete.
17195 (read1): Adjust the handling of char table and string.
17196
17197 * print.c: Include "character.h" instead of "charset.h".
17198 (print_string): Convert 8-bit raw bytes to octal form by
17199 string_escape_byte8.
17200 (print_object): Adjust for the new multibyte form. Print 8-bit
17201 raw bytes always in octal form. Handle sub char table correctly.
17202
17203 * process.c: Include "character.h" instead of "charset.h".
17204 (read_process_output, send_process): Adjust for the new
17205 code-conversion API.
17206
17207 * puresize.h (BASE_PURESIZE): Increase.
17208
17209 * regex.c: Include "character.h" instead of "charset.h".
17210 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17211 (regex_compile): Accept a range whose starting and ending
17212 character have different leading bytes.
17213 (analyse_first): Adjust for the above change.
17214
17215 * search.c: Include "character.h" instead of "charset.h".
17216 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17217 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17218
17219 * syntax.c: Include "character.h" instead of "charset.h".
17220 (syntax_parent_lookup): Delete.
17221 (Fmodify_syntax_entry): Accept a cons as CHAR.
17222 (skip_chars): Adjust for the new multibyte form.
17223 (init_syntax_once): Call char_table_set_range instead of directly
17224 accessing the structure of a char table.
17225
17226 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17227 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17228 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17229 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17230
17231 * term.c: Include "buffer.h" and "character.h".
17232 (encode_terminal_code, write_glyphs): Adjust for the new
17233 code-conversion API.
17234 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17235
17236 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17237
17238 * xdisp.c: Include "character.h".
17239 (get_next_display_element): Adjust for the new multibyte form.
17240 (disp_char_vector): Adjust for the new char table structure.
17241 (decode_mode_spec_coding): Adjust for the new structure of
17242 coding system.
17243 (decode_mode_spec): Adjust for the new code-conversion API.
17244
17245 * xfaces.c: Include "character.h" instead of "charset.h".
17246 (load_face_font): Adjust for the change of choose_face_font and
17247 FS_LOAD_FONT.
17248 (generate_ascii_font): New function.
17249 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17250 (set_font_frame_param): Adjust for the change of choose_face_font.
17251 (free_realized_face): Make it public.
17252 (free_realized_faces_for_fontset): Rename from
17253 free_realized_multibyte_face. Free also faces realized for ASCII.
17254 (choose_face_font): Change arguments. Adjust for the change of
17255 fontset_font_pattern and FS_LOAD_FONT.
17256
17257 * xfns.c: Include "character.h".
17258 (x_encode_text): Adjust for the new code-conversion API.
17259
17260 * xselect.c: Don't include "charset.h".
17261 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17262
17263 * xterm.c: Include "character.h".
17264 (x_encode_char): New argument CHARSET. Change caller.
17265 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17266 Call ENCODE_CHAR instead of SPLIT_CHAR.
17267 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17268 CHAR_WIDTH instead of CHARSET_WIDTH.
17269 (XTread_socket): Adjust for the new code-conversion API.
17270 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17271 (x_load_font): Adjust for the change of struct font.
17272
172732008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17274
17275 * xfaces.c (face_at_buffer_position): Remove unused vars.
17276
172772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17278
17279 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17280 Fix overflow checking.
17281
172822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17283
17284 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17285 Cancel previous change.
17286
172872008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17288
17289 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17290 ccl->eight_bit_control. Fix check for buffer overflow.
17291 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17292 (ccl_driver): Initialize extra_bytes to 0.
17293
172942008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17295
17296 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17297 return it ORed with ctrl_modifier.
17298
172992008-01-29 Miles Bader <miles@gnu.org>
17300
17301 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17302
173032008-01-28 Jason Rumney <jasonr@gnu.org>
17304
17305 * w32.c (stat): Don't double check for networked drive.
17306
173072008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17308
17309 * window.c (run_window_configuration_change_hook): New function.
17310 Code extracted from set_window_buffer. Set the selected frame.
17311 (set_window_buffer): Use it.
17312 * window.h (run_window_configuration_change_hook): Declare.
17313 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17314
17315 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17316
173172008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17318
17319 * Makefile.in: Remove references to unused macros.
17320
173212008-01-26 Eli Zaretskii <eliz@gnu.org>
17322
17323 * w32.c (g_b_init_get_sid_sub_authority)
17324 (g_b_init_get_sid_sub_authority_count): New static variables.
17325 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17326 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17327 (init_user_info): Use them to retrieve uid and gid.
17328 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17329 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17330 st_uid and st_gid of the file.
17331
173322008-01-26 Jason Rumney <jasonr@gnu.org>
17333
17334 * w32.c (logon_network_drive): New function.
17335 (stat): Use it.
17336
173372008-01-26 Chong Yidong <cyd@stupidchicken.com>
17338
17339 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17340 invisible text covered with an ellipsis.
17341
173422008-01-25 Richard Stallman <rms@gnu.org>
17343
17344 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17345 jump back to beginning. Move some other initializations after that.
17346 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17347 New variables.
17348 (syms_of_xdisp): Init them.
17349
17350 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17351
17352 * buffer.c (reset_buffer_local_variables):
17353 Implement `permanent-local-hook'.
17354 (Qpermanent_local_hook): New variable.
17355 (syms_of_buffer): Init and staticpro it.
17356
173572008-01-25 Michael Albinus <michael.albinus@gmx.de>
17358
17359 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17360
173612008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17362
17363 * fns.c (Fclrhash): Return TABLE.
17364
173652008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17366
17367 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17368 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17369 is set even without positional changes.
17370 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17371
17372 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17373
173742008-01-23 Jason Rumney <jasonr@gnu.org>
17375
17376 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17377
17378 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17379 the unicode range available in MULE by locale-coding-system.
17380 Improve dbcs lead byte detection. Set event timestamp and modifiers
17381 earlier.
17382
173832008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17384
17385 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17386 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17387 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17388 when used on child processes.
17389
173902008-01-21 Michael Albinus <michael.albinus@gmx.de>
17391
17392 * dbusbind.c (Fdbus_method_return_internal): Rename from
17393 Fdbus_method_return.
17394 (Fdbus_unregister_object): Move to dbus.el.
17395 (Fdbus_call_method, Fdbus_method_return_internal)
17396 (Fdbus_send_signal): Improve debug messages.
17397
173982008-01-20 Martin Rudalics <rudalics@gmx.at>
17399
17400 * undo.c (undo_inhibit_record_point): New variable.
17401 (syms_of_undo): Initialize it.
17402 (record_point): Don't record point when undo_inhibit_record_point
17403 is set.
17404
174052008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17406
17407 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17408
17409 * xdisp.c (Qauto_hscroll_mode): New var.
17410 (syms_of_xdisp): Initialize it.
17411 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17412 window's buffer.
17413 (hscroll_windows): Don't check automatic_hscrolling_p here.
17414
17415 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17416 vscroll if we're setting window-buffer to the value it already has.
17417
174182008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17419
17420 * m/intel386.h: Remove references to XENIX.
17421
174222008-01-17 Andreas Schwab <schwab@suse.de>
17423
17424 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17425 instead of HAVE_X86_64_LIB64_DIR.
17426 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17427
174282008-01-17 Glenn Morris <rgm@gnu.org>
17429
17430 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17431 to HAVE_X86_64_LIB64_DIR.
17432
174332008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17434
17435 * s/irix3-3.h:
17436 * s/irix4-0.h:
17437 * s/386-ix.h:
17438 * s/domain.h:
17439 * s/hpux9-x11r4.h:
17440 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17441
17442 * sysdep.c: Remove code containing references to symbols defined
17443 by unsupported systems.
17444
174452008-01-16 Glenn Morris <rgm@gnu.org>
17446
17447 * coding.c (select-safe-coding-system-function): Doc fix.
17448
174492008-01-15 Glenn Morris <rgm@gnu.org>
17450
17451 * config.in: Revert 2008-01-13 change: this is a generated file.
17452
174532008-01-13 Tom Tromey <tromey@redhat.com>
17454
17455 * lisp.h: Fix typo.
17456
174572008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17458
17459 * m/sequent-ptx.h:
17460 * m/sequent.h:
17461 * s/ptx.h:
17462 * s/ptx4-2.h:
17463 * s/ptx4.h: Remove files for systems no longer supported.
17464
17465 * callproc.c (Fcall_process): Fix previous change.
17466
174672008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17468
17469 * unexsunos4.c: Remove file, system not supported anymore.
17470
17471 * m/mips.h:
17472 * m/intel386.h:
17473 * callproc.c:
17474 * config.in:
17475 * ecrt0.c:
17476 * emacs.c:
17477 * fileio.c:
17478 * frame.c:
17479 * getpagesize.h:
17480 * keyboard.c:
17481 * lread.c:
17482 * process.c:
17483 * puresize.h:
17484 * sysdep.c:
17485 * systty.h:
17486 * syswait.h:
17487 * unexec.c:
17488 * xdisp.c:
17489 * alloc.c: Remove code containing references to symbols defined by
17490 unsupported systems.
17491
174922008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17493
17494 * coding.c (detect_coding_mask): Fix previous change.
17495
174962008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17497
17498 * coding.c (detect_coding_iso2022): New arg
17499 latin_extra_code_state. Allow Latin extra codes only
17500 when *latin_extra_code_state is nonzero.
17501 (detect_coding_mask): If there is a NULL byte, detect the encoding
17502 as UTF-16 or binary. If Latin extra codes exist, detect the
17503 encoding as ISO-2022 only when there's no other proper encoding is
17504 found.
17505
175062008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17507
17508 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17509 #ifdef MAC_OS.
17510
175112008-01-08 Richard Stallman <rms@gnu.org>
17512
17513 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17514
175152008-01-06 Nick Roberts <nickrob@snap.net.nz>
17516
17517 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17518 menu bar in parentheses.
17519
175202008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17521
17522 * m/7300.h:
17523 * m/acorn.h:
17524 * m/alliant-2800.h:
17525 * m/alliant.h:
17526 * m/alliant1.h:
17527 * m/alliant4.h:
17528 * m/altos.h:
17529 * m/amdahl.h:
17530 * m/apollo.h:
17531 * m/att3b.h:
17532 * m/aviion-intel.h:
17533 * m/aviion.h:
17534 * m/celerity.h:
17535 * m/clipper.h:
17536 * m/cnvrgnt.h:
17537 * m/convex.h:
17538 * m/cydra5.h:
17539 * m/delta88k.h:
17540 * m/dpx2.h:
17541 * m/dual.h:
17542 * m/elxsi.h:
17543 * m/f301.h:
17544 * m/gould-np1.h:
17545 * m/gould.h:
17546 * m/i860.h:
17547 * m/ibmps2-aix.h:
17548 * m/ibmrt-aix.h:
17549 * m/ibmrt.h:
17550 * m/irist.h:
17551 * m/is386.h:
17552 * m/isi-ov.h:
17553 * m/mega68.h:
17554 * m/mg1.h:
17555 * m/news-r6.h:
17556 * m/news-risc.h:
17557 * m/news.h:
17558 * m/nh3000.h:
17559 * m/nh4000.h:
17560 * m/ns16000.h:
17561 * m/ns32000.h:
17562 * m/nu.h:
17563 * m/orion.h:
17564 * m/orion105.h:
17565 * m/paragon.h:
17566 * m/pfa50.h:
17567 * m/plexus.h:
17568 * m/pyramid.h:
17569 * m/pyrmips.h:
17570 * m/sh3el.h:
17571 * m/sps7.h:
17572 * m/sr2k.h:
17573 * m/stride.h:
17574 * m/sun1.h:
17575 * m/sun2.h:
17576 * m/sun3-68881.h:
17577 * m/sun3-fpa.h:
17578 * m/sun3-soft.h:
17579 * m/sun3.h:
17580 * m/sun386.h:
17581 * m/symmetry.h:
17582 * m/tad68k.h:
17583 * m/tahoe.h:
17584 * m/targon31.h:
17585 * m/tek4300.h:
17586 * m/tekxd88.h:
17587 * m/tower32.h:
17588 * m/tower32v3.h:
17589 * m/ustation.h:
17590 * m/wicat.h:
17591 * m/xps100.h:
17592 * s/cxux.h:
17593 * s/cxux7.h:
17594 * s/dgux.h:
17595 * s/dgux4.h:
17596 * s/dgux5-4-3.h:
17597 * s/dgux5-4r2.h:
17598 * s/esix.h:
17599 * s/esix5r4.h:
17600 * s/hiuxmpp.h:
17601 * s/hiuxwe2.h:
17602 * s/iris3-5.h:
17603 * s/iris3-6.h:
17604 * s/isc2-2.h:
17605 * s/isc3-0.h:
17606 * s/isc4-0.h:
17607 * s/isc4-1.h:
17608 * s/newsos5.h:
17609 * s/newsos6.h:
17610 * s/osf1.h:
17611 * s/osf5-0.h:
17612 * s/riscix1-1.h:
17613 * s/riscix12.h:
17614 * s/sco4.h:
17615 * s/sco5.h:
17616 * s/sunos4-0.h:
17617 * s/sunos4-1.h:
17618 * s/sunos413.h:
17619 * s/sunos4shr.h:
17620 * s/umax.h:
17621 * s/unipl5-2.h:
17622 * s/xenix.h:
17623 * cxux-crt0.s:
17624 * unexapollo.c:
17625 * unexconvex.c:
17626 * unexenix.c:
17627 * unexsni.c: Remove files for systems no longer supported.
17628
17629 * m/intel386.h: Remove references to unsupported systems.
17630
17631 * w32.c (get_emacs_configuration): Remove reference to i860.
17632
17633 * sysdep.c: Remove dead code.
17634
176352008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17636
17637 * s/rtu.h:
17638 * m/masscomp.h: Remove files. Platform is obsolete.
17639
176402008-01-04 Michael Albinus <michael.albinus@gmx.de>
17641
17642 * dbusbind.c (Fdbus_method_return): New function.
17643 (xd_read_message): Add the serial number to the event.
17644 (Fdbus_register_method): Activate the function.
17645
176462008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17647
17648 * keyboard.c (read_key_sequence): Fix typo.
17649
176502008-01-03 Michael Albinus <michael.albinus@gmx.de>
17651
17652 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17653 (xd_signature, xd_append_arg): Handle element type detection for
17654 empty arrays.
17655 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17656 SDATA () calls; this must be solved more general.
17657 (Fdbus_register_signal): Use SBYTES instead of strlen.
17658
176592008-01-03 Magnus Henoch <magnus@zemdatav>
17660
17661 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17662 unsigned int for byte values (necessary for big-endian platform).
17663 (Fdbus_call_method): Handle the case of no returned arguments.
17664
176652007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17666
17667 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17668
176692007-12-31 Magnus Henoch <mange@freemail.hu>
17670
17671 * dbusbind.c (xd_signature): Signature of variant is just "v".
17672
176732007-12-30 Michael Albinus <michael.albinus@gmx.de>
17674
17675 * dbusbind.c: Fix several errors and compiler warnings.
17676 Reported by Tom Tromey <tromey@redhat.com>.
17677 (XD_ERROR, XD_DEBUG_MESSAGE)
17678 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17679 (xd_append_arg): Part for basic D-Bus types rewritten.
17680 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17681 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17682 appropriate.
17683 (xd_read_message): Return Qnil. Don't signal an error; it is not
17684 useful during event reading.
17685 (Fdbus_register_signal): Signal an error if the check for
17686 FUNCTIONP fails.
17687 (Fdbus_register_method): New function. The implementation is not
17688 complete, the call of the function signals an error therefore.
17689 (Fdbus_unregister_object): New function, renamed from
17690 Fdbus_unregister_signal. The initial check signals an error, if
17691 the object is not well formed.
17692
176932007-12-30 Richard Stallman <rms@gnu.org>
17694
17695 * textprop.c (get_char_property_and_overlay):
17696 Signal error if POSITION is out of range in a buffer.
17697
176982007-12-29 Martin Rudalics <rudalics@gmx.at>
17699
17700 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17701 because the original parameters are in pure storage now.
17702
177032007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17704
17705 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17706
177072007-12-22 Eli Zaretskii <eliz@gnu.org>
17708
17709 * callint.c (syms_of_callint) <command-history>: Add reference to
17710 history-length in the doc string.
17711
177122007-12-17 Jason Rumney <jasonr@gnu.org>
17713
17714 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17715 before passing as wParam.
17716
177172007-12-22 Michael Albinus <michael.albinus@gmx.de>
17718
17719 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17720 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17721 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17722 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17723 as number.
17724 (Fdbus_call_method): Fix docstring.
17725
177262007-12-21 Michael Albinus <michael.albinus@gmx.de>
17727
17728 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17729 New macros.
17730 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17731 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17732 Simplify.
17733 (xd_signature): New function.
17734 (xd_append_arg): Compute also signatures. Major rewrite.
17735 (xd_retrieve_arg): Make debug messages friendly.
17736 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17737 Check for signatures of arguments.
17738
177392007-12-19 Michael Albinus <michael.albinus@gmx.de>
17740
17741 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17742 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17743 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17744 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17745 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17746 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17747 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17748 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17749 (xd_retrieve_value): Remove. Functionality included in ...
17750 (xd_append_arg): New function.
17751 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17752
177532007-12-16 Michael Albinus <michael.albinus@gmx.de>
17754
17755 * dbusbind.c (top): Include <stdio.h>.
17756 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17757 dbus_message_new_method_call and dbus_message_new_signal.
17758 (Fdbus_register_signal): Rename unique_name to uname.
17759 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17760 non-existing unique name. Fix typos in matching rule. Return an
17761 object which is useful in Fdbus_unregister_signal.
17762 (Fdbus_unregister_signal): Reimplementation, in order to remove
17763 only the corresponding entry.
17764 (Vdbus_registered_functions_table): Change the order of entries.
17765 Apply these changes in xd_read_message and Fdbus_register_signal.
17766
177672007-12-16 Andreas Schwab <schwab@suse.de>
17768
17769 * fileio.c (Finsert_file_contents): Fix overflow check to not
17770 depend on undefined integer overflow.
17771
177722007-12-14 Jason Rumney <jasonr@gnu.org>
17773
17774 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17775 for characters above 127.
17776
177772007-12-13 Jason Rumney <jasonr@gnu.org>
17778
17779 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17780 before dereferencing array.
17781 (lookup_vk_code): Remove zero comparison.
17782
177832007-12-14 Michael Albinus <michael.albinus@gmx.de>
17784
17785 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17786 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17787 Use `unsigned int' instead of `uint'.
17788 (xd_read_message, Fdbus_register_signal): Split expressions into
17789 multiple lines before operators "&&" and "||", according to the
17790 GNU Coding Standards.
17791
177922007-12-14 Eli Zaretskii <eliz@gnu.org>
17793
17794 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17795
177962007-12-12 Juri Linkov <juri@jurta.org>
17797
17798 * buffer.c (Frename_buffer): In interactive spec replace
17799 `read-buffer' with `read-string' that uses `buffer-name-history'
17800 as history, and the current buffer's name as default.
17801
178022007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17803
17804 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17805 manipulating the backtrace manually.
17806 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17807 (struct backtrace, backtrace_list): Remove.
17808 (command_loop_1): Remove dead var `no_direct'.
17809
17810 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17811 preserve non-built-in buffer-local variables.
17812 (Fkill_all_local_variables): Don't re-create&re-set permanent
17813 buffer-local variables.
17814
178152007-12-09 Juri Linkov <juri@jurta.org>
17816
17817 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17818 Lisp code that uses `read-buffer' with current buffer as default.
17819
178202007-12-08 Michael Albinus <michael.albinus@gmx.de>
17821
17822 * dbusbind.c (xd_read_message): Generate an event for every
17823 registered handler. There might be several handlers registered
17824 for the same signal.
17825 (Fdbus_register_signal): Don't overwrite a registration for the
17826 same signal. Add a new registration if handlers are different.
17827 (Vdbus_registered_functions_table): Rework doc string.
17828
178292007-12-07 Michael Albinus <michael.albinus@gmx.de>
17830
17831 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17832 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17833 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17834 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17835 Unify argument lists.
17836 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17837 arguments and hash table keys. Use unique name for service.
17838 (Fdbus_unregister_signal): Remove checks.
17839 (Vdbus_registered_functions_table): Fix doc string.
17840
178412007-12-05 Magnus Henoch <mange@freemail.hu>
17842
17843 * process.c (make_process): Initialize pty_flag to 0.
17844
178452007-12-05 Jason Rumney <jasonr@gnu.org>
17846
17847 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17848 specified XBMs.
17849
178502007-12-05 Richard Stallman <rms@gnu.org>
17851
17852 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17853
178542007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17855
17856 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17857 New variable.
17858 (mac_try_close_socket) [MAC_OSX]: New function.
17859 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17860 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17861
17862 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17863 Use mac_try_close_socket.
17864
178652007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17866
17867 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17868 reloc_base.
17869 (copy_dysymtab): Compute relocation base here.
17870 (rebase_reloc_address) [__ppc64__]: New function.
17871 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17872 changed.
17873
178742007-12-05 Jason Rumney <jasonr@gnu.org>
17875
17876 * w32proc.c (sys_spawnve): Quote args with wildcards.
17877
178782007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17879
17880 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17881 __objc_* sections.
17882 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17883
178842007-12-05 Michael Albinus <michael.albinus@gmx.de>
17885
17886 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17887 Move check for Vdbus_registered_functions_table to
17888 xd_read_queued_messages.
17889 (xd_read_queued_messages): Protect xd_read_message calls by
17890 internal_condition_case_1.
17891
178922007-12-04 Michael Albinus <michael.albinus@gmx.de>
17893
17894 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17895 Qdbus_system_bus and Qdbus_session_bus, respectively.
17896 (Vdbus_intern_symbols): Remove.
17897 (Vdbus_registered_functions_table): New hash table.
17898 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17899 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17900 Rewrite in order to manage registered functions by hash table
17901 Vdbus_registered_functions_table.
17902
179032007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17904
17905 * xterm.c: Update URL to Window Manager Specification in comment.
17906
179072007-12-02 Michael Albinus <michael.albinus@gmx.de>
17908
17909 * config.in (HAVE_DBUS): Add.
17910
17911 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17912 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17913 (obj): Add $(DBUS_OBJ).
17914 (LIBES): Add $(DBUS_LIBS).
17915 (dbusbind.o): New target.
17916
17917 * dbusbind.c: New file.
17918
17919 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17920
17921 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17922 (Qdbus_event): New Lisp symbol.
17923 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17924 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17925 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17926
17927 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17928
179292007-12-01 Richard Stallman <rms@gnu.org>
17930
17931 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17932
179332007-11-30 Jason Rumney <jasonr@gnu.org>
17934
17935 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17936 (w32con_reset_terminal_modes): Clear screen buffer.
17937 (w32_face_attributes): Don't use color indexes that are out of range.
17938 Only reverse the default colors.
17939
17940 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17941 WINDOWSNT.
17942
17943 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17944
179452007-11-29 Jason Rumney <jasonr@gnu.org>
17946
17947 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17948 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17949 if the terminal colors are initialized.
17950 (unspecified_fg, unspecified_bg): Remove unused declarations.
17951
179522007-11-29 Andreas Schwab <schwab@suse.de>
17953
17954 * keyboard.c (apply_modifiers): Fix typo.
17955
179562007-11-29 Richard Stallman <rms@gnu.org>
17957
17958 * keymap.c (Fcurrent_local_map): Doc fix.
17959
179602007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17961
17962 * s/gnu-kfreebsd.h: New file.
17963
179642007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17965
17966 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17967 Don't cast redundantly.
17968
17969 * keyboard.c (KEY_TO_CHAR): New macro.
17970 (parse_modifiers, apply_modifiers): Accept integer arguments.
17971 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17972 for chars and symbol keys.
17973 After doing such remapping, apply function-key-map again.
17974
179752007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17976
17977 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17978 compiled anymore.
17979
179802007-11-26 Andreas Schwab <schwab@suse.de>
17981
17982 * process.c (list_processes_1): Fix indentation level of the
17983 command column.
17984
179852007-11-23 Andreas Schwab <schwab@suse.de>
17986
17987 * editfns.c (Fformat): Handle %c specially since it requires the
17988 argument to be of type int.
17989
179902007-11-23 Markus Triska <markus.triska@gmx.at>
17991
17992 * emacs.c (main): Call init_editfns before init_process, since
17993 init_process sets Vprocess_connection_type depending on OS release.
17994
179952007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17996
17997 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17998 (find_symbol_value): Use do_symval_forwarding.
17999
18000 * data.c (set_internal): Set the value in the `cons-cell' (for
18001 Buffer_Local_values) not only for frame-local variables.
18002
180032007-11-22 Andreas Schwab <schwab@suse.de>
18004
18005 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
18006 values to sprintf.
18007 * keymap.c (Fsingle_key_description): Likewise.
18008 * print.c (print_object): Likewise.
18009
180102007-11-22 Jan Djärv <jan.h.d@swipnet.se>
18011
18012 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
18013 file for image is nil.
18014
180152007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
18016
18017 * term.c: Include stdarg.h.
18018 (fatal): Implement using varargs.
18019 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
18020
180212007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18022
18023 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
18024 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
18025 Update call to buffer_slot_type_mismatch.
18026 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
18027 (buffer_slot_type_mismatch): Update.
18028 * buffer.c (buffer_local_types): Remove.
18029 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
18030 (defvar_per_buffer): Set the type in the buffer_objfwd.
18031
180322007-11-21 Jason Rumney <jasonr@gnu.org>
18033
18034 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
18035 CreateFileMapping returns NULL on failure.
18036
180372007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
18038
18039 * search.c (Fset_match_data): Remove the `evaporate' feature.
18040 (unwind_set_match_data): Don't use the `evaporate' feature.
18041
180422007-11-21 Jason Rumney <jasonr@gnu.org>
18043
18044 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
18045
18046 * w32console.c (w32con_write_glyphs): Remove unused variables.
18047
180482007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18049
18050 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18051
18052 * s/darwin.h (MULTI_KBOARD): Remove.
18053
18054 * macfns.c (x_create_tip_frame, Fx_create_frame)
18055 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18056
180572007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18058
18059 * buffer.c (Fbuffer_local_value): Remove redundant test.
18060 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18061 than in `current-buffer' to match the comment.
18062 Do the swap using swap_in_global_binding.
18063
18064 * data.c (store_symval_forwarding, set_internal):
18065 * eval.c (specbind): Remove dead code.
18066
18067 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18068 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18069 Since we do not want to see internal Lisp_*fwd objects here.
18070
180712007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18072
18073 * sysdep.c (init_system_name): Use getaddrinfo if available.
18074
18075 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18076 (x_scroll_bar_note_movement): start, end, with, height in struct
18077 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18078
180792007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18080
18081 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18082
180832007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18084
18085 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18086 This undoes Richard's change of 14-Oct-2002.
18087
18088 * alloc.c (allocate_other_vector):
18089 * lisp.h (allocate_other_vector): Remove.
18090
18091 * window.c (struct save_window_data): Move non-lisp data to the end
18092 and make it `int' rather than Lisp_Object.
18093 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18094 Done wrap/unwrap integer values.
18095 (Fset_window_configuration, compare_window_configurations):
18096 Update use of fields to their new types.
18097
18098 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18099 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18100 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18101 (SET_SCROLL_BAR_X_WINDOW): Remove.
18102 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18103 Access the new x_window field directly.
18104 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18105 Don't wrap/unwrap integers into Lisp_Objects.
18106 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18107 (x_scroll_bar_report_motion):
18108 Don't wrap/unwrap integers into Lisp_Objects.
18109 (x_term_init): Use SDATA.
18110 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18111 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18112 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18113 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18114 * xfns.c (x_set_background_color):
18115 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18116 Access the new x_window field directly.
18117
18118 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18119 (allocate_pseudovector): Make non-static.
18120
18121 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18122 (allocate_pseudovector): Declare.
18123 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18124
181252007-11-15 Andreas Schwab <schwab@suse.de>
18126
18127 * editfns.c (Fformat): Correctly format EMACS_INT values.
18128 Also take precision into account when formatting an integer.
18129
18130 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18131
181322007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18133
18134 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18135 (syms_of_keyboard): Defsubr it.
18136
18137 * data.c (swap_in_global_binding): Fix longstanding bug where
18138 store_symval_forwarding was not called with the right second argument,
18139 thus causing objfwd-ing from being dropped.
18140
181412007-11-14 Juanma Barranquero <lekktu@gmail.com>
18142
18143 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18144 (Fx_display_pixel_height, Fx_display_planes)
18145 (Fx_display_color_cells, Fx_server_max_request_size)
18146 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18147 (Fx_display_visual_class, Fx_display_save_under):
18148 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18149 (Fx_display_pixel_height, Fx_display_planes)
18150 (Fx_display_color_cells, Fx_server_max_request_size)
18151 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18152 (Fx_display_mm_height, Fx_display_mm_width)
18153 (Fx_display_backing_store, Fx_display_visual_class)
18154 (Fw32_select_font, Fx_display_save_under):
18155 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18156 (Fx_display_pixel_height, Fx_display_planes)
18157 (Fx_display_color_cells, Fx_server_max_request_size)
18158 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18159 (Fx_display_save_under): Fix typos in docstrings.
18160
181612007-11-14 Juanma Barranquero <lekktu@gmail.com>
18162
18163 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18164 corresponding to deleted entries; they are an implementation detail.
18165 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18166 Remove variables.
18167 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18168 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18169 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18170 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18171 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18172 (Fw32_define_rgb_color, Fw32_load_color_file)
18173 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18174 Fix typos in docstrings.
18175 (Fx_server_version): Reflow docstring.
18176 (Fw32_shell_execute): Doc fixes.
18177
181782007-11-13 Juanma Barranquero <lekktu@gmail.com>
18179
18180 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18181 if w32_parse_hot_key returned nil.
18182
181832007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18184
18185 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18186
181872007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18188
aac0c6e3
MR
18189 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18190
18191 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18192
18193 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18194 Remove W32_SCROLL_BAR_CLICK_EVENT.
18195
18196 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18197 Add MULTIMEDIA_KEY_EVENT.
18198
18199 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18200 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18201 (make_lispy_event) [WINDOWSNT]: Use it to translate
18202 MULTIMEDIA_KEY_EVENT.
18203
18204 * w32term.h (WM_APPCOMMAND): Define if not already.
18205 (GET_APPCOMMAND_LPARAM): Likewise.
18206
18207 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18208 WM_APPCOMMAND.
18209
18210 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18211 (syms_of_w32fns): Export and initialize it.
18212 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18213
182142007-11-09 Chong Yidong <cyd@stupidchicken.com>
18215
18216 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18217 twice.
18218
18219 * xdisp.c (handle_face_prop): Fix last change.
18220
182212007-11-09 Richard Stallman <rms@gnu.org>
18222
18223 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18224 not just for after-strings and before-strings.
18225 Call face_for_overlay_string and pass the overlay to it.
18226 (handle_display_prop): Determine whether property came from an overlay.
18227 Pass OVERLAY arg to handle_single_display_spec.
18228 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18229 (load_overlay_strings): Fill in it->string_overlays.
18230 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18231
18232 * xfaces.c (face_for_overlay_string): Function renamed from
18233 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18234
18235 * dispextern.h (struct it): New elt string_overlays.
18236 New elt from_overlay, also in stack.
18237 Rearrange a few elements.
18238 (face_for_overlay_string): Decl renamed from
18239 face_at_buffer_position_no_overlays, and add argument.
18240
182412007-11-09 Richard Stallman <rms@gnu.org>
18242
18243 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18244 to get the base face for an overlay string.
18245
18246 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18247
18248 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18249
18250 * xdisp.c (handle_stop): Move some code out of loop.
18251
182522007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18253
18254 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18255 Fix conversion from Lisp object to ATSUFontID.
18256
182572007-11-09 Jason Rumney <jasonr@gnu.org>
18258
18259 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18260
182612007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18262
18263 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18264 Don't assume regions are aligned to page boundary.
18265 (print_load_command_name): Add LC_UUID if defined.
18266
182672007-11-09 Richard Stallman <rms@gnu.org>
18268
18269 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18270
182712007-11-07 Jason Rumney <jasonr@gnu.org>
18272
18273 * s/windows95.h: Remove.
18274
182752007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18276
18277 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18278 abort with a message on unhandled store_type values.
18279
182802007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18281
18282 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18283 Remove HAVE_X11R5 and HAVE_X11R4.
18284
182852007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18286
18287 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18288
182892007-11-01 Johan Bockgård <bojohan@gnu.org>
18290
18291 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18292 Don't set s->stippled_p here, since it has already been set by
18293 x_set_glyph_string_gc from x_draw_glyph_string.
18294
182952007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18296
18297 * sunfns.c: Remove file.
18298
18299 * m/sun386.h:
18300 * m/sun2.h:
18301 * m/sparc.h: Remove Sun windows code.
18302
183032007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18304
18305 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18306 (init_keyboard): Set current_kboard's window-system to nil.
18307 (tty_read_avail_input): Typo.
18308 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18309
183102007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18311
18312 * s/usg5-4.h:
18313 * s/usg5-3.h:
18314 * s/ptx.h:
18315 * m/is386.h:
18316 * m/ibmps2-aix.h:
18317 * Makefile.in: Remove all mentions of X10.
18318
18319 * dispnew.c (syms_of_display): Don't mention version 10.
18320
183212007-10-28 Juanma Barranquero <lekktu@gmail.com>
18322
18323 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18324 ($(BLD)/abbrev.$(O)): Remove.
18325
183262007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18327
18328 Rewrite abbrev.c in Elisp.
18329 * image.c (Qcount): Don't declare as extern.
18330 (syms_of_image): Initialize and staticpro `Qcount'.
18331 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18332 * emacs.c (main): Don't call syms_of_abbrev.
18333 * Makefile.in (obj): Remove abbrev.o.
18334 (abbrev.o): Remove.
18335 * abbrev.c: Remove.
18336
183372007-10-26 Martin Rudalics <rudalics@gmx.at>
18338
18339 * window.c (window_min_size_2): Don't count header-line.
18340
183412007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18342
18343 * frame.h (struct frame): Move all bit fields after the first bit
18344 field to take advantage of the available space. Group all the
18345 chars together to reduce wasted space due to padding.
18346
183472007-10-26 Juanma Barranquero <lekktu@gmail.com>
18348
18349 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18350
18351 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18352 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18353 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18354 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18355 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18356 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18357 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18358 (last_marked, mark_object_loop_halt): Make static.
18359
18360 * frame.c (syms_of_frame) <delete-frame-functions>:
18361 Fix typo in docstring.
18362
183632007-10-25 Juanma Barranquero <lekktu@gmail.com>
18364
18365 * w32.c (init_environment): Fix tiny memory leak.
18366 (w32_get_resource): Remove unused variable `ok'.
18367
183682007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18369
18370 Make `window-system' into a keyboard-local variable (rather than
18371 frame-local as done originally by multi-tty).
18372
18373 * keyboard.h (struct kboard): Add Vwindow_system.
18374 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18375 (mark_kboards): Mark Vwindow_system.
18376
18377 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18378 (init_display): Don't set the obsolete `window-system' frame-param.
18379
18380 * xterm.c (x_term_init):
18381 * w32term.c (w32_create_terminal):
18382 * term.c (init_tty): Set Vwindow_system.
18383 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18384 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18385
18386 * xfns.c (Fx_create_frame, x_create_tip_frame):
18387 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18388 * macfns.c (Fx_create_frame):
18389 Don't set the obsolete `window-system' frame-param.
18390
18391 * frame.h (Qwindow_system): Remove.
18392 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18393 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18394
183952007-10-24 Richard Stallman <rms@gnu.org>
18396
18397 * frame.c (x_figure_window_size): For fullscreen case,
18398 set USPosition | PPosition without clobbering rest of window_prompting.
18399
18400 * keyboard.c (Fcurrent_idle_time): Doc fix.
18401
18402 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18403
184042007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18405
18406 * process.c (unwind_request_sigio): Only define if __ultrix__.
18407
18408 * callproc.c (child_setup): Remove spurious *.
18409
18410 * lisp.h (Fget_text_property): Declare.
18411 (have_menus_p): Declare it here rather than in sys-dep header files.
18412 * macterm.h (have_menus_p):
18413 * msdos.h (have_menus_p):
18414 * xterm.h (have_menus_p): Remove.
18415
18416 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18417 (Fmake_variable_frame_local): Just check the variable's const-ness
18418 rather than checking nil or t.
18419
184202007-10-22 Jason Rumney <jasonr@gnu.org>
18421
18422 * w32fns.c: Include math.h.
18423 (w32_abort): Declaration moved to nt/config.nt.
18424
18425 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18426 (abort): Redefinition moved to nt/config.nt.
18427
18428 * m/windowsnt.h: Remove.
18429
184302007-10-22 Juanma Barranquero <lekktu@gmail.com>
18431
18432 * emacs.c (Fdump_emacs): Fix typo in message.
18433 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18434 <installation-directory>: Reflow docstring.
18435
184362007-10-22 Juri Linkov <juri@jurta.org>
18437
18438 * minibuf.c: Allow minibuffer default to be a list of default values.
18439 With empty input use the first element of this list as returned default.
18440 (string_to_object)
18441 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18442 (read_minibuf): If defalt is cons, set histstring to its car.
18443 (Fread_string): If default_value is cons, set val to its car.
18444 (Fread_buffer): If def is cons, use its car.
18445 (Fcompleting_read): If defalt is cons, set val to its car.
18446
184472007-10-21 Michael Albinus <michael.albinus@gmx.de>
18448
18449 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18450
184512007-10-20 Juanma Barranquero <lekktu@gmail.com>
18452
18453 * doc.c (Fdocumentation): Check for advice in all cases.
18454
184552007-10-19 Chong Yidong <cyd@stupidchicken.com>
18456
18457 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18458
184592007-10-19 Richard Stallman <rms@gnu.org>
18460
18461 * doc.c (Fdocumentation): Check for and handle an advised function.
18462
184632007-10-19 Juanma Barranquero <lekktu@gmail.com>
18464
18465 * process.c (Fset_process_filter): Doc fix.
18466
184672007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18468
18469 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18470 which caused key-translation-map to applied repeatedly (thus breaking
18471 double-mode).
18472
184732007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18474
18475 * xselect.c (x_own_selection, x_handle_selection_clear)
18476 (x_clear_frame_selections):
18477 * w32menu.c (list_of_panes, list_of_items):
18478 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18479 * textprop.c (validate_plist, interval_has_all_properties)
18480 (interval_has_some_properties, interval_has_some_properties_list)
18481 (add_properties, text_property_list):
18482 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18483 * minibuf.c (Fassoc_string):
18484 * macselect.c (x_own_selection, x_clear_frame_selections)
18485 (Fx_disown_selection_internal):
18486 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18487 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18488
184892007-10-17 Chong Yidong <cyd@stupidchicken.com>
18490
18491 * process.c: Link to libs for calling res_init() if available.
18492 (Fmake_network_process): Call res_init() before getaddrinfo or
18493 gethostbyname, if possible.
18494
184952007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18496
18497 * lread.c (read1): Set pvectype for char_tables.
18498
18499 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18500 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18501 Add type checks.
18502 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18503
18504 * alloc.c (free_misc): Use XMISCTYPE.
18505 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18506
185072007-10-17 Glenn Morris <rgm@gnu.org>
18508
18509 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18510 (syms_of_minibuf): Add Qcompletion_ignore_case.
18511 * dired.c (Qcompletion_ignore_case): Change to external.
18512 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18513 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18514 (Fread_file_name): Use it rather than intern'ing.
18515
18516 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18517 (Fread_coding_system): Ignore case of user input.
18518
185192007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18520
18521 * xdisp.c (handle_display_prop): Ignore display specs after
18522 replacing one when string text is being replaced.
18523 (handle_single_display_spec): Pretend as if characters with display
18524 property haven't been consumed only when buffer text is being replaced.
18525
185262007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18527
18528 * xfns.c (Fx_create_frame, Fx_display_list):
18529 * window.c (window_fixed_size_p, enlarge_window)
18530 (shrink_window_lowest_first):
18531 * macterm.c (init_font_name_table):
18532 * macfns.c (Fx_create_frame, Fx_display_list):
18533 * lread.c (close_load_descs):
18534 * keyboard.c (read_char_x_menu_prompt):
18535 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18536 * coding.c (code_convert_region_unwind): Test the type of an object
18537 rather than just !NILP before extracting data from it.
18538
18539 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18540
18541 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18542 (XMISCANY): New macro.
18543 (XMISCTYPE): Use it.
18544 (struct Lisp_Misc_Any): New type.
18545 (union Lisp_Misc): Use it.
18546 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18547 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18548 (find_symbol_value, set_internal, default_value, Fset_default)
18549 (Fmake_variable_buffer_local, Fmake_local_variable)
18550 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18551 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18552 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18553 * alloc.c (allocate_buffer): Set the size and tag.
18554 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18555 Use XMISCANY.
18556 (die): Follow the GNU convention for error messages.
18557 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18558 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18559 tag any more.
18560 (set_buffer_internal_1):
18561 * frame.c (store_frame_param):
18562 * eval.c (specbind):
18563 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18564
18565 * doc.c (Fsnarf_documentation): Simplify.
18566
185672007-10-14 Juanma Barranquero <lekktu@gmail.com>
18568
18569 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18570 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18571
185722007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18573
18574 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18575
185762007-10-14 Juanma Barranquero <lekktu@gmail.com>
18577
18578 * eval.c (do_autoload): Don't save autoloads.
18579
18580 * data.c (Ffset): Save autoload of the function being set.
18581
185822007-10-07 John Paul Wallington <jpw@pobox.com>
18583
18584 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18585 parameter before setting up faces.
18586
185872007-10-13 Eli Zaretskii <eliz@gnu.org>
18588
18589 * ccl.c (Fregister_code_conversion_map):
18590 * keyboard.c (append_tool_bar_item): Reformat last change.
18591
18592 * lisp.h (eabs): Rename from `abs'. All callers changed.
18593
185942007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18595
18596 * buffer.c (add_overlay_mod_hooklist):
18597 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18598 * fontset.c (make_fontset):
18599 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18600 (append_tool_bar_item):
18601 * macmenu.c (grow_menu_items):
18602 * w32menu.c (grow_menu_items):
18603 * xmenu.c (grow_menu_items): Use larger_vector.
18604
186052007-10-13 Eli Zaretskii <eliz@gnu.org>
18606
18607 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18608 selected frame'' on MSDOS).
18609
186102007-10-12 Martin Rudalics <rudalics@gmx.at>
18611
18612 * frame.c (Qexplicit_name): New variable.
18613 (x_report_frame_params): Report it in parameter alist.
18614 (syms_of_frame): Intern and staticpro it.
18615
186162007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18617
18618 * macfns.c (x_create_tip_frame): Set terminal for frame.
18619
186202007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18621
18622 * frame.c (Qenvironment): Remove.
18623 (syms_of_frame) <Qenvironment>: Don't initialize.
18624 (Fdelete_frame): Don't treat the `environment' param specially.
18625 * frame.h (Qenvironment): Don't declare.
18626 * callproc.c (set_initial_environment): Don't set unused frame param.
18627
18628 * frame.c (Fframe_with_environment): Remove.
18629 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18630
18631 * lisp.h (Fframe_with_environment): Don't declare.
18632
186332007-10-10 Juanma Barranquero <lekktu@gmail.com>
18634
18635 * indent.c (indent_tabs_mode, last_known_column)
18636 (last_known_column_modified): Make static.
18637 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18638
186392007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18640
18641 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18642
186432007-10-09 Jason Rumney <jasonr@gnu.org>
18644
18645 * w32term.c (x_set_window_size): Disable code that attempts to tell
18646 Lisp code about a size change before it actually happens.
18647
186482007-10-09 Richard Stallman <rms@gnu.org>
18649
18650 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18651 return HANDLED_RETURN.
18652
186532007-10-08 Martin Rudalics <rudalics@gmx.at>
18654
18655 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18656 when there's an unread command event.
18657
18658 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18659 window autoselection act appropriately when leaving selected frame.
18660 (syms_of_frame): Initialize focus_follows_mouse.
18661 * frame.h (focus_follows_mouse): Extern it.
18662 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18663 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18664 * msdos.c (dos_rawgetc): Likewise.
18665 * w32term.c (w32_read_socket): Likewise.
18666 * xterm.c (handle_one_xevent): Likewise.
18667 * xdisp.c (syms_of_xdisp): In doc-string of
18668 mouse-autoselect-window mention focus-follows-mouse.
18669
186702007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18671
18672 * macterm.c (mac_load_query_font): Fix missing return value.
18673 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18674 Add BLOCK_INPUT.
18675
186762007-10-08 Richard Stallman <rms@gnu.org>
18677
18678 * xdisp.c (get_window_cursor_type): Implement documented behavior
18679 for cursor-in-non-selected-windows = t.
18680
186812007-10-08 Jason Rumney <jasonr@gnu.org>
18682
18683 * w32.c (w32_get_resource): Always close registry keys.
18684
186852007-10-08 Jason Rumney <jasonr@gnu.org>
18686
18687 * makefile.w32-in (LIBS): Add COMCTL32.
18688
18689 * w32fns.c (globals_of_w32fns): Init common controls.
18690
186912007-10-08 Richard Stallman <rms@gnu.org>
18692
18693 * image.c (our_memory_buffer): Rename from omfib_buffer.
18694
186952007-10-08 Richard Stallman <rms@gnu.org>
18696
18697 * buffer.c (Foverlays_at): Doc fix.
18698
186992007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18700
18701 * fns.c (Fplist_put): Preserve uneven tail data.
18702
187032007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18704
18705 * termhooks.h (enum event_kind): Remove trailing comma.
18706
18707 * frame.h (enum): Remove trailing comma.
18708
187092007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18710
18711 * w32proc.c (delete_child): Don't terminate threads of zombies.
18712
187132007-10-08 Martin Rudalics <rudalics@gmx.at>
18714
18715 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18716
18717 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18718 last-repeatable-command.
18719 (init_kboard): Initialize Vlast_repeatable_command.
18720 (command_loop_1): Set it to real_this_command unless that was
18721 bound to an input event.
18722 (mark_kboards): Mark it.
18723
187242007-10-08 Richard Stallman <rms@gnu.org>
18725
18726 * eval.c (condition-case): Doc fix.
18727
187282007-10-08 Masatake YAMATO <jet@gyve.org>
18729
18730 * xfaces.c (tty_supports_face_attributes_p): Fix code
18731 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18732 was copied and not edited.
18733
187342007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18735
18736 Add new `input-decode-map' keymap and use it for terminal
18737 escape sequences.
18738 * keyboard.h (struct kboard): Add Vinput_decode_map.
18739 Remove Vlocal_key_translation_map.
18740 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18741 (init_kboard): Init input-decode-map.
18742 Replace local-key-translation-map back with key-translation-map.
18743 (syms_of_keyboard): Declare input-decode-map.
18744 Remove local-key-translation-map. Update docstrings.
18745 (mark_kboards): Mark Vinput_decode_map.
18746 Don't mark Vlocal_key_translation_map.
18747 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18748 Replace local-key-translation-map back with key-translation-map.
18749 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18750 Bind in input-decode-map rather than function-key-map.
18751
18752 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18753 This was made redundant by the previous introduction of XSETPVECTYPE.
18754
187552007-10-09 Richard Stallman <rms@gnu.org>
18756
18757 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18758
187592007-09-29 Richard Stallman <rms@gnu.org>
18760
18761 * eval.c (internal_condition_case_2, internal_condition_case_1)
18762 (internal_condition_case): Reenable abort if x_catching_errors ()
18763 to see if that really happens and why.
18764
187652007-10-06 Andreas Schwab <schwab@suse.de>
18766
18767 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18768
187692007-10-04 Juanma Barranquero <lekktu@gmail.com>
18770
18771 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18772
187732007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18774
18775 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18776
187772007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18778
18779 * window.h (struct window):
18780 * window.c (struct save_window_data, struct saved_window):
18781 * termhooks.h (struct terminal):
18782 * process.h (struct Lisp_Process):
18783 * frame.h (struct frame):
18784 * buffer.h (struct buffer):
18785 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18786 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18787 The size field of (pseudo)vectors is now unsigned.
18788 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18789
18790 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18791 Turn `count' into an integer.
18792
18793 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18794 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18795 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18796 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18797 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18798
18799 * alloc.c (allocate_pseudovector): New fun.
18800 (ALLOCATE_PSEUDOVECTOR): New macro.
18801 (allocate_window, allocate_terminal, allocate_frame)
18802 (allocate_process): Use it.
18803 (mark_vectorlike): New function.
18804 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18805 (mark_terminals): Use it.
18806 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18807 (Fmake_byte_code): Use XSETPVECTYPE.
18808
18809 * frame.c (Fframe_parameters): Minor simplification.
18810
18811 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18812
18813 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18814
18815 * buffer.c (Fget_buffer_create, init_buffer_once):
18816 * lread.c (defsubr):
18817 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18818
18819 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18820 defined differently in the m/*.h files.
18821 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18822 (XSETPVECTYPE): New macro.
18823 (XSETPSEUDOVECTOR): Use it.
18824
18825 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18826 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18827
18828 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18829 * lread.c (defvar_per_buffer):
18830 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18831
18832 * window.c (candidate_window_p): Only consider as visible frames that
18833 are on the same terminal.
18834
18835 * m/ibms390x.h (MARKBIT): Remove unused macro.
18836
188372007-10-01 Juanma Barranquero <lekktu@gmail.com>
18838
18839 * lread.c (Fload): Fix typo in docstring.
18840
188412007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18842
18843 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18844 of a non-zero value can't yield zero.
18845
188462007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18847
18848 * term.c (term_clear_mouse_face, term_mouse_highlight)
18849 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18850
18851 * print.c (safe_debug_print): Use XHASH.
18852
18853 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18854 Lisp elements such as tags.
18855 (XHASH): New macro.
18856 (EQ): Use it.
18857 (SREF, SSET, STRING_COPYIN): Use SDATA.
18858 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18859
18860 * alloc.c (mark_terminal): Remove left-over declaration.
18861 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18862 (allocate_vectorlike): Remove type argument. Adjust callers.
18863 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18864 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18865
18866 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18867 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18868 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18869 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18870 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18871 Use them.
18872
18873 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18874 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18875 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18876
188772007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18878
18879 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18880 loaded by default.
18881
188822007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18883
18884 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18885 on this tty.
18886 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18887
18888 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18889 Update all users.
18890 (handle_one_term_event): Use Gpm_DrawPointer.
18891 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18892 Signal errors instead of returning nil. Always return nil.
18893 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18894 Make it a noop if gpm-mouse was not activated.
18895 (syms_of_term): Update names.
18896
188972007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18898
18899 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18900 (init_sys_modes): Check that gpm_tty is the current tty.
18901
18902 * alloc.c (allocate_terminal): Set the vector size to only count the
18903 lisp fields. Initialize those to nil.
18904 (mark_object): Don't treat terminals specially.
18905 (mark_terminal): Remove.
18906 (mark_terminals): Use mark_object instead.
18907
18908 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18909 the GC to the beginning.
18910
18911 * indent.h:
18912 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18913
18914 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18915
189162007-09-25 Jason Rumney <jasonr@gnu.org>
18917
18918 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18919
18920 * w32console.c (create_w32cons_output): Remove.
18921
18922 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18923
18924 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18925 (reset_sys_modes): Use reset_terminal_modes_hook.
18926
189272007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18928
18929 * eval.c (do_autoload): Don't output any message.
18930
189312007-09-24 Juri Linkov <juri@jurta.org>
18932
18933 * emacs.c (standard_args): Change priority of "--no-splash"
18934 from 40 to 3. Add "--no-desktop" with the same priority.
18935
189362007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18937
18938 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18939 and optimize the case where they are all 1.
18940
189412007-09-23 Johannes Weiner <hannes@saeurebad.de>
18942
18943 * lisp.h (abs): Define if not defined.
18944 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18945 Don't define `abs', since it's defined in lisp.h.
18946
189472007-09-22 Eli Zaretskii <eliz@gnu.org>
18948
18949 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18950 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18951 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18952 (init_tty): Use DEV_TTY instead of "/dev/tty".
18953 [WINDOWSNT]: No need to protect from NAME arg being null.
18954
189552007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18956
18957 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18958 up the tty state.
18959
189602007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18961
18962 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18963 (gpm_tty): Change its type.
18964 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18965 (gpm_tty): Change its type and initialize it.
18966 (Fterm_open_connection): Check the frame is indeed a tty.
18967 Use the new gpm_tty.
18968 (Fterm_close_connection): Use the new gpm_tty.
18969 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18970 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18971
189722007-09-21 Juanma Barranquero <lekktu@gmail.com>
18973
18974 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18975 underline_color, to draw strike-through.
18976
189772007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18978
18979 * lisp.h (allocate_terminal): Declare.
18980
18981 * window.c (candidate_window_p): Consider frames that are being placed
18982 by the user as somewhere between visible and iconified.
18983 (window_loop): Prefer windows on the current frame.
18984 (Fselect_window): Move the use of select-frame to the beginning so we
18985 can just delegate all the work (it'll call us back anyway).
18986
18987 * frame.c (Qdisplay_environment_variable):
18988 * frame.h (Qdisplay_environment_variable): Delete.
18989
18990 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18991 of the first arg, since that value may be a union.
18992
18993 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18994 parameter rather than Qdisplay_environment_variable. If all else
18995 fails, look for DISPLAY in initial-environment.
18996
189972007-09-21 Glenn Morris <rgm@gnu.org>
18998
18999 * Makefile.in (emacstool): Remove target.
19000 (lisp, shortlisp): Remove termdev.elc.
19001
190022007-09-21 Markus Triska <markus.triska@gmx.at>
19003
19004 * xterm.c (x_delete_display): Compile session management conditionally.
19005
190062007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
19007
19008 * callproc.c (getenv_internal_1): New function.
19009 (getenv_internal): Use it.
19010 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
19011
19012 * terminal.c (get_terminal): Don't accept ints to represent terminals.
19013 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
19014 (Fset_terminal_parameter): Work with dead terminals as well.
19015 (Fmodify_terminal_parameters): Remove.
19016
19017 * terminal.c (get_terminal): Handle terminals.
19018 Make sure the terminal returned is live.
19019 (create_terminal): Use allocate_terminal.
19020 (mark_terminals): Move to alloc.c.
19021 (delete_terminal): Use terminal->name as liveness status.
19022 NULL out fields after freeing their contents.
19023 Don't deallocate the object.
19024 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
19025 rather than an int.
19026 (Fterminal_live_p): Accept non-integer arguments.
19027 (Fterminal_list): Return terminal objects rather than an ints.
19028
19029 * alloc.c (enum mem_type): New member for `terminal' objects.
19030 (allocate_terminal): New function.
19031 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
19032 Handle terminals.
19033 (mark_terminal): New fun.
19034 (mark_terminals): Move from terminal.c.
19035
19036 * term.c (get_tty_terminal): Don't treat output_initial specially.
19037 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
19038 (delete_tty): Use terminal->name as liveness status.
19039
19040 * termhooks.h (struct terminal): Make it into a pseudovector.
19041 Remove `deleted' replaced by checking `name's nullness.
19042
19043 * print.c (print_object): Handle terminals.
19044
19045 * lisp.h (enum pvec_type): New `terminal' pseudovector.
19046 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
19047
19048 * frame.c (make_terminal_frame):
19049 * keyboard.c (tty_read_avail_input):
19050 * w32term.c (x_delete_terminal):
19051 * xfns.c (Fx_create_frame, x_create_tip_frame):
19052 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19053
190542007-09-20 Glenn Morris <rgm@gnu.org>
19055
19056 * process.c (Fmake_network_process): Doc fix.
19057
190582007-09-19 Jason Rumney <jasonr@gnu.org>
19059
19060 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19061
190622007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19063
19064 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19065 Fix a C warning regarding variable constness.
19066
19067 * xterm.c (handle_one_xevent): Fix a C warning.
19068
190692007-09-18 Jason Rumney <jasonr@gnu.org>
19070
19071 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19072
190732007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19074
19075 * gtkutil.c (gdpy_def): New variable.
19076 (xg_initialize): Initialize gdpy_def.
19077 (xg_display_close): If no other display exists, set gdpy_def to a
19078 new connection.
19079
190802007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19081
19082 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19083 when we have no file name for the icon.
19084 (xg_tool_bar_expose_callback): Remove.
19085 (xg_create_tool_bar): Don't connect expose signal to
19086 xg_tool_bar_expose_callback.
19087 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19088
190892007-09-16 Andreas Schwab <schwab@suse.de>
19090
19091 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19092 values instead of zapping them.
19093
190942007-09-14 Glenn Morris <rgm@gnu.org>
19095
19096 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19097 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19098 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19099 scope and rename to omfib_buffer for clarity.
19100 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19101
191022007-09-14 Kenichi Handa <handa@m17n.org>
19103
19104 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19105
191062007-09-13 Jason Rumney <jasonr@gnu.org>
19107
19108 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19109
19110 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19111
19112 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19113 (mac_term_init): Call here instead, passing rif.
19114
191152007-09-13 Glenn Morris <rgm@gnu.org>
19116
19117 * s/hpux.h: No longer define `static' as nothing.
19118
191192007-09-13 Johan Bockgård <bojohan@gnu.org>
19120
19121 * callint.c (Fcall_interactively): Remove unused var `fun'.
19122
191232007-09-12 Romain Francoise <romain@orebokech.com>
19124
19125 * window.c (prefer_window_split_horizontally, display_buffer):
19126 Revert 2007-09-08 change.
19127
191282007-09-12 Glenn Morris <rgm@gnu.org>
19129
19130 * alloca.c: Remove file.
19131 * Makefile.in (alloca): Do not undef.
19132 (allocaobj, alloca.o): Remove.
19133 (otherobj): Remove allocaobj.
19134 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19135 * regex.c (C_ALLOCA): Remove all references and code that was only
19136 used when this was defined.
19137 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19138 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19139 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19140
19141 * Makefile.in (SOURCES, unlock, relock): Delete.
19142
19143 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19144 (menu_grab_callback): All uses changed.
19145
19146 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19147 (x_reply_selection_request): All uses changed.
19148
191492007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19150
19151 * lread.c (load_warn_old_style_backquotes): Change message to look
19152 better when it appears in the middle of byte-compiler messages.
19153
191542007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19155
19156 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19157
19158 * xterm.c (x_create_terminal): Add comment.
19159
19160 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19161
191622007-09-10 Richard Stallman <rms@gnu.org>
19163
19164 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19165
191662007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19167
19168 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19169 (DEFUN): Document `intspec', use it instead of `prompt'.
19170
19171 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19172
19173 * data.c (Finteractive_form): If the interactive specification starts
19174 with a `(', use it as a Lisp form.
19175
19176 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19177 name and file modes.
19178
19179 * callint.c (Fcall_interactively): Comment fixes.
19180
191812007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19182
19183 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19184 and compiled functions.
19185
191862007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19187
19188 * window.c (prefer_window_split_horizontally): New variable.
19189 (display_buffer): Consider splitting window horizontally depending
19190 on prefer_window_split_horizontally.
19191
191922007-09-08 Eli Zaretskii <eliz@gnu.org>
19193
19194 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19195
191962007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19197
19198 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19199
19200 * frame.c (x_set_frame_parameters): Check number is positive before
19201 using XFASTINT.
19202
19203 * window.c (freeze_window_start): Don't presume selected_window holds
19204 a window object.
19205 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19206
192072007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19208
19209 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19210
192112007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19212
19213 * window.c (Vsplit_window_preferred_function): New var.
19214 (Fdisplay_buffer): Use it.
19215 (syms_of_window): Export, and initialize it.
19216
192172007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19218
19219 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19220
192212007-09-06 Glenn Morris <rgm@gnu.org>
19222
19223 * gtkutil.c (menu_grab_callback) <cnt>:
19224 * xselect.c (x_reply_selection_request) <cnt>: Move static
19225 variable to file scope.
19226
192272007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19228
19229 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19230 consistent values of selected_frame and selected_window.
19231
192322007-09-04 Jason Rumney <jasonr@gnu.org>
19233
19234 * w32console.c (initialize_w32_display): Zero unused hooks.
19235
192362007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19237
19238 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19239 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19240
192412007-09-04 Jason Rumney <jasonr@gnu.org>
19242
19243 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19244 in w32console.c. Set up input. Remove XXX comments that have been
19245 confirmed as correct.
19246
19247 * s/ms-w32.h (MULTI_KBOARD): Define.
19248
19249 * w32console.c (one_and_only_w32cons): Remove.
19250 (initialize_w32_display): Take terminal argument.
19251
19252 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19253 initialize_w32_display.
19254 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19255
19256 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19257
19258 * keyboard.c (discard_mouse_events): Discard it.
19259 (make_lispy_event): Translate it to a lisp event.
19260 (lispy_wheel_names): Add wheel-left and right events.
19261 (syms_of_keyboard): Enlarge wheel_syms.
19262
19263 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19264 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19265
19266 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19267
19268 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19269 from WM_MOUSEHWHEEL.
19270 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19271
19272 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19273 terminal.
19274
19275 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19276 keyboard for the terminal.
19277
192782007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19279
19280 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19281 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19282 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19283 and resume-tty-function to resume-tty-hook.
19284 (Fsuspend_tty, Fresume_tty): Use new names.
19285
192862007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19287
19288 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19289 if it starts with "n:".
19290
192912007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19292
19293 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19294
192952007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19296
19297 * frame.h:
19298 * frame.c (Qterm_environment_variable): Remove.
19299 (syms_of_frame): Don't init and staticpro it.
19300
19301 * callproc.c (getenv_internal): Remove special case for $TERM.
19302
19303 * callproc.c (Vinitial_environment): New variable.
19304 (set_initial_environment): Initialize it.
19305 (syms_of_callproc): Declare it.
19306 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19307 TERM under which a process runs is never related to the TERM in which
19308 Emacs is running.
19309
193102007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19311
19312 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19313 * s/darwin.h: ... do it here.
19314
193152007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19316
19317 * lisp.h (set_initial_environment): Rename from set_global_environment.
19318
19319 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19320 removed by mistake on the multi-tty branch.
19321
19322 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19323 (Fmodify_frame_parameters): Return a value.
19324
19325 * image.c (png_load): Comment-out var only used in commented-out code.
19326
19327 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19328 before passing it to mark_object.
19329
19330 * xfaces.c (internal_resolve_face_name): Return a value.
19331 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19332
19333 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19334 (x_icon): Comment-out var only used in commented-out code.
19335
193362007-08-29 Romain Francoise <romain@orebokech.com>
19337
19338 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19339 QUIT hasn't been provided.
19340
193412007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19342
19343 * callproc.c (child_setup, getenv_internal): Use the
19344 display-environment-variable and term-environment-variable frame params.
19345 (set_initial_environment): Initialise Vprocess_environment.
19346
19347 * config.in: Disable multi-keyboard support on a mac.
19348
19349 * frame.c (Qterm_environment_variable)
19350 (Qdisplay_environment_variable): New variables.
19351 (syms_of_frame): Intern and staticpro them.
19352 (Fmake_terminal_frame): Disable output method test.
19353
19354 * frame.h: Declare them here.
19355
19356 * macfns.c (x_set_mouse_color): Get rif from the frame.
19357 (x_set_tool_bar_lines): Don't use updating_frame.
19358 (mac_window): Add 2 new parameters for consistency with other systems.
19359 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19360 frame parameters following what is done in X11 and w32. Don't use
19361 FRAME_MAC_DISPLAY_INFO.
19362 (Fx_open_connection, start_hourglass): Remove window-system check.
19363 (x_create_tip_frame): Get the keyboard from the terminal.
19364
19365 * macmenu.c: Reorder includes.
19366 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19367
19368 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19369 terminal parameter.
19370 (x_clear_frame): Add a frame parameter.
19371 (note_mouse_movement): Get rif from the frame.
19372 (mac_term_init): Initialize the terminal.
19373 (mac_initialize): Make static and move terminal initialization ...
19374 (mac_create_terminal): ... to this new function.
19375
19376 * macterm.h (struct mac_display_info): Add terminal.
19377 (mac_initialize): Delete declaration.
19378
19379 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19380
19381 * sysdep.c: Comment out text after #endif.
19382
19383 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19384 is defined. Better initialize ttys in windows. Use terminal
19385 specific mouse_position_hook.
19386
19387 * termhooks.h (union display_info): Add mac_display_info.
19388
19389 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19390 Set the default minibuffer frame, window_system and the rest of the
19391 frame parameters following what is done in X11.
19392
19393 * w32term.c (w32_initialize): Make static.
19394
19395 * xselect.c (x_handle_selection_clear): Only access
19396 terminal->kboard when MULTI_KBOARD is defined.
19397
19398 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19399 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19400
194012007-08-29 Jason Rumney <jasonr@gnu.org>
19402
19403 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19404 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19405
19406 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19407 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19408
19409 * keyboard.c (restore_kboard_configuration): Only define when
19410 MULTI_KBOARD defined.
19411
19412 * makefile.w32-in: Update dependancies from Makefile.in.
19413 (OBJ1): Add terminal.$(O)
19414
19415 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19416 Don't define function body.
19417 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19418
19419 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19420
19421 * w32.c (request_sigio, unrequest_sigio): Remove.
19422
19423 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19424 (w32con_clear_frame, w32con_clear_end_of_line)
19425 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19426 (w32con_delete_glyphs, w32con_set_terminal_window)
19427 (scroll_line, w32_sys_ring_bell): Add frame arg.
19428 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19429 Add terminal arg.
19430 (PICK_FRAME): Remove.
19431 (w32con_write_glyphs): Use frame specific terminal coding.
19432 (one_and_only_w32cons): New global variable.
19433 (initialize_w32_display): Use it for storing hooks.
19434 (create_w32cons_output): New function.
19435
19436 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19437 arg a frame.
19438
19439 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19440 Set window_system.
19441 (x_set_tool_bar_lines): Don't use updating_frame.
19442 (Fx_create_frame): Set terminal and ref count.
19443 (Fx_open_connection): Remove window-system check.
19444
19445 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19446
19447 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19448 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19449 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19450 Add frame arg.
19451 (x_delete_terminal, w32_create_terminal): New functions.
19452 (w32_term_init): Create a terminal.
19453 (w32_initialize): Move terminal specific initialization to
19454 w32_create_terminal.
19455
19456 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19457 (w32_clear_rect, w32_clear_area): Use background from frame.
19458 (w32_display_info): Add terminal.
19459 (w32_sys_ring_bell, x_delete_display): Declare here.
19460
19461 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19462
19463 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19464
194652007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19466
19467 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19468 Fix get_named_tty calls for the controlling tty.
19469
194702007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19471
19472 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19473
194742007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19475
19476 * term.c (tty_insert_glyphs): Add missing first parameter.
19477
194782007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19479
19480 * buffer.c (Fbuffer_list, Fbury_buffer):
19481 Take frame->buried_buffer_list into account.
19482
19483 * cm.c (current_tty): New variable, for cmputc().
19484 (cmputc): Use it.
19485 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19486 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19487 (cmgoto): Add tty parameter. Pass it on to calccost().
19488 Use emacs_tputs() instead of tputs().
19489
19490 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19491 tputs().
19492 (current_tty): New variable, for cmputc().
19493 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19494
19495 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19496 (internal_condition_case, internal_condition_case_1)
19497 (internal_condition_case_2): Don't abort when x_catching_errors.
19498
19499 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19500 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19501 prevent crashes caused by bogus longjmps in read_char.
19502
19503 * keymap.h (Fset_keymap_parent): Add EXFUN.
19504
19505 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19506 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19507 Remove redundant definition.
19508
19509 * macfns.c (x_set_mouse_color, x_make_gc):
19510 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19511
19512 * w32term.c (x_free_frame_resources):
19513 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19514 (w32_initialize): Use the accessor macros for terminal characteristics.
19515
19516 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19517 Use the accessor macros for terminal characteristics.
19518 * msdos.c (internal_terminal_init): Use the accessor macros for
19519 terminal characteristics.
19520 (ScreenVisualBell, internal_terminal_init):
19521 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19522
19523 * termopts.h (no_redraw_on_reenter): Declare.
19524
19525 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19526 (mark_terminals, mark_ttys): Declare.
19527 (Fgarbage_collect): Call them.
19528 (mark_object): Mark buried_buffer_list.
19529
19530 * prefix-args.c: Include stdlib.h for exit.
19531
19532 * syssignal.h: Add comment.
19533
19534 * indent.c: Include stdio.h.
19535
19536 * window.h (Vinitial_window_system): Declare.
19537 (Vwindow_system): Delete declaration.
19538
19539 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19540
19541 * image.c (lookup_image): Don't initialize `c' until the xasserts
19542 have been run.
19543
19544 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19545 FRAME_FOREGROUND_PIXEL.
19546
19547 * print.c (print_preprocess): Don't lose print_depth levels while
19548 iterating.
19549
19550 * widget.c (update_from_various_frame_slots):
19551 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19552
19553 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19554 frames.
19555 (window_internal_height): Remove bogus make_number call.
19556 (init_window_once): Call make_terminal_frame with two zero parameters.
19557
19558 * fileio.c (Fread_file_name): Update comment.
19559
19560 * callint.c (Fcall_interactively):
19561 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19562 Make sure it is correctly unwound.
19563
19564 * xsmfns.c (x_session_close): New function.
19565
19566 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19567 Delete declarations.
19568
19569 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19570 (x_output): Remove background_pixel and foreground_pixel fields.
19571 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19572 (x_delete_device, x_session_close): Declare.
19573
19574 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19575 (read_filtered_event): Call `read_char' with a local
19576 `wrong_kboard_jmpbuf'.
19577
19578 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19579 Don't call single_kboard_state. Use FRAME_RIF.
19580
19581 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19582 systems.
19583
19584 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19585 (Fframe_with_environment, Fset_input_meta_mode)
19586 (Fset_quit_char): EXFUN.
19587 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19588 (init_sys_modes, reset_sys_modes): Update prototypes.
19589 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19590
19591 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19592 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19593 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19594 Delete declarations.
19595 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19596 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19597 New declarations.
19598
19599 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19600 already does that during init_display(). Call syms_of_keymap
19601 before syms_of_keyboard. Call `syms_of_terminal'.
19602 Call set_initial_environment, not set_process_environment.
19603 (shut_down_emacs): Call reset_all_sys_modes() instead of
19604 reset_sys_modes().
19605
19606 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19607 (internal_resolve_face_name, resolve_face_name_error): New functions.
19608 (resolve_face_name): Protect against loops and errors thrown by Fget.
19609 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19610 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19611
19612 * scroll.c: Replace CURTTY() with local variables throughout the
19613 file (where applicable).
19614 (calculate_scrolling, calculate_direct_scrolling)
19615 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19616 characteristics.
19617
19618 * keymap.c (Vfunction_key_map): Remove.
19619 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19620 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19621 (Vkey_translation_map): Remove.
19622 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19623 (Fdescribe_buffer_bindings)
19624 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19625 Update for terminal-local key-translation-map.
19626
19627 * Makefile.in (callproc.o): Update dependencies.
19628 (lisp, shortlisp): Add termdev.elc.
19629 (obj): Add terminal.o.
19630 (terminal.o): Add dependencies.
19631 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19632 (data.o, fns.o): Add termhooks.h dependency.
19633 (SOME_MACHINE_LISP): Add dnd.elc.
19634 (minibuf.o): Fix typo.
19635 Update dependencies.
19636
19637 * data.c (do_symval_forwarding, store_symval_forwarding)
19638 (find_symbol_value): Use the selected frame's keyboard, not
19639 current_kboard.
19640
19641 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19642 Vwindow_system.
19643
19644 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19645 Fmenu_bar_open.
19646 (syms_of_xmenu): Update defsubr.
19647 (mouse_position_for_popup, Fx_popup_menu)
19648 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19649 (set_frame_menubar, free_frame_menubar)
b97439ce 19650 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19651 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19652 an X frame.
19653
19654 * xselect.c (x_own_selection): Abort if not an X frame.
19655 (some_frame_on_display): Check if it is an X frame.
19656 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19657
19658 * coding.c: Include frame.h and termhooks.h.
19659 (terminal_coding, keyboard_coding): Delete.
19660 (Fset_terminal_coding_system_internal)
19661 (Fset_keyboard_coding_system_internal)
19662 (Fkeyboard_coding_system)
19663 (Fterminal_coding_system): Add a terminal parameter.
19664 Get terminal_coding from the terminal.
19665 (init_coding_once): Don't call setup_coding_system here.
19666
19667 * dispextern.h (set_scroll_region, turn_off_insert)
19668 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19669 (tty_clear_end_of_line, tty_setup_colors)
19670 (delete_tty, updating_frame)
19671 (produce_special_glyphs, produce_glyphs, write_glyphs)
19672 (insert_glyphs): Remove.
19673 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19674 (tty_turn_off_highlight, get_tty_size): Add declaration.
19675 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19676
19677 * frame.h (enum output_method): Add output_initial.
19678 (struct x_output): Delete.
19679 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19680 Access foreground_pixel and background_pixel directly from the frame.
19681 (tty_display): Delete.
19682 (struct frame): Add buried_buffer_list, foreground_pixel,
19683 background_pixel and terminal. Delete kboard.
19684 (union output_data): Add tty.
19685 (FRAME_KBOARD): Get the kboard from the terminal.
19686 (FRAME_INITIAL_P): New macro.
19687 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19688 (Qterm_environment_variable, Qdisplay_environment_variable)
19689 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19690 New declarations.
19691
19692 * termchar.h (tty_output, tty_display_info): New structures.
19693 (tty_list): Declare.
19694 (FRAME_TTY, CURTTY): New macros.
19695 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19696 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19697 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19698 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19699
19700 * callproc.c: Include frame.h and termhooks.h, for terminal
19701 parameters.
19702 (add_env): New function.
19703 (child_setup): Use it.
19704 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19705 (getenv_internal): Fix get_terminal_param call.
19706 (Fgetenv_internal, egetenv): Update doc.
19707 (syms_of_callproc): Initialize Vprocess_environment to nil.
19708 Register and initialize them. Remove obsolete defvars. Update doc
19709 strings.
19710 (child_setup): Handle Vlocal_environment_variables.
19711 (getenv_internal): Add terminal parameter.
19712 Handle Vlocal_environment_variables.
19713 (Fgetenv_internal): Add terminal parameter.
19714 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19715 environment in a frame (not terminal) parameter. Update doc strings.
19716 (set_initial_environment): Rename from set_global_environment.
19717 Store Emacs environment in initial frame parameter.
19718
19719 * xdisp.c (redisplay_internal): Update references to
19720 `previous_terminal_frame'.
19721 (display_mode_line, Fformat_mode_line): Replace calls to
19722 `push_frame_kboard' with `push_kboard'.
19723 (get_glyph_string_clip_rects): Add extra parentheses and
19724 braces to prevent compiler warnings.
19725 (calc_pixel_width_or_height): Add xassert to check that the
19726 frame is alive. Don't call `lookup_image' on a termcap frame.
19727 (message2_nolog, message3_nolog, redisplay_internal)
19728 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19729 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19730 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19731 (Fx_display_pixel_width, Fx_display_pixel_height)
19732 (Fx_display_planes, Fx_display_color_cells)
19733 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19734 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19735 (Fx_display_backing_store, Fx_display_visual_class)
19736 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19737 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19738
19739 * xfns.c (x_set_foreground_color x_set_background_color)
19740 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19741 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19742 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19743 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19744 terminal that is being deleted.
19745 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19746 frame parameter, and make sure it overrides any user-supplied setting.
19747 (Fx_close_connection, Fx_synchronize): Unify argument names with
19748 the rest of the DEFUNs.
19749
19750 * dispnew.c (Fsend_string_to_terminal): Update call to
19751 `get_tty_terminal'.
19752 (Fredraw_frame, Fsend_string_to_terminal)
19753 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19754 FRAME_TERMCAP_P and FRAME_TTY.
19755 (window_change_signal): Don't believe width/height values that are
19756 impossibly small.
19757 (Vinitial_window_system): Rename from Vwindow_system.
19758 (termscript, Wcm, rif): Delete.
19759
19760 * termhooks.h (struct terminal): New struct containing the
19761 previously global text display hooks and new members NAME,
19762 DELETED and PARAM_ALIST.
19763 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19764 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19765 (FRAME_RIF): New macros.
19766 (get_terminal_param, get_device): New declarations.
19767 (termscript): Delete declaration.
19768
19769 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19770 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19771 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19772 FRAME_FOREGROUND_PIXEL.
19773 (x_fully_uncatch_errors): Disable definition.
19774 (x_scroll_bar_expose): Fix reference to foreground pixel.
19775 (XTread_socket): Disable loop on all X displays.
19776 (x_delete_terminal): Don't set terminal->deleted and let
19777 delete_terminal delete the frames on the terminal.
19778 (x_delete_display): Doc update to reflect changes in
19779 delete_terminal.
19780 (x_display_info) <terminal>: Move member earlier in the struct.
19781 (deleting_tty): Remove old variable.
19782 (Fsuspend_tty): Call clear_tty_hooks.
19783 (Fresume_tty, init_tty): Call set_tty_hooks.
19784 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19785 errors on X frames.
19786 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19787 (handle_one_xevent): Initialize `f' to NULL.
19788 (x_delete_terminal, x_create_terminal): New functions.
19789 (XTset_terminal_modes, XTreset_terminal_modes)
19790 (XTread_socket, x_connection_closed, x_term_init)
19791 (x_term_init, x_delete_display): Add terminal parameter.
19792 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19793 X connections.
19794
19795 * frame.c: Include termchar.h.
19796 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19797 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19798 (Qdisplay_environment_variable): New vars.
19799 (Fframep): Deal with output_initial.
19800 (Fframe-live-p): Doc fix.
19801 (Fwindow-system): New function.
19802 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19803 (make_terminal_frame): Don't create frames on a terminal that is
19804 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19805 (store_frame_param): Check for found_for_frame before calling XFRAME.
19806 (Fmake_terminal_frame): Handle NULL tty names correctly.
19807 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19808 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19809 frames to refer to a deleted frame in their 'environment parameter.
19810 (Fframe_with_environment): New function.
19811 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19812 (get_future_frame_param): New function.
19813 (Fmake_terminal_frame): Use it.
19814 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19815
19816 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19817 * sysdep.c (reset_sys_modes): Update for renames.
19818
19819 * keyboard.c (tty_read_avail_input): New function.
19820 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19821 (syms_of_keyboard): Defsubr them.
19822 (Fset_input_meta_mode, Fset_quit_char): New functions.
19823 (Fset_input_mode): Split to above functions.
19824 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19825 parameter. Use it in call to `read_char'.
19826 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19827 Set wrong_kboard_jmpbuf correctly in recursive calls.
19828 Use current_kboard to access Vkeyboard_translate_table.
19829 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19830 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19831 Update longjmp invocations. Remember the original current_kboard,
19832 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19833 changes it. Comment out unnecessary calls to
19834 `record_single_kboard_state' and `any_kboard_state'.
19835 Update recursive calls.
19836 (wrong_kboard_jmpbuf): Remove global variable.
19837 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19838 Handle deleted interrupted_kboards correctly; that is a legal
19839 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19840 and read_char calls. Abort if interrupted_kboard died in read_char.
19841 (any_kboard_state, single_kboard_state)
19842 (push_frame_kboard): Remove function.
19843 (pop_kboard): Switch out of single_kboard mode if the kboard has
19844 been deleted. Remove unused variable. Help debugging by not
19845 changing current_kboard unnecessarily. Set current_kboard to the
19846 kboard of the selected frame when the stored kboard object has
19847 been deleted before pop_kboard.
19848 (temporarily_switch_to_single_kboard): Change first parameter to a
19849 frame pointer. Throw an error when caller wants to change kboards
19850 while in single_kboard mode. Don't push_kboard if we weren't in
19851 single kboard state. Don't pop_kboard if we popped into any
19852 kboard state.
19853 (restore_kboard_configuration): Abort if pop_kboard changed the
19854 kboard in single_kboard mode. Call pop_kboard only after setting
19855 up single_kboard mode.
19856 (Frecursive_edit): Switch to single_kboard mode only in nested
19857 command loops.
19858 (cmd_error, command_loop, command_loop_1, timer_check):
19859 Comment out unnecessary call to `any_kboard_state' and
19860 `record_single_kboard_state'.
19861 (delete_kboard): Exit single_kboard mode if we have just deleted
19862 that kboard. Use FRAME_KBOARD.
19863 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19864 `fatal_error_signal'.
19865 (record_single_kboard_state): Don't push_kboard if we weren't in
19866 single kboard state. Don't pop_kboard if we popped into any
19867 kboard state.
19868 (push_frame_kboard): Rename to push_kboard.
19869 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19870 (read_avail_input): Read input from all terminals.
19871 (mark_kboards): Also mark Vkeyboard_translate_table.
19872 (kbd_buffer_store_event_hold): Simplify condition.
19873 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19874 (Vkeyboard_translate_table): Move to struct kboard.
19875 (init_kboard): Initialize Vkeyboard_translate_table.
19876 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19877 Vkeyboard_translate_table. Update doc strings. Update docs of
19878 local-function-key-map and function-key-map.
19879
19880 * terminal.c: New file.
19881
19882 * term.c: Include errno.h.
19883 (Vring_bell_function, device_list, initial_device)
19884 (next_device_id, ring_bell, update_begin, update_end)
19885 (set_terminal_window, cursor_to, raw_cursor_to)
19886 (clear_to_end, clear_frame, clear_end_of_line)
19887 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19888 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19889 (syms_of_term): Move their initialization to terminal.c.
19890 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19891 (Ftty_display_color_cells)
19892 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19893 (clear_tty_hooks, set_tty_hooks)
19894 (init_tty, maybe_fatal): New functions.
19895 (Ftty_type): Return nil if terminal is not on a tty instead of
19896 throwing an error. Doc update.
19897 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19898 Doc update. Initialize new subrs and variables.
19899 (delete_tty): Use terminal->deleted.
19900 (tty_set_terminal_modes): Rename from set_terminal_modes.
19901 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19902 (set_scroll_region): Rename to `tty_set_scroll_region'.
19903 (turn_on_insert): Rename to `tty_turn_on_insert'.
19904 (turn_off_insert): Rename to `tty_turn_off_insert'.
19905 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19906 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19907 (toggle_highligh): Rename to `tty_toggle_highlight'.
19908 (background_highlight): Rename to `tty_background_highlight'.
19909 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19910 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19911 (tty_set_scroll_region, tty_background_highlight)
19912 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19913 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19914 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19915 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19916 Add static modifier.
19917 (tty_reset_terminal_modes, tty_set_terminal_window)
19918 (tty_set_scroll_region, tty_background_highlight)
19919 (tty_highlight_if_desired, tty_cursor_to)
19920 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19921 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19922 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19923 renames.
19924
199252007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19926
19927 * keyboard.c: Qrtl is new.
19928 (parse_tool_bar_item): Handle :rtl keyword.
19929 (syms_of_keyboard): Intern :rtl keyword.
19930
19931 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19932
19933 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19934 so no Lisp code is executed.
19935 (file_for_image, find_rtl_image): New functions.
19936 (xg_get_image_for_pixmap): Use file_for_image.
19937 (update_frame_tool_bar): If direction is RTL, use RTL image if
19938 defined. Use Gtk stock images if defined.
19939
199402007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19941
19942 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19943 for nonexistent or zero-width glyph in composition glyph.
19944
199452007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19946
19947 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19948
19949 * xdisp.c (Finvisible_p): New function.
19950 (syms_of_xdisp): defsubr it.
19951
199522007-08-24 Juanma Barranquero <lekktu@gmail.com>
19953
19954 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19955 Doc fixes.
19956
199572007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19958
19959 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19960
199612007-08-24 Martin Rudalics <rudalics@gmx.at>
19962
19963 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19964 whether decoding has modified buffer contents.
19965
199662007-08-24 Jason Rumney <jasonr@gnu.org>
19967
19968 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19969 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19970 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19971 (init_svg_functions) [HAVE_NTGUI]: New function.
19972 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19973 (svg_load_image): Use them.
19974 (svg_load_image) [HAVE_NTGUI]: Implement background.
19975
199762007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19977
19978 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19979 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19980 (LIBX): Remove @RSVG_LIBS@.
19981 (LIBES): Add $(RSVG_LIBS).
19982
19983 * image.c (svg_load_image): Blend with specified background if exists.
19984 Use IMAGE_BACKGROUND. Add Mac OS Support.
19985
19986 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19987 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19988 Remove macros.
19989 [MAC_OSX] (socket_callback): Do nothing.
19990 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19991 ReceiveNextEvent.
19992 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19993 socket_callback.
19994 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19995
199962007-08-22 Glenn Morris <rgm@gnu.org>
19997
19998 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19999
200002007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
20001
20002 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
20003
20004 * image.c: Add support for SVG images. Some additional comments
20005 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
20006 (svg_image_p): New function to test for SVG image.
20007 (svg_load): New function to load SVG image.
20008 (svg_load_image): New function, helper for svg_load.
20009 (Qsvg): New Lisp_object.
20010 (svg_keyword_index): New enum.
20011 (svg_format): New static `image_keyword' struct.
20012 (svg_type): New static `image_type' struct.
20013 (librsvg/rsvg.h): Include it.
20014
200152007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
20016
20017 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
20018
200192007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
20020
20021 * lread.c (Qold_style_backquotes): New var.
20022 (syms_of_lread): Init and staticpro it.
20023 (load_warn_old_style_backquotes): New fun.
20024 (Fload): Use them to warn about old style backquotes.
20025 (end_of_file_error, Fload): Remove unused vars.
20026
20027 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
20028
20029 * lread.c (Vold_style_backquotes): New var.
20030 (syms_of_lread): Init and export it to Elisp.
20031 (read1): Set it when we find an old-style (back)quote.
20032
200332007-08-22 Jason Rumney <jasonr@gnu.org>
20034
20035 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
20036
200372007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
20038
20039 * puresize.h (BASE_PURESIZE): Increase to 1140000.
20040
200412007-08-19 Richard Stallman <rms@gnu.org>
20042
20043 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
20044
200452007-08-19 Andreas Schwab <schwab@suse.de>
20046
20047 * alloc.c (pure): Round PURESIZE up.
20048
200492007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20050
20051 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20052 active frame.
20053
200542007-08-16 Richard Stallman <rms@gnu.org>
20055
20056 * eval.c (Fcommandp): Add parens to clarify.
20057
20058 * minibuf.c (Fall_completions): Use enum for type of table.
20059
20060 * emacs.c (USAGE2): Improve text.
20061
200622007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20063
20064 * term.c (tty_default_color_capabilities): Declare static
20065 variables in file scope, to avoid HPUX compiler problem.
20066
200672007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20068
20069 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20070 to gtk_toolbar_insert.
20071
200722007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20073
20074 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20075
20076 * insdel.c (reset_var_on_error): New fun.
20077 (signal_before_change, signal_after_change):
20078 Use it to reset (after|before)-change-functions to nil in case of error.
20079 Bind inhibit-modification-hooks to t.
20080 Don't bind (after|before)-change-functions to nil while they run.
20081
200822007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20083
20084 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20085 filling pixmap with stippled background.
20086
200872007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20088
20089 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20090 Don't use invisible frame as parent window for repositioning.
20091
200922007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20093
20094 * print.c (new_backquote_output): Rename from old_backquote_output.
20095 (print): Inverse its logic (according to its name) so as to match the
20096 behavior of new_backquote_flag in lread.c.
20097
200982007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20099
20100 * gmalloc.c (posix_memalign): New function.
20101
20102 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20103 ActivateControl/DeactivateControl here.
20104 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20105 frame-notice-user-settings is non-nil.
20106 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20107 for kEventParamFMFontStyle.
20108 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20109 mac_pass_command_to_system and mac_pass_control_to_system here.
20110 (XTread_socket): Call ActivateControl/DeactivateControl here.
20111 (XTread_socket) [TARGET_API_MAC_CARBON]:
20112 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20113 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20114 for window repositioning.
20115
201162007-08-08 Glenn Morris <rgm@gnu.org>
20117
20118 * Replace `iff' in doc-strings and comments.
20119
201202007-08-07 Chong Yidong <cyd@stupidchicken.com>
20121
20122 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20123
201242007-08-07 Martin Rudalics <rudalics@gmx.at>
20125
20126 * fileio.c (Finsert_file_contents): Run format-decode and
20127 after_insert_file_functions on entire buffer when REPLACE is
20128 non-nil and inhibit modification_hooks and point_motion_hooks.
20129 For consistency, run after_insert_file_functions iff something
20130 got inserted. Move signal_after_change and update_compositions
20131 after code running after_insert_file_functions. Make sure that
20132 undo_list doesn't record intermediate steps of the decoding process.
20133
201342007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20135
20136 * emacs.c (main)
20137 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20138 Call malloc_enable_thread on interactive startup.
20139
20140 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20141 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20142 [USE_PTHREAD]: Conditionalize with it.
20143 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20144 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20145 New functions.
20146
201472007-08-06 Chong Yidong <cyd@stupidchicken.com>
20148
20149 * xdisp.c (redisplay_window): When restoring original buffer
20150 position, make sure it is still valid.
20151
20152 * image.c (png_load): Ignore png-supplied background color.
20153
201542007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20155
20156 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20157 Use kCFAbsoluteTimeIntervalSince1970.
20158
20159 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20160 New variable.
20161 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20162 event loop should be quit.
20163 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20164 Quit dialog event loop if quit_dialog_event_loop is set.
20165
20166 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20167 (Selection): New typedef. Use instead of ScrapRef.
20168 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20169 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20170 (mac_clear_selection): Rename from clear_scrap.
20171 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20172 scrap_has_target_type. All uses changed.
20173 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20174 (mac_selection_has_target_p): New functions.
20175 (mac_put_selection_value): Rename from put_scrap_string.
20176 (mac_get_selection_value): Rename from get_scrap_string.
20177 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20178 (put_scrap_private_timestamp, scrap_has_target_type)
20179 (get_scrap_private_timestamp): Remove functions.
20180 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20181 (x_own_selection, x_get_local_selection):
20182 Use mac_valid_selection_value_p.
20183 (x_own_selection): Don't use put_scrap_private_timestamp.
20184 Record OWNERSHIP-INFO into Vselection_alist instead.
20185 (x_get_local_selection): Don't check type if request is local.
20186 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20187 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20188
201892007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20190
20191 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20192 add comment explaining why.
20193
201942007-08-03 Richard Stallman <rms@gnu.org>
20195
20196 * fileio.c (Fvisited_file_modtime): Use make_time.
20197
201982007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20199
20200 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20201 build.
20202
202032007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20204
20205 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20206
202072007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20208
20209 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20210
202112007-07-30 Richard Stallman <rms@gnu.org>
20212
20213 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20214
202152007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20216
20217 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20218
202192007-07-28 Nick Roberts <nickrob@snap.net.nz>
20220
20221 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20222 remote default-directory.
20223
20224 * buffer.c (mode-line-format): Update doc string.
20225
202262007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20227
20228 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20229 scroll bar gap.
20230 (x_scroll_bar_create): Set bar->fringe_extended_p.
20231 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20232 on frame edge. Check fringe background extension. Don't clear
20233 extended fringe background area.
20234
20235 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20236 (w32_fill_area): Enclose multiple statements with do ... while (0).
20237
20238 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20239 Extend fringe background to scroll bar gap.
20240 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20241 Set bar->fringe_extended_p.
20242 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20243 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20244 background extension. Don't clear extended fringe background area.
20245
20246 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20247 New member fringe_extended_p.
20248
202492007-07-25 Glenn Morris <rgm@gnu.org>
20250
20251 * Relicense all FSF files to GPLv3 or later.
20252
20253 * COPYING: Switch to GPLv3.
20254
202552007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20256
20257 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20258
20259 * data.c (Finteractive_form): Check for the presence of an
20260 `interactive-form' symbol property more thoroughly.
20261
20262 * data.c (Finteractive_form): Use an `interactive-form' property if
20263 present, analogous to the function-documentation property.
20264
202652007-07-24 Jason Rumney <jasonr@gnu.org>
20266
20267 * w32fns.c (x_real_positions): Get real position from OS instead of
20268 calculating it.
20269
202702007-07-23 Jason Rumney <jasonr@gnu.org>
20271
20272 * filelock.c (current_lock_owner): Allow for @ sign in username.
20273
202742007-07-22 Nick Roberts <nickrob@snap.net.nz>
20275
20276 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20277 remote default-directory.
20278
20279 * buffer.c (mode-line-format): Describe above case in doc string.
20280
202812007-07-20 Eli Zaretskii <eliz@gnu.org>
20282
20283 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20284 Define if not defined.
20285
202862007-07-18 Jason Rumney <jasonr@gnu.org>
20287
20288 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20289
202902007-07-18 Richard Stallman <rms@gnu.org>
20291
20292 * data.c (Fsetq_default): Doc fix.
20293
20294 * eval.c (Fsetq): Doc fix.
20295
202962007-07-18 Juanma Barranquero <lekktu@gmail.com>
20297
20298 * coding.c (Ffind_operation_coding_system):
20299 * eval.c (For, Fand): Doc fixes.
20300 Reported by Johan Bockgård.
20301
203022007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20303
20304 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20305
20306 * xterm.h: Declare x_ewmh_activate_frame.
20307
20308 * xterm.c (x_ewmh_activate_frame): New function.
20309 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20310
203112007-07-17 Martin Rudalics <rudalics@gmx.at>
20312
20313 * window.c (Fdisplay_buffer): If largest or LRU window is the
20314 only window, split it even if it is not eligible for splitting.
20315 This restores the original behavior broken by the 2007-07-15
20316 change.
20317
203182007-07-17 Glenn Morris <rgm@gnu.org>
20319
20320 * abbrev.c (abbrev_check_chars): New function.
20321 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20322 Call abbrev_check_chars to check abbrev characters are word
20323 constituents. Doc fix.
20324
203252007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20326
20327 * process.c (Fstart_process, Fmake_network_process)
20328 (read_process_output): Fix up last changes.
20329
203302007-07-16 Eli Zaretskii <eliz@gnu.org>
20331
20332 * makefile.w32-in (clean): Don't delete *~.
20333
203342007-07-16 Andreas Schwab <schwab@suse.de>
20335
20336 * window.c (Fdisplay_buffer): Use NILP.
20337 (Fset_window_scroll_bars): Likewise.
20338
203392007-07-15 Martin Rudalics <rudalics@gmx.at>
20340
20341 * window.c (window_min_size_2): New function.
20342 (window_min_size_1, size_window, Fdisplay_buffer)
20343 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20344 windows without mode- or header-lines when window-min-height is
20345 too small.
20346 (size_window): Reset nodelete_p after testing it, following an
20347 earlier note by Kim F. Storm.
20348 (display_buffer): Do not set split_height_threshold to twice the
20349 value of window_min_height to avoid changing the value of a
20350 customizable variable. Rather explicitly check whether the
20351 height of the window that shall be splitted is at least as large
20352 as split_height_threshold.
20353 (Fwindow_full_width_p): New defun.
20354 (syms_of_window): Defsubr it.
20355
20356 * window.h: Add EXFUN for Fwindow_full_width_p.
20357
203582007-07-14 Jason Rumney <jasonr@gnu.org>
20359
20360 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20361
203622007-07-14 Richard Stallman <rms@gnu.org>
20363
20364 * eval.c (maybe_call_debugger): New function.
20365 (find_handler_clause): Use maybe_call_debugger.
20366 Call it when the handler says `debug'.
20367 Eliminate DEBUGGER_VALUE_PTR.
20368 (Fsignal): Eliminate debugger_value.
20369 (Qdebug): New variable.
20370 (syms_of_eval): Initialize it.
20371
203722007-07-14 Juanma Barranquero <lekktu@gmail.com>
20373
20374 * eval.c (Fprogn):
20375 * keyboard.c (Ftrack_mouse):
20376 * print.c (Fwith_output_to_temp_buffer):
20377 * window.c (Fsave_window_excursion): Doc fix.
20378
203792007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20380
20381 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20382
203832007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20384
20385 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20386 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20387 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20388 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20389 Remove unused encoding_carryover.
20390 * process.c: Adjust all functions accordingly.
20391
203922007-07-12 Richard Stallman <rms@gnu.org>
20393
20394 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20395
203962007-07-11 Jason Rumney <jasonr@gnu.org>
20397
20398 * makefile.w32-in (LIBS): Include OLE32.
20399
20400 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20401 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20402
204032007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20404
20405 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20406 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20407 from a Lisp_Object into a bare pointer.
20408 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20409 Adjust the code correspondingly.
20410
20411 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20412
20413 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20414 (term_show_mouse_face): Remove unused var `j'.
20415 (handle_one_term_event): Remove unused vars `i' and `j'.
20416 Don't cast return value of ttyname since it's not necessary.
20417
204182007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20419
20420 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20421 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20422
20423 * fns.c (map_char_table): Use an array of int for `indices' rather than
20424 an array of Lisp_Objects (which are only ever integers anyway).
20425 (Fmap_char_table): Update caller.
20426 * lisp.h: Update prototype.
20427 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20428 * fontset.c (Ffontset_info):
20429 * casetab.c (set_case_table): Update callers.
20430
20431 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20432
20433 * keymap.c (struct accessible_keymaps_data)
20434 (struct where_is_internal_data): New structures.
20435 (accessible_keymaps_1, where_is_internal_1): Use them to change
20436 interface to adhere to the one used by map_keymap.
20437 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20438 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20439
20440 * keymap.h (map_keymap_function_t): More informative prototype.
20441
204422007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20443
20444 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20445 (looking_at_1): Don't change search_regs and last_thing_searched
20446 if `inhibit-changing-match-data' is non-nil.
20447 (string_match_1, search_buffer, set_search_regs): Likewise.
20448 (syms_of_search): Add Lisp level definition for
20449 `inhibit-changing-match-data' and set it to nil.
20450 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20451 start and end of the match, instead of using values in search_regs.
20452
204532007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20454
20455 * minibuf.c (Fcompleting_read): New value `confirm-only'
20456 for `require-match'.
20457
204582007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20459
20460 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20461 part of the 2007-06-27 change to syms_of_fileio.
20462
204632007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20464
20465 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20466 Check WINDOWP before using XWINDOW. Consolidate return statements.
20467
204682007-06-27 Richard Stallman <rms@gnu.org>
20469
20470 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20471
204722007-06-27 Juanma Barranquero <lekktu@gmail.com>
20473
20474 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20475
204762007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20477
20478 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20479 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20480 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20481 (_free_internal, memalign): Use them.
20482 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20483 Initialize to PTHREAD_MUTEX_INITIALIZER.
20484 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20485 (morecore_nolock): Rename from morecore. All uses changed.
20486 Use only nolock versions of internal allocation functions.
20487 (_malloc_internal_nolock, _realloc_internal_nolock)
20488 (_free_internal_nolock): New functions created from
20489 _malloc_internal, _realloc_internal, and _free_internal.
20490 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20491 Copy hook value to automatic variable before its use.
20492 (memalign): Copy hook value to automatic variable before its use.
20493
204942007-06-26 Kenichi Handa <handa@m17n.org>
20495
20496 * coding.c (Ffind_operation_coding_system): Docstring improved.
20497 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20498
204992007-06-25 David Kastrup <dak@gnu.org>
20500
20501 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20502 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20503 cater for additional parameter.
20504
20505 * keymap.h: Adjust number of parameters to `current-active-maps'.
20506
20507 * doc.c (Fsubstitute_command_keys): Adjust call of
20508 `current-active-maps'.
20509
205102007-06-25 David Kastrup <dak@gnu.org>
20511
20512 * callint.c (Fcall_interactively): Make the parsing of interactive
20513 specs somewhat more readable.
20514
205152007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20516
20517 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20518 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20519 if extended background has already been filled.
20520
205212007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20522
20523 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20524 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20525
20526 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20527 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20528 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20529 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20530 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20531 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20532 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20533 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20534 Run timers during dialog popup.
20535 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20536
205372007-06-21 Jason Rumney <jasonr@gnu.org>
20538
20539 * image.c (convert_mono_to_color_image): Swap fore and background.
20540
205412007-06-20 Jason Rumney <jasonr@gnu.org>
20542
20543 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20544 (w32_free_bdf_font): Unmap memory not handle.
20545
205462007-06-20 Sam Steingold <sds@gnu.org>
20547
20548 * gmalloc.c (__morecore): Fix the declaration to comply with the
20549 definition.
20550
205512007-06-20 Juanma Barranquero <lekktu@gmail.com>
20552
20553 * w32term.c (w32_delete_display): Remove leftover declaration.
20554 (w32_define_cursor, w32_initialize): Make static.
20555
20556 * w32.c (_wsa_errlist): Fix typo in error message.
20557 (init_environment): Ignore any environment variable from the
20558 registry having a null value.
20559
205602007-06-20 Glenn Morris <rgm@gnu.org>
20561
20562 * Makefile.in (LIBGIF): Default to -lgif.
20563
205642007-06-17 Jason Rumney <jasonr@gnu.org>
20565
20566 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20567 unicode strings.
20568
205692007-06-16 Juanma Barranquero <lekktu@gmail.com>
20570
20571 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20572 Fix typo in docstring.
20573
205742007-06-16 Eli Zaretskii <eliz@gnu.org>
20575
20576 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20577 and their keybindings.
20578
205792007-06-15 Chong Yidong <cyd@stupidchicken.com>
20580
20581 * composite.c (update_compositions): Fix last fix.
20582
205832007-06-14 Jason Rumney <jasonr@gnu.org>
20584
20585 * w32.c (get_process_times_fn): New function pointer.
20586 (globals_of_w32): Intialize it if present in kernel32.dll.
20587 (w32_get_internal_run_time): New function.
20588
20589 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20590
205912007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20592
20593 * composite.c (update_compositions): Check the validness of
20594 compositions.
20595
205962007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20597
20598 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20599 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20600
20601 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20602 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20603
20604 * macgui.h (USE_MAC_TOOLBAR): New define.
20605
20606 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20607 Return immediately unless popup is activated.
20608
20609 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20610 background to scroll bar gap.
20611 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20612 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20613 scroll bars on frame edge. Check fringe background extension.
20614 Don't clear extended fringe background area.
20615 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20616 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20617 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20618 [USE_MAC_TOOLBAR]: New macros.
20619 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20620 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20621 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20622 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20623 [USE_MAC_TOOLBAR]: New functions.
20624 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20625 manually if previous repositioning has failed.
20626 (mac_handle_keyboard_event): Use precomputed event kind.
20627 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20628 as tool bar item click. Handle mouse movement over tool bar items.
20629
20630 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20631 toolbar_win_gravity.
20632 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20633 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20634 Add externs.
20635
20636 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20637 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20638
206392007-06-14 Chong Yidong <cyd@stupidchicken.com>
20640
20641 * image.c (search_image_cache): Remove unused variable.
20642
206432007-06-13 Chong Yidong <cyd@stupidchicken.com>
20644
20645 * xfns.c, xmenu.c: Link to xaw3d if available.
20646
206472007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20648
20649 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20650 frame_foreground and frame_background.
20651
20652 * image.c (lookup_image): Save frame foreground and background colors.
20653 (search_image_cache): Check if saved and current frame colors match.
20654
206552007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20656
20657 * regex.c (regex_compile): Remove the `regnum' counter.
20658 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20659
206602007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20661
20662 * term.c: Include intervals.h to declare Fget_text_property.
20663
206642007-06-10 Jason Rumney <jasonr@gnu.org>
20665
20666 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20667
206682007-06-08 Juanma Barranquero <lekktu@gmail.com>
20669
20670 * callint.c (Fcall_interactively):
20671 * editfns.c (Fdelete_and_extract_region):
20672 * fileio.c (Fread_file_name):
20673 * fns.c (Fmapconcat):
20674 * keyboard.c (cmd_error_internal):
20675 * keymap.c (Fkey_description):
20676 * lread.c (openp):
20677 * minibuf.c (read_minibuf):
20678 * search.c (wordify):
20679 * sunfns.c (sel_read):
20680 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20681 * xfns.c (x_default_scroll_bar_color_parameter):
20682 * xmenu.c (menu_help_callback):
20683 * xselect.c (Fx_get_atom_name):
20684 * xterm.c (x_term_init): Use empty_unibyte_string.
20685
206862007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20687
20688 * alloc.c (init_strings): Initialize canonical empty strings.
20689 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20690 canonical empty string when the requested size is 0.
20691
20692 * emacs.c (empty_unibyte_string): Rename from empty_string.
20693 (empty_multibyte_string): New canonical empty string.
20694 (syms_of_emacs): Don't initialize empty_string.
20695
20696 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20697 string, if appropriate.
20698 (empty_unibyte_string, empty_multibyte_string): New externs.
20699 (empty_string): Remove extern.
20700
20701 * lread.c (syms_of_lread): Use empty_unibyte_string.
20702
207032007-06-07 Jason Rumney <jasonr@gnu.org>
20704
20705 * s/ms-w32.h: Don't define HAVE_TZNAME.
20706
20707 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20708
207092007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20710
20711 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20712
20713 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20714 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20715
20716 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20717 Don't call next handler.
20718 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20719 Remove argument. Install handler to application.
20720 (set_frame_menubar): Don't change deep_p.
20721 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20722 FRAME_OUTER_TO_INNER_DIFF_Y.
20723 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20724 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20725 [HAVE_DIALOGS]: New macros.
20726 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20727 Use them.
20728 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20729
20730 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20731 init_service_handler. All callers changed. Return OSStatus value.
20732
20733 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20734 All callers changed so as not to call SetPortWindowPort.
20735 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20736 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20737 mac_draw_string_common.
20738 (mac_draw_image_string_qd): Likewise.
20739 (mac_draw_string_common): Use them. Add INLINE.
20740 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20741 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20742 GetGlobalMouse.
20743 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20744 and FRAME_OUTER_TO_INNER_DIFF_Y.
20745 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20746 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20747 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20748 repositioning window to mac_handle_window_event.
20749 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20750 saving window location to mac_handle_window_event
20751 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20752 (install_menu_target_item_handler): Remove argument in extern.
20753 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20754 Also accept command events.
20755 (do_keystroke): New function created from XTread_socket.
20756 (init_command_handler): Remove functions.
20757 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20758 and save window location by kEventWindowShowing and kEventWindowHiding
20759 handlers here. Don't call next handler for window state change and
20760 focus events.
20761 (mac_handle_application_event, mac_handle_keyboard_event)
20762 [TARGET_API_MAC_CARBON]: New functions.
20763 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20764 kEventWindowShowing and kEventWindowHiding events. Move installation
20765 of mouse, font, text input and menu target item handlers to
20766 install_application_handler.
20767 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20768 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20769 New function.
20770 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20771 Register it.
20772 (XTread_socket) [TARGET_API_MAC_CARBON]:
20773 Consolidate SendEventToEventTarget calls.
20774 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20775 Move application activation handler to mac_handle_application_event.
20776 Move keyboard handler to mac_handle_keyboard_event.
20777 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20778 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20779 init_command_handler. Call install_application_handler.
20780
20781 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20782 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20783
207842007-06-07 Glenn Morris <rgm@gnu.org>
20785
20786 * emacs.c (main): Use `emacs-copyright' in --version output.
20787
207882007-06-06 Chong Yidong <cyd@stupidchicken.com>
20789
20790 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20791
207922007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20793
20794 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20795
20796 * macgui.h: Replace WindowPtr with WindowRef.
20797
20798 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20799 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20800 Replace ControlHandle with ControlRef.
20801 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20802
20803 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20804 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20805 Replace ControlHandle with ControlRef.
20806 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20807 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20808
20809 * macterm.h (struct scroll_bar): Rename member control_handle_low
20810 and control_handle_high to control_ref_low and control_ref_high.
20811 All uses changed.
20812 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20813 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20814 respectively. All uses changed.
20815 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20816 (install_window_handler, remove_window_handler): Replace WindowPtr
20817 with WindowRef in externs.
20818
208192007-06-05 Juanma Barranquero <lekktu@gmail.com>
20820
20821 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20822
208232007-06-03 Nick Roberts <nickrob@snap.net.nz>
20824
20825 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20826
20827 * frame.c (Fmouse_position, Fmouse_pixel_position):
20828 Condition on HAVE_GPM too.
20829
20830 * term.c (term_mouse_highlight): Remove unused variables.
20831 (Fterm_open_connection): Set gpm_zerobased to 1.
20832 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20833 Use zero based co-ordinates.
20834 (handle_one_term_event): Report a drag as mouse movement too.
20835
20836 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20837
208382007-06-03 Chong Yidong <cyd@stupidchicken.com>
20839
20840 * image.c (search_image_cache): New function. Require background
20841 color match if background color is unspecified in the image spec.
20842 (uncache_image, lookup_image): Use it.
20843
208442007-06-01 Juanma Barranquero <lekktu@gmail.com>
20845
20846 * window.c (Fshrink_window): Reflow docstring.
20847
208482007-06-02 Chong Yidong <cyd@stupidchicken.com>
20849
20850 * Version 22.1 released.
20851
208522007-06-01 Richard Stallman <rms@gnu.org>
20853
20854 * xfns.c (x_encode_text): Add GCPRO.
20855
208562007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20857
20858 * xfns.c (x_set_name_internal): Save encoded name before
20859 x_encode_text in case string data is relocated.
20860
208612007-05-31 Richard Stallman <rms@gnu.org>
20862
20863 * buffer.c (syms_of_buffer): Doc fix.
20864
208652007-05-30 Nick Roberts <nickrob@snap.net.nz>
20866
20867 * sysdep.c (init_sys_modes): Add rather than replace with
20868 O_NONBLOCK.
20869
20870 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20871 term_mouse_moveto.
20872
20873 * termhooks.h (term_mouse_moveto): New extern.
20874
20875 * term.c (mouse_face_window): Rename...
20876 (Qmouse_face_window): ...to this.
20877 (term_show_mouse_face, term_clear_mouse_face)
20878 (term_mouse_highlight): Use Qmouse_face_window.
20879 (term_mouse_moveto): New function.
20880 (term_mouse_position): Make it work.
20881 (syms_of_term): Uncomment assignment to mouse_position_hook.
20882 Staticpro Qmouse_face_window.
20883
208842007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20885
20886 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20887 around current_column call.
20888
208892007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20890
20891 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20892 * xdisp.c (next_element_from_buffer):
20893 * window.c (delete_window):
20894 * term.c (term_mouse_highlight):
20895 * msdos.c (getdefdir):
20896 * macterm.c (mac_create_bitmap_from_bitmap_data)
20897 (init_font_name_table):
20898 * fns.c (Fsxhash):
20899 * data.c (Fmake_local_variable):
20900 * ccl.c (ccl_driver): Likewise.
20901
209022007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20903
20904 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20905 Call mac_wakeup_from_rne on window size change.
20906
209072007-05-25 Chong Yidong <cyd@stupidchicken.com>
20908
20909 * image.c (uncache_image): Fix typo.
20910
209112007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20912
20913 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20914
209152007-05-22 Richard Stallman <rms@gnu.org>
20916
20917 * xterm.c (x_connection_closed): Remove NO_RETURN.
20918
209192007-05-22 Martin Rudalics <rudalics@gmx.at>
20920
20921 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20922
209232007-05-21 Chong Yidong <cyd@stupidchicken.com>
20924
20925 * image.c (uncache_image): New function.
20926 (Fimage_refresh): New function.
20927
209282007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20929
20930 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20931
209322007-05-20 Nick Roberts <nickrob@snap.net.nz>
20933
20934 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20935 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20936
209372007-05-20 Nick Roberts <nickrob@snap.net.nz>
20938
20939 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20940 conditional on [HAVE_GPM_H].
20941
209422007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20943
20944 * syntax.c (skip_chars): Update syntax-table only after we checked that
20945 the new location is valid.
20946
209472007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20948
20949 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20950 mac_get_window_bounds.
20951
209522007-05-20 Nick Roberts <nickrob@snap.net.nz>
20953
20954 * Makefile.in (LIBGPM): Allow it to be set from configure.
20955 If set then link Emacs with it.
20956
20957 * config.in: Regenerate.
20958
20959 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20960 New externs.
20961
20962 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20963 Include gpm.h.
20964 (handle_one_term_event, term_gpm): New externs.
20965
20966 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20967 and allow it to be interrupted by SIGIO.
20968
20969 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20970 (wait_reading_process_output): Wait on gpm_fd too.
20971 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20972 (add_gpm_wait_descriptor_called_flag): New variable.
20973 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20974
20975 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20976 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20977 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20978 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20979 (make_lispy_event): Add case GPM_CLICK_EVENT.
20980 (read_avail_input): Handle mouse input.
20981
20982 * term.c (write_glyphs_with_face): New function.
20983 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20984 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20985 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20986 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20987 (last_mouse_x, last_mouse_y): New variables.
20988 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20989 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20990 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20991 (Fterm_close_connection): New functions.
20992 (term_init): Initialise mouse_face_window.
20993
209942007-05-19 Chong Yidong <cyd@stupidchicken.com>
20995
20996 * xdisp.c (redisplay_window): If first window line is a
20997 continuation line, recompute the new window start instead of
20998 recentering.
20999
210002007-05-18 Glenn Morris <rgm@gnu.org>
21001
21002 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
21003 Suggested by Alfred M. Szmidt <ams@gnu.org>.
21004
210052007-05-17 Glenn Morris <rgm@gnu.org>
21006
21007 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
21008
210092007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21010
21011 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
21012 dead key repeat and up events.
21013
210142007-05-14 Chong Yidong <cyd@stupidchicken.com>
21015
21016 * image.c (pbm_load): Check image size for monochrome pbm.
21017
210182007-05-13 Chong Yidong <cyd@stupidchicken.com>
21019
21020 * xterm.c (XTread_socket): Revert last change.
21021
210222007-05-12 Chong Yidong <cyd@stupidchicken.com>
21023
21024 * image.c (pbm_load): Correctly check image size for greyscale pbm.
21025
21026 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
21027
210282007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21029
21030 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
21031 mixup (YAILOM).
21032
210332007-05-07 Andreas Schwab <schwab@suse.de>
21034
21035 * keymap.c (Flookup_key): Fix typo in last change.
21036
210372007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
21038
21039 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
21040 mapping for unibyte strings.
21041
210422007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21043
21044 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
21045 (Fx_popup_dialog) [MAC_OSX]: Likewise.
21046
210472007-04-29 Richard Stallman <rms@gnu.org>
21048
21049 * insdel.c (replace_range): For undo, record insertion first.
21050
210512007-04-29 Andreas Schwab <schwab@suse.de>
21052
21053 * lisp.h (VECSIZE): Use OFFSETOF.
21054
210552007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21056
21057 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21058 disabled lines.
21059
210602007-04-28 Richard Stallman <rms@gnu.org>
21061
21062 * lread.c (read_escape): In a string, \s is always space.
21063
210642007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21065
21066 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21067
21068 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21069 submenu for menu bar items.
21070
21071See ChangeLog.10 for earlier changes.
21072
21073;; Local Variables:
21074;; coding: utf-8
21075;; add-log-time-zone-rule: t
aac0c6e3
MR
21076;; End:
21077
76b6f707 21078 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
21079
21080 This file is part of GNU Emacs.
21081
21082 GNU Emacs is free software: you can redistribute it and/or modify
21083 it under the terms of the GNU General Public License as published by
21084 the Free Software Foundation, either version 3 of the License, or
21085 (at your option) any later version.
21086
21087 GNU Emacs is distributed in the hope that it will be useful,
21088 but WITHOUT ANY WARRANTY; without even the implied warranty of
21089 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21090 GNU General Public License for more details.
21091
21092 You should have received a copy of the GNU General Public License
21093 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21094
21095;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40