xftfont.c: Parse symbolic names for constants also.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
223e5fc6
JD
12009-12-13 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xftfont.c (QClcdfilter): New variable.
4 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
5 (syms_of_xftfont): Initialize QClcdfilter.
6
3c055b77
JD
72009-12-12 Jan Djärv <jan.h.d@swipnet.se>
8
9 * xsettings.c (struct xsettings): Add member seen.
10 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 11 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
12 (apply_xft_settings): Only update Xft settings with what member seen
13 indicates as new.
14
05fe33ff
EZ
152009-12-12 Eli Zaretskii <eliz@gnu.org>
16
17 * dispextern.h (struct text_pos): Use EMACS_INT;
18 (struct glyph): Use EMACS_INT for charpos.
19 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
20 region_beg_charpos, region_end_charpos,
21 redisplay_end_trigger_charpos, and also for
22 iterator_stack_entry.end_charpos and
23 iterator_stack_entry.stop_charpos.
24
e8d7886a
JD
252009-12-12 Jan Djärv <jan.h.d@swipnet.se>
26
27 * gtkutil.c (scroll_end_callback): New function (bug #5177)
28 (xg_create_scroll_bar): Call scroll_end_callback on button release
29 event (bug #5177).
30 (xg_event_is_for_scrollbar): != replaced with ==.
31
d0db2ec8
KH
322009-12-12 Kenichi Handa <handa@m17n.org>
33
34 * ftfont.c (struct ftfont_info): New member matrix.
35 (ftfont_open): Setup xftfont_info->matrix.
36 (MFLTFontFT): New member matrix.
37 (FLOOR, CEIL, ROUND): New macros.
38 (ftfont_get_metrics): Handle matrix transformation.
39 (ftfont_shape_by_flt): New arg matrix. Callers changed.
40
41 * xftfont.c (struct xftfont_info): New member matrix.
42 (xftfont_open): Setup xftfont_info->matrix.
43
442009-12-10 Kenichi Handa <handa@m17n.org>
45
46 * xdisp.c (append_space_for_newline): Consider face-remapping.
47
2cc7b62f
AS
482009-12-09 Andreas Schwab <schwab@linux-m68k.org>
49
b87dd913
AS
50 * xsettings.c: Include "keyboard.h".
51
eba5eb94
AS
52 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
53
2cc7b62f
AS
54 Fix implicit function declarations.
55 * cmds.c: Include "frame.h".
56 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
57 * frame.h: Move declaration of delete_frame outside of
58 HAVE_WINDOW_SYSTEM.
59
a4ef73c8
CY
602009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
61
62 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
63
64 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
65 GTK builds.
66
944a300c
AS
672009-12-07 Andreas Schwab <schwab@linux-m68k.org>
68
69 * unexelf.c (unexec): Don't search for .data twice.
70
022eef62
CY
712009-12-05 Chong Yidong <cyd@stupidchicken.com>
72
426ac949
CY
73 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
74 if push failed.
75 (handle_line_prefix): Set avoid_cursor_p here. Check return value
76 of push_display_prop (Bug#5000).
77
022eef62
CY
78 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
79 value of font_list_entities (Bug#5085).
80
be95bee9
JB
812009-12-04 Juanma Barranquero <lekktu@gmail.com>
82
83 Fix `string-to-number' to deal consistently with integers and floats.
84 * lread.c (isfloat_string): New argument ignore_trailing to accept all
85 trailing characters, not just whitespace.
86 (read1): Pass new arg 0 to keep old behavior.
87 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
88 trailing chars, as it is already done for integers. Doc fixes.
89 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
90
24c2d7ce
EZ
912009-12-04 Eli Zaretskii <eliz@gnu.org>
92
93 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
94 unused enumeration value.
95
7e694795
EZ
962009-12-03 Eli Zaretskii <eliz@gnu.org>
97
98 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
99
84b31826
SM
1002009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
101
102 * process.c (Fmake_network_process): Fix up the tests for
103 "connectionless socket", so they DTRT for seqpacket sockets as well.
104
f00c449b
SM
1052009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
106
107 * process.c (Qseqpacket): New symbol.
108 (HAVE_SEQPACKET): New macro.
109 (Fmake_network_process): Accept new :type `seqpacket'.
110 (init_process): Add `seqpacket' feature when applicable.
111 (syms_of_process): Initialize Qseqpacket.
112
8096a0ff
YM
1132009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
114
115 * font.c (font_load_for_lface, font_open_by_name): Don't store name
116 if entity is Qnil.
117
3e0de07f
SM
1182009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
119
120 * print.c (print_preprocess): Preprocess the key_and_value table of
121 hashtables, even tho they're "hidden" (bug#5082).
122
abeafb2a
JD
1232009-11-29 Jan Djärv <jan.h.d@swipnet.se>
124
125 * frame.c (frame_make_pointer_invisible)
126 (frame_make_pointer_visible): Declare f before statements.
127
4bf47195
EZ
1282009-11-28 Eli Zaretskii <eliz@gnu.org>
129
130 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
131 omitted dependencies on lisp.h.
132
c525b3f2
JD
1332009-11-27 Jan Djärv <jan.h.d@swipnet.se>
134
ece2d4ed
JD
135 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
136 is NULL.
137
138 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
139
140 * frame.c (frame_make_pointer_invisible)
3e0de07f 141 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
142 frame.
143
c525b3f2
JD
144 * search.c (simple_search): Remove warning by making *p const.
145
2f00e299
DN
1462009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
147
148 * xdisp.c (power_letter): Remove duplicate const.
149
084b049b
JD
1502009-11-25 Jan Djärv <jan.h.d@swipnet.se>
151
a1fadc6f
JD
152 * term.c (delete_tty): Remove check for last terminal (bug#4970).
153
084b049b
JD
154 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
155 defaults (bug #5025).
156
28259cac
SM
1572009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
158
159 * insdel.c (adjust_markers_for_delete): Move it in the
160 right direction! (bug#4803)
161
e8e14166
YM
1622009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
163
164 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
165
166 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
167
86677b58
GM
1682009-11-24 Glenn Morris <rgm@gnu.org>
169
170 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
171
581e51e8
JD
1722009-11-23 Jan Djärv <jan.h.d@swipnet.se>
173
cfc86c7a
JD
174 * Makefile.in: Must create deps for ecrt0.o in its rule.
175
581e51e8
JD
176 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
177 because that is what Gtk+ font dialog understands.
178
179 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
180 of Fcopy_sequence.
181 (font_open_by_name): Put name given into QCname for font-object returned.
182
183 * frame.c (x_set_font): Save original font name as frame parameter
184 font-parameter.
185
186 * xsettings.c (set_default_xft_settings): New function.
187 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
188 is found.
189
8b264ecb
AS
1902009-11-22 Andreas Schwab <schwab@linux-m68k.org>
191
192 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
193 searching backwards through multibyte buffer.
194
872870b2
JD
1952009-11-21 Jan Djärv <jan.h.d@swipnet.se>
196
197 * xterm.c: #include xgselect.h.
198 (x_initialize): Call xgselect_initialize.
199
200 * xsettings.c (something_changedCB): C++ comments => C comments.
201 (init_gconf): Do not deal with any GLib file descriptors, xg_select
202 does that now.
203
204 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
205 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
206 (scroll_bar_button_cb): Remove.
207 (create_menus): C++ comments => C comments. Don't bind grab-notify
208 event.
209 (xg_create_scroll_bar): Don't bind button-press-event and
210 button-release-event.
211
212 * process.c: Include xgselect.h if defined (USE_GTK) ||
213 defined (HAVE_GCONF).
214 (wait_reading_process_output): Call xg_select for the same condition.
215
216 * xgselect.c (xg_select): New function to better integrate with
217 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
218
219 * xgselect.h: New file, declare xg_select, xgselect_initialize.
220
221 * Makefile.in (XOBJ): Add xgselect.o.
222
62a6e103
AS
2232009-11-21 Andreas Schwab <schwab@linux-m68k.org>
224
225 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
226 ignored second argument. All callers changed.
227 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
228 (RE_STRING_CHAR_AND_LENGTH): Likewise.
229 * xdisp.c (string_char_and_length): Likewise.
230
b0ca0f33
DN
2312009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
232
233 * xterm.c (x_new_font):
234 * print.c (print_object):
235 * cmds.c (Fself_insert_command): Move declarations before statements.
236
dd5a6279
CY
2372009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
238
239 * s/cygwin.h: Remove unneeded linker flags.
240
4a8e097d
JD
2412009-11-20 Jan Djärv <jan.h.d@swipnet.se>
242
0d1d0d26
JD
243 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
244
245 * xsettings.h: Declare xsettings_get_system_font.
246
247 * xsettings.c (xsettings_get_system_font): New function.
248 (init_gconf): No use initiating gconf unless we have Xft also.
249 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
250 HAVE_GCONF.
251
4a8e097d
JD
252 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
253 add a blank entry so it doesn't collapse into nothing.
254
8ab1650e
SM
2552009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
256
257 * lread.c (Funintern): Comment out last change.
258
82c602f0
RS
2592009-11-19 Richard Stallman <rms@gnu.org>
260
261 * lread.c (Funintern): Error if symbol is t or nil.
262
87e32266
SM
2632009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
264
265 * insdel.c (make_gap_larger): Don't make as many assumptions about the
266 representation of Lisp integers.
267 Reported by MJ Chan <mjchan.inbox@gmail.com>.
268
1b9ac145
AS
2692009-11-17 Andreas Schwab <schwab@linux-m68k.org>
270
271 * lisp.h: Remove declaration of Ffont_get_system_font.
272 * xfns.c: Move include of "xsettings.h".
273 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
274
dfb3c4c6
JD
2752009-11-17 Jan Djärv <jan.h.d@swipnet.se>
276
87e32266
SM
277 * xsettings.c (something_changedCB, Ffont_get_system_font):
278 Check use_system_font.
dfb3c4c6
JD
279 (syms_of_xsettings): DEFVAR font-use-system-font.
280
9370c1d8
AS
2812009-11-17 Andreas Schwab <schwab@linux-m68k.org>
282
25fe851a
AS
283 * xfns.c (x_default_font_parameter): Remove dead assignment.
284
9370c1d8
AS
285 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
286
637fa988
JD
2872009-11-17 Jan Djärv <jan.h.d@swipnet.se>
288
87e32266 289 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 290 not have FC_LCD_*. #define them if not there.
a6eb20d8 291
87e32266 292 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 293
637fa988
JD
294 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
295
296 * xterm.c (handle_one_xevent): Call xft_settings_event for
297 ClientMessage, PropertyNotify and DestroyNotify.
298 (x_term_init): If we have XFT, get DPI from Xft.dpi.
299 Call xsettings_initialize.
300
301 * xftfont.c (xftfont_fix_match): New function.
302 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
303 Call xftfont_fix_match after XftFontMatch.
304
305 * xfont.c (xfont_driver): Initialize all members.
306
87e32266
SM
307 * xfns.c (x_default_font_parameter):
308 Try font from Ffont_get_system_font.
637fa988
JD
309 Do not get font from x_default_parameter if we got one from
310 Ffont_get_system_font.
87e32266 311 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
312
313 * w32font.c (w32font_driver): Initialize all members.
314
315 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
316
317 * lisp.h: Declare syms_of_xsettings.
318
87e32266
SM
319 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
320 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
321
322 * ftfont.c (ftfont_filter_properties): New function.
323
324 * frame.c (x_set_font): Remove unused variable lval.
325
87e32266 326 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
327
328 * font.c (font_put_extra): Don't return if val is nil, it means
329 boolean option is off.
330 (font_parse_fcname): Collect all extra properties in extra_props
331 and call filter_properties for all drivers with extra_props and
332 font as parameter.
87e32266
SM
333 (font_open_entity): Do not use cache, it does not pick up new
334 fontconfig settings like hinting.
637fa988
JD
335 (font_load_for_lface): If spec had a name in it, store it in entity.
336
337 * emacs.c (main): Call syms_of_xsettings
338
339 * config.in: HAVE_GCONF is new.
340
341 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
342 xsettings.o is new.
343
5a942932
KH
3442009-11-17 Kenichi Handa <handa@m17n.org>
345
346 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
347 back to the default font in case that no suitable font is found.
348
b7c7a4d1
SM
3492009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
350
351 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
352 Suggested by Chad Brown <yandros@mit.edu>.
353 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
354
072f1e39
JD
3552009-11-16 Jan Djärv <jan.h.d@swipnet.se>
356
357 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
358
5d1e70a2
AS
3592009-11-14 Andreas Schwab <schwab@linux-m68k.org>
360
87e32266 361 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 362
a53cfbe5
JD
3632009-11-14 Jan Djärv <jan.h.d@swipnet.se>
364
473a99b7
JD
365 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
366 has a parent.
367
a53cfbe5
JD
368 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
369 dependency files in deps/. Include those files into Makefile.
370
371 * config.in: Generated (AUTO_DEPEND).
372
f04bb9b2
MA
3732009-11-13 Michael Albinus <michael.albinus@gmx.de>
374
b7c7a4d1 375 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
376 Vdbus_registered_functions_table, because it contains also
377 properties. Fix docstring.
b7c7a4d1 378 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 379
8f11f7ec
SM
3802009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
381
382 * alloc.c (mark_object): Don't reprocess marked strings.
383 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
384 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
385
8a605fe8
KH
3862009-11-13 Kenichi Handa <handa@m17n.org>
387
8f11f7ec 388 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
389 semantics of Vword_combining_categories.
390 (Vword_combining_categories): Describe the slight change of the
391 semantics.
392
241c4680
EZ
3932009-11-13 Eli Zaretskii <eliz@gnu.org>
394
395 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
396
397 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
398
5d58e44c
SM
3992009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
400
401 * xdisp.c (syms_of_xdisp): Fix typo in last change.
402
5e13f9d3
JB
4032009-11-12 Juanma Barranquero <lekktu@gmail.com>
404
405 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
406
cf54c754
DR
4072009-11-11 David Reitter <david.reitter@gmail.com>
408
409 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
410 variables to fix 2009-11-09 change.
411
a4ada374
DN
4122009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
413
91433552
DN
414 * process.c (ifflag_def): Make flag_sym constant.
415 (Fnetwork_interface_info): Use a constant pointer.
416 (ifflag_table):
417 * xfns.c (cursor_bits):
418 * xdisp.c (power_letter):
419 * termcap.c (speeds, esctab):
420 * sysdep.c (baud_convert):
421 * keyboard.c (lispy_accent_codes, modifier_names):
422 * image.c (xbm_format, xpm_format, pbm_format, png_format)
423 (jpeg_format, tiff_format, gif_format, svg_format)
424 (interlace_start, interlace_increment, gs_format):
425 * gtkutil.c (separator_names):
426 * fringe.c (swap_nibble):
427 * fns.c (base64_value_to_char, base64_char_to_value):
428 * fileio.c (make_temp_name_tbl):
429 * coding.c (suffixes): Make constant.
430
f4265f6c
DN
431 * frame.c (make_initial_frame):
432 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
433 build_string.
434 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
435
04420943
DN
436 * s/freebsd.h:
437 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
438
0a5d24ae
DN
439 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
440 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
441
a4ada374
DN
442 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
443 * xterm.c (syms_of_xterm):
444 * xfaces.c (syms_of_xfaces):
445 * xdisp.c (syms_of_xdisp):
446 * lread.c (syms_of_lread):
447 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
448 build_string.
91433552 449
a4ada374
DN
450 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
451
af98fc7f
SM
4522009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
453
8ab1650e 454 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 455
e90292a9
JD
4562009-11-10 Jan Djärv <jan.h.d@swipnet.se>
457
458 * keyboard.h: Declare timer_check.
459
460 * keyboard.c (timer_check_2): New function that does what the old
461 timer_check did.
462 (timer_check): Call timer_check_2 until -1 or a non-zero time is
463 returned, i.e. don't return -1 with timers pending.
464
465 * process.c: Remove extern declaration of timer_check.
466
467 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
468 even if timer_check returned -1.
469
af98fc7f
SM
470 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
471 xg_dialog_data.
e90292a9
JD
472 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
473 the event loop.
474 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
475 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
476 Destroy the dialog after xg_dialog_run.
477
045b83c0
SM
4782009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
479
480 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
481
1fb99a3a
JD
4822009-11-10 Jan Djärv <jan.h.d@swipnet.se>
483
484 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
485
04e452cb
JB
4862009-11-09 Juanma Barranquero <lekktu@gmail.com>
487
488 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
489
ef7417fd
SM
4902009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
491
492 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
493 w32menu.c, and nsmenu.m.
494 Simplify the obsolete case where position is nil.
495 (cleanup_popup_menu): New function, moved from nsmenu.m.
496 (struct skp): Remove slot `notreal'.
497 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
498 adjust callers.
499 (single_menu_item): Adjust call to parse_menu_item.
500 (syms_of_menu): Defsubr x-popup-menu.
501 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
502 (keymap_panes): Don't export any more.
503 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
504 (xmenu_show): Declare.
505 * keyboard.c (parse_menu_item): Remove arg `notreal'.
506 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
507 * keyboard.h (parse_menu_item): Update declaration.
508 * xmenu.c (Fx_popup_menu): Remove.
509 (syms_of_xmenu): Don't defsubr x-popup-menu.
510 * w32menu.c (Fx_popup_menu): Remove.
511 (syms_of_w32menu): Don't defsubr x-popup-menu.
512 * nsmenu.m (cleanup_popup_menu): Remove.
513 (ns_menu_show): Rename from ns_popup_menu and remove all the code
514 moved to menu.c's Fx_popup_menu.
515 (Fx_popup_menu): Remove.
516 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
517 menu_items (it's done in menu.c already).
518
424d6179
SM
5192009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
520
521 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
522 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
523
c0df13a6 5242009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
525
526 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 527 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
528 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
529 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
530
2de9f71c
SM
5312009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
532
533 Let integers use up 2 tags to give them one extra bit and thus double
534 their range.
535 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
536 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
537 New macros.
538 (enum Lisp_Type): Use them. Give explicit values.
539 (Lisp_Type_Limit): Remove.
540 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
541 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
542 Pay attention to USE_2_TAGS_FOR_INTS.
543 (INTEGERP): Use LISP_INT_TAG_P.
544 * fns.c (internal_equal): Simplify the default case.
545 (sxhash): Use case_Lisp_Int.
546 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
547 any more.
548 (Ftype_of): Use case_Lisp_Int.
549 (store_symval_forwarding): Take into account the fact that Ints can
550 now have more than one tag.
551 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
552 buffer_slot_type_mismatch):
553 * xfaces.c (face_attr_equal_p):
554 * print.c (print_object):
555 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
556 Use case_Lisp_Int.
557
323637a2
EZ
5582009-11-06 Eli Zaretskii <eliz@gnu.org>
559
7ac65b38
EZ
560 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
561
323637a2
EZ
562 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
563 warning.
564
e511451f
JD
5652009-11-06 Jan Djärv <jan.h.d@swipnet.se>
566
567 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
568
569 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
570
571 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
572 ButtonPressRelease and MotionNotify (bug#4870).
573
5e2327cf
DN
5742009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
575
5adc433e
DN
576 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
577
d67b4f80
DN
578 * xterm.c (syms_of_xterm):
579 * xselect.c (syms_of_xselect):
580 * xmenu.c (syms_of_xmenu):
581 * xfns.c (syms_of_xfns):
582 * xfaces.c (syms_of_xfaces):
583 * xdisp.c (syms_of_xdisp):
584 * window.c (syms_of_window):
585 * w32fns.c (syms_of_w32fns):
586 * undo.c (syms_of_undo):
587 * textprop.c (syms_of_textprop):
588 * terminal.c (syms_of_terminal):
589 * syntax.c (syms_of_syntax):
590 * sound.c (syms_of_sound):
591 * search.c (syms_of_search):
592 * print.c (syms_of_print):
593 * minibuf.c (syms_of_minibuf):
594 * macros.c (syms_of_macros):
595 * keymap.c (syms_of_keymap, initial_define_key)
596 (initial_define_lispy_key):
597 * keyboard.c (syms_of_keyboard):
598 * insdel.c (syms_of_insdel):
599 * image.c (syms_of_image):
600 * fringe.c (syms_of_fringe):
601 * frame.c (syms_of_frame):
602 * fontset.c (syms_of_fontset):
603 * fns.c (syms_of_fns):
604 * fns.c (syms_of_fns):
605 * fileio.c (syms_of_fileio):
606 * fileio.c (syms_of_fileio):
607 * eval.c (syms_of_eval):
608 * doc.c (syms_of_doc):
609 * dispnew.c (syms_of_display):
610 * dired.c (syms_of_dired):
611 * dbusbind.c (syms_of_dbusbind):
612 * data.c (syms_of_data):
613 * composite.c (syms_of_composite):
614 * coding.c (syms_of_coding):
615 * cmds.c (syms_of_cmds):
616 * charset.c (define_charset_internal, syms_of_character):
617 * ccl.c (syms_of_ccl):
618 * category.c (syms_of_category, init_category_once):
619 * casetab.c (syms_of_casetab):
620 * casefiddle.c (syms_of_casefiddle):
621 * callint.c (syms_of_callint):
622 * bytecode.c (syms_of_bytecode):
623 * buffer.c (keys_of_buffer, syms_of_buffer):
624 * alloc.c (syms_of_alloc):
625 * process.c (syms_of_process, init_process):
626 * lread.c (syms_of_lread, init_obarray):
627 * font.c (build_style_table):
628 * emacs.c (syms_of_emacs, main): Replace calls to intern with
629 intern_c_string, calls to make_pure_string with
630 make_pure_c_string. Use pure_cons instead of Fcons.
631
5e2327cf
DN
632 * process.c (socket_options): Make it const.
633 (set_socket_option, init_process): Use a const pointer.
634
635 * lread.c (intern_c_string): New function.
636 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
637 (defvar_int): Uset it. Make the name const char*.
638
639 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
640 (defvar_int): Update prototypes.
641 (DEFUN, EXFUN): Support for prototypes is now required.
642 (intern_c_string): New prototype.
643 (struct Lisp_Subr): Make symbol_name constant.
644
645 * font.c (struct table_entry): Remove unused member. Make NAMES
646 constant.
647 (weight_table, slant_table, width_table): Make constant.
648
649 * emacs.c (struct standard_args): Make name and longname constant.
650
651 * character.h (DEFSYM): Use intern_c_string.
652
a56eaaef
DN
6532009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
654
655 * alloc.c (make_pure_c_string): New function.
656
657 * eval.c (Fautoload): Purecopy all arguments.
658
f6a07420
KH
6592009-11-05 Kenichi Handa <handa@m17n.org>
660
661 * fileio.c (Finsert_file_contents): Be sure set coding-system of
662 the buffer in case of replace.
663
5d28d4b1
DN
6642009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
665
666 * puresize.h (BASE_PURESIZE): Increase to 1620000.
667
b349d111
SM
6682009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
669
d528b1ce
SM
670 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
671 when applicable (bug#4851).
672
b349d111
SM
673 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
674 (P_): Support for prototypes is now required.
675
c38eb027
CY
6762009-10-31 Chong Yidong <cyd@stupidchicken.com>
677
678 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
679 (Bug#4827).
680
0405f8d9
EZ
6812009-10-30 Eli Zaretskii <eliz@gnu.org>
682
d528b1ce 683 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 684
ca0a881a
DN
6852009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
686
687 * puresize.h (BASE_PURESIZE): Increase to 1470000.
688
d528b1ce
SM
689 * lread.c (Fload): Purecopy the file name when building
690 Vpreloaded_file_list.
ca0a881a 691
47e0e0e4
JR
6922009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
693
694 * w32fns.c (syms_of_w32fns): Change default value of
695 w32-scroll-lock-modifier to nil. (Bug#2827)
696
057bce6f
JB
6972009-10-26 Juanma Barranquero <lekktu@gmail.com>
698
782a943e 699 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 700
242bc74c
AS
7012009-10-26 Andreas Schwab <schwab@redhat.com>
702
703 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
704
522d013a
JB
7052009-10-26 Juanma Barranquero <lekktu@gmail.com>
706
707 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
708 For delta < 0, skip check that only makes sense when the mini-window
709 is going to be enlarged. (Bug#4534)
710
18060980
CY
7112009-10-25 Chong Yidong <cyd@stupidchicken.com>
712
713 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
714 string in menu maps (Bug#4471).
715
fec8f0fe
CY
7162009-10-24 Chong Yidong <cyd@stupidchicken.com>
717
718 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
719 FRAME_NS_VIEW on terminal frames (Bug#4765).
720
10d66ec0
AS
7212009-10-24 Andreas Schwab <schwab@linux-m68k.org>
722
1cae01f7
AS
723 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
724 DBUS_TYPE_UINTnn separately to get proper sign extension.
725
58a12889
AS
726 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
727 can properly handle unsigned types.
d528b1ce 728 (make_uid, make_gid): Remove.
58a12889 729
987c9327
AS
730 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
731 types again.
732
522d013a 733 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
734 (system_process_attributes): Likewise.
735
905a9ed3
DN
7362009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
737
738 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
739
740 * eval.c (Fautoload): Purecopy the filename. Simplify.
741
742 * category.c (Fdefine_category): Purecopy docstring.
743
a599b3e8
AS
7442009-10-23 Andreas Schwab <schwab@linux-m68k.org>
745
7b792fc9
AS
746 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
747
a599b3e8
AS
748 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
749
b35ac83e
CY
7502009-10-23 Chong Yidong <cyd@stupidchicken.com>
751
752 * window.c (Fwindow_edges, Fwindow_pixel_edges)
753 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
754 (Bug#4775).
755
e8903e00
SM
7562009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
757
758 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
759 (init_fileio_once):
760 * lisp.h (init_fileio_once): Remove.
761 * emacs.c (main): Don't call init_fileio_once.
762
8f43cbf3
DN
7632009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
764
765 * puresize.h (BASE_PURESIZE): Increase to 1430000.
766
26898943
AS
7672009-10-21 Andreas Schwab <schwab@linux-m68k.org>
768
769 * doprnt.c (doprnt): Fix overflow check.
770
5c646d5a
JD
7712009-10-21 Jan Djärv <jan.h.d@swipnet.se>
772
3132a7ea
JD
773 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
774
5c646d5a
JD
775 * xterm.h (x_wait_for_event): Declare it.
776
777 * xterm.c (pending_event_wait): New variable.
778 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
779 see pending_event_wait.eventtype.
780 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
781 (x_new_font): Call change_frame_size with new rows/columns before we
782 try to resize the frame.
5c646d5a 783 (x_wait_for_event): New function.
d528b1ce
SM
784 (x_set_window_size_1): Don't change gravity unless change_gravity
785 is set.
5c646d5a
JD
786 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
787 don't change frame size, instead wait for the ConfigureNotify.
788 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
789 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
790 (x_initialize): Initialize pending_event_wait.
791
792 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
793 size.
794
795 * widget.c (EmacsFrameSetValues): Add comment.
796 (EmacsFrameSetCharSize): Just call x_set_window_size.
797
798 * gtkutil.c (xg_frame_set_char_size): Flush events and call
799 x_wait_for_event.
d528b1ce 800 (flush_and_sync): Remove again.
5c646d5a
JD
801 (xg_get_font_name): Suggest monospace if no previous font is known.
802
e9c1637d
SM
8032009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
804
805 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 806 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 807
5a72cccb
YM
8082009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
809
810 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
811 processing pending events when event is filtered for input method.
ab04798f 812 (Bug#3681)
5a72cccb 813
2629aa37
JB
8142009-10-20 Juanma Barranquero <lekktu@gmail.com>
815
816 * fns.c: Add #endif accidentally removed in previous change.
817
c3417a74
DN
8182009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
819
820 * fns.c: Remove code for unsupported system: MAC_OS.
821 * image.c: Likewise. Include setjmp.h.
822
9685cef2
JD
8232009-10-19 Jan Djärv <jan.h.d@swipnet.se>
824
825 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
826 pixel -1 (bug #4742).
827
d7306fe6
DN
8282009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
829
019d2c4c
DN
830 * process.c (create_pty): Remove conditionals for no longer
831 supported systems: UNIPLUS and RTU.
832
ee6bacd4
DN
833 * xterm.c:
834 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
835
d7306fe6
DN
836 * alloc.c: Do not define struct catchtag.
837 * eval.c: Move struct catchtag definition ...
838 * lisp.h: ... here.
839
840 * image.c: Move png.h #include earlier to avoid warnings.
841
842 * xterm.c:
843 * xsmfns.c:
844 * xselect.c:
845 * xrdb.c:
846 * xmenu.c:
847 * xftfont.c:
848 * xfont.c:
849 * xfns.c:
850 * xfaces.c:
851 * xdisp.c:
852 * window.c:
853 * widget.c:
854 * w32xfns.c:
855 * w32uniscribe.c:
856 * w32term.c:
857 * w32select.c:
858 * w32reg.c:
859 * w32proc.c:
860 * w32menu.c:
861 * w32inevt.c:
862 * w32heap.c:
863 * w32font.c:
864 * w32fns.c:
865 * w32console.c:
866 * w32.c:
867 * w16select.c:
868 * vm-limit.c:
869 * unexsol.c:
870 * unexec.c:
871 * unexcw.c:
872 * unexaix.c:
873 * undo.c:
874 * tparam.c:
875 * textprop.c:
876 * terminfo.c:
877 * terminal.c:
878 * termcap.c:
879 * term.c:
880 * syntax.c:
881 * sound.c:
882 * sheap.c:
883 * search.c:
884 * scroll.c:
885 * region-cache.c:
886 * regex.c:
887 * ralloc.c:
888 * process.c:
889 * print.c:
b024548b
DN
890 * nsterm.m:
891 * nsselect.m:
892 * nsmenu.m:
893 * nsimage.m:
894 * nsfont.m:
895 * nsfns.m:
d7306fe6
DN
896 * msdos.c:
897 * minibuf.c:
898 * menu.c:
899 * marker.c:
900 * macros.c:
901 * keymap.c:
902 * keyboard.c:
903 * intervals.c:
904 * insdel.c:
905 * indent.c:
906 * gtkutil.c:
907 * ftxfont.c:
908 * ftfont.c:
909 * fringe.c:
910 * frame.c:
911 * fontset.c:
912 * font.c:
913 * fns.c:
914 * floatfns.c:
915 * filelock.c:
916 * fileio.c:
917 * emacs.c:
918 * editfns.c:
919 * dosfns.c:
920 * doprnt.c:
921 * doc.c:
922 * dispnew.c:
923 * dired.c:
924 * dbusbind.c:
925 * data.c:
926 * composite.c:
927 * coding.c:
928 * cmds.c:
929 * cm.c:
930 * chartab.c:
931 * charset.c:
932 * character.c:
933 * ccl.c:
934 * category.c:
935 * casetab.c:
936 * casefiddle.c:
937 * callproc.c:
938 * callint.c:
939 * bytecode.c:
940 * buffer.c:
941 * atimer.c: Include setjmp.h. (Bug#4643)
942
fd5f21e6
SM
9432009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
944
4c0354d7
SM
945 Remove leftover table unibyte_to_multibyte_table.
946 * character.c (unibyte_to_multibyte_table): Remove.
947 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
948 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
949 * character.h (UNIBYTE_TO_CHAR): New macro.
950 (MAKE_CHAR_MULTIBYTE): Use it.
951 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
952 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
953 (message_dolog, set_message_1):
954 * search.c (Freplace_match):
955 * editfns.c (Fcompare_buffer_substrings):
956 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
957 (concat):
958 * insdel.c (copy_text, count_size_as_multibyte):
959 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
960 * term.c (produce_glyphs):
961 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
962 * regex.c (RE_CHAR_TO_MULTIBYTE):
963 * cmds.c (internal_self_insert):
964 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
965
fd5f21e6
SM
966 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
967
4418646e
DN
9682009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
969
970 * puresize.h (BASE_PURESIZE): Increase to 1310000.
971
35f5c1d2
JB
9722009-10-16 Juanma Barranquero <lekktu@gmail.com>
973
974 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
975
a0cd8f6b
AR
9762009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
977
978 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
979 still needed under Tiger.
980
981 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
982
983 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
984 __Apple__.
985
986 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
987
01a8d3fa
KH
9882009-10-15 Kenichi Handa <handa@m17n.org>
989
990 * print.c (print_object): Escape a symbol like "2E10" too.
991
bf6c75c9 9922009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
993
994 Cleanups and changes for 64-bit compile under Snow Leopard.
995 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
996
997 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
998
c5959062 999 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
1000 (ns_findfonts, nsfont_list_family): Use long format in printf, and
1001 cast argument.
1002 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 1003 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
1004
1005 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1006
1007 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1008 where appropriate.
1009
1010 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1011 where appropriate.
6e4780c5
JB
1012 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1013 Use stringWithUTF8String.
bf6c75c9
AR
1014 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1015
6e4780c5
JB
1016 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1017 Add formal protocol mention to inheritance.
bf6c75c9
AR
1018 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1019
6e4780c5
JB
1020 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1021 Fix printf format.
bf6c75c9
AR
1022 (ns_query_color): Use CGFloat where appropriate.
1023 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1024 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1025 argument.
1026
3d87f118
AR
1027 * config.in (NS_HAVE_NSINTEGER): Drop.
1028
a95c8102
AR
1029 * dbusbind.c (dbus-method-return-internal)
1030 (dbus-method-error-internal): Use long format in printf, and cast
1031 argument.
1032
1033 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1034 in printf, and cast argument.
1035
6873acca 1036 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1037 cast argument.
1038
9ec6f100
GM
10392009-10-11 Glenn Morris <rgm@gnu.org>
1040
1041 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1042
5be883cd
JD
10432009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1044
1045 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1046 menu bar with a small width so it doesn't enlarge the frame.
1047
d7a39b51
JB
10482009-10-08 Juanma Barranquero <lekktu@gmail.com>
1049
1050 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1051
0c2b6f8e
GM
10522009-10-06 Glenn Morris <rgm@gnu.org>
1053
1054 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1055 SOME_MACHINE_LISP (this enters indirectly via DOC).
1056
e02131a2
EZ
10572009-10-05 Eli Zaretskii <eliz@gnu.org>
1058
1059 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1060
b4744254
EZ
10612009-10-04 Eli Zaretskii <eliz@gnu.org>
1062
1063 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1064 Doc fix.
1065
dbf64827
JB
10662009-10-03 Martin Rudalics <rudalics@gmx.at>
1067
1068 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1069
e9a0aef8
MA
10702009-10-02 Michael Albinus <michael.albinus@gmx.de>
1071
d528b1ce 1072 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1073 used anymore outside fileio.c.
1074
1075 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1076
64eb2b56
JB
10772009-10-01 Juanma Barranquero <lekktu@gmail.com>
1078
1079 * lisp.h (Qdelete_directory_internal):
1080 Declare, instead of Qdelete_directory.
1081
1082 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1083
9d28c33e
SM
10842009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1085
1086 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1087
9d8f3bd9
MA
10882009-10-01 Michael Albinus <michael.albinus@gmx.de>
1089
9d28c33e 1090 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1091 Fdelete_directory. It is not a command anymore. It has no file
1092 name handler.
1093
9694740b
SM
10942009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1095
1096 * xdisp.c (get_next_display_element): Use an enum in last change.
1097
748e162f
KH
10982009-09-28 Kenichi Handa <handa@m17n.org>
1099
9694740b 1100 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1101 unibyte_display_via_language_environment in handling
1102 Vnobreak_char_display.
1103
17efd58d
AR
11042009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1105
1106 * nsterm.h (ns_app_name): New extern variable.
1107
1108 * nsterm.m (ns_app_name): New variable.
1109 (ns_term_init): Set and use it.
1110 (ns_term_shutdown): Use it.
1111
1112 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1113 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1114
1115 * nsfns.m (ns_set_name_iconic, ns_set_name)
1116 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1117 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1118
9694740b
SM
1119 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1120 Remove double-casting in client_data comparison.
31c2d412 1121
3208cb35
YM
11222009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1123
1124 * keyboard.c (make_lispy_event): Remember last wheel direction.
1125 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1126
b7d552d6
GM
11272009-09-26 Glenn Morris <rgm@gnu.org>
1128
1129 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1130 internal.elc. Add term/pc-win.elc.
1131 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1132 term/x-win.elc.
1133 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1134 term/w32-win.elc.
1135 (NS_SUPPORT): New.
1136 (lisp): Add NS_SUPPORT.
1137 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1138
4ff670a8
DR
11392009-09-25 David Reitter <david.reitter@gmail.com>
1140
1141 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1142 on Mac OS X 10.6+ (bug#4513).
1143
feabfb6c
JB
11442009-09-24 Juanma Barranquero <lekktu@gmail.com>
1145
1146 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1147 some parts of Emacs code (like font selection) don't grok them.
1148 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1149
de59072a
AS
11502009-09-24 Andreas Schwab <schwab@redhat.com>
1151
1152 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1153
a489517b
JB
11542009-09-24 Juanma Barranquero <lekktu@gmail.com>
1155
1156 * dired.c (Fdirectory_files): Fix typo in docstring.
1157
0592970c
AR
11582009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1159
1160 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1161 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1162 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1163 under GNUstep.
1164 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1165
1166 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1167 glyph advancement.
1168
48e8a88b
AR
11692009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1170
1171 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1172 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1173
1174 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1175 deleted (bug #4492).
1176
e14f0a78
AR
1177 * nsfont.m (Vns_reg_to_script): New lisp variable.
1178 (syms_of_nsfont): Declare it.
1179 (ns_registry_to_script): New function.
1180 (ns_get_req_script): Call it.
1181 (ns_findfonts): Don't give up on non-unicode registry.
1182
1183 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1184
5b650faa
SM
11852009-09-20 Tom Tromey <tromey@redhat.com>
1186
1187 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1188 batch mode (bug#4228).
1189
a489517b 11902009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1191
1192 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1193 carefully. (Bug #4339)
0bae4e09 1194
fcfe06f3
CY
11952009-09-18 Chong Yidong <cyd@stupidchicken.com>
1196
d798ba87 1197 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1198
31642728
AR
11992009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1200
1201 * emacs.c (inhibit_x_resources): Update doc string for NS.
1202 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1203 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1204
1205 * nsterm.h (ns_no_defaults): Remove.
1206
1207 * nsterm.m (ns_no_defaults): Remove.
1208 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1209 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1210 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1211 don't update the NSWindow itself.
1212 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1213 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1214
1215 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1216 ns_use_qd_smoothing.
1217
1218 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1219 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1220 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1221 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1222
8686ac71
JB
12232009-09-17 Juanma Barranquero <lekktu@gmail.com>
1224
1225 * emacs.c (inhibit_x_resources): New variable.
1226 (main) [HAVE_NS]: Don't process --quick command line option.
1227 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1228
1229 * lisp.h (inhibit_x_resources): Declare it extern.
1230
1231 * w32reg.c (x_get_string_resource):
1232 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1233
e227ba05
EZ
12342009-09-17 Eli Zaretskii <eliz@gnu.org>
1235
362654a6
JB
1236 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1237 Add lisp/term/internal.elc.
e227ba05 1238
742d40e8
SM
12392009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1240
1241 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1242 (bug#4461).
1243
005bd5a2
DN
12442009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1245
1246 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1247
1248 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1249 (OBJECTS_MACHINE): Remove, unused.
1250
f9af9719
SM
12512009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1252
1253 * frame.c (x_get_resource_string): Remove unused.
1254
0307c7d2
JD
12552009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1256
1257 * xterm.c (x_new_font): Call change_frame_size before calling
1258 x_set_window_size, in case frame size won't change.
1259
1260 * frame.c (x_set_font): Remove dead code.
1261
428b13d6
SM
12622009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1263
1264 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1265
5766c380
SM
12662009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1267
1268 * lread.c (Fload): Don't output a message after loading an obsolete
1269 package any more (done in Lisp now).
1270
2fd0161b
CY
12712009-09-12 Chong Yidong <cyd@stupidchicken.com>
1272
1273 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1274
bc5e75b6
SM
12752009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1276
1277 * keymap.c (Fwhere_is_internal): Use nconc2.
1278
c31c985e
AM
12792009-09-11 Alan Mackenzie <acm@muc.de>
1280
1281 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1282 batch mode.
1283
78012bd2
AS
12842009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1285
1286 * xdisp.c (display_mode_element): Detect cycles.
1287
9d889332
SM
12882009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1289
1290 * keymap.c (where_is_internal): Don't erroneously return nil right after
1291 filling the cache.
1292 (where_is_internal_1): Fix up typo.
1293
7ab5d780
GM
12942009-09-11 Glenn Morris <rgm@gnu.org>
1295
1296 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1297 share a common doc-string.
1298
5238a749
SM
12992009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1300
66d77eda
SM
1301 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1302 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1303
5238a749
SM
1304 * keymap.c (QCadvertised_binding): New constant.
1305 (syms_of_keymap): Initialize it.
1306 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1307 if applicable.
1308
19f48442
SM
13092009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1310
50d4ba39
SM
1311 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1312 (parse_menu_item): Streamline since bindings are recomputed all the
1313 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1314 more and don't support lmenu's menu-alias any more either.
1315
a88a5372
SM
1316 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1317 (where_is_internal): Strip it down to only traverse the keymaps.
1318 Move the cache handling from Fwhere_is_internal to here.
1319 (Fwhere_is_internal): Move the handling of remapping and the choice of
1320 the best binding from where_is_internal to here.
1321 Unify the cached/noncached paths, so remapping is also handled
1322 correctly when the cache is used, and so the cache can be used to
1323 speed up remap-handling when applicable.
1324 Give preference to non-remapped bindings.
1325 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1326 non-remapped bindings.
1327 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1328 command remapping.
1329
19f48442
SM
1330 * xdisp.c (display_mode_element): Move list length limit from 50 to
1331 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1332
599498c3 13332009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1334
1335 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1336
f9b7b5ac
SM
13372009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1338
a53af587
JB
1339 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1340 (Bug#4334)
1341
f9b7b5ac
SM
1342 * keymap.c (where_is_internal): Filter out shadowed remappings.
1343 Assume that where_is_internal returns unshadowed bindings to simplify
1344 the code and get rid of the gotos. Use ASIZE.
1345
04f4b72d
JD
13462009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1347
4da146f2
JD
1348 * xterm.c (x_focus_changed): If we get a focusout and pointer
1349 is invisible, make it visible.
1350
04f4b72d
JD
1351 * xterm.h: Remove condition for declaration of
1352 x_*_window_to_frame.
1353
7cef7ce3
SM
13542009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1355
1356 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1357 initial terminal as well.
1358
a54fa5b7
JD
13592009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1360
1361 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1362 x_menubar_window_to_frame.
a54fa5b7
JD
1363
1364 * xterm.c: Remove declarations also in xterm.h
1365 (XTmouse_position): Do not return valid positions
1366 for clicks in the menubar and the toolbar for Gtk+.
1367
1368 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1369 if the widget for the event has the same top level as a frame,
1370 return the frame.
1371 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1372 internal windows, bug #4122.
1373 (x_non_menubar_window_to_frame): Remove.
1374
5a021dd0
GM
13752009-09-02 Glenn Morris <rgm@gnu.org>
1376
1377 * buffer.c (default-major-mode): Move most of the doc from here...
1378 (major-mode): ... to here.
1379
548fe2f3
NR
13802009-08-30 Nick Roberts <nickrob@snap.net.nz>
1381
1382 * process.c (wait_reading_process_output): Keep the descriptor
1383 when pty is used by a non-child process, e.g., in I/O buffer of
1384 GDB this allows inferior to be restarted.
1385
e0840eef
EZ
13862009-08-29 Eli Zaretskii <eliz@gnu.org>
1387
1388 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1389 both branches into one.
1390
82e98df4
SM
13912009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1392
1393 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1394 (main): Use enable-multibyte-characters rather than
1395 default-enable-multibyte-characters. Output a warning message when
1396 running a unibyte session.
1397
890617cb
YM
13982009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1399
1400 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1401 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1402 (copy_data_segment): Also copy __program_vars section.
1403 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1404 (dump_it) [LC_DYLD_INFO]: Use it.
1405
1406 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1407
e7adeadc
EZ
14082009-08-28 Eli Zaretskii <eliz@gnu.org>
1409
1410 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1411 $(SRC)/buildobj.h.
1412 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1413 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1414 $(SRC)/buildobj.h.
1415 (clean): Add buildobj.h.
1416
3ed8bbdc
TZ
14172009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1418
1419 * print.c (print_object): Set escapeflag to 1 when printing
1420 hashtable keys and values.
1421
155a6764
SM
14222009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1423
1424 * lread.c (read_integer): Use doubles (and potentially return a float
1425 number) as we do in string-to-number.
1426 (read1): Use strtol to read integers, signal errors on strtol's
1427 overflow and use floats if strtol's output is too large for
1428 Elisp integers.
1429
877610de
EZ
14302009-08-27 Eli Zaretskii <eliz@gnu.org>
1431
1432 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1433 (make-buildobj-SH): Fix last change.
1434 (SRC): Move to before where it's first used.
1435
ef73e7be
KH
14362009-08-27 Kenichi Handa <handa@m17n.org>
1437
550c8289
KH
1438 * process.c (send_process): Use encode_coding_object instead of
1439 encode_coding_string to perform eol-conversion even if the string
1440 is unibyte.
1441
60afa08d
KH
1442 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1443 character.
1444
ef73e7be 1445 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1446 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1447
7b3a82d7
DN
14482009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1449
5654bf63
DN
1450 * callproc.c (Fcall_process): Remove always true #if.
1451
7b3a82d7
DN
1452 * lisp.h: Replace #if 0 code for checking with text pointing to
1453 the --enable-checking configure flag.
1454
1455 * emacs.c (main): Mention the --enable-profiling configure flag
1456 instead of using CFLAGS.
1457
878bde49
KR
14582009-08-26 Ken Raeburn <raeburn@raeburn.org>
1459
1460 * Makefile.in (buildobj.h): New target.
1461 (doc.o): Depend on it.
1462 (temacs${EXEEXT}): Don't generate buildobj.lst.
1463 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1464 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1465 ($(BLD)/doc.$(O)): Depend on it.
1466 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1467 provided by Eli Zaretskii.)
1468 ($(TEMACS)): Don't generate buildobj.lst.
1469 * doc.c: Include buildobj.h.
1470 (buildobj): New static variable.
1471 (Fsnarf_documentation): Use it, instead of opening and reading
1472 buildobj.lst.
1473
1574224c
MA
14742009-08-25 Michael Albinus <michael.albinus@gmx.de>
1475
1476 * dbusbind.c (Fdbus_call_method)
1477 (Fdbus_call_method_asynchronously): Use English numeric format for
1478 timeout values in doc string.
1479
d9da2f45
KH
14802009-08-25 Kenichi Handa <handa@m17n.org>
1481
ef73e7be
KH
1482 * alloc.c (mark_char_table): New function.
1483 (mark_object): Use mark_char_table for a char-table.
1484
d9da2f45
KH
1485 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1486 (CHAR_TABLE_REF): Use it.
1487
c8edcc01
KR
14882009-08-23 Ken Raeburn <raeburn@raeburn.org>
1489
1490 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1491 before invoking the newly build emacs to check for load-path
1492 shadowing.
1493
7763401b
GM
14942009-08-22 Glenn Morris <rgm@gnu.org>
1495
1496 * Makefile.in (bootstrap_exe): New variable.
1497 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1498 Use ${bootstrap_exe}.
1499
729eadda
EZ
15002009-08-22 Eli Zaretskii <eliz@gnu.org>
1501
1502 * coding.h (encode_coding_string): Don't encode unibyte strings.
1503 (Bug#4047)
1504
eb4c6ace
MA
15052009-08-22 Michael Albinus <michael.albinus@gmx.de>
1506
1507 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1508
1509 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1510 intended as hotfix only.
1511 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1512
36e34d1b
AR
15132009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1514
1515 * nsterm.m (ns_get_color): Update documentation properly for last
1516 change, and clean up loose ends in the code left by it. Fix
1517 longstanding bug with 16-bit hex parsing, and add support for
1518 yet another X11 format (rgb:r/g/b) for compatibility.
1519 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1520 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1521
f983eb8a
SM
15222009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1523
1524 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1525
3f56d3c6
MA
15262009-08-20 Michael Albinus <michael.albinus@gmx.de>
1527
1528 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1529 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1530 (xd_initialize, xd_pending_messages): Check, whether
1531 $DBUS_SESSION_BUS_ADDRESS is set.
1532
fb641d68
YM
15332009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1534
1535 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1536
1537 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1538
cf59a374
GM
15392009-08-20 Glenn Morris <rgm@gnu.org>
1540
1541 * emacs.c (system-type): Doc fix.
1542
1373f3be
SM
15432009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1544
1545 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1546 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1547
058ed861
MA
15482009-08-18 Michael Albinus <michael.albinus@gmx.de>
1549
1373f3be
SM
1550 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1551 New functions.
058ed861
MA
1552 (xd_initialize): Revert change from 2009-08-16.
1553
563a866e 15542009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1555
1556 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1557 font-group vector, return nil.
5fc05db0 1558
e42bdf01
CY
15592009-08-17 Chong Yidong <cyd@stupidchicken.com>
1560
1561 * process.c (status_notify): Don't perform redisplay.
1562 (Fdelete_process, list_processes_1, process_send_signal):
1563 Expliticly perform redisplay.
1564 (wait_reading_process_output): Always check process status, but
1565 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1566
4230ab74
KR
15672009-08-17 Ken Raeburn <raeburn@raeburn.org>
1568
1373f3be 1569 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1570 (XFLOAT_INIT): New macro for storing a float value.
1571 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1572 * fns.c (sxhash): Copy out the value of a float in order to
1573 examine its bytes.
1574 * dbusbind.c (xd_append_arg): Likewise.
1575
4230ab74
KR
1576 * emacs.c (main): Don't call syms_of_data twice.
1577
a0645cdd
MA
15782009-08-16 Michael Albinus <michael.albinus@gmx.de>
1579
1580 * dbusbind.c (xd_initialize): Add connection file descriptor to
1581 input_wait_mask, in order to let select() detect, whether a new
1582 message has been arrived.
ca4f31ea 1583 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1584
485db0ba
MA
15852009-08-15 Michael Albinus <michael.albinus@gmx.de>
1586
1373f3be
SM
1587 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1588 New functions.
485db0ba
MA
1589
1590 * lisp.h (xd_pending_messages): Declare.
1591
1592 * keyboard.c (readable_events): Call xd_pending_messages.
1593
b5b98ff4
CY
15942009-08-15 Chong Yidong <cyd@stupidchicken.com>
1595
1373f3be 1596 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1597
f8354c6e
CY
1598 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1599
b5b98ff4
CY
1600 * buffer.c (set_buffer_internal_1)
1601 (swap_out_buffer_local_variables): Check for unbound local
1602 variables (Bug#4138).
1603
8b9fc636
EZ
16042009-08-14 Eli Zaretskii <eliz@gnu.org>
1605
1606 * process.c (create_pty): Fix last change.
1607
ce959360
CY
16082009-08-13 Chong Yidong <cyd@stupidchicken.com>
1609
1610 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1611 (xbm_load_image): Caller changed.
64b807c9 1612 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1613
c7baf7e9
NR
16142009-08-13 Nick Roberts <nickrob@snap.net.nz>
1615
1616 * process.c (create_pty): New function.
1617 (Fstart_process): Use it to allow Emacs to just associate a pty
1618 with the buffer. See associated change in gdb-mi.el.
1619 (list_processes_1): Deal with no program name.
1620 (start_process_unwind): Use pid == -2 to mean no process.
1621
1ac9108a
SM
16222009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1623
1624 * cmds.c (nonundocount): New global variable.
1625 (keys_of_cmds): Initialize it.
1626 (Fself_insert_command): Use it to combine upto 20 sequential chars
1627 into a single undo entry, just like the Qself_insert_command code in
1628 keyboard.c does.
1629 Call frame_make_pointer_invisible, also like the Qself_insert_command
1630 code in keyboard.c does.
1631 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1632 than its own local replacement for it.
1633
e267324c
KR
16342009-08-10 Ken Raeburn <raeburn@raeburn.org>
1635
1ac9108a 1636 * fns.c (concat): Don't re-set string length to its current value.
77437343 1637
1ac9108a
SM
1638 * coding.h (decode_coding_string, encode_coding_string):
1639 Use SBYTES macro.
f0bed503 1640
1ac9108a 1641 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1642 (doprnt): Merge with doprnt1, discarding lispstrings code.
1643 * lisp.h (doprnt_lisp): Don't declare.
1644
416e006d
JL
16452009-08-07 Juri Linkov <juri@jurta.org>
1646
1647 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1648
6f7d5780
DN
16492009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1650
1651 * print.c (syms_of_print): Undo previous change.
1652
f19a0f5b
TZ
16532009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1654
1655 * lread.c (read1, syms_of_lread): Read hashtables back from the
1656 readable format.
1657
1658 * print.c (print_preprocess, print_object): Print hashtables fully
1659 and readably.
1660 (syms_of_print): Provide 'hashtable-print-readable.
1661
b9173dc2
AR
16622009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1663
1664 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1665 no family set.
1666 (nsfont_open): Handle case when entity has no family.
1667
1586503c
AR
16682009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1669
1670 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1671 element, not a list, for match case.
1672
087048cd
KH
16732009-07-28 Kenichi Handa <handa@m17n.org>
1674
1675 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1676 rigidly.
1677
1678 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1679 font_parse_xlfd. Check font properties more rigidly.
1680
780c2506
DN
16812009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1682
31fd7c5c
JB
1683 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1684 bsd-common.h.
780c2506 1685
a8c0cc18
KH
16862009-07-27 Kenichi Handa <handa@m17n.org>
1687
1688 * xfaces.c (face_with_height): Call font_clear_prop.
1689
4fbe2306
CY
16902009-07-26 Chong Yidong <cyd@stupidchicken.com>
1691
111d9af3
CY
1692 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1693
1694 * xterm.c (x_term_init): Use Qx.
1695
4fbe2306
CY
1696 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1697
1ac9108a 1698 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1699 (ns_get_color): Revert 2009-07-16 change.
1700
beb0b7f9
EZ
17012009-07-25 Eli Zaretskii <eliz@gnu.org>
1702
1703 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1704 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1705
2baf5e76
KR
17062009-07-25 Ken Raeburn <raeburn@raeburn.org>
1707
1ac9108a
SM
1708 * coding.h (decode_coding_string, encode_coding_string):
1709 Use SCHARS macro.
8890e5f5 1710
2baf5e76 1711 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1712 (load_depth): Delete.
2baf5e76
KR
1713 (Qload_in_progress): New variable.
1714 (load_unwind): Don't reference load_depth or load_in_progress.
1715 (Fload): Likewise; specbind Qload_in_progress instead.
1716 (init_lread): Don't initialize load_depth.
1717 (syms_of_lread): Initialize and protect Qload_in_progress.
1718
1395c6f5
AR
17192009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1720
1721 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1722
4e2f36cf
AR
17232009-07-23 Yavor Doganov <yavor@gnu.org>
1724
1725 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1726
5dd9a6f7
AR
17272009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1728
1729 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1730 Bugs 3792, 3720, 2402.
1731 (ns_lookup_indexed_color): Check for bad index.
1732 (ns_index_color): Init unused slot to 0.
1733 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1734 Bug 3714, possibly 3082.
5dd9a6f7 1735
c902b920
JR
17362009-07-22 Jason Rumney <jasonr@gnu.org>
1737
1ac9108a
SM
1738 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1739 Position IME window at cursor (Bug#2570).
c902b920
JR
1740 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1741 (globals_of_w32fns): Dynamically load functions required above.
1742
1743 * w32term.c (w32_draw_window_cursor): Send message to reposition
1744 any IME window.
1745
090101cf
CY
17462009-07-21 Chong Yidong <cyd@stupidchicken.com>
1747
1748 * fileio.c: Revert 2009-07-16 changes.
1749 (Vauto_save_include_big_deletions): New variable.
1750 (Fdo_auto_save): Disable auto-save only if
1751 auto-save-include-big-deletions is nil.
1752
e6583e3d
CY
17532009-07-21 Chong Yidong <cyd@stupidchicken.com>
1754
1755 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1756 the overflowed pixels into account (Bug#3879).
1757
ece435a5
KR
17582009-07-21 Ken Raeburn <raeburn@raeburn.org>
1759
1760 * lread.c (load_depth): New variable.
1761 (Fload, load_unwind, init_lread): Set it to the load recursion
1762 depth; set load_in_progress as a simple boolean based on the
1763 current load_depth. (Bug#3892)
1764
40b2d973
AR
17652009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1766
1767 * nsfont.m (ns_has_attribute): Remove.
1768 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1769
10be7e0d
JL
17702009-07-18 Juri Linkov <juri@jurta.org>
1771
1772 * process.c (Fset_process_query_on_exit_flag): Mention killing
1773 a buffer in docstring.
1774
fa055055
KH
17752009-07-17 Kenichi Handa <handa@m17n.org>
1776
1777 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1778
042f7b69
YM
17792009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1780
1781 * nsfns.m (Fns_set_alpha): Remove function.
1782 (syms_of_nsfns): Don't defsubr it.
1783
1784 * nsterm.m (ns_get_color): Remove incompatible color formats.
1785 (ns_color_to_lisp): Generate #rrggbb color format string.
1786
4be941e3
RS
17872009-07-16 Richard Stallman <rms@gnu.org>
1788
1789 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1790 (Fset_buffer_auto_saved): Handle save_length = -2.
1791
4e6b227d
CY
17922009-07-16 Chong Yidong <cyd@stupidchicken.com>
1793
1794 * xterm.c (Qx_gtk_map_stock): New var.
1795
1796 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1797 of calling intern each time.
1798
a1856973
YM
17992009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1800
1801 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1802 does tiling.
1803
1804 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1805
497e54d8
KH
18062009-07-14 Kenichi Handa <handa@m17n.org>
1807
72d36834
KH
1808 * font.c (font_vconcat_entity_vectors): New function.
1809 (struct font_sort_data): New member font_driver_preference.
1810 (font_compare): Check font_driver_preference.
1811 (font_sort_entities): The format of the first argument changed.
1812 (font_delete_unmatched): Likewise.
1813 (font_list_entities): The return type changed.
1814 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1815 (font_find_for_lface): Adjuste for the above changes.
1816 Don't suppress the checking of C even if the repertory supports it.
1817 (Flist_fonts): Adjust for the above changes.
72d36834 1818
1ac9108a
SM
1819 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1820 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1821 Reject a font who has adstyle property that is different from a
1822 langname derived from registry property.
1ac9108a 1823 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1824
b6046155
EZ
18252009-07-13 Eli Zaretskii <eliz@gnu.org>
1826
1827 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1828 local copy of dirfilename.
1829
fb6b6049
KH
18302009-07-13 Kenichi Handa <handa@m17n.org>
1831
e2402a5e
KH
1832 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1833 against max_char.
1834
fb6b6049
KH
1835 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1836 calling XSYMBOL (sym).
1837
65156807
EZ
18382009-07-11 Eli Zaretskii <eliz@gnu.org>
1839
1ac9108a
SM
1840 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1841 New function.
1842 (directory_files_internal) [WINDOWSNT]:
1843 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1844 the filesystem of the directory is fast or slow.
1845
1846 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1847 file name.
1848 (is_slow_fs): New function.
1849 (stat): Use it to determine whether to issue more system calls to
1850 get accurate file attributes, when w32-get-true-file-attributes is
1851 `local'.
1852
e0ab5fcf
JD
18532009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1854
1855 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1856 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1857 parameter font-parameter as default to the font dialog.
1858
784ceded
KH
18592009-07-10 Kenichi Handa <handa@m17n.org>
1860
1861 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1862
fb8edc0b
EZ
18632009-07-09 Eli Zaretskii <eliz@gnu.org>
1864
1ac9108a 1865 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1866
fb8edc0b
EZ
1867 * w32.c (stat): Treat UNC file names as residing on remote
1868 drives. (Bug#3542)
1869
635c75b1
KH
18702009-07-09 Kenichi Handa <handa@m17n.org>
1871
1872 * fontset.c (fontset_find_font): Fix previous change.
1873
c1d5ce94
MA
18742009-07-08 Michael Albinus <michael.albinus@gmx.de>
1875
1876 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1877 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1878 error flag.
1879
edb61b39
KH
18802009-07-08 Kenichi Handa <handa@m17n.org>
1881
374bf7e4
KH
1882 * fontset.c (fontset_find_font): Fix the logic of handling
1883 charset_matched.
1884 (font_for_char): Delete unused var.
1885 (generate_ascii_font_name): Delete it.
1886
edb61b39
KH
1887 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1888
1889 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1890 (encode_coding_sjis): Fix the code range check.
1891
0f3f018c
CY
18922009-07-07 Chong Yidong <cyd@stupidchicken.com>
1893
1894 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1895 (Fexpand_file_name): Copy string data properly (Bug#3772).
1896
fcaf6f3a
JD
18972009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1898
1899 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1900 first MapNotify.
1901
6809ca75
KH
19022009-07-07 Kenichi Handa <handa@m17n.org>
1903
1904 * character.h (unibyte_has_multibyte_table): Delete extern.
1905 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1906
1907 * charset.c (Fset_charset_priority): Update charset_unibyte.
1908 (syms_of_charset): Initialize charset_unibyte.
1909
1910 * character.c (unibyte_has_multibyte_table): Delete it.
1911 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1912 charset_unibyte.
1913 (multibyte_char_to_unibyte_safe): Likewise.
1914 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1915
1ac9108a 1916 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1917 (x_produce_glyphs): Likewise.
1918
1919 * .gdbinit (xcharset): Fix the treating $arg0.
1920
ad9e2d54
EZ
19212009-07-04 Eli Zaretskii <eliz@gnu.org>
1922
1923 Emulation of `getloadavg' on MS-Windows.
1924 * w32.c: Include float.h
1925 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1926 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1927 (get_native_system_info, get_system_times): New functions.
1928 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1929 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1930 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1931 g_b_init_get_system_times, and num_of_processors.
1932
0a3472c7
JR
19332009-07-03 Jason Rumney <jasonr@gnu.org>
1934
1935 * w32term.c (w32_initialize): Use standard types.
1936
80904120
EZ
19372009-07-03 Eli Zaretskii <eliz@gnu.org>
1938
1939 * dired.c (Ffile_attributes): Decode user and group names by the
1940 locale's encoding. (Bug#3443)
1941
6978862d
DN
19422009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1943
f8d23104
DN
1944 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1945 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1946
1947 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1948
1949 * term.c (init_tty): Remove spurious #ifdef.
1950
6978862d
DN
1951 * m/mips.h: Mention this file is also used for netbsd.
1952 * m/pmax.h: Remove file.
1953
e044e4fc
JD
19542009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1955
1956 * xterm.h (struct x_display_info): Add invisible_cursor.
1957 (struct x_output): Add current_cursor.
1958
1959 * xterm.c (XTtoggle_invisible_pointer): New function.
1960 (x_define_frame_cursor): Don't define cursor if invisible or the
1961 same as before. Set current_cursor.
1962 (x_create_terminal): Set toggle_invisible_pointer_hook.
1963
1964 * xfns.c (make_invisible_cursor): New function.
1965 (x_set_mouse_color): Call make_invisible_cursor.
1966 Set current_cursor.
1967 (x_window): Set current_cursor.
1968
1969 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1970
1971 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1972 inserting a character.
1973 (read_avail_input): Call frame_make_pointer_visible.
1974
1975 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1976 (frame_make_pointer_invisible, frame_make_pointer_visible):
1977 New functions.
e044e4fc
JD
1978 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1979
1980 * frame.h: Declare frame_make_pointer_invisible and
1981 frame_make_pointer_visible.
1982 (struct frame): Add pointer_invisible.
1983
574c8efa
JD
19842009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1985
7b507248
JD
1986 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1987 frame isn't visible.
1988 (xg_frame_resized): If width/height is -1, get size of window
1989 from X server.
1990
1991 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1992 for MapNotify.
1993
835bdaa7 1994 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1995 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1996 (flush_and_sync): Reintroduce.
574c8efa 1997
3f1c6666 19982009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1999
31fd7c5c 2000 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
2001
2002 * xterm.c (x_handle_net_wm_state): Also look for sticky.
2003 (x_term_init): Initialize Xatom_net_wm_state_sticky.
2004
2005 * frame.h: Declare Qsticky.
2006
cad9ef74
JD
2007 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2008
2009 * nsfns.m (ns_frame_parm_handlers): Ditto.
2010
2011 * frame.c: Declare Qsticky.
2012 (frame_parms): Add sticky.
2013
2014 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2015
2016 * xterm.h: Declare x_set_sticky.
2017
2018 * xterm.c (x_set_sticky): New function.
2019
69b16610
JD
2020 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2021 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2022 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2023
2024 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2025
2026 * frame.c: Qmaximized is new.
2027 (x_set_frame_parameters): Do not handle fullscreen specially.
2028 Only set width and height if explicitly set.
2029 (x_set_fullscreen): Handle Qmaximized.
2030 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2031 (syms_of_frame): Initialize Qmaximized.
2032
1ac9108a
SM
2033 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2034 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2035
2036 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2037 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2038 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2039 set gravity to NorthWestGravity when USE_GTK.
2040 (set_wm_state): New function.
31fd7c5c 2041 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2042 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2043 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2044 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2045 to x_real_positions and x_fullscreen_adjust.
2046
2047 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2048 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2049 flush_and_sync.
2050 (xg_height_changed): New function.
2051 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2052 and gtk_window_set_policy. Set frame gravity after parsing the
2053 geometry string.
3f1c6666
JD
2054 (xg_update_frame_menubar, free_frame_menubar)
2055 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2056 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2057 Remove calls to xg_frame_set_char_size.
2058
fd503d99
KH
20592009-07-01 Kenichi Handa <handa@m17n.org>
2060
2061 * keyboard.c (decode_keyboard_code): New function.
2062 (tty_read_avail_input): Decode the input bytes if necessary.
2063
1ac9108a
SM
2064 * coding.c (setup_coding_system):
2065 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2066 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2067 use Qno_conversion.
2068
24ed93fb
YM
20692009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2070
2071 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2072
99061dfc
CY
20732009-06-30 Chong Yidong <cyd@stupidchicken.com>
2074
1ac9108a 2075 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2076
ff90fbde
JR
20772009-06-30 Jason Rumney <jasonr@gnu.org>
2078
2079 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2080 is already loaded.
2081 Set user model ID if supported (bug#1849).
2082
5f445726
JM
20832009-06-29 Jim Meyering <meyering@redhat.com>
2084
2085 Remove useless if-before-xfree test.
2086 * nsfont.m (nsfont_close): Remove useless test.
2087 * term.c (delete_tty): Likewise.
2088 * w32.c (system_process_attributes): Likewise.
2089 * w32font.c (w32font_close): Likewise.
2090 * xfaces.c (x_free_gc): Likewise.
2091 * xselect.c (buffer): Likewise.
2092
b9607587
AS
20932009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2094
2095 * process.c (send_process): Keep decoded string in a local
2096 variable and protect it from GC. (Bug#3521)
2097
89ba96f4
EZ
20982009-06-28 Eli Zaretskii <eliz@gnu.org>
2099
2100 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2101 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2102
098a1589
CY
21032009-06-28 Chong Yidong <cyd@stupidchicken.com>
2104
485422be
CY
2105 * xdisp.c (start_display, handle_face_prop)
2106 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2107 (redisplay_window, try_window_id, produce_image_glyph):
2108 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2109
098a1589
CY
2110 * xterm.c (x_update_window_begin, x_new_focus_frame)
2111 (x_scroll_bar_handle_click, handle_one_xevent)
2112 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2113 (x_make_frame_visible, x_make_frame_invisible)
2114 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2115 code chunks that are now obsolete.
2116
78c38319
MA
21172009-06-28 Michael Albinus <michael.albinus@gmx.de>
2118
2119 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2120 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2121 for hours, when optimzation is enabled.
2122 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2123 (xd_read_message): Make them static.
2124
4189ed40
CY
21252009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2126
2127 * term.c (turn_on_face): Allow simultaneously bold and dim
2128 terminal faces (Bug#3530).
2129
cd9b5e16
CY
21302009-06-27 Chong Yidong <cyd@stupidchicken.com>
2131
4e23bedb
CY
2132 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2133
cd9b5e16
CY
2134 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2135 truncation glyphs (Bug#3686).
2136
07cc3c35
GM
21372009-06-27 Glenn Morris <rgm@gnu.org>
2138
2139 * m/pmax.h: Restore file, with only netbsd portions.
2140
31fd7c5c 21412009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2142
cd9b5e16 2143 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2144
42d4a64f
KH
21452009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2146
2147 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2148 the arg FORCE_SYMBOL.
2149
930fe55b 21502009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2151
2152 * fontset.c (fontset_find_font): When a usable rfont_def is found
2153 in a fallback font-group, make it the first element of the group.
2154
57ebc3fd
CY
21552009-06-24 Chong Yidong <cyd@stupidchicken.com>
2156
2157 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2158
f084f942
KH
21592009-06-24 Kenichi Handa <handa@m17n.org>
2160
2161 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2162 set for C.
2163 (fontset_font): Record the availability of a font for C both in
2164 the realized fontsets of the current one and the default one.
2165
2f686c87
DN
21662009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2167
2168 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2169 conditional, it is always defined on AIX.
2170
666e158e
MB
21712009-06-23 Miles Bader <miles@gnu.org>
2172
2173 * window.c (Vrecenter_redisplay): New variable.
2174 (syms_of_window): Initialize it.
2175 (Qtty): New extern declaration.
2176 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2177
c6da7cd2
JM
21782009-06-23 Jim Meyering <meyering@redhat.com>
2179
1ac9108a
SM
2180 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2181 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2182 pointer dereferences are guaranteed to be valid.
c6da7cd2 2183
678dca3d
KH
21842009-06-23 Kenichi Handa <handa@m17n.org>
2185
74d75424
KH
2186 * emacs.c (main): Call init_font ().
2187
2188 * font.h (Vfont_log): Extern it.
2189 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2190
2191 * font.c (font_sort_entities, font_list_entities)
2192 (font_matching_entity, font_open_entity)
2193 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2194 (Vfont_log): Delete static.
2195 (font_log_env_checked): Delete this variable.
2196 (font_add_log): Don't check font_log_env_checked.
2197 (font_deferred_log): Check Vfont_log.
2198 (init_font): New function.
2199
678dca3d
KH
2200 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2201
2202 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2203
2204 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2205
2206 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2207
2208 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2209 (face_for_char): Don't call font_deferred_log here.
2210 (font_for_char): Likewise.
2211
8a668709
CY
22122009-06-22 Chong Yidong <cyd@stupidchicken.com>
2213
9a01ee33
CY
2214 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2215 rather than its background_width for drawing the overline and
2216 underline (Bug#489).
2217
2218 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2219 rather than its background_width for drawing the overline and
2220 underline (Bug#489).
ec7c9926
CY
2221 (xg_default_icon_file): New variable.
2222 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2223 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2224
8a668709
CY
2225 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2226 (load_overlay_strings): Remove externs.
2227 (fast_find_position): Function deleted.
2228 (mouse_face_from_buffer_pos): New function, based on
2229 fast_find_position. Correctly handle before-strings,
2230 display-strings, and after-strings (Bug#1220).
2231 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2232
4d4c02d8
CY
22332009-06-21 Chong Yidong <cyd@stupidchicken.com>
2234
1ac9108a 2235 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2236 (move_it_in_display_line_to, move_it_in_display_line_to)
2237 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2238
70243478
CY
22392009-06-21 Chong Yidong <cyd@stupidchicken.com>
2240
2241 * Branch for 23.1.
2242
13087e59
JR
22432009-06-21 Jason Rumney <jasonr@gnu.org>
2244
2245 * w32term.c (keyboard_codepage): New static variable.
2246 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2247 (w32_read_socket) [WM_CHAR]: Use it to decode character
2248 input (bug#3237).
2249 (w32_initialize): Initialize it.
2250 (codepage_for_locale): New function.
2251
4735b74e
KR
22522009-06-20 Ken Raeburn <raeburn@raeburn.org>
2253
2254 * process.c (status_message): Pass Faset index argument as a lisp
2255 object, so as to work with USE_LISP_UNION_TYPE.
2256
0e727afa
YM
22572009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2258
2259 * coding.c (Ffind_coding_systems_region_internal):
2260 Cache checked characters.
2261
cf299835
KH
22622009-06-18 Kenichi Handa <handa@m17n.org>
2263
1ac9108a 2264 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2265
90f20d94
AS
22662009-06-18 Andreas Schwab <aschwab@redhat.com>
2267
2268 * xdisp.c (redisplay_internal): Check that the frame is still
2269 live after redisplay of its windows.
2270 (redisplay_windows): Check that the window is still live.
2271
7f1faf1c
KH
22722009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2273
2274 * coding.c (detect_coding_utf_16): Fix previous change.
2275
cc13543e
KH
22762009-06-16 Kenichi Handa <handa@m17n.org>
2277
2278 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2279 UTF-16 by checking the dispersion of Eth and Oth bytes.
2280
977b85f4
AS
22812009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2282
2283 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2284
66bd43d1
KH
22852009-06-15 Kenichi Handa <handa@m17n.org>
2286
2287 * process.c (status_message): Fix previous change. Be sure to
2288 decode a localized string.
2289
cb5ca9c5
YM
22902009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2291
2292 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2293 add comment explaining why.
2294
ec7709ba 22952009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2296
ec7709ba 2297 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2298
4b7f335c
AR
22992009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2300
2301 * nsfont.m (ns_attribute_value): Remove.
2302 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2303 (ns_has_attribute): Shrink the normal range.
2304 (ns_findfonts): Don't worry about requested spec in determining
2305 need for synthItal.
e41820ee 2306 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2307
73b26103
SZ
23082009-06-14 Seiji Zenitani <zenitani@mac.com>
2309
2310 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2311
5753e4da
KH
23122009-06-11 Kenichi Handa <handa@m17n.org>
2313
2314 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2315 overhang for the static composition case.
2316
3561b671
KH
23172009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2318
5753e4da
KH
2319 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2320 overhang for the automatic composition case.
2321
3561b671
KH
2322 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2323 composition case.
2324
852bbd41
CY
23252009-06-10 Chong Yidong <cyd@stupidchicken.com>
2326
2327 * xdisp.c (get_next_display_element): When handling wrap-prefix
2328 and line-prefix, treat \n as a control character (bug#3502).
2329
9903d1e6
KH
23302009-06-10 Kenichi Handa <handa@m17n.org>
2331
2332 * font.c (font_parse_family_registry): Fix for one-char foundry.
2333 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2334
0bcbaaaa
CY
23352009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2336
2337 * process.c (status_message): Fix handling of multibyte signal
2338 string (Bug#3499).
2339
40aa3f13
JM
23402009-06-09 Jim Meyering <meyering@redhat.com>
2341
1f80c7e2
CY
2342 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2343 color name is missing.
40aa3f13 2344
72d51285
KH
23452009-06-09 Kenichi Handa <handa@m17n.org>
2346
2347 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2348 FROM-CODE and TO-CODE are codepoints of CHARSET.
2349
c1d04d84
AR
23502009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2351
2352 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2353
23542009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2355
2356 Changes to support :script/:lang/:otf in NS font driver.
2357 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2358 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2359 indicate not part of font driver interface, and change callers.
2360 (ns_get_family): Remove pointless null check.
2361 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2362 ns_spec_to_descriptor, ns_descriptor_to_entity.
2363 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2364 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2365 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2366 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2367 (ns_get_req_script, ns_accumulate_script_ranges)
2368 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2369 New functions.
2370 (nsfont_list, nsfont_match): Use ns_findfonts.
2371 (nsfont_open): Use font descriptor instead of traits.
2372 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2373 (dump_glyphstring): Rename to ns_dump_glyphstring.
2374
c7eb9816
AR
2375 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2376
c1d04d84
AR
2377 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2378
2379 * fontset.c (fontset_from_font): Remove NS-specific code.
2380
ec7709ba 23812009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2382
2383 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2384 nonactive windows.
2385
31fd7c5c 23862009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2387
1ac9108a 2388 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2389
68852c13 23902009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2391
2392 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2393
6756cd1d
CY
23942009-06-07 Chong Yidong <cyd@stupidchicken.com>
2395
2396 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2397 account for the overflowing of newlines into the last glyph on the
2398 display line (Bug#3482).
2399
28bf482a
DR
24002009-06-05 David Reitter <david.reitter@gmail.com>
2401
ec7709ba
JB
2402 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2403 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2404 Fns_selection_exists_p, Fns_selection_owner_p.
2405
fdb55376
JR
24062009-06-03 Jason Rumney <jasonr@gnu.org>
2407
2408 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2409 available. (Bug#3379)
2410
05129fbe
KH
24112009-05-29 Kenichi Handa <handa@m17n.org>
2412
1ac9108a
SM
2413 * coding.c (get_translation_table):
2414 Check Venable_character_translation.
05129fbe 2415
ec7709ba 24162009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2417
ec7709ba
JB
2418 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2419 (x_make_frame_visible): Move frame to front rather than calling
15891144 2420 ns_raise_frame().
ec7709ba 2421 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2422 isn't key window.
ec7709ba 2423 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2424 drawRect may be called by NSView even if the frame is hidden.
2425
ec7709ba
JB
2426 * nsfns.m (Fx_create_frame): Follow other ports in
2427 determining visibility; default to t. Ensure async_visible is set.
15891144 2428
21f73755
EZ
24292009-05-23 Eli Zaretskii <eliz@gnu.org>
2430
2431 * dired.c (Ffile_attributes): Doc fix.
2432
34001e41
CY
24332009-05-22 Chong Yidong <cyd@stupidchicken.com>
2434
2435 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2436
46306a17
SM
24372009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2438
2439 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2440 and xfont_scratch_props.
2441 (syms_of_xfont): Do it here instead.
2442 (xfont_find_ccl_program): Delete, unused.
2443 (xfont_open): Delete unused var `i'.
2444
ef6e0694
KH
24452009-05-21 Kenichi Handa <handa@m17n.org>
2446
2447 * fontset.c (Qlatin): Don't make it static.
2448
46306a17
SM
2449 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2450 New functions.
ef6e0694
KH
2451 (xfont_scripts_cache, xfont_scratch_props): New variables.
2452 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2453 (xfont_list_pattern): Argument changed. Callers changed.
2454 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2455 (xfont_list): Don't reject a font spec with :script property.
2456 (xfont_has_char): Fix setting of encoding.
2457 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2458 xfont_scratch_props.
2459
24602009-05-19 Kenichi Handa <handa@m17n.org>
2461
46306a17 2462 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2463 Callers changed.
2464
24652009-05-18 Kenichi Handa <handa@m17n.org>
2466
2467 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2468
ac71ced7
SM
24692009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2470
2471 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2472 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2473
1c6d1051
YM
24742009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2475
2476 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2477 (x_delete_terminal): Dissociate resource database from display and
2478 then call XrmDestroyDatabase before closing display.
2479
9b9b779c
AR
24802009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2481
2482 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2483 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2484 whether selected frame is viable before raising it (based on patch
2485 by David Reitter), and improve commentary.
2486 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2487
cccd42d5
KH
24882009-05-15 Kenichi Handa <handa@m17n.org>
2489
2490 * font.c (Ffont_spec): Check arguments.
2491
337fbd17
CY
24922009-05-14 Chong Yidong <cyd@stupidchicken.com>
2493
2494 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2495 weight when testing attributes (Bug#3282).
2496
47a6002f
JD
24972009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2498
2499 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2500 what we expect to get in the next ConfigureNotify event.
2501
9cb363db
YM
2502 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2503 before Xft one (Bug#1696).
2504
b9126609
CY
25052009-05-07 David Reitter <david.reitter@gmail.com>
2506
2507 * nsfns.m (Fx_display_planes): Compute bitplanes using
2508 NSBitsPerPixelFromDepth (Bug#3207).
2509
27a69fd9
CY
25102009-05-10 Chong Yidong <cyd@stupidchicken.com>
2511
2512 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2513
00f37552
TTN
25142009-05-10 Ulrich Mueller <ulm@gentoo.org>
2515
2516 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2517
2d82a920
DR
25182009-05-07 David Reitter <david.reitter@gmail.com>
2519
ec7709ba
JB
2520 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2521 Respect mouse face background.
2d82a920 2522
46b0d52d
DR
25232009-05-07 David Reitter <david.reitter@gmail.com>
2524
ec7709ba
JB
2525 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2526 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2527 in ns_update_begin and ns_update_end.
2528
ce1b23bb
SM
25292009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2530
5996e1b7
SM
2531 * nsfns.m (ns_get_screen): Rewrite.
2532 Don't presume selected-frame is of type `ns'.
2533
ba98e3a0
SM
2534 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2535 all drivers.
2536
ce1b23bb
SM
2537 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2538
bcda200f
YM
25392009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2540
2541 * keyboard.h (add_user_signal): Fix typo in extern.
2542
2543 * lisp.h (add_user_signal): Remove extern.
2544
2545 * unexelf.c (unexec): Consider a section to precede the .bss section
2546 if its addresses overlap that of .bss.
2547 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2548 instead of dumping process.
2549
864660a2
SM
25502009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2551
2552 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2553
50da4e56
SM
25542009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2555
2556 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2557
51520a1a
DN
25582009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2559
2560 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2561 any statements.
2562
409ea3a1
AS
25632009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2564
59c4c60f
AS
2565 * process.c (read_process_output): Make sure the current buffer is
2566 always restored.
2567
409ea3a1
AS
2568 * coding.c (record_conversion_result): Don't modify
2569 Vlast_code_conversion_error for successful result.
2570 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2571
56f00ed2
KH
25722009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2573
2574 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2575 (load_charset_map): Remove unnecessary code.
56f00ed2 2576
4491c9d2
DR
25772009-04-30 David Reitter <david.reitter@gmail.com>
2578
35f5b128 2579 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2580 through f24.
2581
6970f632
CY
25822009-04-30 Chong Yidong <cyd@stupidchicken.com>
2583
2584 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2585
2586 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2587 face_at_buffer_position.
2588 (face_before_or_after_it_pos, get_next_display_element)
2589 (note_mouse_highlight): Update face_at_buffer_position call.
2590
2591 * term.c (term_mouse_highlight):
2592 * msdos.c (IT_note_mouse_highlight):
2593 * fontset.c (Finternal_char_font):
35f5b128 2594 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2595
2596 * dispextern.h (face_at_buffer_position): Update prototype.
2597
0c616f63
KH
25982009-04-30 Kenichi Handa <handa@m17n.org>
2599
35f5b128 2600 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2601
ad3aaf33
AS
26022009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2603
2604 * callproc.c (Fcall_process): Fix GC protection. Make sure
2605 current buffer is always restored.
2606
c3c963a0
YM
26072009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2608
2609 * atimer.c (init_atimer): Also clear stopped_atimers.
2610
2611 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2612
7e3386cb
YM
2613 * process.c (create_process): Clean up merger residues of
2614 2008-07-17 change.
2615
91f68422
CY
26162009-04-29 Ulrich Mueller <ulm@gentoo.org>
2617
2618 * lread.c (Vread_circle): New variable.
2619 (read1): Disable recursive read if Vread_circle is nil.
2620
24b34550
KH
26212009-04-29 Kenichi Handa <handa@m17n.org>
2622
2623 * fontset.h (set_default_ascii_font): Delete extern.
2624
2625 * fontset.c (set_default_ascii_font): Delete this unused function.
2626
2627 * frame.c (x_set_font): When ARG is a font-object, check if the
2628 font-object matches with the ASCII font-spec of the frame's
9c358bda 2629 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2630
77bf07e1
AS
26312009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2632
2633 * fns.c (Flocale_info): Protect vector from GC during decoding.
2634
2635 * process.c (Fstart_process): Protect argv strings from GC during
2636 encoding.
2637
2c55aacf
AS
26382009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2639
2640 * sysdep.c: Include <ctype.h>.
2641
b892d3c9
DR
26422009-04-27 David Reitter <david.reitter@gmail.com>
2643
35f5b128 2644 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2645 Remove commented-out code.
2646
9d0644c4
JB
26472009-04-26 Johan Bockgård <bojohan@gnu.org>
2648
2649 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2650
b7053016
JR
26512009-04-25 Jason Rumney <jasonr@gnu.org>
2652
2653 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2654
4e8231f3
YM
26552009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2656
2657 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2658 Swap bytes in short integer if fringe bitmap width > 8.
2659
493dcf2c
KH
26602009-04-23 Kenichi Handa <handa@m17n.org>
2661
2662 * xfaces.c (Fx_list_fonts): If a font size is specified in
2663 PATTERN, set it in returned scalable fonts.
2664
401e9e57
CY
26652009-04-22 Chong Yidong <cyd@stupidchicken.com>
2666
708e05dc
CY
2667 * keyboard.c (Fset_input_meta_mode): Doc fix.
2668
2669 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2670
1ac9108a 2671 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2672
2673 * coding.c (Fterminal_coding_system): Doc fix.
2674
2675 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2676 (Fx_display_pixel_height, Fx_display_planes)
2677 (Fx_display_color_cells, Fx_server_max_request_size)
2678 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2679 (Fx_display_mm_height, Fx_display_mm_width)
2680 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2681 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2682 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2683 (check_x_display_info): Handle terminal objects instead of
2684 terminal ids.
2685
401e9e57
CY
2686 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2687 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2688 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2689 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2690
df80c7f0
KH
26912009-04-21 Kenichi Handa <handa@m17n.org>
2692
5a8f12af 2693 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2694 (font_score): Check AVGWIDTH too.
908567ef 2695
df80c7f0
KH
2696 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2697 worst case.
1ac9108a
SM
2698 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2699 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2700
705af33f
JR
27012009-04-19 Jason Rumney <jasonr@gnu.org>
2702
2703 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2704 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2705
2706 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2707 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2708 get_phys_cursor_geometry.
2709
b71ac3dd 2710 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2711 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2712 using get_phys_cursor_geometry.
2713
2714 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2715 correctly calculated.
2716
dc2933eb
JD
27172009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2718
1ac9108a
SM
2719 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2720 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2721 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2722 is deprecated.
2723
973e7849
AS
27242009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2725
2726 * font.c (font_put_frame_data): Use xfree instead of free.
2727
314d66f4
JB
27282009-04-17 Juanma Barranquero <lekktu@gmail.com>
2729
2730 * w32font.c (Qja, Qko): Remove declarations.
2731 (syms_of_w32font): Don't DEFSYM them.
2732
cf702558
CY
27332009-04-17 Chong Yidong <cyd@stupidchicken.com>
2734
2735 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2736
2737 * font.h (Qja, Qko): Extern them.
2738
2739 * ftfont.c (Qja, Qko): Remove declarations.
2740
2741 * xfont.c (Qja, Qko): Remove declarations.
2742
b50504f5
KH
27432009-04-17 Kenichi Handa <handa@m17n.org>
2744
bde25748
KH
2745 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2746 string from a vector to handle Latin-1 characters correctly.
2747
b50504f5
KH
2748 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2749 entity even if the cache hits.
2750
f4646fff
AS
27512009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2752
2753 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2754 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2755
e7deaab0
AS
2756 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2757 * lisp.h: Adjust prototypes.
2758
0a0e7d49
CY
27592009-04-16 Chong Yidong <cyd@stupidchicken.com>
2760
2761 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2762 change (Bug#3003).
2763
3c908a57
KH
27642009-04-16 Kenichi Handa <handa@m17n.org>
2765
1ac9108a 2766 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2767
2768 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2769 adstyle.
2770
2771 * ftfont.c (Qja, Qko): Don't make them static.
2772 (enum ftfont_cache_for): New enum.
2773 (fc_charset_table): Undo the previous change.
2774 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2775 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2776 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2777 non-scarable font, try to get AVERAGE_WIDTH.
2778 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2779 Change ft_face_cache from a list of a hash-table. Don't check
2780 `ja' and `ko' adstyle here.
2781 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2782 FTFONT_CACHE_FOR_CHARET.
2783 (ftfont_get_charset): Undo the previous change.
1ac9108a 2784 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2785 (ftfont_close): Likewise.
2786 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2787
2788 * font.c (font_sort_entites): Change the meaning of the arg
2789 BEST-ONLY. Don't optimize for VEC of lenght 1.
2790 (font_select_entity): Just return the value of font_sort_entites.
2791
2792 * xfaces.c (merge_face_vectors): Reflect font properties in
2793 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2794 font_clear_prop if a face attribute doesn't change.
2795
3c908a57
KH
2796 * charset.h (charset_ksc5601): Extern it.
2797
2798 * charset.c (charset_ksc5601): New variable.
2799 (Fdefine_charset_internal): Set charset_ksc5601.
2800 (init_charset_once): Initialize charset_ksc5601 to -1.
2801
d65859c3
DN
28022009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2803
2804 * fileio.c (history_delete_duplicates): Remove unused declaration.
2805
2806 * callint.c (history_delete_duplicates): New declaration.
2807 (Fcall_interactively): Remove command history duplicates when
2808 history_delete_duplicates is true.
2809
3ba010e5
EZ
28102009-04-14 Eli Zaretskii <eliz@gnu.org>
2811
2812 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2813
06f19b91
KH
28142009-04-14 Kenichi Handa <handa@m17n.org>
2815
2816 * font.c (Ffont_info): Fix docstring. Fix the second element of
2817 the returned value (bug#2949).
2818
2cce8bfc
CY
28192009-04-14 Chong Yidong <cyd@stupidchicken.com>
2820
2821 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2822
d156542d
KH
28232009-04-14 Kenichi Handa <handa@m17n.org>
2824
2825 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2826 encoding charset is ascii_compatible.
2827
2828 * charset.c (Fdefine_charset_internal): Make charset
2829 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2830 code_offset is 0, and covers all ASCII characters.
2831
86fa089e
SM
28322009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2833
2834 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2835 (ns_string_to_pasteboard_internal):
2836 * nsmenu.m (process_dialog):
2837 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2838 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2839 * lisp.h (Fx_load_color_file): Declare.
2840
a8a3728b
KH
28412009-04-13 Kenichi Handa <handa@m17n.org>
2842
1ac9108a 2843 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2844 (font_select_entity): Suppress the code to optimize for the same
2845 kind of fonts.
2846 (font_load_for_lface): Get a font that supports at least ASCII
2847 characters.
2848
2849 * ftfont.c (Qja, Qko): New variables.
2850 (fc_charset_table): Delete uniquifier data for iso8859-1.
2851 (ftfont_get_latin1_charset): New function.
2852 (get_adstyle_property): New function.
2853 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2854 bitmap fonts.
2855 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2856 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2857 `ko' or `ja'.
2858 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2859 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2860 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2861 property.
2862 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2863 (syms_of_ftfont): DEFSYM Qja and Qko.
2864
483670b5
KH
28652009-04-09 Kenichi Handa <handa@m17n.org>
2866
12b55765
KH
2867 * charset.c (map_charset_chars): For a charset of `superset'
2868 method, fix calculation of code range.
2869
483670b5
KH
2870 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2871 from the list of extra properties.
2872 (font_clear_prop): Be sure to delete `:name' font property.
2873
57d3b93b
KH
28742009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2875
b4b2c2ca
YM
2876 * dispnew.c (redraw_overlapping_rows): Fix detection of
2877 overlapping for topmost and bottommost rows.
2878
1ac9108a 2879 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2880
472c3609
JR
28812009-04-06 Jason Rumney <jasonr@gnu.org>
2882
2883 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2884
ab193662
KH
28852009-04-06 Kenichi Handa <handa@m17n.org>
2886
2887 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2888
2889 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2890
0c26f026
KH
28912009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2892
2893 * ftfont.c (ftfont_open): Fix checking of the return value of
2894 FT_Load_Char. Fix setting font->underline_thickness.
2895
e173bbce
CY
28962009-04-04 Chong Yidong <cyd@stupidchicken.com>
2897
2898 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2899 (Fterminal_parameters, Fterminal_parameter)
2900 (Fset_terminal_parameter): In doc string, refer to terminal
2901 objects rather than terminal ids.
2902
693a2698
EZ
29032009-04-04 Eli Zaretskii <eliz@gnu.org>
2904
2905 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2906 ret_lim_data. (Bug#2867)
2907
d5221487
CY
29082009-04-03 Chong Yidong <cyd@stupidchicken.com>
2909
2910 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2911 so they don't get wider than the window, matching 2006-01-23
2912 change to the partner function in xdisp.c (Bug#2800).
2913
223509a3
KH
29142009-04-03 Kenichi Handa <handa@m17n.org>
2915
2916 * print.c (print_object): Make each lowest sub_char_table start a
2917 new line (Bug#2866).
2918
74fcd0b1
KH
29192009-04-02 Kenichi Handa <handa@m17n.org>
2920
2921 * fontset.c (fontset_font): Record no-font when a fontset
2922 explicitly tells not to try another font-specs.
2923
c542407d
SM
29242009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2925
2926 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2927
e3869731
KH
29282009-03-30 Kenichi Handa <handa@m17n.org>
2929
d8d2f142
KH
2930 * fontset.c (fontset_from_font): Specify only registry in a
2931 font-spec for all characters supported by that registry.
2932
e3869731
KH
2933 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2934 even if HAVE_M17N_FLT is not defined.
2935
5da5f805
CY
29362009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2937
2938 * ftfont.c: Conditionalize prototyping and use of
2939 ftfont_variation_glyphs.
2940
ab226c50
SM
29412009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2942
9628fed7
SM
2943 * frame.c (delete_frame): Work around compiler bug.
2944
2945 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2946 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2947 Some more EMACS_INT.
2948 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2949
2950 * xdisp.c (dump_glyph): Fix typo.
2951
ae19ba7c
SM
2952 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2953 (adjust_markers_gap_motion, adjust_markers_for_delete)
2954 (adjust_markers_for_insert, adjust_point)
2955 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2956 (make_gap, copy_text, count_size_as_multibyte, insert)
2957 (insert_and_inherit, insert_before_markers)
2958 (insert_before_markers_and_inherit, insert_1)
2959 (count_combining_before, count_combining_after, insert_1_both)
2960 (insert_from_string, insert_from_string_before_markers)
2961 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2962 (insert_from_buffer_1, adjust_after_replace)
2963 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2964 (replace_range_2, del_range, del_range_1, del_range_byte)
2965 (del_range_both, del_range_2, modify_region)
2966 (prepare_to_modify_buffer, signal_before_change)
2967 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2968 for buffer positions and sizes.
2969 * lisp.h: Adjust prototypes accordingly.
2970
2971 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2972 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2973 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2974
ab226c50
SM
2975 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2976
46dfb8fb
JD
29772009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2978
2979 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2980 lines and columns so we keep the same pixel height and width.
2981
2982 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2983 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2984 (x_handle_net_wm_state): New function to update frame parameter
2985 fullscreen.
2986 (x_term_init): Initialize atoms for _NET_WM_STATE.
2987
2988 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2989
d347e494
SM
29902009-03-27 Kevin Ryde <user42@zip.com.au>
2991
2992 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2993 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2994 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2995 (Fgpm_mouse_stop): Pass that new parameter.
2996 * termhooks.h (close_gpm): Adjust prototype.
2997
84db11d6
SM
29982009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2999
c95a5008
SM
3000 * lisp.h (Fx_focus_frame): Declare.
3001
84db11d6
SM
3002 * callint.c (Fcall_interactively): For '^' just delegate the work to
3003 handle-shift-selection.
3004 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
3005
0a1958d6
CY
30062009-03-24 Chong Yidong <cyd@stupidchicken.com>
3007
0bfdff23
CY
3008 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3009
0a1958d6
CY
3010 * data.c (Qinteractive_form): New variable.
3011 (Finteractive_form): Use it.
3012
3013 * eval.c (Fcommandp): Use Qinteractive_form.
3014
58aec0d6
JR
30152009-03-24 Jason Rumney <jasonr@gnu.org>
3016
3017 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3018 Calculate total size precisely. Decode environment variables
3019 before substituting. (Bug#38)
3020
553dd618
KH
30212009-03-24 Kenichi Handa <handa@m17n.org>
3022
3023 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3024 encoding (Bug#2722).
553dd618 3025
c39ea606
JD
30262009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3027
3028 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3029 that gdpy is set.
3030
bc9b2b5e
AM
30312009-03-22 Alan Mackenzie <acm@muc.de>
3032
3033 * callint.c (Finteractive): Clarify the doc string - even
3034 promptless elements need \n separators.
3035
9f995a76
JR
30362009-03-22 Jason Rumney <jasonr@gnu.org>
3037
3038 * w32term.c (syms_of_w32term): Doc fix for
3039 x-use-underline-position-properties.
3040
22749e9a
EZ
30412009-03-21 Eli Zaretskii <eliz@gnu.org>
3042
3043 * w32.c (getpwuid): Change argument type to unsigned.
3044 (struct w32_id): Change type of `rid' member to unsigned.
3045 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3046 argument ID to unsigned. All callers changed.
3047 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3048
e00553bf
EZ
30492009-03-20 Eli Zaretskii <eliz@gnu.org>
3050
3051 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3052 negative, produce a float value.
3053
3054 * dired.c (make_uid, make_gid): New functions.
3055 (Ffile_attributes): Use them to avoid negative UID and GID.
3056
f761d6b6
JB
30572009-03-20 Juanma Barranquero <lekktu@gmail.com>
3058
3059 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3060 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3061 Fix typos in docstrings.
3062
d507f8d7
KH
30632009-03-19 Kenichi Handa <handa@m17n.org>
3064
3065 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3066 changed, use font_load_for_lface to get a new font object.
3067 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3068
3069 * frame.c (x_set_font): Handle the case that ARG is a cons.
3070
c68845e0
GM
30712009-03-19 Glenn Morris <rgm@gnu.org>
3072
3073 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3074
bfa49dd1
CY
30752009-03-19 Chong Yidong <cyd@stupidchicken.com>
3076
3077 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3078
8458d4c1
KH
30792009-03-19 Kenichi Handa <handa@m17n.org>
3080
3081 * charset.c (load_charset_map_from_file): When a mapfile can't be
3082 loaded, signal an error.
3083
78e7d1fe
EZ
30842009-03-18 Eli Zaretskii <eliz@gnu.org>
3085
3086 * dired.c (Ffile_attributes): Make sure UID and GID are always
3087 positive, even if the value is too large for a positive EMACS_INT.
3088 Doc fix.
3089
3090 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3091
5da9fdfa
YM
30922009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3093
3094 * xmenu.c (xdialog_show): Move Fredisplay call ...
3095 (Fx_popup_dialog): ... here.
3096
7519c40d
SM
30972009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3098
3099 * dired.c (file_name_completion): Disable the first optimization just
3100 installed, since it is not implemented correctly.
3101
2cd298e2
SM
31022009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3103
3104 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3105 only if the entry can affect bestmatch.
2cd298e2
SM
3106 Stop the search early, as Ftry_completion already does.
3107
48d37adf
CY
31082009-03-17 Chong Yidong <cyd@stupidchicken.com>
3109
e10c9c93 3110 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3111
9286b16a
CY
31122009-03-15 Chong Yidong <cyd@stupidchicken.com>
3113
3114 * keyboard.c (parse_menu_item): Don't display remappings as menu
3115 equivalent bindings (Bug#788).
3116
f7b146dc
JR
31172009-03-15 Jason Rumney <jasonr@gnu.org>
3118
3119 * w32term.h (WM_EMACS_PAINT): New message.
3120 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3121 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3122 before passing to lisp thread. (Bug#950)
3123
f761d6b6 31242009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3125
d93f9575
CY
3126 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3127 variable as it was never reset.
3128 (ns_term_init): Remove initialization of Lisp-settable defaults
3129 and ns_expand_space.
3130 (-setPanelFromDefaultValues): Remove ns_expand_space.
3131 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3132 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3133 i.e. no additional spacing, similar to Carbon port.
3134
d93f9575
CY
3135 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3136 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3137
305018ec
JD
31382009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3139
3140 * sound.c (alsa_configure): Remove call to deprecated
3141 snd_pcm_sw_params_set_xfer_align.
3142
f761d6b6 31432009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3144
3145 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3146 after clicking in a detached tool bar.
3147 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3148
46e722a9
SM
31492009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3150
348db3dd
SM
3151 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3152 int/Lisp_Object mixup).
46e722a9 3153
a3d16f39
KH
31542009-03-13 Kenichi Handa <handa@m17n.org>
3155
3156 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3157 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3158 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3159 (set_fontset_font): Change ARG to a vector. Handle range_list in
3160 ARG correctly.
3161 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3162 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3163 the above change.
3164 (fontset_from_font): Fix previous change.
fe24f56a 3165 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3166 entry. If FONTSET is the default fontset, don't set the extra
3167 slot of the returning char-table.
3168
b066e6b6
JB
31692009-03-12 Juanma Barranquero <lekktu@gmail.com>
3170
3171 * nsfns.m (Fx_close_connection): Doc fix.
3172 (Fns_do_applescript): Reflow docstring.
3173 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3174 (Fx_display_pixel_width, Fx_display_pixel_height)
3175 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3176 Fix typos in docstrings.
3177 (Fns_set_alpha): Fix typos in error messages.
3178
d472514e 31792009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3180
d472514e 3181 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3182 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3183 were used for such events.
3184
d472514e
JB
3185 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3186 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3187
d472514e 3188 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3189 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3190
fb930676
KH
31912009-03-11 Kenichi Handa <handa@m17n.org>
3192
ff85581a
KH
3193 * font.h (font_open_by_spec): Extern it.
3194
c50b7e98
KH
3195 * font.c (font_open_by_spec): New function.
3196 (font_open_by_name): Use font_open_by_spec.
3197
fb930676
KH
3198 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3199 fontset of the frame.
3200
3201 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3202 modify the default font of frames that use this fontset.
3203 (num_auto_fontsets): New variable.
3204 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3205 name. Be sure to set FONTSET_ASCII to the correct font name.
3206 (update_auto_fontset_alist): New function.
3207
df4e8455
JB
32082009-03-11 Juanma Barranquero <lekktu@gmail.com>
3209
3210 * makefile.w32-in: Update dependencies.
3211
0a375797
AR
32122009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3213
3214 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3215
61313fa3
SM
32162009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3217
3218 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3219
b55103fb
CY
32202009-03-10 Chong Yidong <cyd@stupidchicken.com>
3221
3222 * lread.c (Feval_buffer): Doc fix.
3223
dde2559c
KH
32242009-03-09 Kenichi Handa <handa@m17n.org>
3225
3226 * charset.c (Qfile_name_handler_alist): Extern it.
3227 (load_charset_map_from_file): Temporarily bind
3228 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3229
df4e8455 32302009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3231
47f588bb
GM
3232 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3233 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3234
4ddf94bd
AR
32352009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3236
4c9bdfc2
AR
3237 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3238 (x_set_window_size): Change back to calculated method of setting
3239 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3240 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3241 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3242
fe41ae9e
AR
3243 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3244
4c9bdfc2
AR
3245 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3246 accelerator in parens under GNUstep.
3247
825d0875
KH
32482009-03-06 Kenichi Handa <handa@m17n.org>
3249
3250 These changes are to detect incorrect composition sequence without
f3b3be74 3251 looking ahead the source. (Bug#2370)
825d0875
KH
3252
3253 * coding.h: Include "composite.h".
3254 (enum compisition_state): New enum.
3255 (struct compisition_status): New struct.
3256 (struct iso_2022_spec): New member cmp_status.
3257 (struct emacs_mule_spec): New struct.
3258 (struct coding_system): New members ctext_extended_segment_len and
3259 embedded_utf_8. Change the union member
3260 spec.emacs_mule_full_support to spec.emacs_mule.
3261
3262 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3263 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3264 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3265 (ADD_COMPOSITION_DATA): New arg nbytes.
3266 (emacs_mule_char): New arg cmp_status.
3267 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3268 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3269 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3270 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3271 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3272 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3273 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3274 (EMACS_MULE_COMPOSITION_END): New macro.
3275 (emacs_mule_finish_composition): New function.
3276 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3277 (decode_coding_emacs_mule): Avoid long looking ahead while
3278 handling composition.
3279 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3280 (ENCODE_COMPOSITION_RULE): New macro.
3281 (finish_composition): New function.
3282 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3283 (DECODE_COMPOSITION_START): New implementation.
3284 (DECODE_COMPOSITION_END): Likewise.
3285 (STORE_COMPOSITION_RULE): New macro.
3286 (decode_coding_iso_2022): Avoid long looking ahead while handling
3287 composition, CTEXT extended segment, and embedded UTF-8.
3288 (setup_coding_system): For a coding of type iso-2022, reset
3289 CODING_ISO_EXTSEGMENT_LEN (coding) and
3290 CODING_ISO_EMBEDDED_UTF_8 (coding).
3291 (get_translation): Delete arguments last_block, from_nchars,
3292 to_nchars. Callers changed.
3293 (produce_chars): Don't modify charbuf. Adjusted for the change of
3294 get_translation.
98a326f7 3295 (produce_composition): Adjust for the new annotation sequence.
825d0875 3296 (handle_composition_annotation): Likewise.
98a326f7 3297 (consume_chars): Adjust for the change of get_translation.
825d0875 3298
ccbc4452
AR
32992009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3300
4ddf94bd 3301 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3302
988a7ddb
KH
33032009-03-05 Kenichi Handa <handa@m17n.org>
3304
3305 * font.c (font_select_entity): New function.
3306 (font_find_for_lface): Use font_select_entity to select a font.
3307
3308 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3309 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3310 font with C restriction.
3311
98a326f7 33122009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3313
be1bce46 3314 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3315
10ea2b82
JR
33162009-03-04 Jason Rumney <jasonr@gnu.org>
3317
2c93b248 3318 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3319 characters that have already been read. (Bug#2569)
2c93b248 3320
10ea2b82
JR
3321 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3322 Log an error message if check_image_size failed.
3323 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3324 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3325
71a0c011
EZ
33262009-03-02 Eli Zaretskii <eliz@gnu.org>
3327
3328 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3329 when decoding process output.
3330
2f63bba8
RS
33312009-03-01 Richard M Stallman <rms@gnu.org>
3332
3333 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3334
3335 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3336
0a9564cb
EZ
33372009-02-28 Eli Zaretskii <eliz@gnu.org>
3338
3339 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3340 (decode_coding_emacs_mule, decode_coding_iso_2022)
3341 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3342 (decode_coding_raw_text, decode_coding_charset)
3343 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3344 Honor inhibit-eol-conversion. (Bug #2186)
3345
449148b3
JR
33462009-02-28 Jason Rumney <jasonr@gnu.org>
3347
3348 * coding.c (detect_coding_charset): If not checking latin extra,
3349 fail on characters between 0x80 and 0xA0. (Bug#2354)
3350
a4aee864
EZ
33512009-02-28 Eli Zaretskii <eliz@gnu.org>
3352
3353 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3354 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3355
d88bee5a
GM
33562009-02-27 Glenn Morris <rgm@gnu.org>
3357
3358 * callint.c (Finteractive): Doc fix.
3359
a808f22d
KH
33602009-02-27 Kenichi Handa <handa@m17n.org>
3361
3362 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3363
caf8d60c
CY
33642009-02-27 Chong Yidong <cyd@stupidchicken.com>
3365
3366 * font.c (font_style_to_value): Set value for unknown symbols to
3367 100 instead of 255.
b61137ea
CY
3368 (weight_table, slant_table, width_table): Treat "unspecified" as
3369 the default value.
caf8d60c 3370
1a0de25c
JB
33712009-02-26 Juanma Barranquero <lekktu@gmail.com>
3372
3373 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3374
8fc45744
JB
33752009-02-25 Juanma Barranquero <lekktu@gmail.com>
3376
107bd7d1
JB
3377 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3378 error as soon as a recursive load is detected.
8fc45744 3379
f097e223
AR
33802009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3381
3382 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3383 before caching.
3384
8810a12f
KH
33852009-02-24 Kenichi Handa <handa@m17n.org>
3386
3387 * fontset.c (fontset_find_font): Fix the condition for checking
3388 unavailable font.
3389
2c7d1565
GM
33902009-02-24 Glenn Morris <rgm@gnu.org>
3391
3392 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3393 whitespace that confuses documentation.
3394
a20878b6
MB
33952009-02-23 Miles Bader <miles@gnu.org>
3396
3397 * process.c (Flist_system_processes, Fprocess_attributes)
3398 (syms_of_process): Rename `system-process-attributes' to
3399 `process-attributes'.
3400
b3b58c01
AS
34012009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3402
1b3b981b
AS
3403 * coding.h (struct coding_system): Make safe_charsets a pointer to
3404 unsigned char.
3405 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3406 being 255.
3407 (SAFE_CHARSET_P): Likewise.
3408 (setup_iso_safe_charsets): Properly setup safe_charsets.
3409 (Fdefine_coding_system_internal): Likewise.
3410 (setup_coding_system): Likewise. Remove unneeded casts.
3411 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3412 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3413 unneeded casts.
3414
b3b58c01
AS
3415 * insdel.c (del_range_2): Don't modify gap contents when called
3416 from decode_coding_object. (Bug#1809)
3417
0b6f228c
CY
34182009-02-21 Chong Yidong <cyd@stupidchicken.com>
3419
3420 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3421 Qfont_object.
3422 (Ftype_of): Recognize font objects.
3423
3424 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3425
3426 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3427 moved to data.c.
3428
52f8870b
AR
34292009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3430
3431 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3432 async_iconified. Based on a patch by Christian Lynbech
3433 <christian.lynbech@tieto.com>.
3434 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3435
7087d5e9
GM
34362009-02-20 Glenn Morris <rgm@gnu.org>
3437
3438 * syntax.c (Fskip_chars_forward): Fix doc typo.
3439
41d2ceef
CY
34402009-02-20 Chong Yidong <cyd@stupidchicken.com>
3441
3442 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3443
1a3b7ca6
CY
34442009-02-19 Chong Yidong <cyd@stupidchicken.com>
3445
3446 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3447
73cce38d
KH
34482009-02-19 Kenichi Handa <handa@m17n.org>
3449
3450 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3451 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3452
a51092ee
DN
34532009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3454
3455 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3456
c423ecca
KH
34572009-02-18 Kenichi Handa <handa@m17n.org>
3458
3459 * font.c (font_check_otf_features): Fix handling of `nil' element.
3460 (Ffont_spec): Describe :lang and :otf in the docstring.
3461
4c1958f4
AS
34622009-02-16 Andreas Schwab <schwab@suse.de>
3463
3464 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3465 string.
3466
5704f39a
KH
34672009-02-16 Kenichi Handa <handa@m17n.org>
3468
3469 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3470 (Bug#1723)
5704f39a 3471
8f0085aa
CY
34722009-02-14 Chong Yidong <cyd@stupidchicken.com>
3473
a057d86a 3474 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3475
3476 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3477 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3478
aff01dd9
EZ
34792009-02-14 Eli Zaretskii <eliz@gnu.org>
3480
3481 * msdos.c (MAX_SCREEN_BUF): New macro.
3482 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3483 Encode the entire run of glyphs sharing the same face, instead of
3484 doing that one glyph at a time (fixes a bug with displaying
3485 double-size characters).
3486
ba301db3
AR
34872009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3488
3489 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3490
3491 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3492 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3493 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3494
3495 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3496 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3497
51d861de
SM
34982009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3499
3500 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3501 invisible areas.
3502
7fed8996
JR
35032009-02-12 Jason Rumney <jasonr@gnu.org>
3504
631ea4fb
JR
3505 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3506 (add_font_entity_to_list): Call check_face_name even when family
3507 is unspecified.
3508
cb4a3e42
JR
3509 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3510 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3511 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3512
7fed8996 3513 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3514 raster fonts. (Bug#2219)
7fed8996 3515
895416e3
KH
35162009-02-12 Kenichi Handa <handa@m17n.org>
3517
3518 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3519 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3520 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3521 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3522 (find_automatic_composition): While looking forward and backward,
3523 check static composition. Fix where to stop looking forward.
3524 (composition_adjust_point): Fix checking of static composition.
3525 (Fcomposition_get_gstring): Pay attention to
1dacf998 3526 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3527
3528 * lisp.h (fast_looking_at): Extern it.
3529
3530 * search.c (fast_looking_at): New function.
3531
51d861de 3532 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3533 <struct glyph>.u.cmp.to.
3534 (append_composite_glyph): Likewise.
3535
51d861de 3536 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3537 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3538 composition.
51d861de 3539 (append_composite_glyph): Adjust for the change of
895416e3
KH
3540 <strcut glyph>.u.cmp.to.
3541
8510724d
JB
35422009-02-11 Juanma Barranquero <lekktu@gmail.com>
3543
3544 * casetab.c (init_casetab_once):
3545 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3546 * font.c (font_update_lface):
3547 * fontset.c (Fnew_fontset):
3548 * ftfont.c (ftfont_drive_otf):
3549 * xfont.c (xfont_open):
3550 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3551
294fa707
SM
35522009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3553
3554 * fileio.c (Fwrite_region): !NILP -> CONSP.
3555
b5bfebec
AS
35562009-02-10 Andreas Schwab <schwab@suse.de>
3557
3558 * process.c (send_process): Properly relocate pointer into data
adab88bd 3559 when using encoded data. (Bug#2272)
b5bfebec 3560
cb84a2be
KH
35612009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3562
3563 * coding.c (detect_coding_charset): Fix previous change.
3564
89e09428
JR
35652009-02-08 Jason Rumney <jasonr@gnu.org>
3566
3567 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3568 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3569
4470a277
AS
35702009-02-07 Andreas Schwab <schwab@suse.de>
3571
3572 * unexelf.c (unexec): Fix error message.
3573
3175b12a
AR
35742009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3575
3576 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3577 when modal window is active. (Bug #2152)
3175b12a
AR
3578 (applicationShouldTerminate:): Remove now-unneeded while loop
3579 around NSRunAlertPanel.
3580
3581 * nsmenu.m (popupSession): New file-global variable.
3582 (pop_down_menu): End the popupSession before closing dialog.
3583 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3584 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3585 don't query NSApp for events (just sleep instead).
3586
8434d0b8
EZ
35872009-02-07 Eli Zaretskii <eliz@gnu.org>
3588
51d861de
SM
3589 * coding.c (syms_of_coding) <translation-table-for-input>:
3590 Modify doc string to discourage use for character code unification.
8434d0b8 3591
aa82edfd
CY
35922009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3593
3594 * atimer.c (run_timers): Update pending_atimers.
3595
2d283c7c
CY
35962009-02-06 Chong Yidong <cyd@stupidchicken.com>
3597
eb306cab
CY
3598 * image.c (svg_load_image): Fix last change.
3599
2d283c7c
CY
3600 * xfns.c (Fx_create_frame): Signal an error if no font is
3601 found (Bug#2147).
3602
4d8e170e
JB
36032009-02-05 Juanma Barranquero <lekktu@gmail.com>
3604
3605 * character.c (syms_of_character) <script-representative-chars>:
3606 Fix typo in docstring.
3607
c96169a0
AR
36082009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3609
3610 * nsmenu.m (pop_down_menu): New function.
3611 (ns_popup_dialog): Call it on unwind.
3612 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3613 call timer_check() (Bug#2154).
3614 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3615 handling_signal is set.
3616 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3617
31fd7c5c 3618 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3619
3620 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3621
3622 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3623
51d861de
SM
3624 * keyboard.c (poll_for_input_1, handle_async_input):
3625 Set handling_signal under HAVE_NS.
c96169a0 3626
aacd8ba1
GM
36272009-02-04 Glenn Morris <rgm@gnu.org>
3628
3629 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3630
4cb75c4b
KH
36312009-02-04 Kenichi Handa <handa@m17n.org>
3632
3633 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3634
3635 * charset.c (Fchar_charset): New optional arg restriction.
3636
3637 * coding.h (coding_system_charset_list): Extern it.
3638
3639 * coding.c (coding_system_charset_list): New function.
3640
3641 * composite.c: Include coding.h and termhooks.h.
3642 (composition_gstring_p): Fix for the terminal case.
3643 (composition_gstring_width): Likewise.
3644 (fill_gstring_body): Likewise.
3645 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3646 the frame.
3647 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3648 is within a composition.
867d4bb3 3649 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3650
3651 * term.c (encode_terminal_code): Fix handling of composition.
3652 (produce_composite_glyph): For static composition, get pixel_width
3653 from struct composition.
3654
826ba17e
AS
36552009-02-02 Andreas Schwab <schwab@suse.de>
3656
3657 * unexelf.c (unexec): Handle unaligned bss offset.
3658
8ad093db
AR
36592009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3660
3661 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3662 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3663
8ad093db
AR
3664 * keyboard.c (handle_interrupt): Don't call
3665 quit_throw_to_read_char() under NS.
d0a76a6e 3666
8ad093db
AR
3667 * blockinput.h: Remove NS-specific code.
3668
4d18a7a2
DN
36692009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3670
db878925
DN
3671 * dispnew.c (window_change_signal): Don't try to get the size of a
3672 suspended tty frame.
3673 * term.c (Fresume_tty): Resize if the size has changed while the
3674 tty was suspended.
3675
4d18a7a2
DN
3676 * alloc.c (mark_stack): Properly conditionalize previous change.
3677
8984df7c
JB
36782009-01-30 Juanma Barranquero <lekktu@gmail.com>
3679
3680 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3681 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3682 Remove; this code is not used on Windows.
3683
75f4f1ac
EZ
36842009-01-30 Eli Zaretskii <eliz@gnu.org>
3685
3686 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3687 EOLs that also has stray ^M characters.
3688
07a1e794
JB
36892009-01-30 Juanma Barranquero <lekktu@gmail.com>
3690
3691 * atimer.c (run_timers, alarm_signal_handler):
3692 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3693 * w32inevt.c (w32_console_read_socket):
3694 * w32term.c (w32_read_socket):
3695 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3696
a8b11cc9
CY
36972009-01-30 Chong Yidong <cyd@stupidchicken.com>
3698
3699 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3700 Initialize it as a relative filename pattern.
3701 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3702 (Fcall_process_region): Simplify temp file creation using
3703 temporary-file-directory.
3704
c279587b
EZ
37052009-01-29 Eli Zaretskii <eliz@gnu.org>
3706
3707 * msdos.c: Rename pending_signals to msdos_pending_signals.
3708 (sig_suspender, sigprocmask): Adjust.
3709
a8fe3242
CY
37102009-01-29 Chong Yidong <cyd@stupidchicken.com>
3711
3712 * keyboard.c (pending_signals): New var.
3713 (poll_for_input, input_available_signal, init_keyboard): Set it.
3714 (process_pending_signals): New function.
3715
3716 * lisp.h (QUIT): Check pending_signals instead of
3717 interrupt_input_pending. Use process_pending_signals.
3718
51d861de 3719 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3720
51d861de 3721 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3722
3723 * sysdep.c (emacs_write): Use process_pending_signals.
3724
3725 * xterm.c (XTread_socket): Update pending_signals.
3726
3727 * w32term.c (w32_read_socket): Update pending_signals.
3728
3729 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3730
6570a1c4
KH
37312009-01-29 Kenichi Handa <handa@m17n.org>
3732
3733 * xftfont.c (xftfont_has_char): New function.
3734 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3735
d72a4afa
AR
37362009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3737
3738 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3739 under GNUstep.
3740 (ns_query_color): New declaration.
3741
3742 * nsterm.m (ns_confirm_quit): New variable.
3743 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3744 (EmacsApp-applicationShouldTerminate:): Use it.
3745 (EmacsPrefsController): Let user set it.
3746 (ns_query_color): New function.
3747 (ns_defined_color): Use it.
3748 (ns_initialize): Drop.
3749 (ns_term_init): Add two lines from ns_initialize(), and set
3750 input_interrupt_mode to nil.
3751
3752 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3753 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3754
9fe78804
KH
37552009-01-28 Kenichi Handa <handa@m17n.org>
3756
3757 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3758 (fontset_get_font_group): Remember that no font-group is specified
3759 for C.
9fe78804 3760
fa57de36
CY
37612009-01-27 Chong Yidong <cyd@stupidchicken.com>
3762
930600e9
CY
3763 * fns.c (concat): Check for string overflow (bug#1787).
3764
fa57de36
CY
3765 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3766 Quadruple undo limits (bug#1501).
3767
7179ce7b
KH
37682009-01-27 Kenichi Handa <handa@m17n.org>
3769
3770 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3771 directly use GT_Get_Char_index.
3772
3773 * xftfont.c (struct xftfont_info): New member `index'.
3774
3775 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3776 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3777
5be8fcc0
CY
37782009-01-26 Kenichi Handa <handa@m17n.org>
3779
3780 * fontset.c (fontset_find_font): Fix handling of non-cons return
3781 value of fontset_get_font_group.
3782 (fontset_font): Revert last change.
3783
19ae3e61
JR
37842009-01-26 Jason Rumney <jasonr@gnu.org>
3785
3786 * w32font.c (w32font_list_internal): Return quickly if registry is
3787 unknown. Simplify final return.
3788 (add_font_entity_to_list): Break complex logic down into more
3789 manageable chunks. Move unknown registry check to
3790 w32font_list_internal.
3791
8612b71a
AR
37922009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3793
3794 Changes to remove Feval calls from GUI under NS.
3795
d8038940
JB
3796 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3797 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3798 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3799
3800 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3801 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3802 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3803 instead of NON_ASCII_KEYSTROKE_EVENT.
3804 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3805 (EmacsApp-applicationShouldTerminate:): Query user.
3806 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3807 instead of Feval.
3808
3809 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3810
3811 * keyboard.c (kbd_buffer_get_event): Check for it.
3812 (keys_of_keyboard): Define lispy keys for
3813 ns-put/unput-working-text.
3814
3815 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3816 versions.
3817 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3818
6288ae55
CY
38192009-01-25 Chong Yidong <cyd@stupidchicken.com>
3820
3821 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3822 setting current_buffer directly. (Bug#2044)
6288ae55 3823
289e7f8f
CY
38242009-01-24 Chong Yidong <cyd@stupidchicken.com>
3825
5ce87308 3826 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3827 any work. (Bug#1952, bug#1990).
5ce87308 3828
64cc3cf6 3829 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3830
b3243e6f
AR
38312009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3832
3833 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3834 (ns_no_defaults): New declaration.
3835 (main): Use it.
e0d2e69a 3836
d900b2af 3837 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3838
d900b2af 3839 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3840
d900b2af
AR
3841 * nsterm.m (ns_no_defaults): New variable.
3842 (ns_initialize): Don't read defaults when ns_no_defaults.
3843 (EmacsView-readSelectionFromPasteboard:)
3844 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3845 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3846 (ns_dumpglyphs_stretch): New function.
3847 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3848 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3849
e0d2e69a
AR
3850 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3851
3ac71f5d
CY
38522009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3853
3854 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3855 call for Sparc64.
3856
3fe53a83
AR
38572009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3858
3859 * nsfns.m:
3860 * nsgui.h:
3861 * nsmenu.m:
3862 * nsselect.m:
3863 * nsterm.h:
3864 * nsterm.m: Remove '23' comments that indicated code added during
3865 update from emacs-20 -> emacs-23.
3866
10f87c6f 38672009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3868
3869 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3870 ns_alternate_modifier. (Bug#1217)
a3b53a85 3871
c7cef62d
AR
3872 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3873 Display all shortcuts, including those w/o super modifier.
3874
575fb8bd
AR
3875 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3876
918b848b
CY
38772009-01-22 Chong Yidong <cyd@stupidchicken.com>
3878
3879 * fileio.c (Vwrite_region_post_annotation_function)
3880 (Vwrite_region_annotation_buffers): New vars.
3881 (build_annotations_unwind): Just reset
3882 Vwrite_region_annotation_buffers.
3883 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3884 Call write-region-post-annotation-function.
3885 (build_annotations): Add to Vwrite_region_annotation_buffers if
3886 buffer changes.
3887
a39e2539
AR
38882009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3889
3890 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3891 Tiger.
51d861de
SM
3892 * nsfns.m (ns_do_applescript):
3893 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3894
35ed44db
AR
38952009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3896
3897 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3898
cbe0b5bf
AR
38992009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3900
3901 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3902
6049d3a0
AR
3903 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3904
3905 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3906 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3907 handle Ctrl-tab. (Bug#1841)
3908 (ns_get_color): Use unsigned long long for scanned hex string value.
3909 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3910 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3911 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3912 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3913 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3914 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3915 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3916
d3810c21 3917 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3918 DPI. (Bug#1316)
d3810c21
AR
3919 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3920 values in onTiger section.
4c7077c3 3921
e301e634
CY
39222009-01-19 Chong Yidong <cyd@stupidchicken.com>
3923
7f82490b
CY
3924 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3925 Check return value of font_spec_from_name.
64cc3cf6 3926 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3927
3928 * font.c (font_spec_from_name): Return Qnil if font name could not
3929 be parsed.
3930 (font_parse_name): Treat a `?' character as part of an XLFD.
3931
e301e634
CY
3932 * fns.c (Fsubstring): Doc fix.
3933
1c0db158
KH
39342009-01-19 Kenichi Handa <handa@m17n.org>
3935
51d861de 3936 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3937 (ftfont_list): Likewise.
3938
acf20901
JB
39392009-01-18 Juanma Barranquero <lekktu@gmail.com>
3940
fff4e459
JB
3941 * dbusbind.c (Fdbus_register_signal):
3942 * process.c (conv_sockaddr_to_lisp):
3943 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3944
acf20901
JB
3945 * callproc.c (Fgetenv_internal): Doc fix.
3946
e7abcdfb
CY
39472009-01-16 Chong Yidong <cyd@stupidchicken.com>
3948
3949 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3950 it is not even used.
3951
b60861e6
GM
39522009-01-16 Glenn Morris <rgm@gnu.org>
3953
3954 * font.c (Ffont_variation_glyphs): Silence compiler.
3955
8db52afe
JB
39562009-01-15 Juanma Barranquero <lekktu@gmail.com>
3957
3958 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3959 Reported by David Robinow <drobinow@gmail.com>.
3960
4cddb209
KH
39612009-01-15 Kenichi Handa <handa@m17n.org>
3962
51d861de 3963 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3964
f247f67b
JR
39652009-01-14 Jason Rumney <jasonr@gnu.org>
3966
3967 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3968 never a fontset. (Bug#1562)
f247f67b 3969
f56a4450
KH
39702009-01-14 Kenichi Handa <handa@m17n.org>
3971
3972 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3973 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3974
4e99855e
CY
39752009-01-13 Chong Yidong <cyd@stupidchicken.com>
3976
3977 * font.c (font_clear_prop): If clearing the family, clear the font
3978 width index too.
3979
fff4e459 3980 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3981
24f01470
JB
39822009-01-12 Juanma Barranquero <lekktu@gmail.com>
3983
3984 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3985 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3986 functions, use sizeof.
3987
a41240a3
MR
39882009-01-12 Martin Rudalics <rudalics@gmx.at>
3989
3990 * keyboard.c (read_char): Fix case where last_nonmenu_event
3991 returned a bad value with submenus. (Bug#447)
3992
944636b8
CY
39932009-01-12 Chong Yidong <cyd@stupidchicken.com>
3994
3995 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3996 family, clear the font width index too.
3997
0dad7c6f
JR
39982009-01-11 Jason Rumney <jasonr@gnu.org>
3999
4000 * keyboard.c (cmd_error_internal): Exit when errors occur before
4001 frame creation and not in daemon mode. (Bug#1836)
4002
7c2363af
CY
40032009-01-10 Chong Yidong <cyd@stupidchicken.com>
4004
4005 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4006 of a display vector, backtrack.
4007 (try_window_reusing_current_matrix): Check glyph type before
4008 referencing charpos member.
4009
97b1b294
EZ
40102009-01-10 Eli Zaretskii <eliz@gnu.org>
4011
4012 Fix Bug #876:
4013
4014 * coding.c (inhibit_null_byte_detection): New variable.
4015 (detect_coding, detect_coding_system): Don't pay attention to null
4016 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4017 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4018 <inhibit-iso-escape-detection>: Doc fix.
4019
4624b6e3
JR
40202009-01-09 Jason Rumney <jasonr@gnu.org>
4021
4022 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4023 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4024 Only report Unicode Plane 2 fonts as unicode-sip.
4025
323b840c
CY
40262009-01-09 Chong Yidong <cyd@stupidchicken.com>
4027
51d861de
SM
4028 * xfaces.c (Fx_font_family_list): Delete function.
4029 Move compatibility version to faces.el.
323b840c 4030
51d861de 4031 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4032
eba7400d
MR
40332009-01-09 Martin Rudalics <rudalics@gmx.at>
4034
4035 * frame.c (x_set_frame_parameters): Remember requested value for
4036 fullscreen before it's reset by the parameter handler.
4037
4b09796d
GM
40382009-01-09 Glenn Morris <rgm@gnu.org>
4039
4040 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4041 (last_command_event): ... and update all users.
4b09796d
GM
4042 (last_input_char): For clarity, rename to...
4043 (last_input_event): ... and update all users.
4044 (last-command-char, last-input-char): Move to subr.el as aliases.
4045 * cmds.c, commands.h: Update for last_command_char rename.
4046
14ccea62
CY
40472009-01-08 Chong Yidong <cyd@stupidchicken.com>
4048
51d861de 4049 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4050
5f004711
JR
40512009-01-08 Jason Rumney <jasonr@gnu.org>
4052
4053 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4054 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4055 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4056 Don't declare.
fff4e459 4057 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4058 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4059
b71f6f73
KH
40602009-01-07 Kenichi Handa <handa@m17n.org>
4061
50b06221 4062 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4063 remember the coding system used for decoding in
50b06221
KH
4064 coding_system (Bug#1039).
4065
b71f6f73 4066 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4067 breaking the loop. (Bug#870)
b71f6f73
KH
4068 (decode_coding_utf_16, decode_coding_emacs_mule)
4069 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4070 (decode_coding_charset): Likewise.
4071
56f668f7
MR
40722009-01-05 Martin Rudalics <rudalics@gmx.at>
4073
4074 * frame.c (x_set_frame_parameters): Make sure height (width) get
4075 applied when fullwidth (fullheight) is set. (Bug#1522)
4076
5da9424d
JB
40772009-01-04 Juanma Barranquero <lekktu@gmail.com>
4078
4079 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4080 (utc_base): Declare as ULONGLONG, not long double.
4081 (convert_time_raw): Delete.
4082 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4083 (initialize_utc_base): New function.
4084 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4085 (convert_from_time_t): Use initialize_utc_base; compute result with
4086 64-bit arithmetic.
4087 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4088
c4605e09
EZ
40892009-01-03 Eli Zaretskii <eliz@gnu.org>
4090
9acef61c 4091 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4092 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4093 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4094 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4095 [!subprocesses]: Define.
4096 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4097 (Flist_system_processes, Fsystem_process_attributes)
4098 [!subprocesses]: Call list_system_processes and
4099 system_process_attributes instead of returning Qnil.
4100
9acef61c
JB
4101 * dosfns.c (system_process_attributes, list_system_processes):
4102 New functions.
c4605e09
EZ
4103
4104 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4105
4106 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4107 Don't use the default (no-op) implementation.
4108
8b7d0a16
JR
41092009-01-03 Jason Rumney <jasonr@gnu.org>
4110
a6d46bc1
JR
4111 * keyboard.c (parse_modifiers_uncached): Wheel events are
4112 clicks (bug#687).
4113
8b7d0a16
JR
4114 * w32term.c (x_query_colors, x_query_color): New functions.
4115
4116 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4117 (svg_load_image): Cast returned pointers from dynamically loaded
4118 functions. Eliminate W32 specific code.
4119
bfe11752
DN
41202009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4121
89e2438a
DN
4122 * nsfns.m (x_set_foreground_color, x_set_background_color)
4123 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4124 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4125 x_ prefix instead of ns_. Update references.
4126 (syms_of_nsfns): Add a FIXME comment.
4127
4128 * nsterm.m (x_set_cursor_type): New prototype.
4129 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4130
bfe11752
DN
4131 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4132 for Solaris instead of incorrectly providing Qutime and Qcutime.
4133
031da700
EZ
41342009-01-02 Eli Zaretskii <eliz@gnu.org>
4135
4136 * w32.c (process_times): Compute sum of utime and stime.
4137 (system_process_attributes): Add Qtime to the alist.
4138
4139 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4140 and add them to the alist.
4141
4142 * process.c (top level) <Qtime, Qctime>: New variables.
4143 (syms_of_process): staticpro them.
4144 (Fsystem_process_attributes): Add their documentation to the doc
4145 string.
4146
4147 * process.h: Declare Qtime and Qctime.
4148
df23bf08
JR
41492009-01-02 Jason Rumney <jasonr@gnu.org>
4150
9acef61c 4151 * image.c (Qgobject): New symbol.
df23bf08
JR
4152 (syms_of_image): Initialize it.
4153 (init_svg_functions): Load some functions from gobject library.
4154
5bbdf7aa
DN
41552009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4156
4157 * frame.c (make_terminal_frame): Remove redundant code and useless
4158 block.
4159
63136da6
AS
41602009-01-01 Andreas Schwab <schwab@suse.de>
4161
4162 * process.c (conv_sockaddr_to_lisp): Add workaround for
4163 getsockname bug on BSD.
4164
9ef69046
CY
41652009-01-01 Chong Yidong <cyd@stupidchicken.com>
4166
d6fafbe0
CY
4167 * xfns.c (x_create_tip_frame): Set border width of the X window.
4168
51d861de 4169 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4170
f9c34147
JR
41712009-01-01 Jason Rumney <jasonr@gnu.org>
4172
9acef61c 4173 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4174 Don't block input, as per earlier xterm.c changes.
4175
f5497e45
AR
41762008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4177
4178 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4179 (ns_appkit_version_int): New function.
4180 (x-server-version): Use ns_appkit_version_int and follow 21+
4181 convention of returning 3 integers.
4182
c19cab20
KH
41832008-12-30 Kenichi Handa <handa@m17n.org>
4184
4185 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4186 (CHAR_SURROGATE_PAIR_P): New macro.
4187
4188 * font.h (struct font_driver): New member get_variation_glyphs.
4189
9acef61c 4190 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4191 (Ffont_variation_glyphs): New function.
4192 (syms_of_font): Defsubr it.
4193
4194 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4195 ftfont_variation_glyphs.
4196 (setup_otf_gstring): New function.
4197 (ftfont_drive_otf): Use it.
4198 (ftfont_shape_by_flt): Handle variation selector.
4199 (ftfont_variation_glyphs): New function.
4200
28cd591f
MR
42012008-12-30 Martin Rudalics <rudalics@gmx.at>
4202
4203 * frame.c (Vemacs_iconified): Remove.
4204
7f714baf
JR
42052008-12-30 Jason Rumney <jasonr@gnu.org>
4206
4207 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4208 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4209
9d2d22ab
CY
42102008-12-30 Chong Yidong <cyd@stupidchicken.com>
4211
4212 * indent.c (Fvertical_motion): Don't advance iterator if we have
4213 reseated to the desired position.
4214
4215 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4216 checking for pos match.
4217
545312c2
KH
42182008-12-30 Kenichi Handa <handa@m17n.org>
4219
1ede3eb6
KH
4220 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4221 just get the low 8-bit of the code.
4222
545312c2
KH
4223 * font.c (font_intern_prop): Validate str as multibyte.
4224
bd7bbf29
DN
42252008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4226
31e0750e
DN
4227 * dispextern.h (struct face): Move lface and hash from the middle
4228 of bitfields.
4229
bd7bbf29
DN
4230 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4231
b5672e7c
DN
42322008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4233
4234 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4235 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4236 instead of intervals.h.
4237
d704470f
AS
42382008-12-26 Andreas Schwab <schwab@suse.de>
4239
4240 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4241 cons.
4242
54b33868
MR
42432008-12-26 Martin Rudalics <rudalics@gmx.at>
4244
4245 * textprop.c (Qminibuffer_prompt): New variable.
4246 (syms_of_textprop): Initialize it.
4247 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4248 in minibuffer-prompt face. (Bug#1662)
4249
40b615d6
JR
42502008-12-25 Jason Rumney <jasonr@gnu.org>
4251
4252 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4253
baae5c2d
JR
42542008-12-24 Jason Rumney <jasonr@gnu.org>
4255
4256 * ralloc.c (r_alloc_reset_variable): New function.
4257
4258 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4259 record of what points where. (Bug#716)
baae5c2d 4260
a9051c88
DN
42612008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4262
4263 * minibuf.c (read_minibuf): Follow the non-interactive case when
4264 running as a daemon, before detaching.
4265
8b146312
AS
42662008-12-22 Andreas Schwab <schwab@suse.de>
4267
4268 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4269 * gtkutil.c (free_widget_value): Use xfree instead of free.
4270
56f2de10
MR
42712008-12-22 Martin Rudalics <rudalics@gmx.at>
4272
4273 * frame.c (delete_frame): New function derived from
4274 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4275 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4276 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4277 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4278 * frame.h: Extern delete_frame.
4279 * window.c (window_loop):
4280 * terminal.c (delete_terminal):
4281 * xterm.c (x_connection_closed):
4282 * xfns.c (Fx_hide_tip):
9acef61c 4283 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4284
1fc200d6
JR
42852008-12-21 Jason Rumney <jasonr@gnu.org>
4286
4287 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4288 when character maps to .notdef character.
4289
5e252df2
SM
42902008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4291
4292 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4293
99b72cc4
JR
42942008-12-20 Jason Rumney <jasonr@gnu.org>
4295
4296 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4297 a graphical frame on Windows. (Bug#1325)
99b72cc4 4298
acc49a52
JD
42992008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4300
4301 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4302
6ea15123
CY
43032008-12-20 Chong Yidong <cyd@stupidchicken.com>
4304
4305 * minibuf.c (Fread_buffer): Doc fix.
4306
b2dab6c8
JR
43072008-12-20 Jason Rumney <jasonr@gnu.org>
4308
54ea0c87 4309 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4310 server name in UNC paths. (Bug#719)
54ea0c87 4311
b2dab6c8 4312 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4313 charbuf. (Bug#1035)
b2dab6c8 4314
6d1921be
DN
43152008-12-19 Daniel Engeler <engeler@gmail.com>
4316
4317 * sysdep.c (serial_configure): Fix typo.
4318
53934c98
DN
43192008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4320
4321 * sysdep.c: Include alloca.h.
f4f634e8
DN
4322 (system_process_attributes): Add implementation for Solaris.
4323
4324 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4325
06e111a6
DN
43262008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4327
4328 Reorganize implementation of Flist_system_processes and
4329 Fsystem_process_attributes. No functional changes.
4330 * process.c: Don't #include pwd.h, grp.h and limits.h.
4331 (Flist_system_processes): Just call list_system_processes.
4332 (Fsystem_process_attributes): Just call system_process_attributes.
4333 (procfs_list_system_processes, time_from_jiffies)
4334 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4335 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4336
4337 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4338 (list_system_processes): Rename from
4339 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4340 Provide a do nothing implementation.
4341 (system_process_attributes): Rename from
4342 procfs_list_system_processes.
4343 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4344 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4345
4346 * w32.c (list_system_processes): Rename from
4347 w32_list_system_processes.
4348 (system_process_attributes): Rename from
4349 w32_system_process_attributes.
4350
4351 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4352
4353 * process.h (w32_list_system_processes)
4354 (w32_system_process_attributes): Remove.
362654a6
JB
4355 (list_system_processes, system_process_attributes):
4356 New prototypes.
06e111a6 4357
6a705b23
KH
43582008-12-19 Kenichi Handa <handa@m17n.org>
4359
4360 * xfont.c (xfont_decode_coding_xlfd): New function.
4361 (xfont_encode_coding_xlfd): New function.
4362 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4363 (xfont_list): Decode and encode XLFD by iso-8859-1.
4364 (xfont_match): Likewise.
4365 (xfont_list_family): Likewise.
4366 (xfont_open): Likewise.
4367
d66c0241 4368 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4369 names are utf-8.
4370
d66c0241 4371 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4372 names are utf-8.
4373
5a130941
JD
43742008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4375
4376 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4377 changed.
bfd20325
JD
4378 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4379 clicked on a detached tool bar button.
5a130941 4380
fd95644b
DN
43812008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4382
4383 * emacs.c (main): Print and error and exit when no data is read
4384 from the pipe.
4385
e6eee6ae
JR
43862008-12-17 Jason Rumney <jasonr@gnu.org>
4387
4388 * w32font.c (w32font_has_char): Always return -1.
4389
a35dd56b
KH
43902008-12-16 Kenichi Handa <handa@m17n.org>
4391
4392 * font.c (font_open_entity): Fix previous change.
4393
0e3635c2
DN
43942008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4395
4396 * process.c: Include <limits.h>.
4397
d4835507 43982008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4399
4400 * font.c (font_update_drivers): Fix mistake in reconstructing the
4401 driver list.
4402
44032008-12-16 Chong Yidong <cyd@stupidchicken.com>
4404
4405 * font.c (font_clear_cache): Fix format of font cache data.
4406
e2cbc401
CY
44072008-12-15 Chong Yidong <cyd@stupidchicken.com>
4408
4409 * xftfont.c (xftfont_open): Free Xft font pattern if
4410 XftFontOpenPattern fails.
4411
4412 * xterm.c (x_free_frame_resources): Remove extraneous call to
4413 free_frame_faces.
4414
b131d535
CY
44152008-12-13 Chong Yidong <cyd@stupidchicken.com>
4416
4417 * xterm.c (x_delete_display): Move xim_close_dpy call to
4418 x_delete_terminal.
4419 (x_delete_terminal): Call xim_close_dpy.
4420
e6df5336
JR
44212008-12-13 Jason Rumney <jasonr@gnu.org>
4422
4423 * w32font.c (intern_font_name): New function.
4424 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4425 (w32font_open_internal, Fx_select_font): Decode font name.
4426 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4427
4428 * w32font.h (intern_font_name): Declare new function.
4429
4430 * w32uniscribe.c (add_opentype_font_name_to_list):
4431 Use intern_font_name.
4432
20d68145
CY
44332008-12-13 Chong Yidong <cyd@stupidchicken.com>
4434
9f2554de
CY
4435 * frame.c (Fdelete_frame): Call free_font_driver_list.
4436
3d9bec9a
CY
4437 * font.c (free_font_driver_list): Implement missing function.
4438
20d68145
CY
4439 * w32term.c (w32_term_init): Don't initialize the image cache
4440 here; it will be done in init_frame_faces.
4441
4442 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4443 (struct x_display_info): Remove unused member null_pixel. New
4444 member xim_callback_data.
4445
4446 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4447 (xim_initialize): Save pointer to callback function data.
4448 (xim_close_dpy): Free callback function data. Call XCloseIM,
4449 reverting 2008-11-04 change by David Smith.
4450 (x_term_init): Don't initialize the image cache here; it will be
4451 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4452 (x_delete_display): Free x_dnd_atoms member.
4453
96f9306b
KH
44542008-12-13 Kenichi Handa <handa@m17n.org>
4455
6dec9044
JB
4456 * font.c (font_rescale_ratio): Moved from xfaces.c.
4457 Argument type changed. Handle a font-spec too.
96f9306b 4458 (font_score): Check Vface_font_rescale_alist.
6dec9044 4459 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4460
4461 * xfaces.c (font_rescale_ratio): Moved to font.c.
4462
8d5b4964
CY
44632008-12-13 Chong Yidong <cyd@stupidchicken.com>
4464
4465 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4466
e6df5336
JR
44672008-12-12 Jason Rumney <jasonr@gnu.org>
4468
4469 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4470 Vwindow_system_version to the real w32 major version.
4471
97c6058a
DN
44722008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4473
4474 * term.c (init_tty): Move setting the terminal name before the
4475 potential user: maybe_fatal.
4476
ec4e88d7
CY
44772008-12-11 Chong Yidong <cyd@stupidchicken.com>
4478
d4835507
JB
4479 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4480 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4481
b4233ec9
JR
44822008-12-11 Jason Rumney <jasonr@gnu.org>
4483
8ec71e23 4484 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4485 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4486
b4233ec9 4487 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4488 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4489
011a0143
JB
44902008-12-11 Juanma Barranquero <lekktu@gmail.com>
4491
4492 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4493
3c309f34
JB
44942008-12-11 Juanma Barranquero <lekktu@gmail.com>
4495
4496 * process.c (Fsystem_process_attributes, syms_of_process):
4497 Fix typo in name of Ssystem_process_attributes.
4498 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4499
fedc6ab5
JB
45002008-12-11 Juanma Barranquero <lekktu@gmail.com>
4501
4502 * syntax.c (Fmodify_syntax_entry): Doc fix.
4503
ba3de0e8
JB
45042008-12-10 Juanma Barranquero <lekktu@gmail.com>
4505
4506 * font.c (Ffont_spec): Move usage to end of docstring.
4507
174f1c74
JR
45082008-12-10 Jason Rumney <jasonr@gnu.org>
4509
4510 * w32font.c (Qcham): New symbol.
4511 (font_supported_scripts): Add cham, and comments for other new
4512 scripts in bitfield from OpenType spec.
9d32f818
JR
4513 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4514 contain characters beyond the bmp.
174f1c74 4515
7b649478
KH
45162008-12-10 Kenichi Handa <handa@m17n.org>
4517
4518 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4519 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4520 Qunicode_sip.
4521
2133e2d1
JB
45222008-12-10 Juanma Barranquero <lekktu@gmail.com>
4523
4524 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4525 (Fcoding_system_put): Use QCdefault_char.
4526 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4527
9af886ee
CY
45282008-12-09 Chong Yidong <cyd@stupidchicken.com>
4529
74d819eb
CY
4530 * xftfont.c (syms_of_xftfont): Fix typo.
4531
4ccfa1c0 4532 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4533
7c19d3ae
DN
45342008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4535
4536 * emacs.c (main): Close daemon_pipe on exec.
4537
567826bb
CY
45382008-12-08 Chong Yidong <cyd@stupidchicken.com>
4539
4540 * termchar.h (struct tty): New members termcap_term_buffer and
4541 termcap_strings_buffer.
4542
4543 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4544 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4545 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4546 All callers changed.
4547 (init_tty): Store termcap data and string buffers in new struct
4548 tty members termcap_term_buffer and termcap_strings_buffer.
4549 (delete_tty): Free them.
4ccfa1c0 4550 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4551
aa96c42b
SZ
45522008-12-07 Seiji Zenitani <zenitani@mac.com>
4553
4554 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4555 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4556
b7e1d896
CY
45572008-12-06 Chong Yidong <cyd@stupidchicken.com>
4558
4559 * coding.c (make_conversion_work_buffer): Disable buffer
4560 modification hooks in the work buffer.
4561
b5ec91a5
EZ
45622008-12-05 Eli Zaretskii <eliz@gnu.org>
4563
4564 * process.c (procfs_system_process_attributes): If `nread' has a
4565 negative value, assign zero to it.
4566
a5d2a52b
CY
45672008-12-05 Chong Yidong <cyd@stupidchicken.com>
4568
68c5540b 4569 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4570
7bf1bb21
KH
45712008-12-05 Kenichi Handa <handa@m17n.org>
4572
4573 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4574 second character is a combining character.
4575
2fdc7d00
EZ
45762008-12-05 Eli Zaretskii <eliz@gnu.org>
4577
4578 * process.c (procfs_system_process_attributes): Don't use cmd,
4579 cmdsize, and q without initializing them first.
4580
bf6bfba8
JR
45812008-12-04 Jason Rumney <jasonr@gnu.org>
4582
4583 * w32font.c (w32font_draw): Initialize orig_clip before getting
4584 it, and delete it when finished.
4585
a3b1a468
DN
45862008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4587
4588 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4589 case when running as a daemon before detaching.
4590
8b8be8eb
JB
45912008-12-03 Juanma Barranquero <lekktu@gmail.com>
4592
805f2638 4593 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4594
b1bde622
KH
45952008-12-03 Kenichi Handa <handa@m17n.org>
4596
e500c47d
KH
4597 * font.c (font_at): Set `multibyte' at first.
4598
ca516334
KH
4599 * coding.c (decode_coding_charset): Check type of an element of
4600 vector VALIDS.
7bf1bb21 4601 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4602
4ccfa1c0 4603 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4604 (font_for_char): Likewise.
4605
1e5ecd37
CY
46062008-12-03 Chong Yidong <cyd@stupidchicken.com>
4607
d5b01609 4608 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4609 (font_update_lface): Handle fonts with corrupted size specs,
4610 i.e. non-int and non-float.
d5b01609 4611
11e3a6e4 4612 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4613 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4614 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4615
ab06788b
CY
4616 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4617
1e5ecd37 4618 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4619 underline_minimum_offset for underline position.
1e5ecd37 4620
63c125ab
DN
46212008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4622
4623 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4624
4625 * character.c (c_string_width): Specify the type for LEN.
4626
3a8406e1
KH
46272008-12-03 Kenichi Handa <handa@m17n.org>
4628
4ccfa1c0 4629 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4630 (decode_coding_utf_8): Likewise.
4ccfa1c0 4631 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4632 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4633
651df7d9
CY
46342008-12-02 Chong Yidong <cyd@stupidchicken.com>
4635
4636 * keyboard.c (make_lispy_position): Only use PT if the selected
4637 window is current.
4638
1f625c6c
AS
46392008-12-02 Andreas Schwab <schwab@suse.de>
4640
f7741ce9
AS
4641 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4642
1f625c6c
AS
4643 * doprnt.c (doprnt1): Fix size of charbuf.
4644
92bc2678
CY
46452008-12-02 Chong Yidong <cyd@stupidchicken.com>
4646
4647 * keyboard.c (timer_check): Revert last change.
4648
93b9e8cc
JB
46492008-12-02 Juanma Barranquero <lekktu@gmail.com>
4650
4651 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4652
fd7a37d5
JB
46532008-12-01 Juanma Barranquero <lekktu@gmail.com>
4654
4655 * makefile.w32-in: Update dependencies.
4656 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4657
c115043b
AS
46582008-12-01 Andreas Schwab <schwab@suse.de>
4659
4660 * font.c (register_font_driver): Use xmalloc.
4661 (font_put_frame_data): Likewise.
4662
f5668d2a
CY
46632008-12-01 Chong Yidong <cyd@stupidchicken.com>
4664
860d96be
CY
4665 * xfaces.c (realize_x_face): Make abort condition clearer.
4666
f5668d2a
CY
4667 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4668
379c17e7
CY
46692008-11-30 Chong Yidong <cyd@stupidchicken.com>
4670
4671 * keyboard.c (timer_check): After a timer runs, ensure that the
4672 selected window's buffer is current.
4673
35f36d65
JB
46742008-11-30 Juanma Barranquero <lekktu@gmail.com>
4675
f952c61c
JB
4676 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4677 It was accidentally restored by the Unicode merge.
4678
35f36d65
JB
4679 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4680
b23077df
JB
46812008-11-29 Juanma Barranquero <lekktu@gmail.com>
4682
4683 * w32proc.c: Include "coding.h".
4684 (Fw32_short_file_name): Encode filename passed to Windows API.
4685 (Fw32_long_file_name): Encode filename passed to Windows API and
4686 decode back the result. (Bug#1433)
4687
b8ebe9dd
KH
46882008-11-29 Kenichi Handa <handa@m17n.org>
4689
8cc53f96
KH
4690 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4691 not before accessing it.
4692
b8ebe9dd
KH
4693 * charset.c (Fdefine_charset_internal): After calculating
4694 min_char, max_char, and fastmap, copy the charset structure again.
4695 (encode_char): Fix the previous change.
4696
59bc82c0
SZ
46972008-11-28 Seiji Zenitani <zenitani@mac.com>
4698
4699 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4700
4701 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4702
4703 * nsterm.m (x_set_frame_alpha): New function.
4704
32247e3d
EZ
47052008-11-27 Eli Zaretskii <eliz@gnu.org>
4706
4707 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4708
b003e5ff
JB
47092008-11-27 Juanma Barranquero <lekktu@gmail.com>
4710
4711 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4712 pointer to check_face_name.
4713
708550f5
KH
47142008-11-27 Kenichi Handa <handa@m17n.org>
4715
4716 * category.h (SET_CATEGORY_SET): Call set_category_set.
4717 (set_category_set): Extern it.
4718
4719 * category.c (hash_get_category_set): New function.
4720 (Fmodify_category_entry): Adjusted for the change of
4721 char_table_ref_and_range. Call hash_get_category_set to get a
4722 category set to store in the table.
4723
4724 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4725 Funify_charset.
4726
2ae37cf0 4727 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4728 (DECODE_CHAR): Check if the decoder vector is ready.
4729 (ENCODE_CHAR): Check if the encoder char-table is ready.
4730 (maybe_unify_char): Extern it.
4731
4732 * charset.c (Vchar_unified_charset_table): Delete it.
4733 (inhibit_load_charset_map): New variable.
4734 (temp_charset_work): New variable.
4735 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4736 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4737 New macros.
4738 (load_charset_map): Meaning of control_flag changed. If
4739 inhibit_load_charset_map is nonzero, setup a table in
4740 temp_charset_work.
4741 (load_charset): New argument control_flag.
4742 (map_charset_for_dump): New function.
4743 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4744 map_charset_for_dump.
4745 (Fdefine_charset_internal): If the charset method is MAP, load
4746 mapping tables by calling load_charset.
4747 (Funify_charset): Don't load a mapping table but directly set
4748 Vchar_unify_table.
4749 (maybe_unify_char): New function.
4750 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4751 Handle the case of inhibit_load_charset_map being nonzero.
4752 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4753 Handle the case of inhibit_load_charset_map being nonzero.
4754 (Fclear_charset_maps): Just free temp_charset_work.
4755 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4756 variable.
4757
4758 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4759 change of char_table_ref_and_range.
4760 (char_table_ref_and_range): Change the meaning of argument FROM
4761 and TO. Now the caller must provide initial values for *FROM
4762 and *TO.
4763
4764 * fontset.c (fontset_add): Adjusted for the change of
4765 char_table_ref_and_range.
4766 (fontset_get_font_group): Likewise.
4767 (Ffontset_info): Likewise.
4768
4769 * keymap.c (describe_vector): Adjusted for the change of
4770 char_table_ref_and_range. For char-table, put boundary between
4771 non-ASCII and 8-bit characters.
4772
4773 * print.c (print_object): For bool-vector, delete unnecessary
4774 check of ASCII_BYTE_P.
4775
9196133b
JR
47762008-11-26 Jason Rumney <jasonr@gnu.org>
4777
4778 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4779 leading in font height. (Bug#879)
9196133b 4780
9f688acf
GM
47812008-11-26 Glenn Morris <rgm@gnu.org>
4782
4783 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4784 redefinition with ifdef. (Bug#1383)
4785
90d19aff
AR
47862008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4787
4788 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4789
4ccfa1c0 47902008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4791
4792 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4793 New EmacsView methods.
4794 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4795 Fixes bug #1048,1357,1414.
4796
47972008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4798
4799 Fix bug #1362.
4800 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4801 is not an indexed color.
4802 * nsterm.m (free_indexed_color): Add argument checking.
4803 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4804
e7d5ecb3
CY
48052008-11-24 Chong Yidong <cyd@stupidchicken.com>
4806
4807 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4808 Document confirm-after-completion value for
4809 minibuffer-completion-confirm.
4810
c285743c
JR
48112008-11-24 Jason Rumney <jasonr@gnu.org>
4812
4813 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4814 warning.
4815
b0857706
JR
48162008-11-23 Jason Rumney <jasonr@gnu.org>
4817
4818 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4819 restored before returning.
4820
4821 * w32font.c (check_face_name): New function.
4822 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4823 fonts. (Bug#642)
b0857706 4824
ee50ff07
MR
48252008-11-22 Martin Rudalics <rudalics@gmx.at>
4826
4827 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4828 confirm-nonexistent-file-or-buffer in doc-string.
4829
b8ff72fa
SM
48302008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4831
4832 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4833 Fix copy/paste typo. Add checks.
4834
cee53ed4
KH
48352008-11-21 Kenichi Handa <handa@m17n.org>
4836
4837 * coding.c (detect_coding_iso_2022): Reject invalid composition
4838 sequence.
4839 (DECODE_COMPOSITION_START): If the current source is the last
4840 block, and the current composition doesn't end, regard this
4841 sequence as invalid.
4842 (decode_coding_iso_2022): Handle invalid composition sequence.
4843
f6ef1e65
MR
48442008-11-20 Martin Rudalics <rudalics@gmx.at>
4845
4846 * window.c (coordinates_in_window): Don't return
4847 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4848 line when the window is not the rightmost one. (Bug#1372)
4849
e08b1705
MR
48502008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4851
4852 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4853
ad98e89f
EZ
48542008-11-15 Eli Zaretskii <eliz@gnu.org>
4855
4856 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4857 and bright_bg if noninteractive is non-zero.
4858
fb098a4b
CY
48592008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4860
4861 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4862 x_draw_glyph_string_background.
4863
4864 * w32term.c (x_draw_glyph_string): Likewise.
4865
ce952b6e
CY
48662008-11-15 Chong Yidong <cyd@stupidchicken.com>
4867
4868 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4869 the next glyph string once past the overhang width.
4870
4871 * nsterm.m (ns_draw_glyph_string): Likewise.
4872
4873 * w32term.c (x_draw_glyph_string): Likewise.
4874
26ea7079
CY
48752008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4876
4877 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4878 double file close.
4879
1c33c906
MR
48802008-11-14 Martin Rudalics <rudalics@gmx.at>
4881
4882 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4883 dedicated status of window before attempting to display another
4884 buffer in it.
4885
8fc29035
JB
48862008-11-14 Juanma Barranquero <lekktu@gmail.com>
4887
4888 * msdos.c (Fmsdos_long_file_names):
4889 (syms_of_msdos) <dos-unsupported-char-glyph>:
4890 * dosfns.c (Fint86): Fix typos in docstrings.
4891
55fb4286
EZ
48922008-11-14 Eli Zaretskii <eliz@gnu.org>
4893
4894 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4895
3fda0315
KY
48962008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4897
4898 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4899
7e849c17
CY
49002008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4901
4902 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4903
4904 * frame.h: Negative alpha means "don't touch".
4905
4906 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4907
4908 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4909
b9fd67bd
DN
49102008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4911
4912 * hftctl.c:
4913 * chpdef.h:
4914 * acldef.h: Remove files used only for systems no longer supported.
4915
4916 * Makefile.in: Fix .o alphabetical ordering.
4917 (hftctl.o): Remove dependency, file removed.
4918 (keymap.o, print.o): Depend on charset.h.
4919
d5998e03
KH
49202008-11-10 Kenichi Handa <handa@m17n.org>
4921
2ae37cf0 4922 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4923
be70e183
CY
49242008-11-08 Chong Yidong <cyd@stupidchicken.com>
4925
4926 * dired.c (file_name_completion): If completion_ignore_case is
4927 enabled, ignore case when checking completion-regexp-list.
4928
7cf94eac
EZ
49292008-11-08 Eli Zaretskii <eliz@gnu.org>
4930
4931 * vm-limit.c (get_lim_data): Fix last change.
4932
ee107a89
KH
49332008-11-08 Kenichi Handa <handa@m17n.org>
4934
4935 * character.c (Fget_byte): New function.
4936 (syms_of_character): Defsubr Fget_byte.
4937
5fd15622
CY
49382008-11-07 Chong Yidong <cyd@stupidchicken.com>
4939
4940 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4941 cursor position is valid after scrolling.
4942
13d62fad
JB
49432008-11-06 Juanma Barranquero <lekktu@gmail.com>
4944
4945 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4946
a1dd2936
GM
49472008-11-06 Glenn Morris <rgm@gnu.org>
4948
4949 * xterm.c (handle_one_xevent): Don't let popup menus cause
4950 mouse-autoselect-window related window switching. (Bug#1261)
4951
860cd236
CY
49522008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4953
4954 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4955
653a3150
AS
49562008-11-04 Andreas Schwab <schwab@suse.de>
4957
4958 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4959
870f5cac
CY
49602008-11-03 Chong Yidong <cyd@stupidchicken.com>
4961
4962 * xfns.c (Fx_wm_set_size_hint): New function.
4963
1e02f3cb
MR
49642008-11-03 Martin Rudalics <rudalics@gmx.at>
4965
4966 * textprop.c (Fprevious_single_char_property_change): Return 0
4967 when there's no change in a string. (Bug#1301)
4968
e630dfc6
MR
49692008-11-02 Martin Rudalics <rudalics@gmx.at>
4970
4971 * frame.c (do_switch_frame): New argument NORECORD passed to
4972 Fselect_window.
4973 (Fselect_frame): New argument NORECORD passed to
4974 do_switch_frame.
4975 (Fset_frame_selected_window): New argument NORECORD passed to
4976 Fselect_frame.
4977 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4978 in call of do_switch_frame.
4979 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4980 Handle NORECORD argument in call of Fselect_frame.
4981 * lisp.h (do_switch_frame, Fselect_frame)
4982 (Fset_frame_selected_window): Adjust declarations.
4983 * window.c (select_frame_norecord): New function.
4984 (run_window_configuration_change_hook): Use it and call
4985 Fselect_frame with NORECORD set.
4986 (Fselect_window): Pass NORECORD to Fselect_frame.
4987 (Fset_window_configuration): Handle NORECORD argument in call of
4988 do_switch_frame.
4989 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4990 Fset_frame_selected_window.
4991 * keyboard.c (command_loop_1): Handle NORECORD in call of
4992 Fselect_frame (currently ifdefd).
4993
9020b223
GM
49942008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4995
4996 * emacs.c (USAGE2): Untabify.
4997
793ffee8
SM
49982008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4999
5000 * composite.c (fill_gstring_header): Fix copy/paste typo.
5001
ab6d1131
MR
50022008-10-31 Martin Rudalics <rudalics@gmx.at>
5003
5004 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
5005 (Fother_window): Rename argument and rewrite doc-string.
5006 (select_window_norecord): Fix return value. (Bug#1276)
5007
601a9cf1
JB
50082008-10-30 Juanma Barranquero <lekktu@gmail.com>
5009
5010 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5011 new frames overriding foreground for tooltips. Based on similar patch
5012 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5013
813b0652
CY
50142008-10-29 Chong Yidong <cyd@stupidchicken.com>
5015
5016 * emacs.c (Fdaemon_initialized): Initialize nfd.
5017
4414f58f
MR
50182008-10-29 Martin Rudalics <rudalics@gmx.at>
5019
5020 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5021 (Fwindow_text_height): Clarify doc-strings.
5022 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5023 doc-string of window-scroll-functions.
5024
ecdcaa09
RS
50252008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5026
5027 * category.c (syms_of_category): Fix typo in docstring.
5028
23fe745a
JB
50292008-10-28 Juanma Barranquero <lekktu@gmail.com>
5030
5031 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5032 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5033 Fix typos in docstrings.
5034
ff808935
DN
50352008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5036
5037 * emacs.c (daemon_pipe): Make non-static.
5038 (IS_DAEMON): Move definition ...
5039 * lisp.h (IS_DAEMON): ... here.
5040 (daemon_pipe): Declare.
5041 (is_daemon): Remove.
5042 * dispnew.c (init_display): Use IS_DAEMON.
5043
fc012771
SM
50442008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5045
5046 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5047 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5048
5049 * emacs.c (is_daemon): Remove.
5050 (main): Don't set is_daemon.
5051 (IS_DAEMON): New macro.
5052 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5053 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5054 parent exits.
5055 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5056
d8bdbe6f
CY
50572008-10-27 Chong Yidong <cyd@stupidchicken.com>
5058
d1a072bf
CY
5059 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5060 over-sized glyph, draw it with the default glyph width.
5061
e2e325aa
CY
5062 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5063 glyph, draw it with the default glyph width.
5064
5065 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5066 glyph, draw it with the default glyph width.
5067
d8bdbe6f
CY
5068 * xdisp.c (try_scrolling): When computing the distance from the
5069 scroll margin to PT, try moving some distance past the window
5070 bottom before giving up.
5071
7bfac547
MR
50722008-10-27 Martin Rudalics <rudalics@gmx.at>
5073
5074 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5075 (Fset_window_buffer): Explain in doc-string that a window can be
5076 "strongly" dedicated to its buffer.
5077
4ff029f6
DN
50782008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5079
5080 * emacs.c (daemon_name): New variable.
5081 (main): Deal with --daemon=SERVER_NAME.
5082 (Fdaemonp): Return a name if one was passed to --daemon.
5083
5790ef40
DN
50842008-10-26 Romain Francoise <romain@orebokech.com>
5085
f9bd0df9 5086 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5087 (main): Create a pipe before forking, make the parent exit only after
5088 the child has closed its end of the pipe. Move closing the
5089 descriptors ...
5090 (Fdaemon_initialized): ... here. New function.
5091
f5385255
SM
50922008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5093
4d632321
SM
5094 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5095 the previous unoptimized table.
5096
f5385255
SM
5097 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5098 the distinction between non-nil and non-t value of `dedicated'.
5099
6c56a0f3
CY
51002008-10-25 Chong Yidong <cyd@stupidchicken.com>
5101
5102 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5103 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5104
fec89261
MR
51052008-10-25 Martin Rudalics <rudalics@gmx.at>
5106
5107 * window.c (Fget_buffer_window, Fdelete_windows_on)
5108 (Freplace_buffer_in_windows): Make buffer argument optional and
5109 rename to buffer_or_name.
5110
34fcddd0
CY
51112008-10-24 Chong Yidong <cyd@stupidchicken.com>
5112
f5385255
SM
5113 * xdisp.c (handle_single_display_spec, handle_display_prop):
5114 Undo 2005-05-16 change.
34fcddd0
CY
5115 (handle_stop): Pop iterator if it's loaded with an empty string.
5116 (get_overlay_strings_1): Don't save iterator if it's loaded with
5117 an empty string (bug#1201).
5118
064766f2
KH
51192008-10-24 Kenichi Handa <handa@m17n.org>
5120
5121 * ftfont.c (ftfont_otf_features): Fix previous change.
5122 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5123 calling ftfont_otf_features.
5124
f9bd0df9 51252008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5126
5127 * font.c (font_match_p): Fix for the case that a vector of
5128 characters is in script-representative-chars.
5129
1dae9197
MA
51302008-10-24 Michael Albinus <michael.albinus@gmx.de>
5131
5132 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5133 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5134 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5135 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5136 macro. (Bug#1186).
5137
f9bd0df9 51382008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5139
5140 * s/sol2-10.h: New file.
5141
878a4584
JB
51422008-10-23 Juanma Barranquero <lekktu@gmail.com>
5143
5144 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5145 poor beast has survived 9+ years and the jump from xterm.c!).
5146
cd265ca6
MR
51472008-10-23 Martin Rudalics <rudalics@gmx.at>
5148
5149 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5150 Reword doc-string.
f5385255 5151 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5152
472a4dc9
JB
51532008-10-23 Juanma Barranquero <lekktu@gmail.com>
5154
5155 * character.c (syms_of_character) <script-representative-chars>:
5156 <unicode-category-table>: Doc fixes.
5157
159bd5a2
NF
51582008-10-23 Noah Friedman <friedman@splode.com>
5159
5160 * coding.c (make_conversion_work_buffer): Check that
5161 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5162 Fget_buffer_create.
5163
49f9c344
KH
51642008-10-23 Kenichi Handa <handa@m17n.org>
5165
5166 * font.c (font_add_log): Check the values of extra properties.
5167
12bb3111
MR
51682008-10-22 Martin Rudalics <rudalics@gmx.at>
5169
5170 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5171 Reword doc-string.
5172 (Fset_window_parameter): Use NILP.
5173 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5174 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5175
bbeb4e99
JB
51762008-10-22 Juanma Barranquero <lekktu@gmail.com>
5177
5178 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5179
51802008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5181
5182 * nsfns.m (ns_appkit_version): New function.
5183 (x-server-version): Use it.
5184 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5185 (x-server-vendor): Don't check_ns().
5186
5187 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5188
a9b555d3
JB
51892008-10-22 Juanma Barranquero <lekktu@gmail.com>
5190
5191 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5192 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5193
4626499f
KH
51942008-10-22 Kenichi Handa <handa@m17n.org>
5195
e3681952
KH
5196 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5197 scripts.
5198
4626499f
KH
5199 * category.c (word_boundary_p): Check scripts instead of charset.
5200 Handle nil value in word-separating-categories and
5201 word-combining-categories.
5202 (syms_of_category): Fix docstrings of word-separating-categories
5203 and word-combining-categories.
5204
1560f91a
EZ
52052008-10-21 Eli Zaretskii <eliz@gnu.org>
5206
5207 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5208 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5209
f4668441
MR
52102008-10-21 Martin Rudalics <rudalics@gmx.at>
5211
5212 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5213 Rename arg "buffer" to "buffer_or_name".
5214 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5215 it optional.
5216 (no_switch_window): Remove since the return value is not used.
a9b555d3 5217 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5218 Consider window as dedicated when Fwindow_dedicated_p returns a
5219 non-nil value.
5220 * lisp.h: Remove prototype for no_switch_window.
5221
fd75ddb2
JD
52222008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5223
5224 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5225 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5226
07295713
KH
52272008-10-21 Kenichi Handa <handa@m17n.org>
5228
5229 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5230 check Vlatin_extra_code_table.
5231
712adc82
EZ
52322008-10-20 Eli Zaretskii <eliz@gnu.org>
5233
5234 * fileio.c (Fset_file_modes): Doc fix.
5235
f549eb0b
MA
52362008-10-19 Michael Albinus <michael.albinus@gmx.de>
5237
5238 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5239 in arrays.
5240
aac0c6e3
MR
52412008-10-19 Martin Rudalics <rudalics@gmx.at>
5242
5243 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5244 Mention kill-buffer in doc-string.
5245 (Fset_window_buffer): Reinsert tem check removed in last commit.
5246 (Fenlarge_window, Fshrink_window): Have argument names and
5247 doc-string follow Elisp manual more closely.
5248
52492008-10-18 Eli Zaretskii <eliz@gnu.org>
5250
5251 * fileio.c (Fset_file_modes): Doc fix.
5252
52532008-10-18 Martin Rudalics <rudalics@gmx.at>
5254
5255 * window.c (Fwindow_width, Fset_window_start)
5256 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5257 (Fdelete_windows_on, Freplace_buffer_in_windows):
5258 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5259 (Fwindow_dedicated_p): Make window argument optional.
5260 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5261 (Fset_window_buffer): Respect any non-nil dedicated value for
5262 window. Rename "buffer" argument to "buffer_or_name".
5263
52642008-10-18 Ulrich Mueller <ulm@gentoo.org>
5265
5266 * m/sh3.h: New file, machine description for SuperH.
5267
52682008-10-17 Martin Rudalics <rudalics@gmx.at>
5269
5270 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5271
52722008-10-17 Kenichi Handa <handa@m17n.org>
5273
5274 * ftfont.c (ftfont_otf_features): Fix indexing
5275 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5276
52772008-10-16 Magnus Henoch <mange@freemail.hu>
5278
5279 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5280 (Fdbus_call_method_asynchronously): Ditto.
5281 This change makes C-h f display the argument list.
5282
52832008-10-16 Chong Yidong <cyd@stupidchicken.com>
5284
5285 * fileio.c (Fexpand_file_name): Doc fix.
5286
5287 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5288 of :foreground and :background equivalent to unspecified (20.x
5289 compatibility).
5290
52912008-10-15 Eli Zaretskii <eliz@gnu.org>
5292
5293 * buffer.c (syms_of_buffer): Doc fix.
5294
52952008-10-14 Kenichi Handa <handa@m17n.org>
5296
5297 * font.c (font_clear_prop): When clearing font width, clear the
5298 average width field too.
5299
53002008-10-12 Andreas Schwab <schwab@suse.de>
5301
5302 * ftfont.c (ftfont_shape_by_flt): Make static.
5303 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5304
5305 * font.c: Don't include <m17n-flt.h>.
5306
53072008-10-10 Eli Zaretskii <eliz@gnu.org>
5308
5309 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5310
53112008-10-09 Eli Zaretskii <eliz@gnu.org>
5312
5313 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5314 away code.
5315
53162008-10-09 Chong Yidong <cyd@stupidchicken.com>
5317
5318 * dispnew.c (update_text_area): Avoid looping due to large glyph
5319 overhangs (bug#1070).
5320
53212008-10-09 Kenichi Handa <handa@m17n.org>
5322
5323 * fontset.c (face_for_char): If face->fontset is negative, just
5324 return ascii_face.
5325
f5385255
SM
5326 * font.c (font_delete_unmatched): Fix previous change.
5327 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5328
53292008-10-09 Martin Rudalics <rudalics@gmx.at>
5330
5331 * frame.c (Fraise_frame): On text-only terminals select frame in
5332 order to make it visible. (Bug#1061)
5333
53342008-10-08 Chong Yidong <cyd@stupidchicken.com>
5335
5336 * fontset.c (fontset_find_font): Check frame validity.
5337
53382008-10-07 Chong Yidong <cyd@stupidchicken.com>
5339
a9b555d3 5340 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5341 (xg_display_close): Allow Emacs to close all displays (bug#985).
5342
53432008-10-06 Andreas Schwab <schwab@suse.de>
5344
f5385255 5345 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5346
53472008-10-06 Chong Yidong <cyd@stupidchicken.com>
5348
f5385255 5349 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5350
a9b555d3 5351 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5352
5353 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5354 during initialization.
5355
53562008-10-04 Eli Zaretskii <eliz@gnu.org>
5357
5358 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5359 whole thing on MSDOS frames as well as on a TTY.
5360
5361 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5362 well as for TTY.
5363 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5364 well as on a TTY.
5365
5366 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5367 as well as for TTY.
5368
5369 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5370
5371 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5372 MSDOS frames as well.
5373
53742008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5375
5376 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5377 correct arguments.
b71ac3dd 5378 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5379
53802008-10-03 Glenn Morris <rgm@gnu.org>
5381
5382 * emacs.c (USAGE1): Add --daemon.
5383
53842008-10-02 Eli Zaretskii <eliz@gnu.org>
5385
5386 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5387 100, so it's in percents as advertised.
5388
53892008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5390
5391 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5392 (ns_output.current_cursor, ns_output.desired_cursor)
5393 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5394 (FRAME_NEW_CURSOR_COLOR): Remove.
5395
5396 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5397 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5398 enumeration (HOLLOW_BOX_CURSOR, etc.).
5399
5400 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5401 (draw_window_cursor): Simplify code.
f5385255
SM
5402 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5403 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5404 updates manually.
a9b555d3
JB
5405 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5406 Use core Emacs cursor types.
aac0c6e3 5407
b8ff72fa 5408 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5409
54102008-10-02 Martin Rudalics <rudalics@gmx.at>
5411
5412 * process.c (Faccept_process_output): Fix doc-string.
5413
54142008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5415
5416 * gmalloc.c (__sbrk): Also define for uClibc.
5417
5418 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5419 for uClibc.
5420
54212008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5422
5423 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5424 styles.
5425 (nsfont_open): Reenable the cache.
5426
54272008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5428
5429 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5430 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5431
54322008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5433
5434 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5435 a suspended terminal.
5436
54372008-09-30 Michael Albinus <michael.albinus@gmx.de>
5438
5439 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5440
54412008-09-30 Eli Zaretskii <eliz@gnu.org>
5442
5443 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5444
54452008-09-30 Chong Yidong <cyd@stupidchicken.com>
5446
5447 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5448 in a continued line coincides with a line beginning.
5449
54502008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5451
5452 * nsfont.m (nsfont_trait_distance): Fix bug.
5453 (nsfont_list): Return a list rather than a vector (syncs with Handa
5454 changes of 2008-05-14).
5455 (nsfont_open): Improve logging.
5456
54572008-09-29 Andreas Schwab <schwab@suse.de>
5458
5459 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5460
54612008-09-28 Martin Rudalics <rudalics@gmx.at>
5462
5463 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5464 name as char-resolve-modifiers.
5465 Reported by: Markus Triska <markus.triska@gmx.at>
5466
54672008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5468
5469 * dispnew.c (init_display): Return earlier when running as a daemon.
5470
54712008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5472
5473 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5474
54752008-09-27 Eli Zaretskii <eliz@gnu.org>
5476
5477 * composite.c (Fcomposition_get_gstring)
5478 (Fcompose_region_internal, Fcompose_string_internal)
5479 (Ffind_composition_internal): Doc fix.
5480 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5481 (syms_of_composite) <auto-composition-function>: Doc fix.
5482 (syms_of_composite) <composition-function-table>: Doc fix.
5483
54842008-09-25 Chong Yidong <cyd@stupidchicken.com>
5485
5486 * search.c (wordify): New argument for lax word-ends.
5487 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5488
54892008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5490
5491 * lisp.h (is_daemon): Declare.
5492 * dispnew.c (init_display): Do not try to initialize the terminal
5493 when running as a daemon.
5494
54952008-09-22 Chong Yidong <cyd@stupidchicken.com>
5496
5497 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5498 x_display_pixel_height.
5499
55002008-09-22 Martin Rudalics <rudalics@gmx.at>
5501
5502 * undo.c (record_point): Don't call Fundo_boundary for first
5503 change. (Bug#731)
5504
55052008-09-22 Juanma Barranquero <lekktu@gmail.com>
5506
5507 * emacs.c (Fdaemonp): Doc fix.
5508
55092008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5510
5511 * emacs.c (main): Place #ifdef in the proper place.
5512
55132008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5514
5515 * emacs.c (standard_args): Add --daemon.
5516 (main): Disconnect from the terminal when --daemon is passed.
5517 (is_daemon): New variable.
5518 (Fdaemonp): New function.
5519 (syms_of_emacs): Defsubr it.
5520
55212008-09-20 Chong Yidong <cyd@stupidchicken.com>
5522
5523 * xdisp.c (get_next_display_element): Handle string display
5524 correctly when checking for the end of a box run.
5525
55262008-09-20 Glenn Morris <rgm@gnu.org>
5527
5528 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5529 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5530 (Frename_file): Avoid copying to trash if a rename involves
5531 a delete. (Bug#964).
5532
55332008-09-20 Eli Zaretskii <eliz@gnu.org>
5534
5535 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5536 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5537 frames as well as termcap frames.
5538 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5539 get_named_tty.
5540
55412008-09-19 Eli Zaretskii <eliz@gnu.org>
5542
5543 * process.c (procfs_system_process_attributes): Fix cmdline in
5544 case /proc/PID/cmdline is empty.
5545
5546 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5547 x_display_pixel_height.
5548
55492008-09-19 Juanma Barranquero <lekktu@gmail.com>
5550
5551 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5552
5553 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5554 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5555
55562008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5557
5558 * dispextern.h (struct it): Move line_wrap away from the middle of
5559 bitfields. Move voffset in struct iterator_stack_entry after the
5560 bitfields. Move tab_width near after another short.
5561
55622008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5563
5564 * frame.h (struct frame): Move alpha from the middle of bitfields.
5565
5566 * window.h (struct window): Move frozen_window_start_p after the
5567 rest of the bitfields to reduce padding.
5568
55692008-09-18 Chong Yidong <cyd@stupidchicken.com>
5570
5571 * xterm.h (x_display_info): Remove `height' and `width' members.
5572
5573 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5574
5575 * w32term.h (w32_display_info): Remove `height', `width',
5576 `height_in', and `width_in' members.
5577
b8ff72fa
SM
5578 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5579 New functions.
aac0c6e3
MR
5580 (x_calc_absolute_position): Use them.
5581 (x_term_init): Omit removed `height' and `width' members.
5582
b8ff72fa
SM
5583 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5584 New functions.
aac0c6e3
MR
5585 (w32_read_socket, x_calc_absolute_position): Use them.
5586 (w32_initialize_display_info, w32_term_init): Omit removed members
5587 of w32_display_info.
5588
b8ff72fa
SM
5589 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5590 New functions.
5591 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5592
b8ff72fa
SM
5593 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5594 New functions.
aac0c6e3
MR
5595 (x_calc_absolute_position): Use them.
5596 (x_term_init): Omit removed `height' and `width' members.
5597
5598 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5599 (compute_tip_xy):
5600 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5601 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5602 x_display_pixel_width.
5603
56042008-09-18 Kenichi Handa <handa@m17n.org>
5605
5606 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5607 (composition_compute_stop_pos): Fix handling of static composition.
5608 (Fcomposition_get_gstring): Check FROM and TO at first.
5609
56102008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5611
46e722a9 5612 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5613 mixup (YAILOM).
5614
56152008-09-17 Chong Yidong <cyd@stupidchicken.com>
5616
5617 * indent.c (Fvertical_motion): Use position reported by iterator
5618 instead of PT for determining screen motion (bug#943).
5619
56202008-09-17 Romain Francoise <romain@orebokech.com>
5621
5622 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5623
56242008-09-17 Kenichi Handa <handa@m17n.org>
5625
5626 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5627
5628 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5629 if necessary.
5630
56312008-09-16 Kenichi Handa <handa@m17n.org>
5632
5633 * coding.c (make_conversion_work_buffer): Avoid calling
5634 Fget_buffer_create if it is not necessary.
5635
56362008-09-15 Martin Rudalics <rudalics@gmx.at>
5637
5638 * window.c (Fselect_window): Don't update window_select_count and
5639 use_time when norecord is not nil.
5640
56412008-09-14 Kenichi Handa <handa@m17n.org>
5642
5643 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5644 specpdl_ptr.
5645
56462008-09-12 Kenichi Handa <handa@m17n.org>
5647
5648 * indent.c (scan_for_column): Don't handle automatic composition
5649 if the current buffer is not associated with a window.
5650
5651 * composite.c (composition_reseat_it): If the current buffer is
5652 not associated with a window, ignore the automatic composition.
5653 (find_automatic_composition): Likewise.
5654
56552008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5656
5657 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5658 (Fgpm_mouse_stop): Use it.
5659 * termhooks.h (close_gpm): Declare.
5660 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5661 connection if Gpm_GetEvent fails.
5662
5663 * window.c (set_window_buffer): Always preserve current-buffer.
5664
56652008-09-12 Glenn Morris <rgm@gnu.org>
5666
5667 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5668
56692008-09-11 Glenn Morris <rgm@gnu.org>
5670
5671 * charset.c (charset-map-path): Doc fix.
5672
56732008-09-10 Kenichi Handa <handa@m17n.org>
5674
5675 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5676
5677 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5678 compose a grapheme cluster with the preceding base glyph.
5679
5680 * composite.c (composition_compute_stop_pos): Fix previous change.
5681 Reset cmp_it->id to -1 at first.
5682
56832008-09-10 Glenn Morris <rgm@gnu.org>
5684
5685 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5686
56872008-09-09 Chong Yidong <cyd@stupidchicken.com>
5688
5689 * keyboard.c (read_key_sequence): Reapply translation maps when
5690 switching keyboards.
5691
56922008-09-09 Kenichi Handa <handa@m17n.org>
5693
5694 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5695 characters.
5696
5697 * composite.c (FORWARD_CHAR): Fix calculation
5698 of (POSITION).pos_byte.
5699 (composition_compute_stop_pos): Limit the search of composition to
5700 at most 500 characters ahead. If we reach the limit or find a
5701 newline, set cmp_it->ch to -2 and return 0.
5702 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5703
57042008-09-08 Kenichi Handa <handa@m17n.org>
5705
5706 * indent.c (Fvertical_motion): Be sure to set
5707 it_overshoot_expected if it.cmp_it.id is non-negative.
5708
57092008-09-07 Andreas Schwab <schwab@suse.de>
5710
5711 * callproc.c (Fcall_process): Don't hold references to string data
5712 across garbage collection. Move initialisation of new_argv down
5713 to avoid compiler bug.
5714
57152008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5716
5717 * process.c (Fsystem_process_attributes): Doc fix.
5718
57192008-09-07 Chong Yidong <cyd@stupidchicken.com>
5720
5721 * callproc.c (Fcall_process): Canonicalize current directory name.
5722
5723 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5724 iterator advances to the next line if the current line ends in a
5725 continued tab.
5726
57272008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5728
5729 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5730 member to point to cmp_from.
5731
5732 * xdisp.c: Doc fix for references to gidx data member.
5733
57342008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5735
5736 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5737
57382008-09-07 Kenichi Handa <handa@m17n.org>
5739
5740 * composite.c (FORWARD_CHAR): Check STOP after
5741 incrementing (POSITION).pos.
5742
57432008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5744
5745 * process.c (Fsystem_process_attributes): Doc fix.
5746
57472008-09-06 Chong Yidong <cyd@stupidchicken.com>
5748
5749 * keyboard.c (Ftop_level): Doc fix.
5750
57512008-09-06 Eli Zaretskii <eliz@gnu.org>
5752
5753 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5754 minibuffer, don't let lower part of menu invade the echo area.
5755
5756 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5757 "char *q" to access menu text and advance through it. Revert the
5758 change that displayed ">" instead of ASCII character 0x10.
5759
57602008-09-05 Eli Zaretskii <eliz@gnu.org>
5761
5762 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5763 toggle boxes and radio buttons on MS-DOS as well.
5764
57652008-09-05 Kenichi Handa <handa@m17n.org>
5766
5767 * composite.c (autocmp_chars): Check lookback count.
5768 (composition_compute_stop_pos): Set cmp_it->lookback.
5769 (composition_reseat_it): Check lookback count.
5770 (struct position_record): New struct.
5771 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5772 (find_automatic_composition): New function.
5773 (composition_adjust_point): Use find_automatic_composition.
5774
5775 * dispextern.h (struct composition_it): New member lookback.
5776
57772008-09-02 Chong Yidong <cyd@stupidchicken.com>
5778
5779 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5780 if moving by a single line.
5781
57822008-09-02 Andreas Schwab <schwab@suse.de>
5783
5784 * xterm.c (x_delete_display): Fix merge error.
5785
5786 * fileio.c (Fexpand_file_name): Remove unused variables.
5787
57882008-09-02 Eli Zaretskii <eliz@gnu.org>
5789
5790 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5791 storage on all platforms, not just on DOS_NT.
5792
57932008-09-02 Jason Rumney <jasonr@gnu.org>
5794
b8ff72fa
SM
5795 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5796 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5797
57982008-09-01 Chong Yidong <cyd@stupidchicken.com>
5799
5800 * xfaces.c (Finternal_set_alternative_font_family_alist)
5801 (Finternal_set_alternative_font_registry_alist): Properly copy
5802 entire alist structure.
5803
58042008-09-01 Kenichi Handa <handa@m17n.org>
5805
d66c0241 5806 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5807 representative chars of the script is a vector.
d66c0241
JB
5808 (ftfont_list): Handle the case where the representative chars of
5809 the script is a vector.
aac0c6e3
MR
5810
5811 * character.c (syms_of_character): Docstring of
5812 script-representative-chars fixed.
5813
58142008-08-31 Eli Zaretskii <eliz@gnu.org>
5815
5816 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5817 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5818 the menu. Allocate larger buffer for `text', to account for
5819 possible ^C characters.
5820
58212008-08-31 Martin Rudalics <rudalics@gmx.at>
5822
5823 * xdisp.c (prepare_menu_bars): Don't call
5824 Vwindow_size_change_functions with arg Qt.
5825
58262008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5827
5828 * font.h (font_range):
5829 * fileio.c (report_file_error):
46e722a9
SM
5830 * composite.c (composition_update_it): Yet another int/Lisp_Object
5831 mixup (YAILOM).
aac0c6e3
MR
5832
58332008-08-30 Glenn Morris <rgm@gnu.org>
5834
5835 * data.c (Fmake_variable_frame_local): Doc fix.
5836
5837 * frame.c (Fmodify_frame_parameters): Doc fix.
5838
58392008-08-30 Eli Zaretskii <eliz@gnu.org>
5840
5841 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5842 needed by GetTokenInformation.
5843 (w32_system_process_attributes): Check return values of all system
5844 APIs.
5845
5846 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5847 only when the state changes.
5848 (IT_update_begin, IT_update_end): Add termscript trace.
5849
5850 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5851 clipboard is unavailable. Set dst to NULL if it doesn't point to
5852 malloc'ed data.
5853 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5854 passing random values to xfree.
5855
5856 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5857 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5858
58592008-08-29 Jason Rumney <jasonr@gnu.org>
5860
5861 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5862
58632008-08-29 Eli Zaretskii <eliz@gnu.org>
5864
5865 * composite.c (fill_gstring_body): Avoid compiler warnings.
5866
5867 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5868 LGLYPH_SET_CODE to avoid compiler warnings.
5869
2ae37cf0 5870 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5871
5872 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5873
5874 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5875 LGLYPH_SET_CODE.
5876
58772008-08-29 Kenichi Handa <handa@m17n.org>
5878
5879 * fileio.c (report_file_error): Don't downcase the first character
5880 of errstring if it is still unibyte.
5881
58822008-08-29 Kenichi Handa <handa@m17n.org>
5883
5884 These changes are to re-implement the automatic composition so
5885 that it doesn't use text properties.
5886
5887 * Makefile.in (ftfont.o): Depend on composite.h.
5888 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5889
5890 * character.h (Vunicode_category_table): Extern it.
5891
5892 * character.c (Vunicode_category_table): New variable.
5893 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5894
5895 * chartab.c (optimize_sub_char_table): Perform more greedy
5896 optimization.
5897
b8ff72fa
SM
5898 * composite.h (enum composition_method):
5899 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5900 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5901 (Vcomposition_function_table): Extern it.
5902 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5903 (composition_gstring_put_cache, composition_gstring_from_id)
5904 (composition_gstring_p, composition_gstring_width)
5905 (composition_compute_stop_pos, composition_reseat_it)
5906 (composition_update_it, composition_adjust_point): Extern them.
5907 (Fcomposition_get_gstring): EXFUN it.
5908
d66c0241 5909 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5910 (Vcomposition_function_table)
5911 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5912 (gstring_hash_table, gstring_work, gstring_work_headers):
5913 New variables.
aac0c6e3
MR
5914 (gstring_lookup_cache, composition_gstring_put_cache)
5915 (composition_gstring_from_id, composition_gstring_p)
5916 (composition_gstring_width, fill_gstring_header)
5917 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5918 (composition_reseat_it, composition_update_it)
b8ff72fa 5919 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5920 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5921 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5922 Defsubr compostion_get_gstring.
5923
5924 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5925 cmp_id.
5926 (struct glyph_string): Delete the member gidx. New members
5927 cmp_id, cmp_from, and cmp_to.
5928 (enum it_method): Delete GET_FROM_COMPOSITION.
5929 (struct composition_it): New struct.
5930 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5931 Delete c, len, cmp_id, cmp_len in u.comp.
5932
5933 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5934 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5935 (enum lglyph_indices): Likewise.
b8ff72fa 5936 (font_range): Adjust extern.
aac0c6e3
MR
5937 (font_fill_lglyph_metrics): Extern it.
5938
5939 * font.c (QCf): New variable.
5940 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5941 (font_prepare_composition): Delete this function.
5942 (font_range): Type and arguments changed.
5943 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5944 (font_fill_lglyph_metrics): New function.
b8ff72fa 5945 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5946 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5947 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5948 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5949
5950 * fontset.h (font_for_char): Extern it.
5951
5952 * fontset.c (font_for_char): New function.
5953
5954 * ftfont.c: Include composite.h.
5955 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5956 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5957
5958 * indent.c: Include composite.h and dispextern.h.
5959 (check_composition): Delete this function.
5960 (scan_for_column): Handle composition by
5961 composition_compute_stop_pos, composition_reseat_it, and
5962 composition_update_it.
5963 (compute_motion): Likewise.
5964 (Fvertical_motion): Fix checking of composition.
5965
5966 * keyboard.c (adjust_point_for_property): Check composition by
5967 composition_adjust_point.
5968
b8ff72fa 5969 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5970 struct glyph_string.
5971
b8ff72fa
SM
5972 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5973 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5974 struct glyph.
5975 (produce_composite_glyph): Likewise.
5976
b8ff72fa
SM
5977 * w32term.c (x_draw_composite_glyph_string_foreground):
5978 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5979 (x_draw_glyph_string): Likewise.
5980
5981 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5982 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5983
5984 * xdisp.c: Include font.h.
5985 (it_props): Delete the entry for Qauto_composed.
5986 (init_iterator): Initialize it->cmp_it.id to -1.
5987 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5988 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5989 (handle_auto_composed_prop): Delete it.
5990 (handle_composition_prop): Handle only static composition.
5991 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5992 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5993 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5994 (pop_it): Likewise.
5995 (get_next_element): Delete next_element_from_composition.
5996 (CHAR_COMPOSED_P): New macro.
5997 (get_next_display_element): For automatic composition, get a face
5998 from the font in the glyph-string.
5999 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 6000 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
6001 (next_element_from_string): Check if the character at the current
6002 position is composed by CHAR_COMPOSED_P.
6003 (next_element_from_buffer): Likewise.
d66c0241
JB
6004 (next_element_from_composition): Adjust for the change of struct it.
6005 Update it->cmp_it.
b8ff72fa
SM
6006 (dump_glyph): Adjust for the change of struct glyph.
6007 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6008 it and struct glyph. Don't handle automatic composition here.
6009 (fill_gstring_glyph_string): New function.
6010 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6011 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6012 (BUILD_GSTRING_GLYPH_STRING): New macro.
6013 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6014 automatic composition.
b8ff72fa 6015 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6016 struct glyph.
b8ff72fa 6017 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6018
b8ff72fa 6019 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6020 the change of struct glyph_string.
6021 (x_draw_glyph_string): Likewise.
6022
60232008-08-29 Glenn Morris <rgm@gnu.org>
6024
6025 * buffer.c (word-wrap): Doc fix.
6026 * xdisp.c (truncate-partial-width-windows): Doc fix.
6027 Increase default to 50.
6028
60292008-08-29 Chong Yidong <cyd@stupidchicken.com>
6030
6031 * xdisp.c (update_tool_bar_unwind): New function.
6032 (update_tool_bar): Temporarily set selected frame before building
6033 tool-bar items.
6034
60352008-08-28 Michael Albinus <michael.albinus@gmx.de>
6036
6037 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6038 snprintf, respectively.
6039 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6040
60412008-08-28 Chong Yidong <cyd@stupidchicken.com>
6042
6043 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6044 LDFLAGS to GNUstep CC invocation.
6045
60462008-08-27 Chong Yidong <cyd@stupidchicken.com>
6047
6048 * indent.c (Fvertical_motion): Revert last change. Handle the
6049 general case where we are moving forward, and PT spans multiple
6050 screen lines.
6051
6052 * eval.c (find_handler_clause): Temporarily increase
6053 max-lisp-eval-depth while printing the backtrace buffer, to
6054 guarantee that help-mode code can run.
6055
60562008-08-27 Eli Zaretskii <eliz@gnu.org>
6057
6058 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6059 colors under -rv.
6060 (IT_set_frame_parameters): Don't swap foreground and background
6061 colors if `(reverse . t)' is present in the frame properties.
6062 (internal_terminal_init): Call init_frame_faces only for the
6063 initial frame.
6064
60652008-08-27 Andreas Schwab <schwab@suse.de>
6066
6067 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6068
60692008-08-27 Andreas Schwab <schwab@suse.de>
6070
6071 * search.c (search_buffer): Set char_base to zero only at the end.
6072
60732008-08-27 Kenichi Handa <handa@m17n.org>
6074
b8ff72fa 6075 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6076
60772008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6078
6079 * xterm.c (x_term_init): Temporarily hide the partially
6080 initialized terminal while calling vendor-specific-keysyms.
6081
60822008-08-26 Eli Zaretskii <eliz@gnu.org>
6083
6084 * msdos.c (internal_terminal_init): Most initializations done only
6085 once, especially initial_screen_colors[] and termscript open.
6086
60872008-08-26 Chong Yidong <cyd@stupidchicken.com>
6088
6089 * eval.c (Fcondition_case): Doc fix.
6090
6091 * widgetprv.h (EmacsFramePart): Change font member to the new font
6092 struct.
6093
6094 * widget.c: Include character.h and font.h for XSETFONT.
6095 (setup_frame_gcs): Compute X font id from font struct, just once.
6096
60972008-08-26 Eli Zaretskii <eliz@gnu.org>
6098
6099 * term.c (get_named_tty): Fix last change.
6100
61012008-08-26 Chong Yidong <cyd@stupidchicken.com>
6102
6103 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6104 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6105
61062008-08-25 Eli Zaretskii <eliz@gnu.org>
6107
6108 * frame.c (do_switch_frame): Mark previously displayed frame as
6109 obscured for FRAME_MSDOS_P frames as well.
6110
61112008-08-24 Eli Zaretskii <eliz@gnu.org>
6112
6113 * frame.c (make_terminal_frame): Initialize f->terminal,
6114 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6115 Set the top frame to newly created frame.
6116 (Fmake_terminal_frame): Reuse the_only_display_info.
6117
6118 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6119 estimating available memory.
6120
b97439ce 61212008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6122
6123 * nsterm.m (ns_draw_window_cursor): Don't call
6124 NSDisableScreenUpdates and NSEnableScreenUpdates on
6125 non-NS_IMPL_COCOA systems.
6126
61272008-08-23 Andreas Schwab <schwab@suse.de>
6128
6129 * process.c (procfs_system_process_attributes): Fix use of
6130 uninitialized variables.
6131
61322008-08-23 Eli Zaretskii <eliz@gnu.org>
6133
6134 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6135
6136 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6137 calling tty-set-up-initial-frame-faces.
6138
b8ff72fa
SM
6139 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6140 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6141
6142 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6143 addition to output_termcap.
6144
6145 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6146
6147 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6148 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6149 highlight.
6150
6151 * process.c [!subprocesses]: Define QCname.
6152 (syms_of_process): Intern and staticpro it.
6153
6154 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6155 Adjust for changes in encoding/decoding routines.
6156 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6157 encode_coding and decode_coding.
6158
b8ff72fa 6159 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6160
6161 * dosfns.c: Include frame.h before termhooks.h.
6162 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6163 variable termscript.
6164
6165 * s/msdos.h (USER_FULL_NAME): Define.
6166 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6167
6168 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6169 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6170 pw->pw_gecos.
6171
6172 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6173 SELECTED_FRAME as additional (1st) argument.
6174 (tty_read_avail_input): Handle output_msdos_raw in
6175 addition to output_termcap.
6176
6177 * msdos.c: Include frame.h before termhooks.h.
6178 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6179 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6180 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6181 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6182 (IT_set_terminal_modes, IT_reset_terminal_modes)
6183 (IT_set_frame_parameters): Use tty->termscript instead of a global
6184 variable termscript.
6185 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6186 global variable terminal_coding. Don't refer to
6187 Vnonascii_translation_table.
6188 (internal_terminal_init): Set Vwindow_system in current_kboard.
6189 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6190 Announce date and time of session start, if termscript is open.
6191 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6192 term.c:init_tty). Open termscript only of not already open.
6193 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6194 here instead of dos_ttraw. Don't initialize display if this is an
6195 initial tty. Don't set FRAME_FONT.
6196 (Vwindow_system_version): Bump to 23.
6197 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6198 is available, set up mouse_position_hook.
6199 (dos_ttraw, IT_set_terminal_modes): If called with initial
6200 terminal, do nothing.
6201 (IT_set_frame_parameters): Handle the Qtty_type frame
6202 parameter by calling internal_terminal_init.
6203 (dos_set_window_size, show_mouse_face)
6204 (clear_mouse_face, IT_note_mode_line_highlight)
6205 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6206 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6207 (initialize_msdos_display): New function.
6208 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6209 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6210 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6211 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6212 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6213 (request_sigio, unrequest_sigio): Don't define, now defined on
6214 sysdep.c.
6215 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6216
6217 * term.c [MSDOS]: Include msdos.h.
6218 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6219 conditional to DOS_NT. Allow only one call to this function in a
6220 session. Don't allocate a new struct tty_display_info; instead,
6221 reuse the_only_display_info. Call get_tty_size to get screen
6222 dimensions. Call init_baud_rate to set bad_rate.
6223 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6224 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6225 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6226 (get_tty_terminal, get_named_tty, Ftty_type)
6227 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6228 output_termcap.
b8ff72fa
SM
6229 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6230 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6231 only when subprocesses are supported.
aac0c6e3
MR
6232
6233 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6234 f->output_data.x.
6235 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6236 terminal devices.
6237
5582fbc7 6238 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6239 x_output.
6240 (FRAME_FONT): Use output_data.tty.
6241 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6242 (struct x_display_info): Rename from display_info. Update all users in
6243 msdos.c.
aac0c6e3 6244 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6245 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6246 (dos_ttraw): Update prototype.
6247
6248 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6249 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6250
62512008-08-23 Jason Rumney <jasonr@gnu.org>
6252
6253 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6254 (fn_TIFFSetDirectory): New library function used.
6255 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6256 (tiff_load): Use :index to select among multiple images. Set count
6257 property when multiple images exist.
6258 (gif_format): Use :index, not :image.
6259
62602008-08-23 Chong Yidong <cyd@stupidchicken.com>
6261
6262 * xdisp.c (try_scrolling): Check INT_MAX instead of
6263 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6264 to obtain INT_MAX.
6265
62662008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6267
6268 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6269
62702008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6271
6272 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6273 GNUstep library location.
6274
62752008-08-21 Chong Yidong <cyd@stupidchicken.com>
6276
6277 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6278 before using it.
6279
6280 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6281
62822008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6283
6284 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6285 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6286 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6287 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6288 (EmacsApp-cursor_blink_handler): Remove declaration.
6289 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6290 match 01 Feb 2008 changes in xterm.c.
6291 (ns_read_socket): Add cast to avoid warning.
6292 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6293 GNUstep.
6294
62952008-08-20 Chong Yidong <cyd@stupidchicken.com>
6296
6297 * xselect.c (x_get_foreign_selection): Return nil if desired
6298 selection could not be obtained, instead of signalling an error.
6299
63002008-08-20 David Reitter <david.reitter@gmail.com>
6301
6302 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6303 * nsterm.m: Remove ns-specific code for cursor blinking.
6304 (ns_draw_window_cursor): Clear cursor properly rather than
6305 redrawing the area. Respect width of bar cursors.
6306 These changes enable the use of generic blink-cursor-mode and
6307 generic cursor types in NS and support smooth cursor movements (do
6308 not blink off after command).
6309 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6310 Nextstep, too.
6311
63122008-08-19 Kenichi Handa <handa@m17n.org>
6313
6314 * font.c (Vfont_log_deferred): New variable.
6315 (font_add_log): Check Vfont_log_deferred.
6316 (font_deferred_log): New function.
6317
6318 * font.h (font_deferred_log): Extern it.
6319
6320 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6321 for sorting.
6322 (face_for_char): Use deferred log.
6323
63242008-08-18 Kenichi Handa <handa@m17n.org>
6325
6326 * fontset.c (face_for_char): Add font log.
6327
6328 * font.c (font_add_log): Add the font properties :script, :lang,
6329 and :otf in the log.
6330
63312008-08-17 Chong Yidong <cyd@stupidchicken.com>
6332
6333 * xdisp.c: Remove dead code.
6334 (handle_invisible_prop, next_overlay_string): Defer call to
6335 setup_for_ellipsis.
6336 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6337
63382008-08-15 Chong Yidong <cyd@stupidchicken.com>
6339
6340 * xfaces.c (lookup_derived_face): Properly handle possible zero
6341 return value of get_lface_attributes.
6342 (merge_faces): Don't tell lookup_derived_face to signal an error
6343 if face is not found.
6344
6345 * dired.c (Fdirectory_files): Doc fix.
6346
6347 * process.c (make_process): Initialize kill_without_query struct
6348 member.
6349
63502008-08-15 Eli Zaretskii <eliz@gnu.org>
6351
6352 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6353 Alternative calculation of totphys for Visual Studio 6.
6354
6355 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6356
6357 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6358 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6359 All users changed.
6360 (stat): Only root directory passed to GetDriveType. Allow RAM
6361 disk as well as local fixed disk when w32-get-true-file-attributes
6362 is set to `local'.
6363 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6364 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6365 (w32_cached_id, w32_add_to_cache): New functions.
6366 (get_name_and_id): Look account names in the cache before calling
6367 lookup_account_sid.
6368 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6369 New initialization flags.
6370 (globals_of_w32): Initialize them to zero.
6371 (w32_system_process_attributes): Use w32_cached_id and
6372 w32_add_to_cache.
6373
63742008-08-14 Lawrence Mitchell <wence@gmx.li>
6375
6376 * lread.c (Fread_char, Fread_char_exclusive): If no character
6377 event is read before timeout is reached, return nil, rather than
6378 converting to a number.
6379
63802008-08-14 Chong Yidong <cyd@stupidchicken.com>
6381
6382 * fns.c (use_dialog_box): Doc fix.
6383
6384 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6385 on OS X.
6386
63872008-08-13 Chong Yidong <cyd@stupidchicken.com>
6388
6389 * frame.c (Qns_parse_geometry): New var.
6390 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6391
63922008-08-11 Chong Yidong <cyd@stupidchicken.com>
6393
6394 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6395 space character in calculating tabs.
6396
63972008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6398
6399 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6400
64012008-08-10 Glenn Morris <rgm@gnu.org>
6402
6403 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6404 silence gcc "limited range of data type" warnings in some
6405 make_fixnum_or_float calls.
6406
64072008-08-09 Eli Zaretskii <eliz@gnu.org>
6408
6409 * w32.c (w32_system_process_attributes): If the process does not
6410 exist, return nil.
6411
6412 * w32.c: Include thelp32.h, psapi.h and coding.h.
6413 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6414 declarations.
6415 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6416 (Process32Next_Proc): New typedefs.
6417 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6418 (g_b_init_process32_next, g_b_init_open_thread_token)
6419 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6420 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6421 (g_b_init_get_process_working_set_size)
6422 (g_b_init_global_memory_status_ex): New static variables.
6423 (globals_of_w32): Initialize them.
6424 (create_toolhelp32_snapshot, process32_first, process32_next)
6425 (open_thread_token, impersonate_self, revert_to_self)
6426 (get_process_memory_info, get_process_working_set_size)
6427 (global_memory_status, global_memory_status_ex): New wrapper
6428 functions.
6429 (w32_list_system_processes, w32_system_process_attributes)
6430 (enable_privilege, restore_privilege, ltime, process_times):
6431 New functions.
6432 (convert_time_raw): New function.
6433 (convert_time): Remove conversion of FILETIME into time in 100
6434 nsec units, call convert_time_raw instead.
6435
6436 * process.h (w32_list_system_processes, w32_system_process_attributes):
6437 Add prototypes.
6438 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6439 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6440 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6441 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6442
6443 * process.c (Fsystem_process_attributes): Doc fix.
6444
64452008-08-08 Chong Yidong <cyd@stupidchicken.com>
6446
6447 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6448 a continued multi-char glyph; if so, advance to the actual glyph.
6449
64502008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6451
6452 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6453
6454 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6455 (.m.o): Use it.
6456 * config.in: Regenerate.
6457
64582008-08-07 Chong Yidong <cyd@stupidchicken.com>
6459
6460 * xdisp.c (redisplay_window): Revert last change.
6461 (try_window): Check bottom scroll margin too.
6462
64632008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6464
6465 * config.in: Regenerate.
6466
6467 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6468 -list-load-path-shadows'.
6469 (nsgui.h): Reduce number of things depending on it.
6470
64712008-08-06 Chong Yidong <cyd@stupidchicken.com>
6472
6473 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6474 instead of window-end which does the wrong thing at eob.
6475 (try_cursor_movement): Minor optimization.
6476 (redisplay_window): If scroll margin is defined, don't assume
6477 window doesn't need scrolling.
6478
64792008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6480
6481 * config.in: Regenerate.
6482
6483 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6484 (mostlyclean): Don't delete *.d under NS.
6485
6486 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6487
64882008-08-06 Kenichi Handa <handa@m17n.org>
6489
6490 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6491
64922008-08-06 Andreas Schwab <schwab@suse.de>
6493
6494 * config.in: Regenerate.
6495
64962008-08-05 Chong Yidong <cyd@stupidchicken.com>
6497
6498 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6499 forcing a window start.
6500
6501 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6502 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6503
65042008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6505
6506 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6507 argument.
6508
65092008-08-05 Juanma Barranquero <lekktu@gmail.com>
6510
6511 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6512 <scroll-down-aggressively, before-change-functions>:
6513 <after-change-functions>: Reflow docstrings.
6514
65152008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6516 Ken Raeburn <raeburn@gnu.org>
6517
6518 Dock menu customization, based on a patch by Ken Raeburn, plus some
6519 other fixes.
6520 * nsmenu.m (dockMenu): New variable.
6521 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6522
6523 * nsterm.h (dockMenu): Declare.
6524
6525 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6526 (ns_term_init): Initialize dockMenu.
6527 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6528 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6529 left.
6530
6531 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6532
65332008-08-04 Chong Yidong <cyd@stupidchicken.com>
6534
6535 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6536
6537 * config.in: Regenerate.
6538
65392008-08-04 Seiji Zenitani <zenitani@mac.com>
6540
6541 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6542
65432008-08-04 Chong Yidong <cyd@stupidchicken.com>
6544
6545 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6546
65472008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6548
6549 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6550
6551 * keyboard.h: Comment an #endif.
6552
6553 * lisp.h (have_menus_p): Adjust comment.
6554
6555 * menu.c (find_and_return_menu_selection): Fix comparison with
6556 client_data.
6557
6558 * nsmenu.m (popup_activated_flag): New variable.
6559 (popup_activated): New function.
6560 (menu-or-popup-active-p): New exported lisp definition.
6561 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6562 when popup done.
6563 (ns_popup_dialog): Set popup_activated_flag.
6564
6565 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6566 version for GNUstep (handled by conditional typedef in nsterm.m).
6567 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6568 in rgb.txt).
6569
6570 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6571
6572 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6573
6574 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6575
6576 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6577 shortcircuit if popup_activated like GTK and X toolkit.
6578
6579 * m/inter386.h: Change DARWIN to DARWIN_OS.
6580
6581 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6582 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6583 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6584 comment on NO_SOCK_SIGIO.
6585
65862008-08-03 Chong Yidong <cyd@stupidchicken.com>
6587
6588 * nsterm.m (windowDidResize): Remove stopModal call.
6589
65902008-08-03 Andreas Schwab <schwab@suse.de>
6591
6592 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6593 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6594
65952008-08-02 Chong Yidong <cyd@stupidchicken.com>
6596
6597 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6598 Don't use uninitialized pointer variable when using getrlimit.
6599
66002008-08-02 Jason Rumney <jasonr@gnu.org>
6601
6602 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6603
66042008-08-02 Eli Zaretskii <eliz@gnu.org>
6605
6606 * alloc.c (NSTATICS): Bump to 0x640.
6607
6608 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6609
6610 * lisp.h: Add prototype for directory_files_internal.
6611
6612 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6613 New functions.
6614 (syms_of_process): Defsubr them. Add initializations for various
6615 Q* symbols used in procfs_system_process_attributes.
6616 (procfs_list_system_processes, procfs_system_process_attributes)
6617 [HAVE_PROCFS]: New functions.
6618 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6619 (procfs_get_total_memory): New functions.
6620
66212008-08-01 Juanma Barranquero <lekktu@gmail.com>
6622
6623 * xfaces.c (Fx_load_color_file): Fix previous change;
6624 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6625
66262008-08-01 Michael Albinus <michael.albinus@gmx.de>
6627
6628 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6629
66302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6631
6632 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6633
66342008-08-01 Chong Yidong <cyd@stupidchicken.com>
6635
6636 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6637
6638 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6639 define NSApplicationDelegateReplySuccess.
6640 (EmacsView -converstationIdentifier): Use long instead of
6641 NSInteger for GNUstep, since it doesn't have NSInteger.
6642
6643 * xmenu.c: Revert last change.
6644
6645 * keyboard.h: Fix last change.
6646
66472008-08-01 Juanma Barranquero <lekktu@gmail.com>
6648
6649 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6650 on Windows.
6651
66522008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6653
6654 Warning clearing and clean-up in NS port.
6655 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6656 Add prototypes.
6657 * nsgui.h (FACE_DEFAULT): Remove, unused.
6658 (XGCValues): Change colors to unsigned long.
6659 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6660 nsterm.m.
6661 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6662 (ns_list_fonts): Remove, unused.
6663 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6664 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6665 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6666 (nsfont_draw): Compare face colors to 0, not nil.
6667 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6668 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6669 (-addSubmenuWithTitle:): Use NSMenuItem class.
6670 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6671 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6672 (ns_clip_to_row): Make gc arg a BOOL.
6673 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6674 ns_clip_to_row() call.
6675 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6676 used). Cast FRAME_FONT assignments.
6677 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6678 (ns_string_to_lispmod): Change arg to const char.
6679 (ns_term_init): Use NSMenuItem class.
6680 (EmacsApp -openFile:): Move to different section of file.
6681 (EmacsApp -application:openFiles:): Don't return a value, call
6682 -replyToOpenOrPrint:.
6683 (EmacsView -keyDown:): Fix up cast.
6684 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6685 (EmacsView -menuDown:): Cast tag in call to
6686 find_and_call_menu_selection().
6687 (ns_list_fonts): Remove, unused.
6688 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6689 (ns_fontname_to_xlfd): Make static.
6690 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6691 Remove prototypes (now in keyboard.h).
6692 (next_menubar_widget_id): Remove, unused.
6693 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6694 Remove prototypes (now in keyboard.h).
6695 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6696
66972008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6698
6699 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6700 (floatfns.o): Depend on syssignal.h.
6701 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6702
6703 * systty.h: Fix previous change that removed BSD_TERMIOS.
6704 Add comments to #ifdefs.
6705
67062008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6707
6708 * w32fns.c (w32-load-color-file): Remove.
6709 (x-open-connection): Use renamed Fx_load_color_file.
6710 * xfaces.c (x-load-color-file): Add.
6711 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6712 Emacs.clr.
6713 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6714
67152008-07-31 Michael Albinus <michael.albinus@gmx.de>
6716
6717 * dbusbind.c (Fdbus_call_method_asynchronously)
6718 (Fdbus_method_error_internal): New defuns.
6719 (xd_read_message): Handle also reply messages.
6720 (Vdbus_registered_functions_table): Extend docstring.
6721
67222008-07-31 Juanma Barranquero <lekktu@gmail.com>
6723
6724 * keyboard.c (gobble_input): Fix previous change.
6725
67262008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6727
6728 * bitmaps/README:
6729 * xfns.c:
6730 * termcap.c:
6731 * term.c:
6732 * syswait.h:
6733 * systty.h:
6734 * systime.h:
6735 * syssignal.h:
6736 * sysdep.c:
6737 * process.h:
6738 * process.c:
6739 * print.c:
6740 * ndir.h:
6741 * lread.c:
6742 * keyboard.c:
6743 * getpagesize.h:
6744 * floatfns.c:
6745 * fileio.c:
6746 * emacs.c:
6747 * doc.c:
6748 * dispnew.c:
6749 * dired.c:
6750 * data.c:
6751 * callproc.c:
6752 * buffer.c:
6753 * README:
6754 * Makefile.in:
6755 * s/template.h:
6756 * s/msdos.h:
6757 * m/vax.h: Remove VMS support.
6758 * s/vms.h:
6759 * vlimit.h:
6760 * uaf.h:
6761 * temacs.opt:
6762 * param.h:
6763 * ioctl.h: Remove file.
6764
67652008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6766
6767 * s/ms-w32.h (MULTI_KBOARD): Remove.
6768 * xterm.c:
6769 * xselect.c:
6770 * xfns.c:
6771 * window.c:
6772 * w32term.c:
6773 * w32fns.c:
6774 * terminal.c:
6775 * termhooks.h:
6776 * term.c:
6777 * sysdep.c:
6778 * keyboard.h:
6779 * keyboard.c:
6780 * frame.h:
6781 * frame.c:
6782 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6783 * config.in: Regenerate.
6784
67852008-07-30 Jason Rumney <jasonr@gnu.org>
6786
6787 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6788
6789 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6790 (w32font_open_internal): Get unicode version of textmetrics.
6791 Don't enable or disable glyph indices here.
6792 (w32font_open): Disable use of glyph indices.
6793
6794 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6795
67962008-07-30 Chong Yidong <cyd@stupidchicken.com>
6797
6798 * minibuf.c (Vread_buffer_function): Doc fix.
6799
68002008-07-30 John Paul Wallington <jpw@pobox.com>
6801
6802 * minibuf.c (read_buffer_completion_ignore_case): New var.
6803 (Fread_buffer): Use it.
6804
68052008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6806
6807 * systty.h (sensemode): Remove empty #if. Remove reference to
6808 BSD_TERMIOS, unused.
6809
6810 * sysdep.c: Remove reference to DGUX.
6811 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6812
6813 * config.in: Regenerate.
6814
68152008-07-30 Jason Rumney <jasonr@gnu.org>
6816
6817 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6818
68192008-07-29 Jason Rumney <jasonr@gnu.org>
6820
6821 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6822 is populated.
6823 (uniscribe_encode_char): Always use uniscribe.
6824 Avoid using context if cache is populated.
6825
68262008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6827
6828 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6829 open menu.
6830
6831 * gtkutil.c (menu_nav_ended): Remove.
6832 (create_menus): Remove signal connect for menu_nav_ended.
6833
68342008-07-28 Chong Yidong <cyd@stupidchicken.com>
6835
6836 * xdisp.c (redisplay_window): Check return value of
6837 compute_window_start_on_continuation_line before forcing a window
6838 start.
6839
68402008-07-28 Jason Rumney <jasonr@gnu.org>
6841
6842 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6843
6844 * w32term.c (w32_enable_unicode_output, cleartype_active):
6845 Remove obsolete display options.
6846 (x_draw_glyph_string_background): Don't use old cleartype_active
6847 workaround.
6848 (w32_initialize): Remove cleartype_active initialization.
6849 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6850
68512008-07-28 Andreas Schwab <schwab@suse.de>
6852
6853 * lisp.h (init_weak_hash_tables, syms_of_font)
6854 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6855 (remove_hash_entry): Don't declare.
6856 * eval.c (maybe_call_debugger): Make static and move before use.
6857 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6858 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6859 * xterm.h (x_set_frame_alpha): Declare.
6860
68612008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6862
6863 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6864 (create_menus): Connect selection-done to menu_nav_ended.
6865
68662008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6867
6868 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6869 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6870 parameter with read of 'alpha' one.
6871 (Qns_frame_parameter): Remove.
5582fbc7 6872 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6873 (next-selection-coding-system, Vselection_coding_system)
6874 (Vnext_selection_coding_system): Drop.
6875
68762008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6877
6878 * nsfns.m (do-applescript, do_applescript): Rename to
6879 ns-do-applescript, ns_do_applescript, and move within file.
6880
68812008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6882
6883 Remove support for Mac Carbon.
6884 * mactoolbox.c:
6885 * macterm.h:
6886 * macterm.c:
6887 * macselect.c:
6888 * macmenu.c:
6889 * macgui.h:
6890 * macfns.c:
6891 * mac.c: Remove file.
6892 * s/darwin.h:
6893 * m/intel386.h:
6894 * xfaces.c:
6895 * xdisp.c:
6896 * window.c:
6897 * tparam.c:
6898 * termhooks.h:
6899 * termcap.c:
6900 * term.c:
6901 * syssignal.h:
6902 * sysselect.h:
6903 * sysdep.c:
6904 * process.c:
6905 * lread.c:
6906 * lisp.h:
6907 * keyboard.c:
6908 * image.c:
6909 * fringe.c:
6910 * frame.h:
6911 * frame.c:
6912 * fontset.c:
6913 * font.h:
6914 * font.c:
6915 * fns.c:
6916 * fileio.c:
6917 * emacs.c:
6918 * dispnew.c:
6919 * dispextern.h:
6920 * config.in:
6921 * atimer.c:
2ae37cf0 6922 * Makefile.in: Remove code for Carbon.
aac0c6e3 6923
f0131492 69242008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6925
6926 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6927
69282008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6929
6930 * macterm.h (kCGBitmapByteOrder32Host): New define for
6931 non-universal SDKs.
6932
6933 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6934 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6935
6936 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6937 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6938
69392008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6940
6941 * w32inevt.c: Include dispextern.h.
6942
69432008-07-26 Andreas Schwab <schwab@suse.de>
6944
6945 * print.c (print_object): Fix off-by-one in last change.
6946
69472008-07-25 Juanma Barranquero <lekktu@gmail.com>
6948
6949 * term.c (syms_of_term): Don't initialize default_orig_pair,
6950 default_set_foreground and default_set_background on Windows.
6951
69522008-07-25 Jason Rumney <jasonr@gnu.org>
6953
6954 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6955 ScriptItemize. Clean up return value checking. Remove unused
6956 variables.
6957 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6958 shaping engine.
6959
6960 * w32font.c (w32font_has_char): Handle the case where we can't
6961 determine the script for a character.
6962
69632008-07-25 Chong Yidong <cyd@stupidchicken.com>
6964
6965 * term.c (syms_of_term): Initialize default_orig_pair,
6966 default_set_foreground, and default_set_background.
6967
6968 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6969 clash (bug#86).
6970 (getloadavg): Callers changed.
6971
6972 * image.c (svg_load_image): Fix last change.
6973 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6974 image size is valid. Use g_object_unref instead of deprecated
6975 rsvg_handle_free to free rsvg handle.
6976 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6977
69782008-07-25 Jason Rumney <jasonr@gnu.org>
6979
6980 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6981 surrogates before looking up glyph index.
6982 (w32font_text_extents): Encode as surrogates if falling back to
6983 functions that need UTF-16 wide chars.
6984
6985 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6986 BMP as surrogates before looking up glyph index.
6987
69882008-07-25 Chong Yidong <cyd@stupidchicken.com>
6989
6990 * image.c (svg_load_image): Check for failure in return value of
6991 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6992
69932008-07-25 Jason Rumney <jasonr@gnu.org>
6994
6995 * w32font.c (Fx_select_font): Reverse sense of second arg.
6996
69972008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6998
6999 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
7000 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
7001
7002 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
7003 (PURESIZE): Use it.
7004
70052008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7006
7007 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7008 * m/alpha.h (TEXT_END):
7009 * m/ibmrs6000.h (TEXT_END):
7010 * m/macppc.h (TEXT_END):
7011 * s/darwin.h (TEXT_END):
7012 * s/msdos.h (TEXT_END): Remove, unused.
7013 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7014 * s/cygwin.h: Remove comment.
7015
7016 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7017 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7018 * m/intel386.h (DOT_GLOBAL_START):
7019 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7020 (USG): Remove, file not used on USG platforms.
7021
7022 * Makefile.in (HAVE_X11): Remove empty #else.
7023
70242008-07-24 Andreas Schwab <schwab@suse.de>
7025
7026 * fileio.c (Finsert_file_contents): Properly adjust undo list
7027 after format conversion.
7028
70292008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7030
7031 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7032 (menu_nav_ended): Remove.
7033 (create_menus): Remove signal connect for menu_nav_ended.
7034 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7035 create_menus.
7036 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7037
70382008-07-23 Jason Rumney <jasonr@gnu.org>
7039
7040 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7041 with opened font.
7042 (w32font_open): Set font type to gdi.
7043
7044 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7045
70462008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7047
7048 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7049 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7050 defines it.
7051 * unexec.c (ADDR_CORRECT): Define unconditionally.
7052
7053 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7054
7055 * unexec.c: Remove code depending on !COFF and USG, the file is
7056 not used for such systems.
7057
7058 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7059 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7060 (LD_SWITCH_SYSTEM_1): Remove, update users.
7061
7062 * s/darwin.h (DATA_END):
7063 * m/intel386.h (DATA_END):
7064 * m/ibmrs6000.h (DATA_END):
7065 * m/alpha.h (DATA_END): Remove, unused.
7066
7067 * config.in: Regenerate.
7068 * s/ms-w32.h (subprocesses): Define unconditionally.
7069 * s/template.h (subprocesses): Update comment.
7070 * s/vms.h (subprocesses):
7071 * s/usg5-4.h (subprocesses):
7072 * s/hpux10-20.h (subprocesses):
7073 * s/gnu-linux.h (subprocesses):
7074 * s/cygwin.h (subprocesses):
7075 * s/bsd-common.h (subprocesses):
7076 * s/aix4-2.h (subprocesses):
7077 * s/darwin.h (subprocesses): Do not define, defined by default now.
7078
7079 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7080 Remove all references.
7081 (temacs): Add GNUstep specific ld flags.
7082
7083 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7084 similarly to what X does.
7085
70862008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7087
7088 * nsfns.m (x-list-fonts): Remove.
7089 (syms_of_nsfns): Drop the x-list-fonts declaration.
7090 * nsterm.m: Get rid of remaining "//" comments.
7091
70922008-07-22 Chong Yidong <cyd@stupidchicken.com>
7093
7094 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7095
7096 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7097 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7098 (Fns_own_selection_internal, Fx_disown_selection_internal)
7099 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7100
7101 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7102 ... */' style of docstrings. Doc fixes.
7103
71042008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7105
7106 * terminfo.c (UP, BC, PC): Undo previous change.
7107
7108 * nsfns.m: Rename ns prefixed functions/variables to the
7109 corresponding x versions. Update references.
7110
71112008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7112
7113 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7114
71152008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7116
7117 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7118 Remove forwarding functions.
7119 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7120 non-static.
7121 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7122 non-static.
7123 (ns_frame_parm_handlers): Use the new names.
7124 (syms_of_nsfns): Move to the end of file.
7125
7126 * nsterm.m (syms_of_nsterm): Move to the end of file.
7127
7128 * dispnew.c (init_display): Remove code for X10.
7129
71302008-07-22 Jason Rumney <jasonr@gnu.org>
7131
7132 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7133 bare drive.
7134
71352008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7136
7137 * nsterm.m (syms_of_nsterm): Remove debugging println.
7138
71392008-07-22 David Reitter <david.reitter@gmail.com>
7140
7141 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7142 Carbon implementation of the same functionality: execute arbitrary
7143 AppleScript code.
7144
71452008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7146
7147 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7148 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7149 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7150 (Fx_display_mm_height, Fx_display_mm_width)
7151 (Fx_display_backing_store, Fx_display_visual_class)
7152 (Fx_display_save_under, Fx_open_connection)
7153 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7154 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7155 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7156 (Fx_display_pixel_width, Fx_display_pixel_height)
7157 (Fx_display_usable_bounds, Fx_display_planes)
7158 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7159 ... */' style of docstrings.
7160
71612008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7162
7163 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7164 on this platform.
7165 (mips):
7166 * m/iris4d.h (mips): Do not define.
7167 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7168
7169 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7170
7171 * image.c:
7172 * nsfns.m:
7173 * nsselect.m:
7174 * nsterm.h:
7175 * nsterm.m: Rename ns prefixed functions/variables to the
7176 corresponding x versions. Update references.
7177
7178 * m/ibms390x.h (NO_REMAP): Do not undefine.
7179
7180 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7181
71822008-07-21 Chong Yidong <cyd@stupidchicken.com>
7183
7184 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7185 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7186 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7187 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7188 (Fns_display_mm_height, Fns_display_mm_width)
7189 (Fns_display_backing_store, Fns_display_visual_class)
7190 (Fns_display_save_under, Fns_open_connection)
7191 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7192 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7193 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7194 (Fns_display_pixel_width, Fns_display_pixel_height)
7195 (Fns_display_usable_bounds, Fx_display_planes)
7196 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7197
71982008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7199
7200 * print.c (print_object): Check print_depth before searching for
7201 circularities.
7202
72032008-07-21 Michael Albinus <michael.albinus@gmx.de>
7204
7205 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7206 only sprintf.
7207
72082008-07-21 Kenichi Handa <handa@m17n.org>
7209
7210 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7211
72122008-07-20 Andreas Schwab <schwab@suse.de>
7213
7214 * syntax.c (find_start_pos, find_start_value)
7215 (find_start_value_byte, find_start_begv, find_defun_start)
7216 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7217
72182008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7219
7220 * s/sol2-3.h: Insert contents of s/sol2.h.
7221 (LD_SWITCH_SYSTEM): Remove redundant definition.
7222 * s/sol2.h: Remove, unused.
7223
72242008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7225
7226 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7227
72282008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7229
7230 * Makefile.in (ns_appdir): Fix typo in find command.
7231
72322008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7233
7234 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7235
7236 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7237 added not supported anymore.
7238
7239 * s/usg5-4-2.h (LIBS_SYSTEM):
7240 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7241
7242 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7243 * s/lynxos.h (GETPGRP_NO_ARG):
7244 * s/hpux10-20.h (NO_SIOCTL_H):
7245 * s/gnu.h (GETPGRP_NO_ARG):
7246 * s/gnu-linux.h (NO_SIOCTL_H):
7247 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7248 * s/cygwin.h (GETPGRP_NO_ARG):
7249 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7250 (C_DEBUG_SWITCH): Remove duplicate definition.
7251
7252 * m/ibms390.h: Remove boilerplate comments.
7253
7254 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7255
7256 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7257 (wait_reading_process_output): Remove code for SunOS, platform not
7258 supported anymore. Use SOLARIS2 instead of sun.
7259
72602008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7261
7262 * font.c (font_open_by_name): Under NS, default lface height to zero.
7263 (font_open_for_lface): Under NS, set size based on frame fontsize.
7264 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7265 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7266
72672008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7268
7269 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7270 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7271 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7272 YES/NO.
7273 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7274 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7275 * Makefile.in (clean): Clear out build destination dir.
7276
72772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7278
7279 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7280 xterm, xselect.
7281 * lisp.h: Remove declaration of hash_remove.
7282 * nsgui.h: Remove redefinitions of hash_remove.
7283 * fns.c (hash_remove): Rename to hash_remove_from_table.
7284
72852008-07-19 Seiji Zenitani <zenitani@mac.com>
7286
7287 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7288 strdup() the family UTF8String before modifying it.
7289
72902008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7291
7292 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7293 NS_FACE_BACKGROUND with 0 instead of nil.
7294 * nsfont.m (nsfont_draw): Same.
7295
72962008-07-19 Chong Yidong <cyd@stupidchicken.com>
7297
7298 * nsfns.m (ns_set_background_color): Fix crash.
7299
73002008-07-18 Chong Yidong <cyd@stupidchicken.com>
7301
7302 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7303
73042008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7305
7306 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7307
73082008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7309
7310 * gtkutil.c: Include <config.h> instead of "config.h".
7311
7312 * lisp.h (Foverlay_buffer): Add EXFUN.
7313
7314 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7315 child process to complete child_setup. Undo 2005-09-21 change.
7316
7317 * s/darwin.h: Mention setsid after vfork.
7318
73192008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7320
7321 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7322 Depend on macgui.h.
7323
7324 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7325 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7326
7327 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7328 and f19.
7329 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7330
7331 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7332 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7333 Remove enumerators.
7334
7335 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7336 Check if FACE_FROM_ID returns NULL.
7337
73382008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7339
7340 * w32inevt.c (change_frame_size): Remove extern declaration.
7341 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7342 change_frame_size.
7343
73442008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7345
7346 * getloadavg.c: Revert last change (2008-07-15).
7347
73482008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7349
7350 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7351 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7352 from configure.
7353
73542008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7355
7356 * s/sol2.h:
7357 * s/sol2-4.h: Reorganize conditionals.
7358
7359 * ecrt0.c: Remove code depending on m68000, not used anymore.
7360
7361 * fns.c (hash_remove): Make static.
7362 * lisp.h (hash_remove): Don't prototype.
7363
7364 * m/ibmrs6000.h:
7365 * m/ibms390x.h:
7366 * m/macppc.h: Remove boilerplate comments.
7367
7368 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7369 Solaris, which does not need them.
7370
7371 * m/vax.h: Remove comments about unsupported systems.
7372
7373 * s/darwin.h: Reorganize ifdefs.
7374
73752008-07-17 Andreas Schwab <schwab@suse.de>
7376
7377 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7378
73792008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7380
7381 Use SDATA. Follow coding convention of placing operators at
7382 beginning of next line rather than end of previous line, and placing
7383 spaces around infix operators.
7384
7385 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7386 in case it was defined already.
7387 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7388 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7389 ns_default.
7390 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7391 Lisp_Objects.
7392 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7393 (ns_defined_color, ns_color_to_lisp): Declare.
7394 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7395 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7396 it's accepted even with USE_LISP_UNION_TYPE.
7397 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7398 (update_frame_tool_bar): Remove apparently obsolete tests for
7399 non-integerness of f->tool_bar_lines.
7400 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7401 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7402 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7403 (nsfont_open): Don't confuse NULL for Qnil.
7404 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7405 * menu.h (find_and_call_menu_selection):
7406 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7407 (find_and_return_menu_selection): Always return something.
7408 * frame.h: Include dispextern.h for Display_Info.
7409 (display_x_get_resource): Declare.
7410
74112008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7412
7413 * syntax.c: Remove stdio.h include accidentally introduced in
7414 Emacs.app commit.
7415 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7416 NS_IMPL_COCOA.
7417 * keyboard.c (handle_async_input, input_available_signal): Remove
7418 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7419
74202008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7421
7422 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7423 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7424 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7425 Use SDATA.
7426
7427 * keymap.c: Remove all NS-specific code.
7428 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7429 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7430 where_is_preferred_modifier, return a different value depending on how
7431 preferred is the binding.
7432 (where_is_internal): Adjust accordingly.
7433 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7434 Adjust to new preferred_sequence_p.
7435 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7436 * keyboard.c (parse_solitary_modifier): Not static any more.
7437 * keyboard.h (parse_solitary_modifier): Declare.
7438
74392008-07-16 Andreas Schwab <schwab@suse.de>
7440
7441 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7442 of easymenu.
7443
74442008-07-16 Chong Yidong <cyd@stupidchicken.com>
7445
7446 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7447 that we don't move off the line.
7448
74492008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7450
7451 * keyboard.c (Qsuper): Remove.
7452 (parse_menu_item): Don't call where_is_internal specially for NS.
7453
74542008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7455
7456 * s/gnu-linux.h: Remove boilerplate comments.
7457
7458 * m/alpha.h (__ELF__): Consolidate conditions.
7459
7460 * m/m68k.h (linux): Use GNU_LINUX instead.
7461 Remove boilerplate comments.
7462
7463 * m/intel386.h: Undo refactoring from previous change.
7464 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7465 too, remove dead code.
7466 (linux): Use GNU_LINUX instead.
7467
74682008-07-16 Jason Rumney <jasonr@gnu.org>
7469
7470 * w32gui.h: Repeat 26 June changes lost by last change.
7471
74722008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7473
7474 * systty.h: Remove code for Aix on 386, unsupported platform.
7475
7476 * s/ms-w32.h: Remove boilerplate comments.
7477 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7478
7479 * s/gnu-linux.h (TERM): Remove support.
7480 (HAVE_SYSVIPC): Remove, unused.
7481 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7482 for this system.
7483
7484 * process.c: Remove support for IRIS, unused.
7485 Remove support for TERM, not relevant anymore.
7486
7487 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7488 used with the definition.
7489
7490 * s/aix4-2.h (static): Do not undef.
7491
7492 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7493 only used on Aix.
7494 (HAVE_SYSVIPC): Remove, unused.
7495
7496 * m/hp800.h (CANNOT_DUMP): Do not undef.
7497
7498 * m/alpha.h: Fix comment.
7499
7500 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7501 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7502 used by this configuration.
7503 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7504 * unexec.c: Remove code depending on HPUX and
7505 USG_SHARED_LIBRARIES, not used with this file. Remove code
7506 depending on IRIS, unused. Remove if 0-ed code.
7507
7508 * s/template.h: Remove comments about static.
7509
7510 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7511 Remove if 0-ed code.
7512 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7513 were the same as the default.
7514 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7515 Remove boilerplate comments.
7516 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7517 (HAVE_SYSVIPC): Remove, unused.
7518 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7519
7520 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7521 Remove boilerplate comments.
7522 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7523 Remove boilerplate comments.
7524 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7525 Remove boilerplate comments.
7526 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7527
7528 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7529 USG systems which do not use DATA_SEG_BITS.
7530 Refactor code. Remove boilerplate comments.
7531
7532 * m/ibms390.h:
7533 * m/m68k.h:
7534 * s/bsd-common.h:
7535 * s/cygwin.h:
7536 * s/darwin.h:
7537 * s/freebsd.h:
7538 * s/gnu.h:
7539 * s/msdos.h: Remove boilerplate comments.
7540
7541 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7542 do not use this file.
aac0c6e3
MR
7543 (IRIS_4D): Remove, unused.
7544
7545 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7546 do not use this file.
aac0c6e3
MR
7547 (SIGN_EXTEND_CHAR):
7548 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7549 * unexmips.c: Remove file, unused.
7550
7551 * editfns.c (Fuser_full_name): Replace the only use of
7552 USER_FULL_NAME with its value.
7553 * config.in: Regenerate.
7554
75552008-07-16 David Reitter <david.reitter@gmail.com>
7556
7557 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7558 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7559
75602008-07-16 Glenn Morris <rgm@gnu.org>
7561
7562 * emacs.c (system-type): Doc fix.
7563
75642008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7565
7566 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7567 If the cache doesn't work, let's fix it, rather than work around it.
7568
75692008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7570
7571 * Makefile.in: Correct additions for nsfont.o in last commit.
7572 * nsfont.m: New file (forgot last commit).
7573
75742008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7575
7576 * callproc.c (set_initial_environment): Initialize
7577 Vprocess_environment under CANNOT_DUMP (fixes crash when
7578 batch-compiling for bootstrap).
7579
75802008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7581 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7582
7583 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7584 fix crash due to different init order.
7585
75862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7587
7588 Changes and additions for NeXTstep windowing system (Cocoa and
7589 GNUstep) support.
7590
7591 * Makefile.in:
7592 * config.in: Support defines and build commands for NS port.
7593 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7594 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7595 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7596 windowing.
7597 (struct face): Add synth_ital field.
7598 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7599 (init_display): Initialize Vinitial_window_system to "ns" when so
7600 compiled.
7601 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7602 (display_arg): Use under NS.
7603 (main): Under NS, allocate autorelease pool and handle command line
7604 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7605 (standard_args): Add NS-specific args.
7606 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7607 * font.c (DEFAULT_ENCODING): New variable.
7608 (font_find_for_lface): Use it.
7609 (syms_of_font): Load syms_of_nsfont under NS.
7610 * font.h: Declare nsfont_driver when compiled under NS.
7611 * fontset.c: When compiling under NS, include nsterm.h.
7612 (fontset_from_font): Autoconstruct fontset under NS.
7613 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7614 symbol, document and use it.
7615 (do_switch_frame): When for_deletion under Cocoa, add
7616 Fraise_frame(Qnil).
7617 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7618 (x_get_arg): Allow "yes" and "no" as boolean values.
7619 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7620 Qright under Cocoa.
7621 (focus-follows-mouse): Default to 0 under NS.
7622 * frame.h (enum output_method): Add output_ns.
7623 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7624 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7625 (FRAME_WINDOW_P): NS-specific definition.
7626 * fringe.c (max_used_fringe_bitmap): Make public.
7627 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7628 (getloadavg): Use NeXT code under descendant OS's.
7629 * image.c (includes and header section, x_create_bitmap_from_data)
7630 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7631 (image_background_transparent, x_clear_image_1)
7632 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7633 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7634 (x_to_xcolors, x_from_xcolors, x_disable_image)
7635 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7636 other GUIs, including XPM support using code originally written for
7637 Carbon GUI.
7638 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7639 using NS API.
7640 (image_ascent): Use font metrics macros instead of direct struct field
7641 access.
7642 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7643 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7644 Also, handle NS as GTK for menu bar purposes.
7645 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7646 toolkit where they differ.
7647 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7648 use cachelist, still needed under NS.
7649 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7650 (struct widget_value): Define it here for menu.c.
7651 * keymap.c (includes): Include modifier internals.
7652 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7653 NS.
7654 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7655 support for preferring sequences using certain modifiers, specified by
7656 the FIRSTONLY argument.
7657 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7658 under NS GNUstep implementation.
7659 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7660 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7661 * menu.c: Include nsterm.h under NS.
7662 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7663 (free_menubar_widget_tree_value, update_submenu_strings)
7664 (find_and_call_menu_selection): Treat NS as X and NT.
7665 (find_and_return_menu_selection): New function, used for popup menus.
7666 * nsgui.h:
7667 * nsterm.h:
7668 * nsfns.m:
7669 * nsimage.m:
7670 * nsmenu.m:
7671 * nsselect.m:
7672 * nsterm.m: New files.
7673 * process.c (wait_reading_process_output): Under NS, call ns_select()
7674 instead of plain select().
7675 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7676 beginning of buffer.
7677 * sysselect.h (init_process): Rename when compiling under Cocoa to
7678 avoid name conflict.
7679 * termhooks.h (display_info): Add ns_display_info to union.
7680 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7681 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7682 COCOA environment.
7683 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7684 unexec() signature. (Note, this will dump, but the resulting file
7685 crashes; unexosx is used instead; keeping around for reference and
7686 possible aid in getting dump working under GNUstep.)
7687 * w32gui.h (button_type, widget_value): Remove definitions (now in
7688 keyboard.h).
7689 * window.c: Include nsterm.h when compiling under NS.
7690 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7691 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7692 other GUI windowing systems.
7693 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7694 GTK.
7695 (x_consider_frame_title): Under NS, set icon type and frame
7696 modified-state indicator; use ns_set_name_as_filename() when using
7697 formatted title.
7698 (update_window_cursor): Make public when compiling under NS.
7699 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7700 (hourglass_atimer, Vhourglass_delay
7701 * xfaces.c (header section, init_frame_faces, clear_font_table)
7702 (defined_color, unload_color, x_face_list_fonts)
7703 (prepare_face_for_display): Add NS support parallel to other GUIs.
7704 Emulate GCs like other non-X GUIs.
7705 (split_font_name): Don't lowercase font name under NS.
7706 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7707 under NS.
7708 * s/darwin.h: Add support for compilation under NS.
7709
77102008-07-15 Jason Rumney <jasonr@gnu.org>
7711
7712 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7713 (w32_show_hourglass): Rename from show_hourglass.
7714 (w32_hide_hourglass): Rename from hide_hourglass.
7715 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7716 (Vhourglass_delay): Declare extern.
7717 (hourglass_started): Remove.
7718
7719 * xdisp.c (Vhourglass_delay): Remove static.
7720 (hourglass_started, start_hourglass, cancel_hourglass):
7721 Don't include these versions on WINDOWSNT.
7722
77232008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7724
7725 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7726 variables (formerly in xfns.c).
7727 (show_hourglass, hide_hourglass): New prototypes (same).
7728 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7729 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7730 in xfns.c).
7731 (syms_of_xdisp): Declare/initialize display-hourglass,
7732 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7733 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7734 formerly in xfns.c.
7735 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7736 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7737 (start_hourglass, cancel_hourglass): Remove.
7738 (show_hourglass, hide_hourglass): Remove prototypes and static
7739 modifiers.
7740 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7741 hourglass_atimer, hourglass_shown_p declaration/initialization.
7742 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7743 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7744 (start_hourglass, cancel_hourglass): Remove.
7745 (show_hourglass, hide_hourglass): Remove prototypes and static
7746 modifiers.
7747 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7748 hourglass_atimer, hourglass_shown_p declaration/initialization.
7749 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7750 (DEFAULT_HOURGLASS_DELAY): Remove.
7751 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7752 hourglass_shown_p declaration/initialization.
7753
77542008-07-14 Jason Rumney <jasonr@gnu.org>
7755
7756 * w32fns.c (w32_get_arg): Remove wrapper function.
7757 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7758 directly.
7759 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7760
77612008-07-14 Kenichi Handa <handa@m17n.org>
7762
7763 * xfont.c (xfont_open): Add workaround for X's bug.
7764
77652008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7766
7767 * fontset.c: Include <stdio.h> unconditionally.
7768
77692008-07-13 Michael Albinus <michael.albinus@gmx.de>
7770
7771 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7772 for filtering.
7773
77742008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7775
7776 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7777
7778 * m/macppc.h:
7779 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7780
7781 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7782 (SPECIAL_EMACS_INT):
7783 * m/ia64.h (SPECIAL_EMACS_INT):
7784 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7785 * s/gnu.h (NLIST_STRUCT):
7786 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7787 * s/gnu-linux.h (LINUX):
7788 * s/msdos.h (HAVE_FACES):
7789 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7790
7791 * systty.h:
7792 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7793 anymore.
7794
77952008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7796
7797 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7798 always defined as int.
7799
7800 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7801 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7802 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7803 * s/freebsd.h (HAVE_WAIT_HEADER):
7804 * s/bsd-common.h (HAVE_UNION_WAIT):
7805 * s/aix4-2.h (HAVE_WAIT_HEADER):
7806 * m/mips.h (HAVE_UNION_WAIT):
7807 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7808 (COFF, static): Do not define, they are undefined later in the file.
7809
7810 * process.c (update_status): Don't use a union.
7811 (status_convert):
7812 (sigchld_handler): Use int instead of WAITTYPE.
7813
78142008-07-12 Chong Yidong <cyd@stupidchicken.com>
7815
7816 * indent.c (Fvertical_motion): Restore hscroll before moving to
7817 goal column.
7818
78192008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7820
7821 * lisp.h: Remove left over code.
7822
78232008-07-11 Andreas Schwab <schwab@suse.de>
7824
7825 * lisp.h: Fix logic in last change.
7826
7827 * menu.h: New file.
7828 * menu.c: Include it.
7829 * xmenu.c: Likewise.
7830 * Makefile.in: Update dependencies.
7831
78322008-07-11 Kenichi Handa <handa@m17n.org>
7833
7834 * fontset.c (fontset_from_font): Cancel the previous change.
7835
78362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7837
7838 * lisp.h:
7839 * w32heap.c:
7840 * emacs.c:
7841 * alloc.c: Replace all references of NO_UNION_TYPE with
7842 USE_LISP_UNION_TYPE.
7843
7844 * m/xtensa.h (NO_UNION_TYPE):
7845 * m/vax.h (NO_UNION_TYPE):
7846 * m/template.h (NO_UNION_TYPE):
7847 * m/sparc.h (NO_UNION_TYPE):
7848 * m/mips.h (NO_UNION_TYPE):
7849 * m/macppc.h (NO_UNION_TYPE):
7850 * m/m68k.h (NO_UNION_TYPE):
7851 * m/iris4d.h (NO_UNION_TYPE):
7852 * m/intel386.h (NO_UNION_TYPE):
7853 * m/ibms390x.h (NO_UNION_TYPE):
7854 * m/ibms390.h (NO_UNION_TYPE):
7855 * m/ibmrs6000.h (NO_UNION_TYPE):
7856 * m/ia64.h (NO_UNION_TYPE):
7857 * m/hp800.h (NO_UNION_TYPE):
7858 * m/arm.h (NO_UNION_TYPE):
7859 * m/amdx86-64.h (NO_UNION_TYPE):
7860 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7861 defining it the same.
7862
78632008-07-10 Chong Yidong <cyd@stupidchicken.com>
7864
7865 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7866
78672008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7868
7869 * fileio.c:
7870 * sysdep.c
7871 * systty.h:
7872 * m/ibmrs6000.h:
7873 * m/iris4d.h:
7874 * s/aix4-2.h:
7875 * s/freebsd.h:
7876 * s/gnu-linux.h:
7877 * s/hpux10-20.h:
7878 * s/hpux11.h:
7879 * s/netbsd.h:
7880 * s/sol2-3.h:
7881 * s/sol2-4.h:
7882 * s/sol2.h:
7883 * s/usg5-4.h:
7884 * s/vms.h: Remove references to unused variables.
7885
78862008-07-10 Andreas Schwab <schwab@suse.de>
7887
7888 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7889 pattern before matching the generic family.
7890
78912008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7892
7893 * unexec.c:
7894 * s/vms.h:
7895 * s/usg5-4-2.h:
7896 * s/sol2-5.h:
7897 * s/freebsd.h:
7898 * s/darwin.h: Remove dead code.
7899
7900 * m/template.h:
7901 * m/sparc.h:
7902 * m/mips.h:
7903 * m/m68k.h:
7904 * m/iris4d.h:
7905 * m/intel386.h:
7906 * m/ibms390x.h:
7907 * m/ibms390.h:
7908 * m/ia64.h:
7909 * m/hp800.h:
7910 * m/arm.h:
7911 * m/amdx86-64.h: Remove dead code and references to unused
7912 and compiler defined symbols.
7913
7914 * unexmips.c:
7915 * unexelf.c: Remove references to desupported systems.
7916
7917 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7918
7919 * m/powermac.h: Remove boilerplate comments.
7920 (NO_REMAP): Remove unused definition.
7921
7922 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7923 define them.
7924
79252008-07-10 Kenichi Handa <handa@m17n.org>
7926
7927 * xfont.c (xfont_open): Log the reason of failure.
7928
79292008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7930
7931 * fontset.c (fontset_get_font_group):
7932 * font.c (font_check_otf): Specify argument types.
7933
79342008-07-09 Kenichi Handa <handa@m17n.org>
7935
7936 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7937 non-ASCII char is found.
7938
7939 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7940 (reorder_font_vector): Change the arg preferred_family to font.
7941 Prefer the spec matching with font.
7942 (fontset_get_font_group): New function.
7943 (fontset_find_font): Change the format of an element of a realized
7944 fontset. Use fontset_get_font_group.
7945 (fontset_font): Try the current fontset, the default fontset, the
7946 fallbacks of the current fontset, and the fallbacks of the default
7947 fontset in this order.
7948 (face_for_char): Delete the shortcut to use the current font.
7949 (fontset_from_font): Don't set fonts for Latin in the fontset.
7950
7951 * font.h (font_make_object, font_match_p): Adjust prototypes.
7952
7953 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7954
7955 * font.c (font_make_object): New arg entity and pixelsize.
7956 (font_check_otf_features, font_check_otf): New functions.
7957 (font_match_p): Check :lang, :script, and :otf properties.
7958
7959 * xfont.c (xfont_open): Adjust it for the change of
7960 font_make_object.
7961 (xfont_text_extents): Fix initial setting of metrics.
7962
7963 * ftfont.c (struct ftfont_info): New member index, delete member
7964 fc_charset_idx. Make the member order compatible with struct
7965 xftfont_info.
7966 (fc_charset_table): Change charset names to registry names.
7967 (ftfont_pattern_entity): Delete the args registry and
7968 fc_charset_idx. Change the value of :font-entity property
7969 to (FONTNAME . INDEX). Always set :registry property to
7970 `iso10646-1'.
7971 (struct ftfont_cache_data): New struct.
7972 (ftfont_lookup_cache): New arg for_face.
7973 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7974 (ftfont_driver): Set the member otf_capability.
7975 (ftfont_get_charset): Adjust it for the change of
7976 fc_charset_table.
7977 (OTF_TAG_SYM): New macro.
7978 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7979 for the change of fc_charset_table.
7980 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7981 ftfont_pattern_entity. Add FC_INDEX to objset.
7982 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7983 and ftfont_pattern_entity.
7984 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7985 font_make_object, struct ftfont_info.
7986 (ftfont_has_char): Use ftfont_get_fc_charset.
7987 (ftfont_otf_features, ftfont_otf_capability): New functions.
7988 (ftfont_shape): Use ftfont_get_otf.
7989 (ftfont_text_extents): Fix initial setting of metrics.
7990
7991 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7992 member order compatible with struct ftfont_info.
7993 (xftfont_open): Add FC_CHARSET to the pattern. Set
7994 xftfont_info->ft_size. Don't unlock the face. Check BDF
7995 properties if appropriate.
7996 (xftfont_close): Unlock the face.
7997 (xftfont_anchor_point, xftfont_shape): Deleted.
7998 (syms_of_xftfont): Don't set members anchor_point and shape of
7999 xftfont_driver.
8000
8001 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
8002 font_make_object.
8003
8004 * w32font.c (w32font_open): Adjust it for the change of
8005 font_make_object.
8006 (w32font_open_internal): Don't set properties of font_object here.
8007
80082008-07-08 Chong Yidong <cyd@stupidchicken.com>
8009
8010 * macfns.c (x_create_tip_frame):
8011 * w32fns.c (x_create_tip_frame):
8012 * xfns.c (x_create_tip_frame): Pass parameter argument to
8013 face-set-after-frame-default.
8014
8015 * xfaces.c (Finternal_merge_in_global_face): Save merged
8016 attributes for the default face back into the face vector.
8017
80182008-07-08 Andreas Schwab <schwab@suse.de>
8019
8020 * fontset.h: Declare fontset_from_font. Don't declare
8021 new_fontset_from_font and fontset_from_font_name.
8022 * xterm.c: Include "fontset.h".
8023 * Makefile.in (xterm.o): Update dependencies.
8024
80252008-07-08 Glenn Morris <rgm@gnu.org>
8026
8027 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8028 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8029
80302008-07-07 Chong Yidong <cyd@stupidchicken.com>
8031
8032 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8033 (x_set_frame_parameters): Don't bind it.
8034
80352008-07-07 Juanma Barranquero <lekktu@gmail.com>
8036
8037 * w32fns.c (map_w32_filename): Declare extern.
8038
80392008-07-07 Jason Rumney <jasonr@gnu.org>
8040
8041 * w32term.c (WS_EX_LAYERED): Define if not already.
8042
80432008-07-06 Chong Yidong <cyd@stupidchicken.com>
8044
8045 * xfaces.c (set_font_frame_param): Don't try to set the font
8046 parameter if it is still unspecified in the lface.
8047
80482008-07-05 Chong Yidong <cyd@stupidchicken.com>
8049
8050 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8051 face if it didn't already exist.
8052
8053 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8054
80552008-07-05 Andreas Schwab <schwab@suse.de>
8056
8057 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8058
80592008-07-05 Chong Yidong <cyd@stupidchicken.com>
8060
8061 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8062 word-wrapping.
8063 (IT_DISPLAYING_WHITESPACE): New macro.
8064 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8065 when word-wrapping. Simplify word-wrapping logic. Use correct
8066 pixel positions when saving copies of the iterator.
8067 (display_line): Use proper wrap point if the last character on a
8068 line was preceded by whitespace.
8069
80702008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8071
8072 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8073
80742008-07-04 Kenichi Handa <handa@m17n.org>
8075
8076 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8077
8078 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8079
80802008-07-02 Jason Rumney <jasonr@gnu.org>
8081
8082 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8083 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8084
8085 * xdisp.c (next_element_from_display_vector): Move assignment out
8086 of if statement.
8087
80882008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8089
8090 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8091
8092 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8093 (syms_of_fileio): Initialize and export them.
8094 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8095
8096 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8097 (Fsystem_move_file_to_trash): New function.
8098 (syms_of_w32fns): Export it to lisp.
8099
81002008-07-01 Jason Rumney <jasonr@gnu.org>
8101
8102 * w32font.c (w32font_text_extents): Don't count overhang as part
8103 of width.
8104
81052008-06-30 Miles Bader <miles@gnu.org>
8106
8107 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8108 Add `avoid_cursor_p' field.
8109
8110 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8111 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8112 (append_glyph, append_composite_glyph, produce_image_glyph)
8113 (append_stretch_glyph): Initialize avoid_cursor_p.
8114 (get_it_property): Rename from `get_line_height_property'.
8115 (x_produce_glyphs): Use get_it_property.
8116 (handle_line_prefix, push_display_prop): New functions.
8117 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8118 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8119 New variables.
8120 (syms_of_xdisp): Initialize them.
8121
81222008-06-30 Kenichi Handa <handa@m17n.org>
8123
8124 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8125 XftDefaultSubstitute (they are called in XftFontMatch).
8126 (xftfont_open): Fix args to ftfont_font_format.
8127
8128 * ftfont.c (fc_charset_table): New member lang.
8129 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8130 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8131 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8132 (ftfont_open): Fix args to ftfont_font_format.
8133 (ftfont_font_format): New arg filename.
8134
81352008-06-30 Chong Yidong <cyd@stupidchicken.com>
8136
8137 * xfaces.c (Finternal_merge_in_global_face): If default face was
8138 modified, realize it again. Update the font face attribute.
8139
81402008-06-29 Jason Rumney <jasonr@gnu.org>
8141
8142 * w32term.c (x_set_frame_alpha): Fix logic.
8143
81442008-06-29 Kenichi Handa <handa@m17n.org>
8145
8146 * fontset.c (Finternal_char_font): Return font-object instead of
8147 font-name.
8148
8149 * composite.c (get_composition_id): Fix the width calculation for TAB.
8150
81512008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8152
8153 * indent.c (Fvertical_motion): Properly handle float column arg.
8154
81552008-06-28 Jason Rumney <jasonr@gnu.org>
8156
8157 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8158 (pfnSetLayeredWindowAttributes): New function pointer.
8159 (w32_initialize): Initialize it when supported.
8160 (x_set_frame_alpha): New function.
8161
8162 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8163 (w32_frame_parm_handlers): Set alpha handler.
8164
8165 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8166
81672008-06-27 Jason Rumney <jasonr@gnu.org>
8168
8169 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8170 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8171 (w32_to_x_charset, x_to_w32_charset)
8172 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8173 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8174 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8175 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8176 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8177 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8178 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8179 (Qw32_charset_unicode): Remove.
8180 (syms_of_w32fns): Update for above changes.
8181
8182 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8183 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8184 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8185 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8186 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8187 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8188 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8189 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8190 (syms_of_w32font): Update for above changes.
8191
81922008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8193
8194 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8195 removed #if.
8196 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8197
81982008-06-26 Juanma Barranquero <lekktu@gmail.com>
8199 Eli Zaretskii <eliz@gnu.org>
8200
8201 * makefile.w32-in (LOCAL_FLAGS):
8202 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8203
8204 * sysdep.c (_spawnlp, _getpid):
8205 Declare with explicit _cdecl instead of _CRTAPI1.
8206
8207 * editfns.c (Fget_internal_run_time):
8208 Check for WINDOWSNT with #ifdef, not #if.
8209
82102008-06-26 Jason Rumney <jasonr@gnu.org>
8211
8212 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8213
8214 * w32term.c (x_draw_glyph_string_foreground)
8215 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8216 Use FONT_HANDLE macro.
8217 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8218
8219 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8220 (uniscribe_encode_char): Use FONT_HANDLE macro.
8221
8222 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8223 (w32font_text_extents): Use precast w32_font.
8224 (w32font_close): Free cached metrics.
8225 (w32font_open_internal): Allocate space for name on stack.
8226
82272008-06-26 Chong Yidong <cyd@stupidchicken.com>
8228
8229 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8230
82312008-06-26 Jason Rumney <jasonr@gnu.org>
8232
8233 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8234 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8235
82362008-06-26 Juanma Barranquero <lekktu@gmail.com>
8237
8238 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8239
82402008-06-26 Jason Rumney <jasonr@gnu.org>
8241
8242 * w32bdf.c, w32bdf.h: Remove obsolete files.
8243
8244 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8245
8246 * w32gui.h: Don't include w32bdf.h.
8247 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8248 Remove obsolete font support.
8249
8250 * w32font.h (struct w32font_info): Remove compat_w32_font.
8251 Add hfont member.
8252 (FONT_COMPAT): Remove obsolete macro.
8253
8254 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8255 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8256 (w32font_open_internal): Remove compat code. Set new hfont member.
8257 (Fx_select_font): Use new hfont member.
8258
8259 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8260 (uniscribe_encode_char): Use new hfont member.
8261
8262 * w32term.c (x_draw_glyph_string_foreground)
8263 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8264 (x_draw_glyph_string): Use metrics in w32font_info.
8265
82662008-06-26 Kenichi Handa <handa@m17n.org>
8267
8268 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8269
82702008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8271
8272 * unexnext.c:
8273 * m/ews4800.h:
8274 * m/hp9000s300.h:
8275 * m/ibm370aix.h:
8276 * m/mips-siemens.h:
8277 * m/ncr386.h:
8278 * m/next.h:
8279 * m/pmax.h:
8280 * m/powerpcle.h:
8281 * m/tandem-s2.h:
8282 * s/386bsd.h:
8283 * s/bsd386.h:
8284 * s/bsd4-1.h:
8285 * s/bsd4-2.h:
8286 * s/bsdos2-1.h:
8287 * s/bsdos2.h:
8288 * s/bsdos3.h:
8289 * s/bsdos4.h:
8290 * s/nextstep.h:
8291 * s/ultrix4-3.h:
8292 * s/usg5-0.h:
8293 * s/usg5-2-2.h:
8294 * s/usg5-2.h:
8295 * s/usg5-4-3.h:
8296 * s/ux4800.h:
8297 * s/uxpds.h:
8298 * s/uxpv.h: Remove support for obsolete systems.
8299 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8300 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8301 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8302 Remove, insert contents in s/aix4-2.h.
8303 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8304 * s/bsd4-3.h: Rename to ...
8305 * s/bsd-common.h: ... this.
8306 * data.c:
8307 * doc.c:
8308 * ecrt0.c:
8309 * emacs.c:
8310 * fileio.c:
8311 * floatfns.c:
8312 * keyboard.c:
8313 * mem-limits.h:
8314 * print.c:
8315 * process.c:
8316 * sysdep.c:
8317 * syssignal.h:
8318 * systty.h:
8319 * syswait.h:
8320 * term.c:
8321 * unexec.c:
8322 * unexelf.c:
8323 * unexhp9k800.c:
8324 * m/hp800.h:
8325 * m/ibmrs6000.h:
8326 * m/mips.h:
8327 * m/vax.h:
8328 * s/darwin.h:
8329 * s/freebsd.h:
8330 * s/gnu.h:
8331 * s/ms-w32.h:
8332 * s/msdos.h:
8333 * s/netbsd.h:
8334 * s/template.h: Remove references to obsolete variables.
8335
8336 * Makefile.in: Add dependencies for all unexec files.
8337 (admindir): Remove unused variable.
8338 (UNEXEC_SRC): Remove references.
8339
83402008-06-25 Chong Yidong <cyd@stupidchicken.com>
8341
8342 * xfns.c (x_default_font_parameter): If Xft is available, first
8343 try Monospace-12 for the default font.
8344
83452008-06-25 Jason Rumney <jasonr@gnu.org>
8346
8347 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8348
83492008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8350
8351 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8352
8353 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8354
83552008-06-25 Juanma Barranquero <lekktu@gmail.com>
8356
8357 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8358 <scroll-conservatively>: Fix typo in docstring.
8359
8360 * xselect.c (Fx_send_client_event): Doc fix.
8361
83622008-06-25 Kenichi Handa <handa@m17n.org>
8363
8364 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8365
8366 * font.c (font_parse_fcname): Remove unused variables.
8367 (font_sort_entites): Delete the arg SPEC. Caller changed.
8368 Fix for the case of ! best_only.
8369 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8370
8371 * lisp.h (Fstring_to_unibyte): EXFUN it.
8372
8373 * character.h (str_to_unibyte): Extern it.
8374
8375 * character.c (str_to_unibyte): New function.
8376
8377 * fns.c (Fstring_to_unibyte): New function.
8378 (syms_of_fns): Defsubr it.
8379
83802008-06-24 Kenichi Handa <handa@m17n.org>
8381
8382 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8383 DPI too.
8384 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8385
83862008-06-24 Andreas Schwab <schwab@suse.de>
8387
8388 * Makefile.in (${lispsource}loaddefs.el): Rename from
8389 ../lisp/loaddefs.el.
8390 (bootstrap-clean): Do what distclean does but don't remove
8391 Makefile.
8392 (distclean): Depend on bootstrap-clean and remove Makefile.
8393
83942008-06-24 Chong Yidong <cyd@stupidchicken.com>
8395
8396 * buffer.h (struct buffer): New member word_wrap.
8397
8398 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8399 word-wrap.
8400 (init_buffer_once): Initialize them.
8401
8402 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8403 line_wrap enum possessing three possible values.
8404
8405 * termopts.h: Replace truncate_partial_width_windows with
8406 Vtruncate_partial_width_windows.
8407
8408 * dispnew.c (direct_output_for_insert): Avoid direct output when
8409 inserting a space with word wrap on.
8410
8411 * indent.c (compute_motion): Obey integer values of
8412 truncate-partial-width-windows.
8413
8414 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8415 replacing truncate_partial_width_windows.
8416 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8417 truncate only if the window width is below that integer.
8418 (start_display, resize_mini_window, produce_stretch_glyph)
8419 (display_string, move_it_in_display_line_to): Use line_wrap.
8420 (back_to_previous_visible_line_start, reseat_1): Reset
8421 string_from_display_prop_p.
8422 (display_line): Extend default face to end of line when wrapping.
8423
84242008-06-24 Kim F. Storm <storm@cua.dk>
8425
8426 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8427 to wrap continued lines at word boundaries.
8428
84292008-06-24 Jason Rumney <jasonr@gnu.org>
8430
8431 * font.c (Ffont_face_attributes): Multiply pixel size before point
8432 conversion to avoid multiplying rounding error.
8433
84342008-06-23 Jason Rumney <jasonr@gnu.org>
8435
8436 * w32term.c (x_draw_glyph_string_background)
8437 (x_draw_glyph_string): Remove old bdf font code.
8438
8439 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8440
84412008-06-22 Kenichi Handa <handa@m17n.org>
8442
8443 * font.c (font_find_for_lface): Try the adstyle specified in
8444 the property of LFACE_FONT of LFACE (if any).
8445
84462008-06-21 Seiji Zenitani <zenitani@mac.com>
8447 Ryo Yoshitake <ryo@shiftmode.net>
8448
8449 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8450
84512008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8452
8453 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8454 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8455 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8456 (witness-emacs): Remove.
8457 (lisp, shortlisp): Move loaddefs.el earlier.
8458 (mostlyclean): Forget about witness-emacs.
8459
84602008-06-22 Glenn Morris <rgm@gnu.org>
8461
8462 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8463 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8464
84652008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8466
8467 * Makefile.in (PRECOMP): Remove.
8468 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8469 (witness-emacs): Run `compile-first'.
8470 (.el.elc): Use the new compile-onefile target.
8471
84722008-06-21 Kenichi Handa <handa@m17n.org>
8473
8474 * xftfont.c (xftfont_open): Handle QCembolden only when
8475 FC_EMBOLDEN is defined.
8476
84772008-06-21 Andreas Schwab <schwab@suse.de>
8478
8479 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8480 (.el.elc): Likewise.
8481
84822008-06-21 Miles Bader <miles@gnu.org>
8483
8484 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8485 build dir, not the lisp source dir.
8486
84872008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8488
8489 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8490 (bootstrapclean): Remove.
8491 (.el.elc): New rule.
8492 (PRECOMP): New var.
8493 (../lisp/subdirs.el): Remove.
8494 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8495 (witness-emacs): New target.
8496 (mostlyclean): Remove witness-emacs as well.
8497 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8498 Add witness-emacs dependency.
8499
85002008-06-20 Chong Yidong <cyd@stupidchicken.com>
8501
8502 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8503 defined by the font.
8504
85052008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8506
8507 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8508 (bootstrap-clean): New target that keeps TAGS around.
8509 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8510 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8511
85122008-06-20 Jason Rumney <jasonr@gnu.org>
8513
8514 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8515 Remove obsolete font code.
8516
8517 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8518 to determine language support.
8519
85202008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8521
8522 * sysdep.c (cfsetspeed): New fun extracted from the code.
8523 (cfmakeraw): Move before first use.
8524
85252008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8526
8527 * sysdep.c (cfmakeraw): Provide fallback implementation.
8528 (serial_configure): Provide fallback implementation of cfsetspeed.
8529
85302008-06-20 Kenichi Handa <handa@m17n.org>
8531
8532 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8533 the pattern.
8534
8535 * fontset.c (fontset_from_font): Copy font_spec before changing
8536 the elements.
8537
8538 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8539
85402008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8541
8542 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8543 for explicit `font' parameters.
8544
8545 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8546
85472008-06-19 Kenichi Handa <handa@m17n.org>
8548
8549 * frame.c: Include <ctype.h>.
8550 (x_set_font_backend): Allow spacing characters in the X resource
8551 for FontBackend.
8552
85532008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8554
8555 * w32fns.c, xfns.c (Qfont_param): New var.
8556 (syms_of_w32fns): Initialize it.
8557 (x_default_font_parameter): Record explicit `font' into
8558 `font-parameter'.
8559
85602008-06-18 Kenichi Handa <handa@m17n.org>
8561
8562 * font.c (font_parse_xlfd): Fix previous change.
8563 (font_parse_fcname): Don't use :fc-unknown-spec.
8564 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8565 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8566 (font_add_log): Prepend the driver name to the resulting fonts.
8567
8568 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8569 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8570 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8571
8572 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8573 (QCembolden): New variables.
8574 (syms_of_xftfont): DEFSYM them.
8575 (xftfont_open): Call XftFontMatch. Don't trust the result of
8576 XftTextExtents8 if the pixel_size is less than 5.
8577
85782008-06-18 Andreas Schwab <schwab@suse.de>
8579
8580 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8581 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8582
85832008-06-18 Jason Rumney <jasonr@gnu.org>
8584
8585 * w32font.c (w32font_list, w32font_match): Add logging.
8586
8587 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8588
85892008-06-17 Chong Yidong <cyd@stupidchicken.com>
8590
8591 * font.c (font_parse_fcname): Store divider characters for
8592 unknown-spec list. For known key symbols, intern using correct
8593 symbol name.
8594
85952008-06-17 Kenichi Handa <handa@m17n.org>
8596
8597 * xfaces.c (realize_default_face): If the frame is not on window
8598 system, set the fontset of face to nil.
8599
86002008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8601
8602 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8603
86042008-06-16 Juanma Barranquero <lekktu@gmail.com>
8605
8606 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8607 (build_font_name_from_vector): Delete externs.
8608
8609 * xfaces.c (struct font_name): Don't declare.
8610
86112008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8612
8613 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8614
86152008-06-16 Chong Yidong <cyd@stupidchicken.com>
8616
8617 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8618
86192008-06-16 Juanma Barranquero <lekktu@gmail.com>
8620
8621 * font.c (Ffont_spec): Fix usage in docstring.
8622 (Ffont_face_attributes): Doc fix.
8623
86242008-06-16 Andreas Schwab <schwab@suse.de>
8625
8626 * font.c (Ffont_face_attributes): Fix definition.
8627
86282008-06-16 Jason Rumney <jasonr@gnu.org>
8629
8630 * font.h (font_style_symbolic_from_value): Remove.
8631
8632 * font.c (font_style_symbolic_from_value): Remove.
8633 (font_style_symbolic): Revert to pre 2008-06-13 version.
8634
8635 * w32font.c (w32_to_fc_weight): New function.
8636 (w32font_full_name, logfont_to_fcname): Use it.
8637
86382008-06-16 Kenichi Handa <handa@m17n.org>
8639
8640 * font.c (font_check_object): Delete it.
8641 (font_clear_cache): Check if a font-object is alive.
8642 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8643 font-object to nil.
8644 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8645 (font_at): Don't call font_check_object.
8646 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8647
86482008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8649
8650 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8651
86522008-06-16 Chong Yidong <cyd@stupidchicken.com>
8653
8654 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8655
86562008-06-15 Chong Yidong <cyd@stupidchicken.com>
8657
8658 * font.c (font_parse_fcname): Only one decimal point.
8659 (font_unparse_fcname): Handle data in family and foundry indices
8660 as symbols, not strings.
8661 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8662
8663 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8664
8665 * font.h (font_unparse_gtkname): Add prototype.
8666
86672008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8668
8669 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8670
86712008-06-15 Andreas Schwab <schwab@suse.de>
8672
8673 * font.c (font_update_drivers): Fix crash when no drivers match.
8674
86752008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8676
8677 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8678 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8679
86802008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8681
8682 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8683
86842008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8685
8686 * process.c (Fserial_process_configure, Fprocess_send_eof):
8687 Use EQ to compare Lisp_Objects.
8688
86892008-06-13 Jason Rumney <jasonr@gnu.org>
8690
8691 * w32fns.c (Fw32_select_font): Remove old font API function.
8692
8693 * w32font.c (logfont_to_fcname): New function.
8694 (Fx_select_font): New font dialog function compatible with
8695 GTK/fontconfig version.
8696
8697 * font.c (font_style_symbolic_from_value): New function.
8698 (font_style_symbolic): Use it.
8699
8700 * font.h (font_style_symbolic_from_value): Declare new function.
8701
87022008-06-13 Juanma Barranquero <lekktu@gmail.com>
8703
8704 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8705 <font-width-table>: Fix typos in docstrings.
8706
87072008-06-13 Daniel Engeler <engeler@gmail.com>
8708
8709 These changes add serial port access.
8710 * process.c: Add HAVE_SERIAL.
8711 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8712 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8713 (list_processes_1, select_wrapper, Fstop_process)
8714 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8715 (status_notify): Modify to handle serial processes.
8716 [HAVE_SERIAL] (Fserial_process_configure)
8717 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8718 New functions.
8719 * process.h (struct Lisp_Process): Add `type'.
8720 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8721 New functions.
8722 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8723 serial ports.
b71ac3dd 8724 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8725 * w32.h: Add FILE_SERIAL.
8726 (struct _child_process): Add ovl_read, ovl_write.
8727
87282008-06-13 Kenichi Handa <handa@m17n.org>
8729
8730 * dispextern.h (enum lface_attribute_index): New member
8731 LFACE_FOUNDRY_INDEX.
8732
8733 * font.c (font_score): Delete arg alternate_families. Check only
8734 weight, slant, width, and size. Ignore the difference of alias
8735 style symbols.
8736 (font_sort_entites): Adjust for the above change. Reflect the
8737 order of font-driver to scores.
8738 (font_list_entities): Don't check alternate_familes here.
8739 (font_clear_prop): Handle foundry.
8740 (font_update_lface): Don't parse "foundry-family" form here.
8741 Handle FONT_FOUNDRY_INDEX.
8742 (font_find_for_lface): Likewise. Handle alternate families here.
8743 If registry is nil, try iso8859-1 and ascii-0.
8744 (font_open_for_lface): Pay attention to size in ENTITY.
8745 (font_open_by_name): Simplify by calling font_load_for_lface.
8746 (free_font_driver_list): Delete it.
8747 (font_update_drivers): Preserve the order of backends.
8748 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8749 of font_score and font_sort_entites.
8750 (font_update_sort_order): Likewise.
8751
8752 * xfaces.c (LFACE_FOUNDRY): New macro.
8753 (check_lface_attrs): Check foundry.
8754 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8755 (merge_face_vectors): Check foundry.
8756 (merge_face_ref): Likewise.
8757 (Finternal_set_lisp_face_attribute): Likewise.
8758 (x_update_menu_appearance): Likewise.
8759 (Finternal_get_lisp_face_attribute): Likewise.
8760 (lface_hash): Likewise.
8761 (lface_same_font_attributes_p): Likewise.
8762 (x_supports_face_attributes_p): Likewise.
8763 (tty_supports_face_attributes_p): Likewise.
8764 (Finternal_set_alternative_font_family_alist): Intern strings.
8765 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8766 (realize_default_face): Set LFACE_FOUNDRY (lface).
8767
8768 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8769 font-driver at first.
8770
8771 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8772
87732008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8774
8775 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8776
87772008-06-12 Jim Meyering <meyering@redhat.com>
8778
8779 Make unexec_free handle NULL the same way free does.
8780 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8781
87822008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8783
8784 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8785 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8786 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8787 (WEAK_ALIAS): Simplify.
8788 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8789 when searching a unibyte buffer.
8790
87912008-06-12 Chong Yidong <cyd@stupidchicken.com>
8792
8793 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8794
87952008-06-12 Juanma Barranquero <lekktu@gmail.com>
8796
8797 * w32font.c: Include ctype.h.
8798
87992008-06-11 Jason Rumney <jasonr@gnu.org>
8800
8801 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8802 misreported as space.
8803 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8804 as aliases for registry iso10646-1.
8805
88062008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8807
8808 * buffer.c (clone_per_buffer_values): Skip `name'.
8809
88102008-06-11 Chong Yidong <cyd@stupidchicken.com>
8811
8812 * font.c (font_parse_fcname): Fix last change; accept decimal
8813 points in font size.
8814
88152008-06-10 Jason Rumney <jasonr@gnu.org>
8816
8817 * w32uniscribe.c (add_opentype_font_name_to_list):
8818 Skip non unicode fonts.
8819
88202008-06-10 Chong Yidong <cyd@stupidchicken.com>
8821
8822 * xfns.c (Fx_font_dialog): New function.
8823
8824 * gtkutil.c (xg_dialog_response_cb): Rename from
8825 xg_file_response_callback.
8826 (pop_down_dialog): Rename from pop_down_file_dialog.
8827 (xg_get_file_name): Callers changed.
8828 (xg_get_font_name): New function.
8829
8830 * gtkutil.h (xg_get_font_name): Insert prototype.
8831
88322008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8833
8834 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8835 x_underline_minimum_display_offset.
8836 (syms_of_xdisp): Declare it here rather than in xterm.c.
8837 * dispextern.h (underline_minimum_offset): Declare it.
8838 * w32term.c (x_draw_glyph_string): Use it.
8839 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8840 (syms_of_xterm): Don't declare it any more.
8841 (x_draw_glyph_string): Adjust to the new name.
8842
88432008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8844
8845 * xterm.c (x_underline_minimum_display_offset): New var.
8846 (x_draw_glyph_string): Use it.
8847 (syms_of_xterm): Declare it.
8848
88492008-06-10 Chong Yidong <cyd@stupidchicken.com>
8850
8851 * font.c (font_parse_fcname): Accept GTK-style font names too.
8852
88532008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8854
8855 * dired.c (file_name_completion): Don't return t if the match is exact
8856 but with different capitalization.
8857 * minibuf.c (Ftry_completion): Simplify.
8858
8859 * window.c (Vwindow_point_insertion_type): New var.
8860 (set_window_buffer): Use it.
8861 (syms_of_window): Init and export it to Lisp.
8862
88632008-06-10 Kenichi Handa <handa@m17n.org>
8864
8865 * font.h (font_intern_prop): Prototype adjusted.
8866
8867 * font.c (font_intern_prop): New arg force_symbol.
8868 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8869 Adjust for the change of font_intern_prop.
8870
8871 * ftfont.c (ftfont_pattern_entity):
8872 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8873 (w32_registry):
8874 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8875 the change of font_intern_prop.
8876
88772008-06-09 Juanma Barranquero <lekktu@gmail.com>
8878
8879 * w32menu.c (digest_single_submenu): Declare extern.
8880
88812008-06-09 Jason Rumney <jasonr@gnu.org>
8882
8883 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8884
8885 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8886 (parse_single_submenu): Remove.
8887 (digest_single_submenu): Remove.
8888 (syms_of_w32menu): Don't initialise variables that have moved
8889 to menu.c.
8890 (set_frame_menubar): Sync with version in xmenu.c.
8891 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8892
8893 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8894 Make static again.
8895
88962008-06-09 Jason Rumney <jasonr@gnu.org>
8897
8898 Changes to w32 files related to the move of common menu code
8899 to menu.c on 2008-06-08 by Chong Yidong.
8900
8901 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8902 defs to w32gui.h.
8903 (single_keymap_panes, push_menu_item, push_menu_pane):
8904 Make globally visible.
8905
8906 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8907 (local_free, malloc_widget_value, free_widget_value)
8908 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8909 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8910 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8911 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8912 (menu_items, menu_items_allocated, menu_items_used)
8913 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8914 (init_menu_items, finish_menu_items, discard_menu_items)
8915 (grow_menu_items, push_submenu_start, push_submenu_end)
8916 (push_left_right_boundary, push_menu_pane, push_menu_item)
8917 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8918 (free_menubar_widget_tree_value, parse_single_submenu)
8919 (update_submenu_strings): Remove functions.
8920 (xmalloc_widget_value): Remove and declare extern.
8921
8922 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8923 (OBJ1): Build it.
8924
8925 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8926 (local_heap, local_alloc, local_free, malloc_widget_value)
8927 (free_widget_value): Define here.
8928
89292008-06-09 Kenichi Handa <handa@m17n.org>
8930
8931 * font.h (Qascii_0): Extern it.
8932
8933 * font.c (Qascii_0): New variable.
8934 (syms_of_font): DEFSYM it.
8935 (font_open_by_name): If the registry "iso8859-1" fails, try also
8936 "ascii-0".
8937
8938 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8939
89402008-06-08 Kenichi Handa <handa@m17n.org>
8941
8942 * .gdbinit (xfont): New command.
8943
89442008-06-08 Andreas Schwab <schwab@suse.de>
8945
8946 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8947 * Makefile.in (menu.o): Update dependencies.
8948
8949 * Makefile.in (obj): Always add menu.o.
8950 * emacs.c (main): Always call syms_of_menu.
8951 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8952
89532008-06-08 Chong Yidong <cyd@stupidchicken.com>
8954
8955 * Makefile.in: Compile menu.c.
8956
8957 * lisp.h: Declare syms_of_menu.
8958
8959 * emacs.c (main): Call syms_of_menu.
8960
8961 * keyboard.h: Relocate platform-independent menu definitions from
8962 xmenu.c.
8963
8964 * menu.c: New file. Relocate platform-independent menu
8965 definitions from xmenu.c. Suggested by Adrian Robert.
8966
8967 * xmenu.c: Remove platform-independent menu definitions.
8968 (menu_items menu_items_inuse, menu_items_allocated)
8969 (menu_items_used, menu_items_n_panes)
8970 (menu_items_submenu_depth): Move to keyboard.h.
8971 (init_menu_items, finish_menu_items, unuse_menu_items)
8972 (discard_menu_items, restore_menu_items, save_menu_items)
8973 (grow_menu_items, push_submenu_start, push_submenu_end)
8974 (push_left_right_boundary, push_menu_pane, push_menu_item)
8975 (keymap_panes, single_keymap_panes, single_menu_item)
8976 (list_of_panes, list_of_items, find_and_call_menu_selection)
8977 (xmalloc_widget_value, free_menubar_widget_value_tree)
8978 (parse_single_submenu, digest_single_submenu)
8979 (update_submenu_strings): Move to menu.c.
8980
89812008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8982
8983 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8984
89852008-06-06 Miles Bader <miles@gnu.org>
8986
8987 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8988 face, not frame default.
8989
89902008-06-05 Martin Rudalics <rudalics@gmx.at>
8991
8992 * window.c (pop_up_windows, pop_up_frames)
8993 (display_buffer_reuse_frames, Vpop_up_frame_function)
8994 (Vdisplay_buffer_function, Veven_window_heights)
8995 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8996 (Vspecial_display_function, Vsame_window_buffer_names)
8997 (Vsame_window_regexps, split_height_threshold)
8998 (Vsplit_window_preferred_function): Move those vars to window.el.
8999 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
9000 (Fdisplay_buffer): Move those functions to window.el.
9001 (syms_of_window): Remove corresponding declarations.
9002 (display_buffer): New function.
9003 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
9004 * dispnew.c (Flast_nonminibuf_frame): New function.
9005 * buffer.c (Fpop_to_buffer): Move to window.el.
9006
90072008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9008
9009 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9010
90112008-06-05 Kenichi Handa <handa@m17n.org>
9012
9013 * coding.c (detect_coding): Fix previous change.
9014 (detect_coding_system): Likewise.
9015
90162008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9017
9018 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9019
9020 * keymap.c (Vminibuffer_local_filename_must_match_map):
9021 Rename from Vminibuffer_local_must_match_filename_map.
9022 (syms_of_keymap):
9023 * minibuf.c (Fcompleting_read): Adjust accordingly.
9024 * commands.h: Rename declaration as well.
9025
90262008-06-05 Kenichi Handa <handa@m17n.org>
9027
9028 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9029 family name.
9030 (Ffont_put): Likewise.
9031
9032 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9033 current font-spec.
9034
9035 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9036 is unspecified.
9037
9038 * xfaces.c (realize_x_face): If the font-related face attributes
9039 are the same as those of default face, realize a new fontset from
9040 default->fontset.
9041 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9042
90432008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9044
9045 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9046 (move_it_in_display_line): New wrapper.
9047
9048 * window.c (window_scroll_pixel_based_preserve_x)
9049 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9050 (window_scroll_pixel_based, window_scroll_line_based):
9051 Use them to preserve column positions.
9052 (syms_of_window): Initialize them.
9053
9054 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9055 (HPOS . VPOS) pair.
9056
9057 * dispextern.h (move_it_in_display_line): Declare.
9058
90592008-06-05 Juanma Barranquero <lekktu@gmail.com>
9060
9061 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9062 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9063 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9064
90652008-06-04 Juanma Barranquero <lekktu@gmail.com>
9066
9067 * window.c (Fset_window_parameter): Doc fix.
9068 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9069
90702008-06-04 Joakim Verona <joakim@verona.se>
9071
9072 * window.h (struct window): Add new member window_parameters.
9073
9074 * window.c (Fwindow_parameters, Fwindow_parameter)
9075 (Fset_window_parameter): New defuns.
9076 (syms_of_window): Defsubr the new defuns.
9077 (make_window): Initialize window_parameters to nil.
9078
90792008-06-04 John Paul Wallington <jpw@pobox.com>
9080
9081 * eval.c (Fdefmacro): Doc fix.
9082
90832008-06-04 Kenichi Handa <handa@m17n.org>
9084
9085 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9086 Be sure to call setup_coding_system when we find a proper coding system.
9087 (detect_coding_system): Fix handling of coding->head_ascii.
9088
90892008-06-03 Andreas Schwab <schwab@suse.de>
9090
9091 * font.c (font_prop_validate_spacing): Fix last change.
9092
90932008-06-03 Kenichi Handa <handa@m17n.org>
9094
9095 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9096 (font_parse_fcname): Fix handling of unknown key.
9097
9098 * xfont.c (xfont_list): Try an alias.
9099
9100 * charset.c (char_charset): Return NULL if the arg charset_list is
9101 specified and C doesn't belong to any of them.
9102
91032008-06-02 Chip Coldwell <coldwell@redhat.com>
9104
9105 * font.c (font_pixel_size): Don't take cdr of an integer.
9106
91072008-06-02 Jim Meyering <meyering@redhat.com>
9108
9109 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9110 * alloc.c (xfree): Return right away for a NULL arg.
9111 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9112 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9113 * mac.c (create_apple_event_from_event_ref): Likewise.
9114 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9115 Likewise.
9116 * doprnt.c (doprnt1): Likewise.
9117 * frame.c (frame): Likewise.
9118 * keyboard.c (wipe_kboard): Likewise.
9119 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9120 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9121 * term.c (tty_default_color_capabilities, maybe_fatal)
9122 (delete_tty): Likewise.
9123 * w16select.c (string): Likewise.
9124 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9125 * w32bdf.c (w32_free_bdf_font): Likewise.
9126 * w32fns.c (w32_unload_font): Likewise.
9127 * w32font.c (w32font_close): Likewise.
9128 * window.c (size_window): Likewise.
9129 * xselect.c (receive_incremental_selection): Likewise.
9130 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9131 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9132 * w32.c (stat): Likewise.
9133
9134 Remove useless if-before-free tests.
9135 * editfns.c (Fset_time_zone_rule): Likewise.
9136 * lread.c (nosuffix): Likewise.
9137 * ralloc.c (get_bloc): Likewise.
9138 * regex.c (reg_free): Likewise.
9139 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9140 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9141 * xsmfns.c (smc_save_yourself_CB): Likewise.
9142
91432008-06-02 Kenichi Handa <handa@m17n.org>
9144
9145 * font.c (font_find_for_lface): Handle float font size.
9146 (font_open_for_lface): Likewise.
9147
9148 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9149 comparing the properties.
9150
91512008-06-01 Jason Rumney <jasonr@gnu.org>
9152
9153 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9154 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9155 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9156 Don't add empty script list.
9157 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9158
91592008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9160
9161 * Makefile.in (dot, dotdot): Remove, update users.
9162 ".." has been used elsewhere in the file for a long time.
9163 (LIBXT_STATIC): Remove conditional based on unused variable.
9164
91652008-06-01 Miles Bader <miles@gnu.org>
9166
9167 * xfaces.c (Vface_remapping_alist): New variable.
9168 (syms_of_xfaces): Initialize it.
9169 (enum named_merge_point_kind): New type.
9170 (struct named_merge_point): Add `named_merge_point_kind' field.
9171 (push_named_merge_point): Make cycle detection respect different
9172 named-merge-point kinds.
9173 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9174 Remove face-name alias resolution.
9175 (lface_from_face_name): New definition using
9176 `lface_from_face_name_no_resolve'.
9177 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9178 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9179 (get_lface_attributes): New definition that layers face-remapping on
9180 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9181 (lookup_basic_face): New function.
9182 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9183 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9184 `get_lface_attributes'.
9185 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9186 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9187 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9188
9189 * xdisp.c (init_iterator): Pass base_face_id through
9190 `lookup_basic_face' when we actually use it as a face-id.
9191 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9192 DEFAULT_FACE_ID.
9193
9194 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9195 lookup the initial face-id.
9196
9197 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9198
91992008-06-01 Juanma Barranquero <lekktu@gmail.com>
9200
9201 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9202 (Fremove_text_properties): Fix typos in docstrings.
9203
92042008-05-31 Kenichi Handa <handa@m17n.org>
9205
9206 * font.c (font_list_entities): Fix the car part of data to be
9207 stored in the cache.
9208
9209 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9210
92112008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9212
9213 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9214 Add a `test' argument so another predicate than `equal' can be used.
9215 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9216 (map_char_table): Remove unused vars `c' and `i'.
9217 * lisp.h (Foptimize_char_table): Adjust declaration.
9218 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9219
92202008-05-30 Kenichi Handa <handa@m17n.org>
9221
9222 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9223 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9224 defined.
9225
92262008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9227
9228 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9229 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9230 frame-local settings for the same variable.
9231
92322008-05-30 Kenichi Handa <handa@m17n.org>
9233
9234 * fontset.c (Ffont_info): Move to font.c.
9235 (syms_of_fontset): Delete defsubr of Sfont_info.
9236
9237 * font.c (font_style_to_value, font_score): Delete casting of the
9238 args to xstcasecmp.
9239 (register_font_driver): Increment num_font_drivers only when
9240 registering the driver globally.
9241 (Ffont_info): Move from fontset.c. Handle a font object too.
9242 (syms_of_font): Defsubr Sfont_info.
9243
92442008-05-29 Kenichi Handa <handa@m17n.org>
9245
9246 * coding.h (enum define_coding_utf8_arg_index): New enum.
9247 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9248 coding_attr_utf_bom.
9249 (enum utf_bom_type): Rename from utf_16_bom_type.
9250 (struct utf_16_spec): Adjust for the above change.
9251 (struct coding_system): Add utf_8_bom in `spec' union.
9252
9253 * coding.c (CODING_UTF_8_BOM): New macro.
9254 (enum coding_category): Delete coding_category_utf_8, add
9255 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9256 coding_category_utf_8_sig.
9257 (CATEGORY_MASK_UTF_8): Delete it.
9258 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9259 (CATEGORY_MASK_UTF_8_SIG): New macros.
9260 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9261 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9262 CATEGORY_MASK_UTF_8_SIG.
9263 (CATEGORY_MASK_UTF_8): New macro.
9264 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9265 (detect_coding_utf_8): Check BOM.
9266 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9267 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9268 (encode_coding_utf_16): Likewise.
9269 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9270 (detect_coding, detect_coding_system): Handle utf-8-auto.
9271 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9272 (syms_of_coding): Fix setting up of Vcoding_category_table.
9273
92742008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9275
9276 * process.c (Faccept_process_output): If `millisec' is non-nil,
9277 `seconds' default to 0.
9278 (wait_reading_process_output): Also return non-nil if we read output
9279 from a non-running process.
9280
92812008-05-29 Jason Rumney <jasonr@gnu.org>
9282
9283 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9284 `raster' specified.
9285 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9286 in the uniscribe backend, but disallow any font that has no
9287 unicode subrange support.
9288
92892008-05-29 Juanma Barranquero <lekktu@gmail.com>
9290
9291 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9292 Fix typos in docstrings.
9293
92942008-05-29 Kenichi Handa <handa@m17n.org>
9295
9296 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9297 (Fx_family_fonts): Set frame correctly.
9298
92992008-05-28 Jason Rumney <jasonr@gnu.org>
9300
9301 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9302
93032008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9304
9305 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9306 calling build_annotations.
9307
93082008-05-28 Juanma Barranquero <lekktu@gmail.com>
9309
9310 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9311 (Fencode_coding_string):
9312 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9313 <latin-extra-code-table>: Fix typos in docstrings.
9314 (syms_of_coding) <coding-system-alist>: Doc fix.
9315 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9316
93172008-05-28 Kenichi Handa <handa@m17n.org>
9318
9319 * fontset.c (Ffont_info): Don't call font_close_object.
9320
9321 * font.c (font_parse_family_registry): Use Ffont_put to validate
9322 foundry and family.
9323 (font_delete_unmatched): Don't check spacing.
9324 (font_list_entities): Add spacing to the spec to list fonts.
9325
9326 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9327 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9328
9329 * coding.c (encode_coding_raw_text): Fix previous change.
9330 (encode_coding_object): When the dst_object is a buffer and is
9331 different from src_object, move gap to PT.
9332
93332008-05-27 Chong Yidong <cyd@stupidchicken.com>
9334
9335 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9336
93372008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9338
9339 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9340 all branches. Compute it differently.
9341
9342 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9343
93442008-05-27 Juanma Barranquero <lekktu@gmail.com>
9345
9346 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9347 into "else if () ... else ...".
9348
93492008-05-27 Jason Rumney <jasonr@gnu.org>
9350
9351 * w32font.c (w32font_open_internal): Determine if glyph indices
9352 are likely to work here.
9353
93542008-05-27 Chong Yidong <cyd@stupidchicken.com>
9355
9356 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9357 draw overlap glyphs with appropriate highlighting.
9358
93592008-05-27 Kenichi Handa <handa@m17n.org>
9360
9361 * xfont.c (xfont_open): Fix calculation of font->average_width.
9362
93632008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9364
9365 * casefiddle.c (casify_object): Try to guess better whether the
9366 argument is a byte or a char.
9367
93682008-05-26 Andreas Schwab <schwab@suse.de>
9369
9370 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9371 Always send multiples of format size.
9372
9373 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9374
93752008-05-26 Jason Rumney <jasonr@gnu.org>
9376
9377 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9378 (compute_metrics): Don't set failure if we just cleared the cache.
9379 (w32_weight_table): Remove unused variable.
9380 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9381 backwards compatibility.
9382
93832008-05-25 Kenichi Handa <handa@m17n.org>
9384
9385 * w32term.c (x_draw_glyph_string):
9386 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9387
9388 * xfaces.c: Delete unused function prototypes.
9389 (xstrlwr, font_frame): Delete them.
9390 (clear_face_cache): Delete unused variable.
9391
9392 * xftfont.c (xftfont_open): Delete unused variable.
9393 If underline_thickness is not 1, adjust underline_position.
9394
9395 * ftxfont.c (ftxfont_open): Delete unused variable.
9396
9397 * fontset.c (face_for_char): Optimize for the case of no charset
9398 property.
9399
9400 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9401 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9402 (otf_open, font_otf_capability, generate_otf_features)
9403 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9404 Comment out by surrounding "#if 0" and "#endif" for the moment.
9405 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9406 (syms_of_font): Codes for accessing above commented out.
9407
94082008-05-24 Eli Zaretskii <eliz@gnu.org>
9409
9410 * w32proc.c: Include dispextern.h.
9411
9412 * w32.c: Include dispextern.h.
9413
94142008-05-23 Juanma Barranquero <lekktu@gmail.com>
9415
9416 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9417 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9418 Fix typos in docstrings.
9419
94202008-05-23 Jason Rumney <jasonr@gnu.org>
9421
9422 * xsmfns.c: Remove includes that are already included by config.h.
9423
94242008-05-23 Kenichi Handa <handa@m17n.org>
9425
9426 * charset.c (Qemacs, charset_emacs): New variables.
9427 (char_charset): Fix for non-Unicode characters.
9428 (syms_of_charset): Define charset_emacs.
9429
9430 * w32term.c (x_draw_glyph_string): Be sure to update
9431 s->underline_thickness and s->underline_position. Be sure to draw
9432 underline within the current line area.
9433
9434 * xterm.c (x_draw_glyph_string): Be sure to update
9435 s->underline_thickness and s->underline_position. Be sure to draw
9436 underline within the current line area.
9437
9438 * fontset.c: Delete unused variables and add casting for char *
9439 throughout the file.
9440 (fontset_font): Try the fallback fonts of the current fontset
9441 before consulting the default fontset.
9442
9443 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9444
9445 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9446
94472008-05-22 Jason Rumney <jasonr@gnu.org>
9448
9449 * font.c: Don't include strings.h.
9450
9451 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9452
9453 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9454 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9455 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9456 to call xstrcasecmp.
9457
9458 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9459
9460 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9461
9462 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9463
9464 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9465
94662008-05-22 Kenichi Handa <handa@m17n.org>
9467
9468 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9469
9470 * font.c (font_prop_validate_style): Adjust for the format
9471 change of font_style_table.
9472
9473 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9474 two args.
9475
9476 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9477 two args.
9478
94792008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9480
9481 * minibuf.c (keys_of_minibuf): Delete.
9482 * lisp.h (keys_of_minibuf): Delete.
9483 * emacs.c (main): Don't call keys_of_minibuf.
9484
94852008-05-22 Kenichi Handa <handa@m17n.org>
9486
9487 * ftfont.c (ftfont_resolve_generic_family): Rename from
9488 ftfont_list_generic_family. Return a single family for each
9489 generic family.
9490 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9491 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9492 Call font_add_log.
9493 (ftfont_match): Call font_add_log.
9494
9495 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9496 (FONT_DEBUG): Define it.
9497 (font_add_log): Extern it.
9498 (font_assert): Rename from xassert.
9499
9500 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9501 (xfont_list_family): Call font_add_log.
9502 (xfont_match): Likewise.
9503 (memq_no_quit): Delete.
9504
9505 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9506 call of Ffont_xlfd_name.
9507
9508 * xfaces.c (struct table_entry, slant_table, weight_table)
9509 (swidth_table): Move to font.c.
9510
9511 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9512 xassert are changed to font_assert. Delete many unused variables.
9513 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9514 New variables.
9515 (struct table_entry): Move from xfaces.c and modified.
9516 (weight_table, slant_table, width_table): Move from xfaces.c and
9517 contents adjusted for the change of struct table_entry.
9518 (font_style_to_value, font_style_symbolic): Adjust for the
9519 format change of font_style_table.
9520 (font_parse_family_registry): Don't overwrite existing foundry and
9521 family of font_spec.
9522 (font_score): Fix calculation of diff for sizes.
9523 (font_sort_entites): Call font_add_log.
9524 (font_delete_unmatched): Return a newly created list.
9525 (font_list_entities): Fix previous change. Call font_add_log.
9526 (font_matching_entity, font_open_entity, font_close_entity):
9527 Call font_add_log.
9528 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9529 (Finternal_set_font_style_table): Delete.
9530 (BUILD_STYLE_TABLE): New macro.
9531 (build_style_table): New function.
9532 (Vfont_log, font_log_env_checked): New variables.
9533 (font_add_log): New function.
9534 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9535 Declare Lisp variables "font-weight-table", "font-slant-table",
9536 "font-width-table", and "font-log". Initialize font_style_table.
9537
95382008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9539
9540 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9541
95422008-05-21 Seiji Zenitani <zenitani@mac.com>
9543 Ryo Yoshitake <ryo@shiftmode.net>
9544
9545 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9546 (Vframe_alpha_lower_limit): New variable.
9547 (x_set_alpha): New function.
9548
9549 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9550
9551 * xfns.c (x-create-frame, Qalpha):
9552 Initialize the frame parameter `alpha'.
9553 * xterm.c (OPAQUE, OPACITY): New.
9554 (x_set_frame_alpha): New function.
9555 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9556
9557 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9558 * w32fns.c (w32_frame_parm_handlers): Likewise.
9559
95602008-05-20 Jason Rumney <jasonr@gnu.org>
9561
9562 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9563 truetype fonts to opentype list.
9564
95652008-05-20 Juanma Barranquero <lekktu@gmail.com>
9566
9567 * fontset.c (Ffontset_info): Doc fix.
9568 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9569 <ignore-relative-composition>: Fix typos in docstrings.
9570
9571 * font.c (syms-of-font) <font-encoding-alist>:
9572 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9573 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9574 (Ffont_otf_alternates): Doc fixes.
9575
95762008-05-20 Kenichi Handa <handa@m17n.org>
9577
9578 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9579 font.h through out the file.
9580 (FONT_DRIVERS): Rename from FONTOBJ.
9581 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9582 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9583
9584 * emacs.c (main): Call syms_of_font unconditionally.
9585
9586 * font.h (find_font_encoding): Extern it.
9587
9588 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9589 fontset.c.
9590 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9591 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9592 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9593 only when HAVE_WINDOW_SYSTEM is defined.
9594 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9595 when HAVE_WINDOW_SYSTEM is defined.
9596
9597 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9598 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9599
9600 * xfaces.c: Include font.h unconditionally.
9601 (merge_face_ref, merge_face_vectors)
9602 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9603
96042008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9605
9606 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9607 indirect_variable.
9608 * eval.c (lisp_indirect_variable): New fun.
9609 (Fuser_variable_p): Use it.
9610
96112008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9612
9613 * lisp.h (indirect_variable):
9614 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9615 Use Lisp_Symbol pointers rather than Lisp_Object.
9616 Adjust callers.
9617 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9618 To this end, change calling-convention.
9619
9620 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9621 if some non-hidden buffers are selected by string&pred.
9622
96232008-05-19 Chong Yidong <cyd@stupidchicken.com>
9624
9625 * process.c (wait_reading_process_output): Always check status
9626 when in batch mode.
9627
96282008-05-19 Kenichi Handa <handa@m17n.org>
9629
9630 * font.c (font_list_entities): Fix handling of cache.
9631 (font_matching_entity): Likewise.
9632
9633 * ftfont.c (cs_iso8859_1): Delete.
9634 (ft_face_cache): New variable.
9635 (struct ftfont_info): New member fc_charset_idx.
9636 (ftfont_build_basic_charsets): Delete.
9637 (fc_charset_table): New variable.
9638 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9639 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9640 Callers changed.
9641 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9642 (ftfont_spec_pattern): New argument fc_charset_idx.
9643 Check registry more rigidly. Change callers.
9644 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9645 change of :font-entity property of the font.
9646
9647 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9648 property of the font.
9649
96502008-05-18 Juanma Barranquero <lekktu@gmail.com>
9651
9652 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9653 (Funencodable_char_position, Fcheck_coding_systems_region)
9654 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9655 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9656 (Ffind_operation_coding_system, Fset_coding_system_priority)
9657 (Fcoding_system_eol_type): Doc fixes.
9658
96592008-05-17 Glenn Morris <rgm@gnu.org>
9660
9661 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9662
96632008-05-16 Eli Zaretskii <eliz@gnu.org>
9664
9665 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9666 and st_gid.
9667
9668 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9669 HAVE_WINDOW_SYSTEM is not defined.
9670
9671 * xfaces.c (merge_face_ref, merge_face_vectors)
9672 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9673 HAVE_WINDOW_SYSTEM is defined.
9674 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9675
96762008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9677
9678 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9679
96802008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9681
9682 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9683
96842008-05-15 Kenichi Handa <handa@m17n.org>
9685
9686 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9687 preference.
9688
96892008-05-15 Glenn Morris <rgm@gnu.org>
9690
9691 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9692
96932008-05-15 Chong Yidong <cyd@stupidchicken.com>
9694
9695 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9696 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9697
9698 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9699
97002008-05-15 Kenichi Handa <handa@m17n.org>
9701
9702 * ftfont.c (ftfont_list): Downcase family name to check generic
9703 families.
9704
9705 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9706 font-spec for QCfont value.
9707
9708 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9709 buffer. Check the return value of it.
9710
97112008-05-14 Jason Rumney <jasonr@gnu.org>
9712
9713 * w32term.c (w32_get_glyph_overhangs): Remove.
9714 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9715
97162008-05-14 Kenichi Handa <handa@m17n.org>
9717
9718 * font.c (font_prop_validate): Make nil a valid value.
9719 (font_clear_cache): Check if the cached vector of entities is nil
9720 or not.
9721
97222008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9723
9724 * emacs.c (main_thread): Conditionalize on
9725 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9726 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9727
9728 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9729 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9730 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9731
97322008-05-14 Kenichi Handa <handa@m17n.org>
9733
9734 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9735 has no corresponding coding system.
9736
97372008-05-14 Jason Rumney <jasonr@gnu.org>
9738
9739 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9740
9741 * w32font.h (w32font_open_internal): Update declaration.
9742
9743 * w32font.c (w32font_open_internal): Change last argument from
9744 w32font_info struct to font object. Fill in font object from
9745 font_entity. Get Outline metrics if possible. Use them to
9746 calculate underline position and thickness. Use xlfd name as name
9747 property. Don't set codepage.
9748 (w32font_open): Pass font_object to w32font_open_internal. Don't
9749 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9750 (w32font_draw): Use s->font.
9751 (clear_cached_metrics): Don't clear non-existent blocks.
9752
9753 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9754 font was not found.
9755 (x_draw_glyph_string): Use underline position and thickness from font.
9756
9757 * w32uniscribe.c (uniscribe_open): Pass font_object to
9758 w32font_open_internal.
9759
97602008-05-14 Kenichi Handa <handa@m17n.org>
9761
9762 These changes are to delete all legacy font-handling codes, and
9763 make Emacs use only font-backends.
9764
9765 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9766 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9767
9768 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9769
9770 * charset.h (Vcharset_non_preferred_head)
9771 (Vcurrent_iso639_language): Extern them.
9772
9773 * charset.c (Vcharset_non_preferred_head): New variable.
9774 (Vcurrent_iso639_language): New variable.
9775 (syms_of_charset): Declare it as a Lisp variable.
9776 (char_charset): Don't check non preferred charsets. As a last
9777 resort, return charset_unicode.
9778 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9779
9780 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9781 conditionals. Don't check enable_font_backend. Delete all codes
9782 used only when USE_FONT_BACKEND is not defined.
9783
9784 * dispextern.h (struct glyph_string): Change type of `font' to
9785 `struct font *'.
9786 (struct glyph_string): New member underline_position and
9787 underline_thickness.
9788 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9789 (struct face): Change type of `font' to `struct font *'. Remove
9790 members `font_name', `font_info_id'.
9791 (per_char_metric, encode_char): Delete externs.
9792 (calc_pixel_width_or_height): Adjust the prototype.
9793
9794 * emacs.c (enable_font_backend): Delete extern.
9795 (main): Don't set enable_font_backend. Don't check the command
9796 line argument "-disable-font-backend".
9797
9798 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9799 (enum font_property_index): New members FONT_DPI_INDEX,
9800 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9801 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9802 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9803 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9804 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9805 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9806 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9807 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9808 (struct font_spec, struct font_entity): New structs.
9809 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9810 (struct font): Many members from old "struct font_info" moved to
9811 here. Members font and entity deleted.
9812 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9813 the new font-related objects.
9814 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9815 (CHECK_FONT_GET_OBJECT): Likewise.
9816 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9817 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9818 (struct font_driver): New members case_sensitive anc check. Type
9819 of the member list and open changed.
9820 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9821 (font_symbolic_width, font_find_object, font_get_spec)
9822 (font_set_lface_from_name): Delete extern.
9823 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9824
9825 * font.c: Include <strings.h>.
9826 (enable_font_backend): Delete it.
9827 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9828 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9829 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9830 (null_string): Delete it.
9831 (null_vector): Make it static.
9832 (font_family_alist): Delete it.
9833 (Qnormal): Extern it.
9834 (QCextra, QClanguage): Delete it.
9835 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9836 (font_make_spec, font_make_entity, font_make_object)
9837 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9838 the string. Callers changed.
9839 (font_pixel_size): Adjusted for the format change of font-related
9840 objects.
9841 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9842 (font_style_to_value, font_style_symbolic): New function.
9843 (build_font_family_alist): Delete it.
9844 (font_registry_charsets): Use Fassoc_string instead of
9845 assq_no_quit.
9846 (font_prop_validate_symbol): Don't return null_string.
9847 (font_prop_validate_style): Adjusted for the change of
9848 style-related values in a font vector.
9849 (font_property_table): Delete entries for QClanguage and
9850 QCantialias, add entries for QCavgwidth.
9851 (get_font_prop_index): Delete the 2nd argument FROM.
9852 (font_prop_validate): Arguments changed.
9853 (font_put_extra): Adjusted for the change of font-related objects.
9854 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9855 (font_parse_fcname, font_unparse_fcname)
9856 (font_prepare_composition): Likewise.
9857 (font_parse_family_registry): Renamed from font_merge_old_spec.
9858 (otf_open): Delete the 1st arg entity.
9859 (font_otf_capability): Adjusted for the above change.
9860 (font_score): New arg alternate_families. Adjusted for the change
9861 of font-related objects.
9862 (font_sort_entites): New arg best_only.
9863 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9864 Delete them.
9865 (font_match_p): Check alternate families.
9866 (font_find_object): Delete it.
9867 (font_check_object): New function.
9868 (font_clear_cache): Adjusted for the change of font-related objects.
9869 (font_delete_unmatched): New arg.
9870 (font_list_entities): Call font_driver->list with a spec that
9871 doesn't specify style-related properties.
9872 (font_matching_entity): Arguments changed. Caller changed.
9873 (font_open_entity): Adjusted for the change of font-related objects.
9874 (font_close_object, font_has_char, font_encode_char)
9875 (font_get_name, font_get_spec): Likewise.
9876 (font_spec_from_name, font_clear_prop, font_update_lface):
9877 New functions.
9878 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9879 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9880 (font_at): Adjusted for the change of font-related objects.
9881 (font_range): New function.
9882 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9883 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9884 (Fcopy_font_spec, Fmerge_font_spec): New function.
9885 (Ffont_family_list): Renamed from list-families.
9886 (Finternal_set_font_style_table): Arguments changed.
9887 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9888 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9889 change of font-related objects.
9890 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9891
9892 * fontset.h (struct font_info): Delete it. Most members go to
9893 struct font.
9894 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9895 (enum FONT_SPEC_INDEX): Delete it.
9896 (font_info, list_fonts_func, load_font_func, query_font_func)
9897 (set_frame_fontset_func, find_ccl_program_func)
9898 (get_font_repertory_func, new_fontset_from_font_name): Delete
9899 externs.
9900 (fontset_from_font_name): Extern it.
9901 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9902 (FONT_INFO_FROM_FACE): Deleted.
9903 (face_for_font): Adjust prototype.
9904
9905 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9906 conditionals. Don't check enable_font_backend. Delete all codes
9907 used only when USE_FONT_BACKEND is not defined.
9908 (get_font_info_func, list_font_func, load_font_func)
9909 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9910 (get_font_repertory_func): Delete them.
9911 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9912 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9913 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9914 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9915 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9916 (fontset_compare_rfontdef): New function.
9917 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9918 rfont-defs by qsort. Adjusted for the change of font-group vector.
9919 (load_font_get_repertory): Deleted.
9920 (fontset_find_font): Use new macros to ref/set elements of
9921 font-def and rfont-def.
9922 (fontset_font): Fix the timing of remembering that no font for C.
9923 (free_face_fontset): Do nothing if the face has no fontset.
9924 (face_suitable_for_char_p): Use new macros to ref/set elements of
9925 rfont-def.
9926 (face_for_char): Likewise. Call face_for_char with font_object.
9927 (fs_load_font): Delete. Delete #pragma surrounding it.
9928 (fs_query_fontset): Use strcasecmp instead of strcmp.
9929 (generate_ascii_font_name): Adjusted for the format change of
9930 font-spec.
9931 (Fset_fontset_font): Likewise. Use new macros to set elements of
9932 font-def.
9933 (Fnew_fontset): Use font_unparse_xlfd to generate
9934 FONTSET_ASCII (fontset).
9935 (new_fontset_from_font_name): Deleted.
9936 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9937 a fontset is already created for the font. FIx updating of
9938 Vfontset_alias_alist.
9939 (fontset_ascii_font): Deleted.
9940 (Ffont_info): Adjusted for the format change of font-spec.
9941 (Finternal_char_font): Likewise.
9942 (Ffontset_info): Likewise.
9943 (syms_of_fontset): Don't check load_font_func.
9944
9945 * fns.c (internal_equal): Handle PREV_FONT.
9946
9947 * frame.h: Delete USE_FONT_BACKEND conditional.
9948
9949 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9950 conditionals. Don't check enable_font_backend. Delete all codes
9951 used only when USE_FONT_BACKEND is not defined.
9952 (x_set_font): Call x_new_font, not x_new_fontset2.
9953 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9954 already set for the frame.
9955
9956 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9957 a font-entity by font_make_entity. Use font_intern_prop instead
9958 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9959 font property. If a font is scalable, set avgwidth property to 0.
9960 Set font-entity property by font_put_extra.
9961 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9962 (ffont_driver): Adjusted for the change of struct font_driver.
9963 (ftfont_spec_pattern): New function.
9964 (ftfont_list): Return a list, not vector.
9965 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9966 (ftfont_list_family): Don't downcase names.
9967 (ftfont_free_entity): Deleted.
9968 (ftfont_open): Return a font-object. Adjusted for the change of
9969 struct font. Get underline_thickness and underline_position from
9970 font property. Don't update dpyinfo->smallest_font_height and
9971 dpyinfo->smallest_char_width.
9972 (ftfont_close): Don't free `struct font'.
9973 (ftfont_has_char): Adjusted for the format change of font-entity.
9974 (ftfont_encode_char, ftfont_text_extents): Likewise.
9975
9976 * ftxfont.c (ftxfont_list): Return a list, not vector.
9977 (ftxfont_open): Return a font-object. Adjusted for the change of
9978 struct font. Get underline_thickness and underline_position from
9979 font property. Don't update dpyinfo->smallest_font_height and
9980 dpyinfo->smallest_char_width.
9981 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9982 (ftxfont_draw): Adjusted for the change of struct font.
9983
9984 * image.c (image_ascent): Don't include "charset.h". Include
9985 "character.h" and "font.h".
9986
9987 * lisp.h (enum pvec_type): New member PREV_FONT.
9988 (Fassoc_string): EXFUN it.
9989
9990 * print.c: Include font.h.
9991 (print_object): Handle font-related objects.
9992
9993 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9994 conditionals. Don't check enable_font_backend. Delete all codes
9995 used only when USE_FONT_BACKEND is not defined.
9996 (handle_auto_composed_prop): Do nothing if it->f is not on a
9997 window system. Check how many following characters can be
9998 displayed by the same font.
9999 (calc_pixel_width_or_height): Type of the 4th arg is changed to
10000 'struct font *'.
10001 (get_char_face_and_encoding): Assign the whole encoding task to
10002 the `encode-char' method of a font driver.
10003 (fill_composite_glyph_string): Adjusted for the change of `struct
10004 face' and `struct glyph_string'.
10005 (fill_glyph_string): Likewise.
10006 (get_per_char_metric): Arguments changed.
10007 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10008 and `struct glyph_string'.
10009 (produce_stretch_glyph, calc_line_height_property)
10010 (x_produce_glyphs): Likewise.
10011
10012 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10013 conditionals. Don't check enable_font_backend. Delete all codes
10014 used only when USE_FONT_BACKEND is not defined. Use
10015 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10016 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10017 (Qp): Extern them.
10018 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10019 Deleted.
10020 (struct font_name): Deleted.
10021 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10022 (compare_fonts_by_sort_order): New function.
10023 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10024 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10025 Deleted.
10026 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10027 compare_fonts_by_sort_order.
10028 (Fx_font_family_list): Call Ffont_family_list.
10029 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10030 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10031 (face_symbolic_slant, face_symbolic_swidth)
10032 (split_font_name_into_vector, build_font_name_from_vector)
10033 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10034 (font_rescale_ratio, split_font_name, build_font_name)
10035 (free_font_names, sort_fonts, x_face_list_fonts)
10036 (face_font_available_p, sorted_font_list, cmp_font_names)
10037 (font_list_1, concat_font_list, font_list, remove_duplicates):
10038 Deleted.
10039 (Fx_list_fonts): Use Ffont_list.
10040 (LFACE_AVGWIDTH): Deleted.
10041 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10042 by FONTP.
10043 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10044 (set_lface_from_font_name): Delete it.
10045 (set_lface_from_font): Renamed from
10046 set_lface_from_font_and_fontset. Caller changed. Don't set
10047 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10048 for face.
10049 (merge_face_vectors): Copy font-spec if necessary.
10050 Clear properties of the font-spec if necessary.
10051 (merge_face_ref): Clear properties of the font-spec if necessary.
10052 (Finternal_set_lisp_face_attribute): Likewise.
10053 (set_font_frame_param): Use font_load_for_lface to load a
10054 font-object, and call Fmodify_frame_parameters with it.
10055 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10056 font name by Ffont_xlfd_name.
10057 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10058 QCslant, and QCwidth.
10059 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10060 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10061 Compare fonts by EQ.
10062 (lookup_non_ascii_face): Deleted.
10063 (face_for_font): The 2nd argument changed.
10064 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10065 Check atomic font properties by case insensitive.
10066 (realize_non_ascii_face): Set face->overstrike correctly.
10067 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10068 (dump_realized_face): Get font name from
10069 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10070
10071 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10072 conditionals. Don't check enable_font_backend. Delete all codes
10073 used only when USE_FONT_BACKEND is not defined.
10074 (xic_create_xfontset): Original code deleted and renamed from
10075 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10076 (x_make_gc): Don't set GCFont in GCs.
10077 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10078 opened by "fixed".
10079 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10080 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10081 get_font_repertory_func.
10082
10083 * xfont.c: Include <stdlib.h> and "ccl.h".
10084 (struct xfont_info): New structure.
10085 (xfont_query_font): Deleted.
10086 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10087 moved from xterm.c.
10088 (xfont_driver): Adjusted for the change of struct font_driver.
10089 (compare_font_names): New function.
10090 (xfont_list_pattern): Sort font names case insensitively. Make
10091 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10092 (xfont_list): Return a list, not vector.
10093 (xfont_match): If the font doesn't have QCname property, generate
10094 a name from the other font properties.
10095 (xfont_open): Return a font-object. Adjusted for the change of
10096 struct font. Get underline_thickness and underline_position from
10097 font property. Don't update dpyinfo->smallest_font_height and
10098 dpyinfo->smallest_char_width.
10099 (xfont_close): Don't free struct font.
10100 (xfont_prepare_face): Adjusted for the change of struct font.
10101 (xfont_done_face): Deleted.
10102 (xfont_has_char): Adjusted for the change of struct font.
10103 (xfont_encode_char, xfont_draw): Likewise.
10104 (xfont_check): New function.
10105
10106 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10107 callback function.
10108 (xftfont_match): Adjusted for the format change of font-entity.
10109 (xftfont_open): Adjusted for the format change of font-entity and
10110 font-object. Adjusted for the change of struct font. Return a
10111 font-object. Don't update dpyinfo->smallest_font_height and
10112 dpyinfo->smallest_char_width.
10113 (xftfont_close): Block input while calling XftFontClose.
10114 (xftfont_prepare_face): Don't block input while calling
10115 xftfont_get_colors. Adjusted for the change of struct font.
10116 (xftfont_shape): Return value of error case fixed.
10117
10118 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10119
10120 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10121 conditionals.
10122 (FONT_WIDTH): Return (f)->max_width.
10123 (struct x_display_info): Delete member `font'.
10124 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10125 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10126 (struct x_output): Change type of `font' to `struct font *'.
10127
10128 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10129 conditionals. Don't check enable_font_backend. Delete all codes
10130 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10131 (x_per_char_metric, x_encode_char): Deleted.
10132 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10133 (x_compute_glyph_string_overhangs): Adjusted for the change of
10134 `struct face'.
10135 (x_draw_glyph_string_foreground)
10136 (x_draw_composite_glyph_string_foreground): Likewise.
10137 (x_draw_glyph_string): Likewise. Use font->underline_position and
10138 font->underline_thickness.
10139 (x_new_font): Renamed from x_new_fontset2.
10140 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10141 (x_check_font): Call `check' method of a font driver.
10142 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10143 (x_query_font, x_get_font_repertory): Deleted.
10144 (x_find_ccl_program): Renamed and moved to xfont.c.
10145 (x_redisplay_interface): Adjusted for the change of `struct
10146 redisplay_interface'.
10147
10148 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10149 conditionals. Don't check enable_font_backend. Delete all codes
10150 used only when USE_FONT_BACKEND is not defined. Surround non-used
10151 code by "#ifdef OLD_FONT" and "endif".
10152 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10153
10154 * w32font.h (struct w32font_info): New member.
10155 (FONT_COMPAT): New macro.
10156 (w32font_open_internal): Prototype adjusted.
10157
10158 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10159 OLD_FONT" and "endif".
10160
10161 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10162 conditionals. Don't check enable_font_backend. Delete all codes
10163 used only when USE_FONT_BACKEND is not defined.
10164 (w32font_open): Return a font-object. Make a font-object by
10165 font_make_object. Adjusted for the change of struct w32font_info.
10166 (w32font_close): Don't free struct font. Adjusted for the change
10167 of struct w32font_info.
10168 (w32font_encode_char, w32font_text_extents, w32font_draw):
10169 Adjusted for the change of struct w32font_info.
10170 (w32font_draw): Likewise.
10171 (w32font_list_internal): Return a list, not vector.
10172 (w32font_open_internal): Change the 4th arg to font-object.
10173 Adjusted for the change of struct w32font_info and font-object format.
10174 (add_font_name_to_list): Don't downcase names.
10175 (w32_enumfont_pattern_entity): Make a font-entity by
10176 font_make_entity. Adjusted for the format change of font-entity.
10177 Use FONT_SET_STYLE to set a style-related font property. If a
10178 font is scalable, set avgwidth property to 0. Set font-entity
10179 property by font_put_extra.
10180 (font_matches_spec): Adjusted for the format change of font-entity.
10181 (w32_weight_table, w32_decode_weight): New variables.
10182 (w32_encode_weight): New function.
10183 (fill_in_logfont): Adjusted for the format change of font-spec.
10184 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10185 weight value.
10186 (w32font_driver): Adjusted for the change of struct font_driver.
10187
10188 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10189 conditionals. Don't check enable_font_backend. Surround non-used
10190 code by "#ifdef OLD_FONT" and "endif".
10191 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10192 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10193
10194 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10195 conditionals. Don't check enable_font_backend. Delete all codes
10196 used only when USE_FONT_BACKEND is not defined. Surround non-used
10197 code by "#ifdef OLD_FONT" and "endif".
10198
10199 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10200 (uniscribe_open): Return value changed to font-object.
10201 Adjusted for the format change of font-object.
10202 (uniscribe_otf_capability): Adjusted for the change of struct font.
10203 (add_opentype_font_name_to_list): Don't downcase names.
10204 (uniscribe_font_driver): Adjusted for the change of struct
10205 font_driver.
10206
102072008-05-13 Chong Yidong <cyd@stupidchicken.com>
10208
10209 * dispnew.c (update_frame_1): Check if tty output is still valid
10210 before flushing it.
10211
102122008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10213
10214 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10215 to Gtk+ menus.
10216
102172008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10218
10219 * dired.c (file_name_completion): Tweak the code so as to always do it
10220 in a single pass. Tighten the scope of some variables.
10221
10222 * dired.c (Qdefault_directory): New var.
10223 (file_name_completion): Use it instead of Fexpand_file_name.
10224 (syms_of_dired): Initialize it.
10225
102262008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10227
10228 * fileio.c (double_dollars): Remove dead code.
10229
102302008-05-10 Eli Zaretskii <eliz@gnu.org>
10231
10232 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10233 Mention w32-get-true-file-attributes in doc string.
10234
10235 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10236
102372008-05-09 Glenn Morris <rgm@gnu.org>
10238
10239 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10240 2008-04-23.
10241
102422008-05-09 Eli Zaretskii <eliz@gnu.org>
10243
10244 Support for reporting owner and group of each file on MS-Windows:
10245 * dired.c (stat_uname, stat_gname): New functions, with special
10246 implementation for w32.
10247 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10248
10249 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10250 (dflt_group_name): New static variable.
10251 (dflt_group): Rename from the_group.
10252 (init_user_info): Init dflt_group fields. Get user's group name
10253 from LookupAccountSid.
10254 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10255 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10256 New initialization states.
10257 (globals_of_w32): Initialize them to zero. Initialize the default
10258 group name to "None".
10259 (GetFileSecurity_Name): New global var, the name of the function
10260 to call for GetFileSecurity.
10261 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10262 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10263 (get_file_security, get_security_descriptor_owner)
10264 (get_security_descriptor_group, is_valid_sid)
10265 (get_file_security_desc, get_rid, get_name_and_id)
10266 (get_file_owner_and_group): New functions.
10267 (stat): Use get_file_security_desc and get_file_owner_and_group to
10268 report the owner and primary group of each file. Don't ignore the
10269 high 32 bits of file's size, now that st_size is 64-bit wide.
10270 Fix test when to get true file attributes.
10271 (init_user_info): Use get_rid instead of equivalent inline code.
10272 (fstat): Don't ignore the high 32 bits of file's size.
10273
102742008-05-09 Chong Yidong <cyd@stupidchicken.com>
10275
10276 * image.c (png_load): Use correct bit-depth for setting background
10277 color.
10278
102792008-05-08 Eli Zaretskii <eliz@gnu.org>
10280
10281 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10282 epa-hook.elc.
10283
102842008-05-08 Juanma Barranquero <lekktu@gmail.com>
10285
10286 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10287
102882008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10289
10290 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10291 because the original parameters are in pure storage now.
10292 (mac_window): Remove unused params. Update callers.
10293
102942008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10295
10296 * lread.c (substitute_object_recurse): Use lower-level primitives.
10297 Don't signal errors when traversing sub-char-tables.
10298 Don't loop over all the possible characters when traversing char-tables.
10299
10300 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10301 just like we do in print.c.
10302
103032008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10304
10305 * minibuf.c (Ftry_completion): Remove code left over from when we used
10306 scmp instead of Fcompare_strings.
10307
103082008-05-04 Juanma Barranquero <lekktu@gmail.com>
10309
10310 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10311
103122008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10313
10314 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10315 Create bitmap context in native byte order.
10316
10317 * macterm.c (XDrawLine)
10318 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10319 context in native byte order.
10320
103212008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10322
10323 * config.in: Regenerate.
10324
10325 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10326 New definitions for Image I/O support.
10327 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10328 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10329 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10330 (mac_data_provider_release_data, image_load_image_io)
10331 [USE_MAC_IMAGE_IO]: New functions.
10332 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10333 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10334 (init_image_func_pointer) [MAC_OSX]: Remove function.
10335 (image_load_quartz2d) [MAC_OSX]: Check availability of
10336 CGImageCreateWithPNGDataProvider at compile time.
10337 Use lowercase `false' for boolean constant.
10338 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10339 Use image_load_image_io.
10340 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10341 Don't check MyCGImageCreateWithPNGDataProvider.
10342 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10343 Don't call init_image_func_pointer.
10344
10345 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10346
10347 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10348 Make variable non-static.
10349 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10350 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10351
10352 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10353 (RED_FROM_ULONG): Mask off higher bits.
10354 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10355
10356 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10357 Include AvailabilityMacros.h.
10358 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10359 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10360
103612008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10362
10363 * chartab.c (Fset_char_table_range): If range is t, really set all
10364 chars to that value.
10365
103662008-05-03 Eli Zaretskii <eliz@gnu.org>
10367
10368 * dired.c (Ffile_attributes): Don't allow the device number become
10369 negative.
10370
103712008-05-02 Daiki Ueno <ueno@unixuser.org>
10372
10373 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10374
103752008-05-02 Juri Linkov <juri@jurta.org>
10376
10377 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10378 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10379 DEFAULT argument as a list of default values in docstrings.
10380
103812008-05-01 Chong Yidong <cyd@stupidchicken.com>
10382
10383 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10384
103852008-05-01 Martin Rudalics <rudalics@gmx.at>
10386
10387 * dispnew.c (change_frame_size_1): Preserve small windows when
10388 shrinking frames by calling set_window_height|width with third
10389 arg 2.
10390
10391 * window.h (struct window): Replace field too_small_ok by field
10392 resize_proportionally.
10393
10394 * window.c (make_window): Initialize resize_proportionally.
10395 (enlarge_window): Temporarily set resize_proportionally to make
10396 sure that shrink_windows does scale the window proportionally.
10397 (shrink_windows): When window has resize_proportionally set try
10398 to shrink it proportionally by stealing from other windows.
10399 (struct saved_window, Fset_window_configuration)
10400 (compare_window_configurations): Handle resize_proportionally.
10401 (WINDOW_TOTAL_SIZE): New macro.
10402 (window_min_size, shrink_windows, size_window): Use it.
10403 (check_min_window_sizes): Remove. Invalid values of
10404 window-min-height|width are handled by window_min_size_2 now.
10405 (size_window, Fsplit_window, enlarge_window)
10406 (adjust_window_trailing_edge, grow_mini_window): Don't call
10407 check_min_window_sizes.
10408 (window_min_size_2, window_min_size_1, window_min_size):
10409 New argument safe_p for retrieving "safe" minimum sizes.
10410 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10411 (adjust_window_trailing_edge, grow_mini_window):
10412 Adjust arguments of window_min_size... functions.
10413 (shrink_windows): Argument min_size removed. New argument
10414 safe_p allows shrinking windows to their safe minimum sizes.
10415 Calculate minimum size and decide whether a window shall be
10416 deleted for each window individually.
10417 (size_window): When nodelete_p equals 2, tell shrink_windows to
10418 delete windows only if their new minimum size is no more safe.
10419 (shrink_window_lowest_first): Call window_min_size_1 to make
10420 sure to preserve modeline of bottom-most window when resizing
10421 the minibuffer.
10422 (Fset_window_configuration, Fcurrent_window_configuration)
10423 (compare_window_configurations): Do not handle
10424 window-min-height|width any more.
10425 (syms_of_window): Clarify window-min-height|width doc-strings.
10426
104272008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10428
10429 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10430 some more. Copy some of the code from Ftry_completions.
10431 Remove special case code that dates back to initial revision when the
10432 slash was only added when necessary and that can't trigger nowadays.
10433
104342008-04-27 Kenichi Handa <handa@m17n.org>
10435
10436 * font.c (font_prop_validate): Signal `error' instead of `font'.
10437
104382008-04-29 Jason Rumney <jasonr@gnu.org>
10439
10440 * w32fns.c (Fw32_battery_status): New defun.
10441 (syms_of_w32fns): Defsubr it.
10442
104432008-04-28 Andreas Schwab <schwab@suse.de>
10444
10445 * dired.c (file_name_completion): Fix another mixing of encoded
10446 and decoded names.
10447
104482008-04-28 Juanma Barranquero <lekktu@gmail.com>
10449
10450 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10451
104522008-04-27 Juanma Barranquero <lekktu@gmail.com>
10453
10454 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10455
104562008-04-27 Andreas Schwab <schwab@suse.de>
10457
10458 * dired.c (file_name_completion): Fix inappropriate mixing of
10459 encoded and decoded names.
10460
10461 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10462
10463 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10464
104652008-04-26 Eli Zaretskii <eliz@gnu.org>
10466
10467 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10468 2008-03-31, it's not needed anymore with `struct stat' definition
10469 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10470 for the same reasons.
10471
104722008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10473
10474 * m/sparc.h: Additional redefinitions for GNU/Linux.
10475
104762008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10477
10478 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10479 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10480 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10481 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10482 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10483 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10484 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10485 Likewise.
10486
10487 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10488 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10489 (mac_ax_number_of_characters): Add externs.
10490 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10491 [USE_MAC_TSM]: Likewise.
10492 (mac_handle_text_input_event) [MAC_OSX]:
10493 Handle kEventTextInputOffsetToPos for no active input area case.
10494 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10495 (mac_handle_document_access_event)
10496 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10497 (install_application_handler) [MAC_OSX]: Register handlers for
10498 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10499 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10500 Register mac_handle_document_access_event.
10501
10502 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10503 Make functions non-static.
10504
105052008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10506
10507 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10508 (read_file_name_completion_ignore_case, insert_default_directory)
10509 (Qdefault_directory): Move to minibuffer.el.
10510 (Fread_file_name): Call the new `read-file-name' instead.
10511
105122008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10513
10514 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10515 Make function non-static.
10516 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10517 Remove function.
10518 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10519 Move to mactoolbox.c.
10520 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10521
10522 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10523 (mac_rect_make): New macro.
10524
10525 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10526 instead of float.
10527 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10528 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10529 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10530 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10531 CGRectMake.
10532 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10533 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10534 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10535 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10536 instead of WindowRef in argument type.
10537 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10538 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10539 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10540 instead of DISPLAY. All uses changed.
10541 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10542 (x_calc_absolute_position): Simplify so as not to use
10543 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10544
10545 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10546 instead of WindowRef in argument type.
10547 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10548 [TARGET_API_MAC_CARBON]: Remove externs.
10549 (create_apple_event, mac_event_parameters_to_lisp)
10550 [TARGET_API_MAC_CARBON]: Add externs.
10551
10552 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10553 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10554 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10555 is clicked.
10556 (x_activate_menubar): Remove extern for saved_menu_event_location.
10557 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10558 Move from mac.c.
10559
105602008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10561
10562 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10563 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10564
105652008-04-23 Jason Rumney <jasonr@gnu.org>
10566
10567 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10568 attributes only for local files.
10569
10570 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10571 default to Qlocal.
10572
105732008-04-22 Juri Linkov <juri@jurta.org>
10574
10575 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10576 read-buffer-to-switch instead of using the letter "B".
10577
105782008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10579
10580 * fileio.c (Qdefault_directory): New variable.
10581 (Fread_file_name): Use it to pass `dir' to the completion functions.
10582
105832008-04-20 Chong Yidong <cyd@stupidchicken.com>
10584
10585 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10586
105872008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10588
10589 * keyboard.c (Vpre_help_message): Remove.
10590 (show_help_echo): Remove default C code.
10591
10592 * dired.c (directory_files_internal, file_name_completion):
10593 Only call ENCODE_FILE if the string is indeed decoded.
10594
105952008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10596
10597 * Makefile.in (TOOLKIT_DEFINES): Remove.
10598 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10599
106002008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10601
10602 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10603 (mactoolbox.o): New target.
10604
10605 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10606 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10607
10608 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10609 Use mac_set_frame_window_background instead of XSetWindowBackground.
10610 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10611 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10612 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10613 instead of SetWindowTitleWithCFString.
10614 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10615 Move function to mactoolbox.c.
10616 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10617 Use mac_set_window_modified instead of SetWindowModified.
10618 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10619 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10620 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10621 FrontNonFloatingWindow. Use mac_activate_window instead of
10622 ActivateWindow. Use mac_active_non_floating_window instead of
10623 ActiveNonFloatingWindow.
10624 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10625 Use mac_show_hourglass and mac_hide_hourglass.
10626 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10627 instead of GetGlobalMouse.
10628 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10629 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10630 Use mac_bring_window_to_front instead of BringToFront.
10631 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10632 mactoolbox.c.
10633 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10634 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10635 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10636 mactoolbox.c.
10637
10638 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10639 (XtPointer): Move typedef from macmenu.c.
10640 (enum button_type): Move enum from macmenu.c.
10641 (widget_value): Move typedef from macmenu.c.
10642 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10643 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10644 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10645 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10646 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10647 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10648 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10649 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10650 (Selection): Move typedef from macselect.c.
10651 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10652 macterm.c.
10653 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10654 (mac_is_window_collapsed, mac_bring_window_to_front)
10655 (mac_send_window_behind, mac_hide_window, mac_show_window)
10656 (mac_collapse_window, mac_front_non_floating_window)
10657 (mac_active_non_floating_window, mac_activate_window)
10658 (mac_move_window_structure, mac_move_window, mac_size_window)
10659 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10660
10661 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10662 (enum mac_menu_kind): Move enum to mactoolbox.c.
10663 (min_menu_id): Move variable to mactoolbox.c.
10664 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10665 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10666 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10667 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10668 [TARGET_API_MAC_CARBON]: Likewise.
10669 (XtPointer): Move typedef to macgui.h.
10670 (enum button_type): Move enum to macgui.h.
10671 (widget_value): Move typedef to macgui.h.
10672 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10673 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10674 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10675 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10676 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10677 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10678 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10679 (popup_activated_flag): Make variable non-static.
10680 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10681 (add_menu_item, fill_menu, dispose_menus):
10682 Move functions to mactoolbox.c.
10683 (restore_show_help_function, menu_target_item_handler)
10684 (install_menu_target_item_handler, mac_handle_dialog_event)
10685 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10686 [TARGET_API_MAC_CARBON]: Likewise.
10687 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10688 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10689 (find_and_call_menu_selection, name_is_separator): Make function
10690 non-static.
10691 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10692 to mactoolbox.c.
10693 (set_frame_menubar): Don't call install_menu_quit_handler.
10694 (menu_item_selection): New variable.
10695 (mac_menu_show): Use create_and_show_popup_menu.
10696 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10697 selection but set variable menu_item_selection. All uses changed.
10698 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10699 Call install_menu_quit_handler. Move to mactoolbox.c.
10700
10701 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10702 (Selection): Move typedef to macgui.h.
10703 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10704 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10705 Make variables non-static.
10706 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10707 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10708 Make functions non-static.
10709 (Vmac_service_selection) [MAC_OSX]: Likewise.
10710 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10711 (mac_valid_selection_target_p, mac_clear_selection)
10712 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10713 (mac_put_selection_value, mac_selection_has_target_p)
10714 (mac_get_selection_value, mac_get_selection_target_list)
10715 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10716 Move functions to mactoolbox.c.
10717 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10718 Likewise.
10719 (copy_scrap_flavor_data, mac_handle_service_event)
10720 (install_service_handler) [MAC_OSX]: Likewise.
10721 (syms_of_macselect) <Vmac_dnd_known_types>:
10722 Use mac_dnd_default_known_types.
10723
10724 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10725 Move to mactoolbox.c.
10726 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10727 (Fx_selection_owner_p): Add EXFUN.
10728 (install_window_handler, remove_window_handler, XSetWindowBackground):
10729 Remove externs.
10730 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10731 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10732 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10733 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10734 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10735 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10736 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10737 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10738 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10739 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10740 (mac_valid_selection_target_p, mac_clear_selection)
10741 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10742 (mac_put_selection_value, mac_selection_has_target_p)
10743 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10744 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10745 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10746 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10747 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10748 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10749 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10750 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10751 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10752
10753 * mactoolbox.c: New file.
10754
107552008-04-18 Jason Rumney <jasonr@gnu.org>
10756
10757 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10758
107592008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10760
10761 * character.c (Fmultibyte_char_to_unibyte):
10762 Return latin1 chars unchanged.
10763
10764 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10765 relocated if it points to `name'.
10766
107672008-04-17 Kenichi Handa <handa@m17n.org>
10768
10769 * data.c (Faset): Allow setting a multibyte character in an
10770 ASCII-only unibyte string.
10771
10772 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10773
107742008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10775
10776 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10777 done in config.h.
10778
107792008-04-16 Juanma Barranquero <lekktu@gmail.com>
10780
10781 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10782 (Fchar_direction): Add usage in the docstring.
10783
107842008-04-15 Chong Yidong <cyd@stupidchicken.com>
10785
10786 * keyboard.c (read_key_sequence): Remove always-true checks.
10787
107882008-04-14 Jason Rumney <jasonr@gnu.org>
10789
10790 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10791 compatibility struct, for better underline positioning.
10792
107932008-04-13 David Hansen <david.hansen@gmx.net>
10794
10795 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10796 string.
10797
107982008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10799
10800 * m/hp800.h (XUINT, XSET): Remove.
10801
108022008-04-12 Juanma Barranquero <lekktu@gmail.com>
10803
10804 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10805 previous change.
10806
108072008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10808
10809 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10810 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10811
108122008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10813
10814 * keymap.h (map_keymap_canonical): Declare.
10815 * xmenu.c (single_keymap_panes): Use it.
10816
108172008-04-11 Glenn Morris <rgm@gnu.org>
10818
10819 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10820 set the target's value to that of the alias.
10821
108222008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10823
10824 * term.c (set_tty_color_mode): Left over typo.
10825
108262008-04-10 Michael Albinus <michael.albinus@gmx.de>
10827
10828 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10829 only after check for file name handler functions. Signal, when
10830 native functionality is not supported.
10831 (syms_of_fileio): Declare it unconditionally.
10832
108332008-04-10 Jason Rumney <jasonr@gnu.org>
10834
10835 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10836 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10837
10838 * w32.c (logon_network_drive): Also logon to remote drives that
10839 are mapped to drive letters.
10840
108412008-04-10 Glenn Morris <rgm@gnu.org>
10842
10843 * xdisp.c (truncate-partial-width-windows): Doc fix.
10844
108452008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10846
10847 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10848 Move functions to minibuffer.el.
10849 (syms_of_fileio): Don't declare them.
10850
108512008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10852
10853 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10854 (syms_of_minibuf): Remove its initialization.
10855
10856 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10857
108582008-04-09 Juanma Barranquero <lekktu@gmail.com>
10859
10860 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10861
108622008-04-09 Jason Rumney <jasonr@gnu.org>
10863
10864 * makefile.w32-in (distclean): Delete makefile too.
10865 (maintainer-clean): New target.
10866
10867 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10868
10869 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10870 for new font backend and composite cases.
10871
108722008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10873
10874 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10875 Most of the code moved to run_timers.
10876 (do_pending_atimers): Call run_timers.
10877 (run_timers): New function.
10878
10879 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10880 run atimers.
10881
10882 * process.c (wait_reading_process_output): The same as above.
10883
108842008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10885
10886 * minibuf.c (last_exact_completion): Remove variable.
10887 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10888 (complete_and_exit_1, complete_and_exit_2)
10889 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10890 (Fdisplay_completion_list, display_completion_list_1)
10891 (Fminibuffer_completion_help, Fself_insert_and_exit)
10892 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10893 minibuffer.el.
10894 (syms_of_minibuf): Remove corresponding initializations.
10895
10896 * keyboard.c (Qdeactivate_mark): New var.
10897 (command_loop_1): Use it to call `deactivate-mark'.
10898 (syms_of_keyboard): Initialize it.
10899
10900 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10901 to another frame.
10902 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10903 Don't call set_tty_color_mode.
10904 (store_frame_param): Reset previous_frame rather than call
10905 set_tty_color_mode.
10906 * term.c (set_tty_color_mode): Rewrite.
10907 * dispextern.h (set_tty_color_mode): New type.
10908 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10909
109102008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10911
10912 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10913 for generic chars, which do not exist any more in emacs-unicode.
10914
109152008-04-08 Michael Albinus <michael.albinus@gmx.de>
10916
10917 * coding.c (detect_coding_emacs_mule)
10918 (Ffind_operation_coding_system): Fix typo.
10919
109202008-04-08 Jason Rumney <jasonr@gnu.org>
10921
10922 * w32uniscribe.c (SNAME): Extract only symbol name.
10923
10924 * w32font.h (struct w32_metric_cache): New struct.
10925 (w32font_info): Use it.
10926 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10927 (CACHE_BLOCKSIZE): New constants.
10928
10929 * w32font.c (Qja, Qko, Qzh): New symbols.
10930 (syms_of_w32font): Initialise them.
10931 (font_matches_spec): Use them to filter by language.
10932 (recompute_cached_metrics): Remove function.
10933 (compute_metrics, clear_cached_metrics): New functions.
10934 (w32font_encode_char): Use them to manage metric cache.
10935 (w32font_text_extents): Cache metrics for all glyphs on demand.
10936 Delay converting glyph indices to WORD until needed.
10937 (w32font_open_internal): Initialize metric cache to empty.
10938 (registry_to_w32_charset): Charset should always be a symbol.
10939 (fill_in_logfont, list_all_matching_fonts): Family should
10940 always be a symbol.
10941
109422008-04-06 Jason Rumney <jasonr@gnu.org>
10943
10944 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10945 Give up if glyph indices not supported. Use uniscribe obtained
10946 ABC widths for individual metrics. Map glyph clusters back to
10947 characters using fClusterStart flag. Return number of glyphs
10948 produced, not chars processed.
10949 (uniscribe_shape): Map char at FROM to current glyph.
10950
109512008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10952
10953 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10954 Use SetMenuItemHierarchicalMenu.
10955
109562008-04-05 Jason Rumney <jasonr@gnu.org>
10957
10958 * image.c (pbm_load): Allow color values up to 65535.
10959 Throw an error if max_color_idx is outside the supported range.
10960 Report an error when image size is invalid.
10961 Read two bytes at a time when raw images have max_color_idx above 255.
10962
109632008-04-05 Eli Zaretskii <eliz@gnu.org>
10964
10965 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10966 cFileName a file name that includes `?' characters, use the 8+3
10967 alias in cAlternateFileName instead.
10968
109692008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10970
10971 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10972 append "CCL: Quitted" when the CCL program is quitted.
10973 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10974
10975 * ccl.h (struct ccl_program): New member quit_silently.
10976
109772008-04-05 Chong Yidong <cyd@stupidchicken.com>
10978
10979 * search.c (compile_pattern_1): Treat non-nil and non-string of
10980 search-spaces-regexp as nil.
10981
10982 * minibuf.c (Fassoc_string): Tweak docstring.
10983
109842008-04-05 Eli Zaretskii <eliz@gnu.org>
10985
10986 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10987 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10988 2008-03-14 to force inode be positive.
10989
10990 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10991 _S_* ones, since we now use our own sys/stat.h.
10992 (stat, fstat): Don't mangle the inode number.
10993 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10994
109952008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10996
10997 * frame.h (struct frame): Give one more bit to `visible' since we use
10998 values larger than 1 to indicate obscured frames on ttys.
10999
11000 * keymap.c (Qkeymap_canonicalize): New var.
11001 (Fmap_keymap_internal): New fun.
11002 (describe_map): Use keymap-canonicalize.
11003
11004 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
11005 (Fundo_boundary): Set them.
11006 (syms_of_undo): Initialize them.
11007 (record_point): Use them instead of last_point_position*.
11008 (last_undo_buffer): Change type.
11009
110102008-04-04 Jason Rumney <jasonr@gnu.org>
11011
11012 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11013 (recompute_cached_metrics): Don't set ascent and descent per char.
11014
11015 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11016 (uniscribe_check_otf): Add GC protection before consing.
11017 Rearrange loop for counting features.
11018
110192008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11020
11021 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11022 buffer with byte-size of source buffer.
11023
110242008-04-03 Chong Yidong <cyd@stupidchicken.com>
11025
11026 * callint.c (Fcall_interactively): Handle temporary region even
11027 when shift-select-mode is off.
11028
110292008-04-03 Jason Rumney <jasonr@gnu.org>
11030
11031 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11032
110332008-04-03 Kenichi Handa <handa@m17n.org>
11034
11035 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11036 (CATEGORY_MASK_UTF_16): Likewise.
11037 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11038 binary file.
11039 (detect_coding): Add null-byte detection for a binary file.
11040 (detect_coding_system): Likewise.
11041
110422008-04-03 Jason Rumney <jasonr@gnu.org>
11043
11044 * w32uniscribe.c: New file.
11045
11046 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11047
11048 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11049
11050 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11051 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11052 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11053 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11054 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11055 (Qphonetic): New symbols.
11056 (syms_of_w32font): Initialize them.
11057 (font_supported_scripts): Use them.
11058 (w32font_list_family): List all charsets.
11059 (w32font_text_extents, recompute_cached_metrics): Fix metric
11060 calculations.
11061 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11062 Give opentype fonts their own format.
11063 (font_matches_spec): New arguments backend and logfont.
11064 Handle :otf spec for uniscribe backend.
11065 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11066 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11067
11068 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11069 font backend.
11070 (globals_of_w32fns): Initialize uniscribe font backend.
11071
11072 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11073 dependencies.
11074 (w32uniscribe.$(O)): New file to build.
11075 (FONT_OBJ): Include w32uniscribe.$(O).
11076 (LIBS): Add uniscribe libraries.
11077
11078 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11079
110802008-04-02 Chong Yidong <cyd@stupidchicken.com>
11081
11082 * callint.c (Vshift_select_mode): New var.
11083 (Finteractive): Document new ^ spec.
11084 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11085 is present.
11086
11087 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11088 (command_loop_1): Avoid running the direct display versions of
11089 forward-char and backward-char if shift-selection may occur.
11090 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11091 shift-translation takes place.
11092
11093 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11094 avoid clobbering by define-minor-mode.
11095
11096 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11097 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11098
11099 * syntax.c (Fforward_word): Add ^ interactive spec.
11100
11101 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11102 (Fscroll_right): Add ^ interactive spec.
11103
111042008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11105
11106 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11107
11108 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11109
11110 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11111
111122008-03-31 Juri Linkov <juri@jurta.org>
11113
11114 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11115
111162008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11117
11118 * gtkutil.c (xg_set_geometry): Fix indentation.
11119 (xg_resize_outer_widget): Remove.
11120 (x_wm_size_hint_off): Fix indentation.
11121 (xg_frame_set_char_size): Call flush_and_sync after
11122 gtk_window_resize.
11123 (x_wm_set_size_hint): Pass NULL as geometry window to
11124 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11125 Add menu bar and tool bar height to base height.
11126 (xg_update_frame_menubar, free_frame_menubar)
11127 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11128 (update_frame_tool_bar, free_frame_tool_bar):
11129 Change xg_resize_outer_widget to xg_frame_set_char_size.
11130
111312008-03-30 Michael Albinus <michael.albinus@gmx.de>
11132
11133 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11134 (Fdbus_call_method): New parameter TIMEOUT.
11135 (dbus-send-signal): Optimize UNGCPRO call.
11136
111372008-03-29 Juri Linkov <juri@jurta.org>
11138
11139 * window.c (Fdisplay_buffer): Move call to
11140 Vsplit_window_preferred_function out of conditions that check
11141 if window is eligible for vertical splitting.
11142 When Vsplit_window_preferred_function is non-nil, call it and use
11143 its non-nil return value as window. Otherwise, continue doing
11144 vertical splitting using Fsplit_window with arg horflag=nil.
11145 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11146 default value from `split-window' to nil.
11147
111482008-03-29 Juri Linkov <juri@jurta.org>
11149
11150 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11151 for interactive code letters 'b' and 'B'.
11152
111532008-03-29 Eli Zaretskii <eliz@gnu.org>
11154
11155 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11156 multibyte string.
11157
111582008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11159
11160 * keyboard.c (pending_funcalls): New var.
11161 (timer_check): Run it.
11162 (syms_of_keyboard): Initialize it.
11163 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11164 (Vdelete_terminal_functions): New vars.
11165 (syms_of_terminal): Initialize them.
11166 (Fdelete_terminal): Run delete-terminal-functions.
11167 * xdisp.c (safe_eval): Rewrite.
11168 (safe_call2): New fun.
11169 * frame.c (Qdelete_frame_functions): New var.
11170 (syms_of_frame): Initialize it.
11171 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11172 * lisp.h (safe_call2, pending_funcalls): Declare.
11173
111742008-03-28 Andreas Schwab <schwab@suse.de>
11175
11176 * indent.c (Fmove_to_column): Move declaration before statements.
11177
111782008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11179
11180 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11181 (struct frame): Use bit fields for boolean vars.
11182
11183 * process.c (server_accept_connection): Simplify naming.
11184 (emacs_get_tty_pgrp): Use SDATA.
11185
11186 * coding.c (decode_coding_object): Fix last change.
11187
111882008-03-27 Jason Rumney <jasonr@gnu.org>
11189
11190 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11191
111922008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11193
11194 * charset.c (Fdefine_charset_internal): Change the way of
11195 registering charsets in Vcharset_order_list.
11196 (syms_of_charset): Make the charset `eight-bit' supplementary.
11197
111982008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11199
11200 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11201 operations, to avoid having the difference between pointers
11202 overflow.
11203
112042008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11205
11206 * indent.c (check_display_width): New fun.
11207 (scan_for_column): Use it.
11208
11209 * data.c (syms_of_data): Mark most-positive-fixnum and
11210 most-negative-fixnum as constants.
11211
11212 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11213
11214 * indent.c (scan_for_column): Extract from current_column_1.
11215 Merge with the same code from Fmove_to_column.
11216 (current_column_1, Fmove_to_column): Use it.
11217
112182008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11219
11220 * keymap.c (map_keymap_internal): New fun.
11221 (map_keymap): Use it.
11222 (Fmap_keymap_internal): New fun.
11223 (Fmap_keymap): Remove left-out test from before make_save_value.
11224
11225 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11226
11227 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11228 Use XCAR/XCDR.
11229
11230 * process.h (struct Lisp_Process): Remove filter_multibyte.
11231 * process.c (QCfilter_multibyte): Remove.
11232 (setup_process_coding_systems): Don't use filter_multibyte.
11233 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11234 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11235 (Fset_process_filter_multibyte): Change the coding-system to
11236 approximate the previous behavior.
11237 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11238 coding-system.
11239
11240 * coding.c (decode_coding_object): When not decoding into a buffer,
11241 obey the coding system's preference of (uni|multi)byte.
11242
112432008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11244
11245 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11246 every char is changed and has a different byte-length.
11247 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11248 Fix int -> EMACS_INT.
11249
112502008-03-23 David Hansen <david.hansen@gmx.net>
11251
11252 * dbusbind.c (xd_read_message): Remove extra copying of message
11253 strings. Check for NULL `interface' or `member'.
11254
112552008-03-22 Eli Zaretskii <eliz@gnu.org>
11256
11257 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11258 cFileName a file name that includes `?' characters, use the 8+3
11259 alias in cAlternateFileName instead.
11260
112612008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11262
11263 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11264
112652008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11266
11267 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11268 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11269 work on current_buffer only instead (that was already the case
11270 for some of the code anyway).
11271 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11272 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11273 (SET_PT, SET_PT_BOTH): Adjust.
11274 * intervals.h (set_point, temp_set_point, set_point_both)
11275 (temp_set_point_both): Remove redundant declarations.
11276
112772008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11278
11279 * fileio.c (Finsert_file_contents):
11280 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11281 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11282 when buffer != current_buffer anyway.
11283
112842008-03-20 Andreas Schwab <schwab@suse.de>
11285
11286 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11287 as default.
11288
112892008-03-19 Jason Rumney <jasonr@gnu.org>
11290
11291 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11292 (syms_of_w32fns): Initialize them.
11293 (HOURGLASS_ID): New constant.
11294 (x_window_to_frame): Don't check hourglass_window.
11295 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11296 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11297 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11298 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11299 Only change the cursor if hourglass is not active.
11300 (Fx_create_frame): Initialize frame's current_cursor.
11301 (hourglass_atimer): Remove.
11302 (hourglass_started): New function.
11303 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11304 (show_hourglass): Adapt to w32, changing argument to frame.
11305
11306 * w32term.h (struct w32_output): Remove hourglass_window.
11307 Add current_cursor.
11308
11309 * eval.c (call_debugger, Fsignal):
11310 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11311 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11312 (Fexecute_extended_command, cancel_hourglass_unwind):
11313 * minibuf.c (read_minibuf):
11314 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11315
113162008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11317
11318 * window.c (run_funs): New fun.
11319 (run_window_configuration_change_hook): Use it to run the buffer-local
11320 and the global part of the hook.
11321
11322 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11323 (unwind_format_mode_line): Restore selected window.
11324 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11325
113262008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11327
11328 * editfns.c (Fchar_equal): Check they are valid characters.
11329
11330 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11331
113322008-03-17 Andreas Schwab <schwab@suse.de>
11333
11334 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11335 against a charset.
11336
11337 * lisp.h (Fbuffer_list): Declare.
11338
113392008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11340
aac0c6e3
MR
11341 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11342 handlebox_widget is != 0.
11343
113442008-03-16 Juri Linkov <juri@jurta.org>
11345
11346 * callint.c (Fcall_interactively): For interactive code letters
11347 'b' and 'B' put the buffer list into the list of default "future"
11348 values of the minibuffer.
11349
113502008-03-16 Andreas Schwab <schwab@suse.de>
11351
11352 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11353 modifiers.
11354
11355 * regex.c (re_match_2_internal): Correct matching of a charset
11356 against latin-1 characters.
11357
113582008-03-16 Kenichi Handa <handa@m17n.org>
11359
11360 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11361 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11362 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11363 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11364 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11365 CHAR_STRING_ADVANCE.
11366 (produce_chars): Fix for the case that the source and the
11367 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11368 instead of CHAR_STRING_ADVANCE.
11369 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11370 STRING_CHAR_ADVANCE.
11371
113722008-03-15 Andreas Schwab <schwab@suse.de>
11373
11374 * regex.c (re_match_2_internal): Correct matching of eight bit
11375 characters in unibyte strings.
11376
113772008-03-15 Martin Rudalics <rudalics@gmx.at>
11378
11379 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11380 at end of range when it coincides with the end of the buffer.
11381
113822008-03-14 Eli Zaretskii <eliz@gnu.org>
11383
11384 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11385
11386 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11387
113882008-03-14 Jason Rumney <jasonr@gnu.org>
11389
11390 * editfns.c (initial_tz): New variable.
11391 (syms_of_editfns): Initialize it.
11392 (Fset_time_zone_rule): Set it when first called.
11393 Use it when TZSTRING is nil.
11394
11395 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11396 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11397 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11398 (globals_of_w32fns): Initialize them.
11399 (compute_tip_xy): Use them to position tooltips.
11400
114012008-03-14 Glenn Morris <rgm@gnu.org>
11402
11403 * emacs.c (main): Revert previous change.
11404 (standard_args): Revert -internal-script back to -scriptload,
11405 and remove the long-option form.
11406
114072008-03-13 Glenn Morris <rgm@gnu.org>
11408
11409 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11410 Remove option -enable-font-backend.
11411
114122008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11413
11414 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11415
114162008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11417
11418 * xterm.c (x_connection_closed): For GTK: If this is the last
11419 terminal just exit without closing the display.
11420
114212008-03-11 Jason Rumney <jasonr@gnu.org>
11422
11423 * w32font.c (w32font_full_name): Use floor to round.
11424
f0131492 114252008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11426
11427 * sound.c (alsa_configure): Declare vol at beginning of block.
11428
11429 * fontset.c (Ffontset_info): Remove extra semicolon.
11430
114312008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11432
11433 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11434 size of resulting string.
11435
114362008-03-10 Jason Rumney <jasonr@gnu.org>
11437
11438 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11439
114402008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11441
11442 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11443 Don't pretend as if characters with display property haven't been
11444 consumed for string-replacing-string case.
11445
114462008-03-08 Kim F. Storm <storm@cua.dk>
11447
11448 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11449 (get_next_display_element, next_element_from_string)
11450 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11451
114522008-03-08 Andreas Schwab <schwab@suse.de>
11453
11454 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11455
114562008-03-06 Jason Rumney <jasonr@gnu.org>
11457
11458 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11459 when charset not specified. Only translate ANSI to unicode when
11460 font_type is truetype.
11461 (w32font_coverage_ok): New function.
11462 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11463
114642008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11465
11466 * lread.c (Fread_char): Resolve modifiers.
11467 (Fread_char_exclusive): Likewise.
11468
11469 * character.c (char_resolve_modifier_mask): New function.
11470 (char_string): Use char_resolve_modifier_mask.
11471 (Fchar_resolve_modifiers): New function.
11472 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11473 function.
11474
114752008-03-04 Jason Rumney <jasonr@gnu.org>
11476
11477 * makefile.w32-in: Always include w32font.c in the build.
11478 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11479
114802008-03-04 Andreas Schwab <schwab@suse.de>
11481
11482 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11483 (versionclean): Likewise.
11484
114852008-03-04 Juanma Barranquero <lekktu@gmail.com>
11486
11487 * .cvsignore: Add oo.
11488
114892008-03-03 Andreas Schwab <schwab@suse.de>
11490
11491 * coding.c (decode_coding_object): Inhibit gap shrinking while
11492 decoding in place.
11493
114942008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11495
11496 * w32term.c: Remove unused include "gnu.h".
11497 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11498
11499 * gnu.h: Rename to ...
11500 * emacs-icon.h: ... this.
11501 * xterm.c: Use emacs-icon.h instead of gnu.h.
11502 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11503
115042008-03-03 Juanma Barranquero <lekktu@gmail.com>
11505
11506 * w32font.c: Include math.h.
11507
115082008-03-03 Jason Rumney <jasonr@gnu.org>
11509
11510 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11511 Compute options separately.
11512 (w32font_open_internal): Set glyph_idx before caching metrics.
11513
11514 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11515 Define if system headers don't.
11516 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11517 (w32font_encode_char): Don't declare here.
11518
11519 * w32font.c (Quniscribe, QCformat): New symbols.
11520 (syms_of_w32font): Define them.
11521 (w32font_has_char): Indicate uncertainty.
11522 (w32font_encode_char): Encode as glyph point. Make static.
11523 (recompute_cached_metrics): New function.
11524 (w32font_open_internal): Use it. Set font to use glyph points
11525 initially. Set format based on type of font.
11526 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11527 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11528 on it. Set format based on information available here.
11529 (add_font_entity_to_list): Identify backend based on opentype_only.
11530
115312008-03-02 Andreas Schwab <schwab@suse.de>
11532
11533 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11534
11535 * coding.c (decode_coding_big5, produce_chars):
11536 Fix typos in last change.
11537
115382008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11539
11540 * gnu.h: New icon.
11541
115422008-03-02 Kenichi Handa <handa@m17n.org>
11543
11544 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11545 `dos', don't decode '\r' if that is the last in the source.
11546 (decode_coding_utf_16, decode_coding_emacs_mule)
11547 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11548 (decode_coding_raw_text, decode_coding_charset): Likewise.
11549 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11550
115512008-03-01 Jason Rumney <jasonr@gnu.org>
11552
11553 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11554
115552008-03-01 Kim F. Storm <storm@cua.dk>
11556
11557 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11558
115592008-03-01 Jason Rumney <jasonr@gnu.org>
11560
11561 * w32font.c (w32font_full_name): New function.
11562 (w32font_open_internal): Use it.
11563
115642008-03-01 Kim F. Storm <storm@cua.dk>
11565
11566 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11567
115682008-03-01 Jason Rumney <jasonr@gnu.org>
11569
11570 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11571
115722008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11573
11574 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11575 xg_frame_resized when the event is for the edit widget.
11576
11577 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11578
11579 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11580 set_char_size.
11581 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11582 operations on widgets here. Just set frame size if needed.
11583 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11584 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11585 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11586 the whole frame.
11587 (xg_create_tool_bar): Move attachment of the tool bar to
11588 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11589 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11590
115912008-03-01 Jason Rumney <jasonr@gnu.org>
11592
11593 * w32fns.c (w32_msg_pump): Disable debug code.
11594
115952008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11596
11597 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11598
115992008-02-29 Chong Yidong <cyd@stupidchicken.com>
11600
11601 * xdisp.c (next_overlay_string): Don't set
11602 overlay_strings_at_end_processed_p if we're currently reading from
11603 a display string.
11604
116052008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11606
11607 * xdisp.c (get_overlay_strings_1): Fix typo.
11608
116092008-02-29 Chong Yidong <cyd@stupidchicken.com>
11610
11611 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11612
116132008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11614
11615 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11616
11617 * xdisp.c (display_mode_element): Cancel the previous change.
11618 (decode_mode_spec): Likewise.
11619 (handle_auto_composed_prop): Don't make composition if it->string
11620 is a string.
11621
116222008-02-27 Kim F. Storm <storm@cua.dk>
11623
11624 * lisp.h (GLYPH): Change type from int to struct with separate char
11625 and face_id members.
11626 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11627 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11628 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11629 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11630 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11631 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11632 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11633 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11634 handle new Lisp glyph code encoding, either an integer or a cons.
11635
11636 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11637 (GLYPH_ALIAS): Delete.
11638 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11639 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11640 (GLYPH_FROM_CHAR): Replace macro by ...
11641 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11642
11643 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11644 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11645 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11646 (GLYPH_INVALID_P): New macro.
11647 (spec_glyph_lookup_face): Update prototype.
11648
11649 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11650 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11651 new glyph code encoding.
11652 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11653 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11654
11655 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11656 Adapt to new glyph type and new glyph code encoding.
11657
11658 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11659
11660 * indent.c (current_column, current_column_1, Fmove_to_column)
11661 (compute_motion): Adapt to new glyph code encoding.
11662
11663 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11664
116652008-02-27 Chong Yidong <cyd@stupidchicken.com>
11666
11667 * process.c (wait_reading_process_output): Check for window
11668 changes caused by timers.
11669 Suggested by Johan Bockgård.
11670
116712008-02-27 Glenn Morris <rgm@gnu.org>
11672
11673 * emacs.c (USAGE1): Add `--disable-font-backend'.
11674
116752008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11676
11677 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11678 is made to the buffer.
11679
116802008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11681
11682 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11683 (face_at_string_position):
11684 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11685 (face_at_string_position):
11686 * xdisp.c (display_string, next_overlay_change):
11687 * buffer.h (overlays_at):
11688 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11689 Update callers.
11690
116912008-02-26 Chong Yidong <cyd@stupidchicken.com>
11692
11693 * editfns.c (Fformat): Doc fix.
11694
116952008-02-26 Juanma Barranquero <lekktu@gmail.com>
11696
11697 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11698 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11699 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11700
117012008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11702
11703 * buffer.c (Fbuffer_swap_text): New function.
11704 (syms_of_buffer): Defsubr it.
11705
117062008-02-25 Chong Yidong <cyd@stupidchicken.com>
11707
11708 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11709
117102008-02-25 Jason Rumney <jasonr@gnu.org>
11711
11712 * w32font.c (w32font_draw): Draw one character at a time when padding.
11713
117142008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11715
11716 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11717 Handle a nil arg. Use run_window_configuration_change_hook.
11718 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11719 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11720 Use run_window_configuration_change_hook.
11721
117222008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11723
11724 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11725 1-pixel width.
11726
117272008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11728
11729 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11730 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11731 if the glyph in the font is zero pixel with.
11732
11733 * dispextern.h (struct glyph_string): New member padding_p.
11734
11735 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11736
11737 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11738
11739 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11740
11741 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11742
11743 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11744
117452008-02-25 Jason Rumney <jasonr@gnu.org>
11746
11747 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11748
117492008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11750
11751 Allow fine-grained image-cache flushing.
11752 * dispextern.h (struct image): Add `dependencies' field.
11753 (clear_image_caches): Change arg to Lisp_Object.
11754 * image.c (make_image): Initialize `dependencies' field.
11755 (clear_image_cache): Change arg to allow fine-grained flushing.
11756 Perform the flush even if image-cache-eviction-delay is nil.
11757 (clear_image_caches): Change arg to Lisp_Object.
11758 (Fclear_image_cache): Expand meaning of the argument.
11759 (mark_image): Mark `dependencies' field.
11760 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11761 (lface_hash): Use XHASH rather than XFASTINT.
11762 (face_at_buffer_position): Fix int -> EMACS_INT position.
11763 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11764 (select_frame_for_redisplay): Remove code duplication.
11765 (redisplay_internal): Adapt arg to call to clear_image_caches.
11766
117672008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11768
11769 * s/vms4-0.h:
11770 * s/vms4-2.h:
11771 * s/vms4-4.h:
11772 * s/vms5-5.h: Remove, unused.
11773
11774 * s/irix5-2.h:
11775 * s/irix6-0.h:
11776 * s/riscos5.h:
11777 * s/mach-bsd4-3.h:
11778 * m/mips4.h: Remove files for obsolete systems.
11779
11780 * Makefile.in:
11781 * filelock.c:
11782 * unexmips.c:
11783 * m/hp9000s300.h:
11784 * m/iris4d.h:
11785 * s/aix3-1.h:
11786 * s/hpux.h:
11787 * s/msdos.h:
11788 * s/usg5-0.h:
11789 * s/usg5-2-2.h:
11790 * s/usg5-2.h:
11791 * s/usg5-3.h: Remove references to obsolete variables.
11792
11793 * s/irix5-0.h: Remove, move all the contents ...
11794 * s/irix6-5.h: ... here. Simplify.
11795 * config.in: Regenerate.
11796
117972008-02-24 Jason Rumney <jasonr@gnu.org>
11798
11799 * w32term.c (x_draw_glyph_string_background): Clear the background
11800 manually when cleartype is in use.
11801 (x_draw_glyph_string_foreground): Draw text transparently when
11802 cleartype is in use.
11803
11804 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11805 a font into it unless we have to.
11806
118072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11808
11809 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11810 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11811
aac0c6e3
MR
118122008-02-18 Jason Rumney <jasonr@gnu.org>
11813
11814 * w32fns.c (Fw32_shell_execute): Encode parameters.
11815
118162008-02-09 Eli Zaretskii <eliz@gnu.org>
11817
11818 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11819
118202008-02-05 Juanma Barranquero <lekktu@gmail.com>
11821
11822 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11823
118242008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11825
11826 * xterm.c (x_set_offset): Don't change the gravity if
11827 CHANGE_GRAVITY is -1.
11828
118292008-02-23 Chong Yidong <cyd@stupidchicken.com>
11830
11831 * fileio.c (auto_save_error_occurred): New var.
11832 (auto_save_error): Set it.
11833 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11834 error occurred.
11835
118362008-02-23 Eli Zaretskii <eliz@gnu.org>
11837
11838 * w32.c (globals_of_w32): Add initializations for
11839 g_b_init_get_sid_sub_authority and
11840 g_b_init_get_sid_sub_authority_count.
11841
118422008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11843
11844 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11845 (font_parse_xlfd): Use them for sanity check.
11846 (Finternal_set_font_style_table): Make sure the table is bijective.
11847
11848 Consolidate the image_cache to the terminal struct.
11849 * termhooks.h (P_): Remove redundant def.
11850 (struct terminal): New field `image_cache'.
11851 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11852 of FRAME_X_IMAGE_CACHE.
11853 * xterm.h (struct x_display_info): Remove image_cache field.
11854 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11855 * w32term.h (struct w32_display_info): Remove image_cache field.
11856 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11857 * macterm.h (struct mac_display_info): Remove image_cache field.
11858 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11859 * xterm.c (x_term_init):
11860 * w32term.c (w32_term_init):
11861 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11862 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11863 Remove declarations.
11864 (clear_image_caches, mark_image_cache): New declarations.
11865 * xfaces.c (clear_face_cache):
11866 * xdisp.c (redisplay_internal): Use clear_image_caches.
11867 * image.c (clear_image_cache): Don't check that a frame is on
11868 a window-system before checking if it shares the same cache.
11869 (clear_image_caches): New function.
11870 (Fclear_image_cache): Use it.
11871 (mark_image): Move from allo.c.
11872 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11873 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11874 (mark_object): Don't call mark_image_cache for frames.
11875 (mark_terminals): Call mark_image_cache.
11876
11877 * lisp.h (Fdelete_terminal): Declare.
11878
11879 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11880 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11881 wrong_type_argument.
11882
118832008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11884
11885 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11886 malayalam.el, and tamil.el. Add sinhala.el.
11887
118882008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11889
11890 * xterm.c (x_connection_closed): Consolidate identical tests.
11891 (x_delete_terminal): Don't crash if called via x_connection_closed.
11892
118932008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11894
11895 * xdisp.c (decode_mode_spec): New arg string.
11896 (display_mode_element): Adjust for the above change.
11897
118982008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11899
11900 * callint.c (Fcall_interactively): Use AREF.
11901
119022008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11903
11904 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11905
119062008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11907
11908 * xfns.c (Fx_show_tip): Set string to " " if empty.
11909
119102008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11911
11912 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11913 with Qt.
11914
119152008-02-17 Kenichi Handa <handa@m17n.org>
11916
11917 * ftfont.c (ftfont_shape): Return Lispy number.
11918
11919 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11920 for GCs.
11921 (Finternal_set_font_selection_order): Call font_update_sort_order
11922 only when enable_font_backend is set.
11923 (realize_x_face): Set face->font_info to that of default face only
11924 when enable_font_backend is set.
11925
11926 * xdisp.c (handle_composition_prop): Set it->c to the fist
11927 character of the composed region.
11928 (fill_composite_glyph_string): Set base_face->font_info to
11929 s->font_info. Get a face for ascii from base_face->ascii_face.
11930 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11931 with a face already decided.
11932 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11933 non-negative.
11934 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11935 call font_prepare_composition unconditionally.
11936
11937 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11938
11939 * xterm.h (struct x_display_info): New member font.
11940
11941 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11942 (x_set_mouse_face_gc, x_new_font): Likewise.
11943 (x_term_init): Setup display_info->font.
11944 (x_delete_terminal): Free display_info->font.
11945
11946 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11947
11948 * ftxfont.c (ftxfont_default_fid): Delete it.
11949 (ftxfont_open): Set xfont->fid to 0.
11950 (ftxfont_end_for_frame): Clear data specific to the frame and the
11951 font-driver.
11952
11953 * xftfont.c (xftfont_default_fid): Delete it.
11954 (xftfont_open): Set xfont->fid to 0.
11955
11956 * fontset.c (FONTSET_OBJLIST): New macro.
11957 (fontset_find_font): Update font-object list of the fontset.
11958 (free_realized_fontset): New function.
11959 (free_face_fontset): Call free_realized_fontset.
11960 (Ffont_info): Call font_close_object only when enable_font_backend
11961 is set.
11962
11963 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11964 [HAVE_NTGUI]: Include w32term.h.
11965 [MAC_OS]: Include macterm.ch.
11966 (font_otf_ValueRecord): Use make_number.
11967 (font_finish_cache): Fix handling of reference count.
11968 (font_clear_cache): Update num_fonts.
11969 (font_open_entity): Update smallest_char_width and
11970 smallest_font_height of the frame.
11971 (font_close_object): Update num_fonts.
11972 (Fclear_font_cache): Fix finding the target cache data.
11973
119742008-02-16 Glenn Morris <rgm@gnu.org>
11975
11976 * fontset.c (Finternal_char_font): Fix compilation warning.
11977
119782008-02-16 Eli Zaretskii <eliz@gnu.org>
11979
11980 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11981 instead of char arrays. Enlarge the size of array passed to
11982 get_token_information.
11983
11984 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11985 warnings.
11986
119872008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11988
11989 * .gdbinit: Don't set `args', it breaks gdb --args.
11990
119912008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11992
11993 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11994 within a narrowed buffer.
11995
119962008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11997
11998 * coding.c (decode_coding_object, encode_coding_object):
11999 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
12000
120012008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
12002
12003 * coding.c (coding_set_destination): Use BEG_BYTE rather than
12004 hardcoding 1.
12005 (detect_coding_system):
12006 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12007 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12008 * insdel.c (insert_from_gap):
12009 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12010 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12011 (string_to_multibyte):
12012 * character.c (chars_in_text, multibyte_chars_in_text):
12013 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12014
12015 * character.h (FETCH_STRING_CHAR_ADVANCE)
12016 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12017 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12018 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12019
12020 * casefiddle.c (casify_region): Only call after-change and composition
12021 functions on the part of the region that was changed.
12022
12023 * keyboard.c (read_avail_input):
12024 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12025
120262008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12027
12028 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12029 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12030
120312008-02-11 Juanma Barranquero <lekktu@gmail.com>
12032
12033 * w32menu.c (push_submenu_start, push_submenu_end)
12034 (push_left_right_boundary, push_menu_pane, push_menu_item):
12035 * keyboard.c (read_key_sequence): Don't pass args with side effects
12036 to AREF, it fails when compiling with -DENABLE_CHECKING.
12037
120382008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12039
12040 * Makefile.in (${lispsource}international/charprop.el):
12041 Delete this target.
12042
12043 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12044 emacs-unicode-2.
12045
120462008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12047
12048 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12049
120502008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12051
12052 * frame.c (Qnoelisp): New symbol.
12053 (syms_of_frame): Initialize it.
12054 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12055 harmless Elisp code, from a strong `force' from x_connection_closed.
12056 * frame.h (Qnoelisp): Declare.
12057 * xterm.c (x_connection_closed): Pass `noelisp'.
12058
12059 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12060 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12061 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12062 rather than `int' for the type of `type'.
12063
120642008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12065
12066 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12067
12068 * Makefile.in (GNUC): Remove support for gcc-1.x.
12069
120702008-02-10 Richard Stallman <rms@gnu.org>
12071
12072 * lisp.h (ASET): Use AREF, not ASLOT.
12073
120742008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12075
12076 * lisp.h (ASET): Check bounds.
12077
120782008-02-10 Glenn Morris <rgm@gnu.org>
12079
12080 * buffer.c (mode-name): Doc fix.
12081
120822008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12083
12084 * Makefile.in:
12085 * emacs.c:
12086 * gmalloc.c:
12087 * keyboard.c:
12088 * lisp.h:
12089 * m/ibm370aix.h:
12090 * process.c:
12091 * regex.c:
12092 * s/hpux.h:
12093 * sysdep.c:
12094 * sysselect.h:
12095 * systty.h:
12096 * unexec.c:
12097 * w32term.c:
12098 * xsmfns.c:
12099 * xterm.c: Remove code that deals with obsolete variables.
12100
12101 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12102
12103 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12104 nothing else needs it anymore.
12105
121062008-02-09 Eli Zaretskii <eliz@gnu.org>
12107
12108 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12109 instead of unibyte_char_to_multibyte.
12110
121112008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12112
12113 * s/gnu-linux.h: Remove commented out code.
12114
12115 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12116
12117 * Makefile.in: Update what RMS says about using autoconf.
12118 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12119 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12120 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12121 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12122
121232008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12124
12125 * keymap.c (Fkey_description): Move side effect outside of macro call.
12126
12127 * xfaces.c (Finternal_make_lisp_face):
12128 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12129
12130 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12131 (syms_of_fontset): Use ASET.
12132
12133 * fns.c (concat): Move side effect outside of macro call.
12134 (hash_clear): Use ASET.
12135
121362008-02-08 Richard Stallman <rms@gnu.org>
12137
12138 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12139 If FORCE, and frame has a surrogate minibuffer for another frame,
12140 delete the other frame first.
12141
121422008-02-07 Timo Savola <timo.savola@iki.fi>
12143
12144 * xterm.c (x_detect_focus_change): Handle embed client message.
12145 (handle_one_xevent): Ditto.
12146 (handle_one_xevent): If embedded and we get a button press/release,
12147 request focus.
12148 (xembed_set_info, xembed_send_message): New functions.
12149 (x_make_frame_visible): Call xembed_set_info if embedded.
12150 (x_make_frame_invisible): Call xembed_set_info if embedded.
12151 (x_term_init): Initialize Xatom_XEMBED.
12152 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12153 (x_iconify_frame): Ditto.
12154
12155 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12156 (enum xembed_info, enum xembed_message, enum xembed_focus)
12157 (enum xembed_modifier, enum xembed_accelerator): New.
12158 (xembed_set_info, xembed_send_message): Declare.
12159 (FRAME_X_EMBEDDED_P): New.
12160
12161 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12162 gtk_plug_new.
12163
12164 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12165 window ID of a frame.
12166 (x_window): Reparent frame if embedded.
12167 (Fx_create_frame): Don't set border width if embedded.
12168
12169 * emacs.c (USAGE3): Add --parent-id.
12170 (standard_args): Ditto.
12171
121722008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12173
12174 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12175
121762008-02-07 Jim Meyering <meyering@redhat.com>
12177
12178 Use "do...while (0)", not "if (1)...else" in macro definitions.
12179 The latter provokes a warning from gcc about the empty else, when
12180 followed by ";". Also, without that trailing semicolon, it would
12181 silently swallow up any following statement.
12182 * syntax.h (SETUP_SYNTAX_TABLE)
12183 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12184 * buffer.h (DECODE_POSITION): Likewise.
12185 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12186 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12187 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12188 (FETCH_CHAR_ADVANCE): Likewise.
12189 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12190
121912008-02-07 Jim Meyering <meyering@redhat.com>
12192
12193 * lread.c [lint]: Don't include <sys/inode.h>.
12194
121952008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12196
12197 * xselect.c (x_handle_dnd_message):
12198 * xmenu.c (digest_single_submenu, xmenu_show):
12199 * xdisp.c (with_echo_area_buffer_unwind_data)
12200 (format_mode_line_unwind_data, unwind_format_mode_line)
12201 (display_menu_bar):
12202 * eval.c (Ffetch_bytecode):
12203 * doc.c (store_function_docstring):
12204 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12205 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12206 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12207
122082008-02-07 Kenichi Handa <handa@m17n.org>
12209
12210 * ftxfont.c (ftxfont_open): Don't set
12211 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12212
12213 * ftfont.c (ftfont_open): Fix previous change.
12214
122152008-02-06 Jason Rumney <jasonr@gnu.org>
12216
12217 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12218 Use cached metrics for ASCII characters.
12219 (w32font_open_internal): Don't set font's owning_frame.
12220 Cache metrics for ASCII characters.
12221
12222 * w32font.h (struct w32font_info): Add ascii_metrics.
12223 Remove owning_frame.
12224
122252008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12226
12227 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12228 to negative value.
12229
12230 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12231
12232 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12233
12234 * charset.c (syms_of_charset): Set QCtest and Qeq.
12235
122362008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12237
12238 * process.c (Fstart_process):
12239 * callproc.c (Fcall_process): Handle the case where
12240 Funhandled_file_name_directory returns nil.
12241
12242 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12243 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12244 * font.c (check_gstring): Use them and AREF to access the vector before
12245 we know it's really a gstring.
12246 (Ffont_shape_text): Fix typo.
46e722a9 12247 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12248
12249 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12250 Declare.
12251
12252 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12253
122542008-02-05 Jason Rumney <jasonr@gnu.org>
12255
12256 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12257 Set smallest_font_height and smallest_char_width in display info.
12258
122592008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12260
12261 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12262
122632008-02-05 Miles Bader <miles@gnu.org>
12264
12265 * xfaces.c (get_lface_attributes, merge_named_face)
12266 (lookup_named_face, lookup_derived_face, realize_named_face):
12267 Revert 2008-02-01 change by cyd@stupidchicken.com.
12268
122692008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12270
12271 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12272 fallback fonts.
12273 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12274
122752008-02-04 Jason Rumney <jasonr@gnu.org>
12276
12277 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12278 set full_name.
12279 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12280
122812008-02-03 Jason Rumney <jasonr@gnu.org>
12282
12283 * makefile.w32-in (OBJ1): Include font.o here.
12284 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12285
122862008-02-02 Jason Rumney <jasonr@gnu.org>
12287
12288 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12289
122902008-02-01 Jason Rumney <jasonr@gnu.org>
12291
12292 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12293
12294 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12295
122962008-02-01 Andreas Schwab <schwab@suse.de>
12297
12298 * Makefile.in (shortlisp, lisp): Update for rename of
12299 ../lisp/language/myanmar.el.
12300
123012008-02-01 Chong Yidong <cyd@stupidchicken.com>
12302
12303 * xfaces.c (get_lface_attributes): Delete function.
12304 (merge_named_face, lookup_named_face, lookup_derived_face)
12305 (realize_named_face): Call lface_from_face_name directly, and use
12306 the fact that merge_face_vectors does not alter its FROM argument.
12307
123082008-02-01 Jason Rumney <jasonr@gnu.org>
12309
12310 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12311 input in the default locale. Handle non-Unicode multibyte input.
12312
123132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12314
12315 * fontset.c (reorder_font_vector): Exclude nil elements from the
12316 font group. Don't try multiple fonts.
12317 (fontset_font): Adjust for the above change.
12318 (Finternal_char_font): Return nil if the found font doesn't
12319 contain the character ch.
12320
12321 * Makefile.in (lisp, shortlisp): Add cham.el.
12322
123232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12324
12325 * font.h (FONTP): Make it return 1 also for a font-object.
12326
12327 * .gdbinit (xfontset): New function.
12328
12329 * font.c (font_find_for_lface): Check if the character C is
12330 supported or not only for the first font.
12331
12332 * fontset.c (reorder_font_vector): Fix typo.
12333 (fontset_find_font): Don't add a font-spec specifying a script.
12334 Use 0 (not Qt) for the indication of empty font-group. Change the
12335 format of RFONT-DEF. Return Qt if no font in the font-group
12336 support the character.
12337 (fontset_font): Adjust for the above change. If no font was
12338 found the character, remember that.
12339 (face_for_char): Adjust for the change of RFONT-DEF.
12340 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12341 no font for the target.
12342 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12343
123442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12345
12346 * font.c (font_load_for_face): Handle the case that the font in
12347 face->lface is a string.
12348
123492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12350
12351 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12352
123532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12354
12355 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12356 Fix previous change. If the frame is not on a window system,
12357 signal an error.
12358
123592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12360
12361 * coding.c (decode_coding_object, encode_coding_object): Adjust
12362 marker positions after conversion.
12363
12364 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12365
123662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12367
12368 * font.c (font_find_for_lface): Fix the handling of the return
12369 value of font_has_char.
12370 (Ffont_shape_text): Fix previous change.
12371
12372 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12373 (fontset_ref_and_range): Delete it.
12374 (fontset_find_font): Call char_table_ref_and_range instead of
12375 FONTSET_REF_AND_RANGE.
12376 (make_fontset): Don't setup font groups of Latin here.
12377 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12378 (new_fontset_from_font): Make the specified font the default for
12379 all Latin characters.
12380
123812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12382
12383 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12384 is on a window system before accessing the fontset of the frame.
12385
123862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12387
12388 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12389
12390 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12391 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12392
12393 * font.c (Ffont_shape_text): If the font driver doesn't have a
12394 shaper function, make zero-width glyphs to have at least one-pixel
12395 width. Fix setting of `to' field of glyphs.
12396
123972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12398
12399 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12400 glyphs.
12401
12402 * font.h (struct font_driver): Improve docstring of member `shape'.
12403
124042008-02-01 Kenichi Handa <handa@m17n.org>
12405
12406 * composite.c (syms_of_composite): Fix docstring of
12407 auto-composition-function.
12408
12409 * font.h (LGLYPH_SIZE): New macro.
12410
12411 * font.c (Ffont_fill_gstring): Stop filling when a character not
12412 supported by the font is found.
12413 (Ffont_shape_text): When a shape callback function returns nil,
12414 try at most two more times with larger gstring.
12415 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12416
12417 * xdisp.c (handle_auto_composed_prop): Change the argument to
12418 auto-composition-function.
12419
12420 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12421 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12422 Lispy glyph and store it in the lgstring.
12423
12424 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12425
12426 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12427
124282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12429
12430 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12431
12432 * fontset.c (Vfont_encoding_charset_alist): New variable.
12433 (syms_of_fontset): DEFVAR it.
12434 (reorder_font_vector, fontset_find_font): Optimize for the case of
12435 no need of reordering.
12436 (face_for_char): Map the charset property by
12437 Vfont_encoding_charset_alist.
12438
124392008-02-01 Jason Rumney <jasonr@gnu.org>
12440
12441 * w32font.c (logfonts_match): Don't check adstyle here.
12442 (font_matches_spec): Check here against physical font instead.
12443 (add_font_entity_to_list): Avoid some substitutions.
12444
12445 * font.c (font_parse_fcname): Default weight and slant to normal.
12446 (font_score): Prefer normal fonts if weight or slant unspecified.
12447 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12448 match freetype scores.
12449
124502008-02-01 Jason Rumney <jasonr@gnu.org>
12451
12452 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12453 font, as it may have been deleted.
12454 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12455 most common hyphenless variation.
12456 (logfonts_match): Check generic family.
12457 (font_matches_spec): Don't check generic family here.
12458 (fill_in_logfont): Set generic family based on adstyle.
12459
12460 * w32font.h (w32font_get_cache): Update declaration.
12461
124622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12463
12464 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12465
12466 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12467 If none of the new drivers are available, call font_update_drivers
12468 with the old drivers.
12469
12470 * w32font.c (w32font_get_cache): Adjust the argument type.
12471
12472 * xfont.c (xfont_get_cache): Adjust the argument type.
12473
12474 * font.h (struct font_driver): Change argument type of get_cache.
12475
12476 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12477
12478 * font.c (Ffont_get): Fix arguments to Fassoc.
12479 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12480 (font_clear_cache): New function.
12481 (font_list_entities, font_matching_entity): Use font_get_cache.
12482 (font_update_drivers): Call font_clear_cache when finishing a driver.
12483
12484 * fontset.c (fontset_find_font): Fix previous change.
12485
124862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12487
12488 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12489 dpyinfo->font_table.
12490 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12491 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12492
12493 * font.c (font_at): Handle the case that the arg C is negative.
12494 Handle the unibyte case.
12495 (Ffont_at): Call font_at with the arg C -1.
12496
12497 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12498 the position here, and call font_at with the arg C -1.
12499 Don't check the range of the existing composition at the point.
12500
125012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12502
12503 * fontset.c (fontset_add): New args charset_id and family.
12504 Change caller.
12505 (load_font_get_repertory, fontset_find_font): Assume that
12506 font_spec is always a font-spec object.
12507 (Fset_fontset_font): Always store a font-spec object in a fontset.
12508
12509 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12510 instead of get_property_and_range.
12511
125122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12513
12514 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12515 (xftfont_open): Don't keep locking face.
12516 (xftfont_close): Don't unlock face.
12517 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12518
12519 * fontset.c (fontset_find_font): Don't prefer a font of
12520 supplementary charset.
12521
125222008-02-01 Kenichi Handa <handa@m17n.org>
12523
12524 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12525 script, langsys_tag to langsys, new member script.
12526 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12527 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12528 listing to the script specified in that property. Fix arg to
12529 OTF_check_features.
12530
125312008-02-01 Jason Rumney <jasonr@gnu.org>
12532
12533 * w32font.h: New file.
12534
12535 * w32font.c: Include it.
12536 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12537 (w32font_open): Set owning_frame.
12538 (w32font_text_extents): Use owning_frame.
12539 (struct font_callback_data): Add opentype_only field.
12540 (add_font_entity_to_list): Use it to filter fonts.
12541 Don't check against full name.
12542 (w32font_list_internal): New function.
12543 (w32font_list): Use it.
12544 (w32font_match_internal): New function.
12545 (w32font_match): Use it.
12546 (w32font_open_internal): New function.
12547 (w32font_open): Use it.
12548 (w32font_get_cache, w32font_close, w32font_has_char)
12549 (w32font_encode_char, w32font_text_extents, w32font_draw):
12550 Make non-static.
12551
12552 * makefile.w32-in (w32font.o): Depend on w32font.h.
12553
125542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12555
12556 * charset.c (Fdefine_charset_internal): Record a supplementary
12557 charset at the tail of Vcharset_order_list.
12558
12559 * font.c (Ffont_shape_text): Fix the return value.
12560
12561 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12562
12563 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12564
125652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12566
12567 * ftfont.c (struct OpenTypeSpec): New struct.
12568 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12569 (ftfont_get_open_type_spec): New function.
12570 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12571
12572 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12573
125742008-02-01 Jason Rumney <jasonr@gnu.org>
12575
12576 * w32font.c (add_font_entity_to_list): Compare only the beginning
12577 of full name.
12578
125792008-02-01 Kenichi Handa <handa@m17n.org>
12580
12581 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12582 Never return HANDLED_RECOMPUTE_PROPS.
12583
125842008-02-01 Kenichi Handa <handa@m17n.org>
12585
12586 * font.c (font_gstring_produce): Delete it.
12587
12588 * composite.h (COMPOSITION_METHOD):
12589 Handle COMPOSITION_WITH_GLYPH_STRING.
12590
125912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12592
12593 * xfont.c (Qx): Delete.
12594 (syms_of_xfont): Don't initialize Qx.
12595
12596 * composite.h (enum composition_method):
12597 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12598
125992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12600
12601 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12602 (choose_face_font): Accept new form of font-spec.
12603
12604 * frame.h (font_driver_list): Declare it unconditionally.
12605 (struct frame): Define members font_driver_list and font_data_list
12606 unconditionally.
12607
12608 * fontset.c: Include "font.h" unconditionally.
12609 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12610 (Fset_fontset_font): Accept a font-spec object.
12611
12612 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12613 PIXEL_SIZE part a wild card.
12614
12615 * dispextern.h (struct glyph_string): Define members clip and
12616 num_clips unconditionally.
12617 (struct face): Define members font_info and extra unconditionally.
12618
12619 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12620 ftfont_info only when HAVE_LIBOTF is defined.
12621
126222008-02-01 Andreas Schwab <schwab@suse.de>
12623
12624 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12625 and end.
12626
126272008-02-01 Jason Rumney <jasonr@gnu.org>
12628
12629 * w32font.c (w32font_driver): Add new fields.
12630
126312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12632
12633 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12634 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12635 (LIBES): Add @M17N_FLT_CFLAGS@.
12636
12637 * composite.c (compose_text): Don't treat the new style
12638 composition specially.
12639
12640 * emacs.c (main): Call syms_of_font unconditionally.
12641
12642 * font.h (FONT_ENTITY_NOT_LOADABLE)
12643 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12644 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12645 (struct font_driver): New member shape.
12646 (font_registry_charsets): Extern it.
12647 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12648 (font_otf_capability, font_drive_otf): Delete their externs.
12649
12650 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12651 (font_charset_alist, font_registry_charsets): Move from xfont.c
12652 and rename.
12653 (font_prop_validate_otf): New function.
12654 (font_property_table): Register it for QCotf.
12655 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12656 (font_drive_otf): Delete.
12657 (font_prepare_composition): New arg F. Adjust for the change of
12658 lispy gstring.
12659 (font_find_for_lface): New arg C.
12660 (font_load_for_face): Adjust for the change of font_find_for_lface.
12661 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12662 lispy gstring.
12663 (Ffont_shape_text): New function.
12664 (Fopen_font): If the font size is not given, use 12-pixel.
12665 (Ffont_at): New arg STRING.
12666 (syms_of_font): Initalize font_charset_alist.
12667 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12668 conditionally.
12669
12670 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12671 fonts of the same font-spec. Change the format of RFONT-DEF.
12672 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12673 Adjust for the change of RFONT-DEF.
12674 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12675
12676 * ftfont.h: New file.
12677
12678 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12679 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12680 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12681 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12682 font_otf_capability and font_drive_otf, set ftfont_shape.
12683 (ftfont_list): Adjust for the change of :otf property value.
12684 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12685 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12686 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12687 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12688 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12689 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12690
12691 * w32term.c (x_draw_composite_glyph_string_foreground):
12692 Adjust for the change of lispy gstring.
12693
12694 * xdisp.c (handle_composition_prop): Adjust for the change of
12695 lispy gstring. Call a function for auto-composition with the
12696 third arg it->window.
12697 (fill_composite_glyph_string): Adjust for the change of lispy string.
12698 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12699
12700 * xfaces.c (set_font_frame_param): Adjust for the change of
12701 font_find_for_lface.
12702
12703 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12704 (xfont_registry_charsets): Likewise. Change caller.
12705 (syms_of_xfont): Don't handle x_font_charset_alist.
12706
12707 * xftfont.c: Include "ftfont.h".
12708 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12709 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12710 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12711 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12712 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12713 Set xftfont_driver.shape to xftfont_shape.
12714
12715 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12716 the change of lispy gstring.
12717
127182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12719
12720 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12721
127222008-02-01 Jason Rumney <jasonr@gnu.org>
12723
12724 * w32font.c (w32font_draw): Fill background manually.
12725
127262008-02-01 Jason Rumney <jasonr@gnu.org>
12727
12728 * font.c (Qfontp): Remove unused symbol.
12729 (QCantialias): New symbol.
12730 (syms_of_font): Define it.
12731 (font_property_table): Set a validator for QCantialias.
12732
12733 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12734 Define if not already.
12735 (QCfamily): Share with xfaces.c.
12736 (Qstandard, Qsubpixel, Qnatural): New symbols.
12737 (syms_of_w32font): Define them. Don't define QCfamily here.
12738 (w32_antialias_type, lispy_antialias_type): New functions.
12739 (w32_enumfont_pattern_entity): New arg requested_font.
12740 Set antialias parameter if non-default was requested.
12741 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12742
127432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12744
12745 * lread.c (read1): Undo the previous change.
12746
127472008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12748
12749 * frame.c (Fdelete_frame): Call font_update_drivers only when
12750 USE_FONT_BACKEND is defined.
12751
127522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12753
12754 * font.h (struct font_bitmap): New member bits_per_pixel.
12755 (struct font_driver): New members start_for_frame and end_for_frame.
12756 (struct font_data_list): New struct.
12757 (font_put_frame_data, font_get_frame_data): Extern them.
12758
12759 * frame.h (struct frame): New member font_data_list.
12760
12761 * font.c (font_update_drivers): Call driver->start_for_frame and
12762 driver->end_for_frame at proper timings.
12763 (font_put_frame_data, font_get_frame_data): New functions.
12764 (Ffont_spec): Add usage in the docstring.
12765
12766 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12767 (Fdelete_frame): Call font_update_drivers.
12768
12769 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12770 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12771 (xftfont_get_xft_draw): New function.
12772 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12773 (xftfont_end_for_frame): New function.
12774 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12775
12776 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12777 Change argument. Cache GCs in the per-frame data.
12778 (struct ftxfont_frame_data): New struct.
12779 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12780 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12781 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12782 (ftxfont_end_for_frame): New function.
12783 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12784
12785 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12786
127872008-02-01 Kenichi Handa <handa@m17n.org>
12788
12789 * xselect.c (Vselection_coding_system)
12790 (Vnext_selection_coding_system): Delete them.
12791 (syms_of_xselect): Don't declare selection-coding-system and
12792 next-selection-coding-system. They are declared in select.el.
12793
127942008-02-01 Jason Rumney <jasonr@gnu.org>
12795
12796 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12797
12798 * w32fns.c: Include imm.h.
12799 (get_composition_string_fn, get_ime_context_fn): New optional
12800 system functions.
12801 (globals_of_w32fns): Load them from imm32.dll.
12802 (ignore_ime_char): New flag.
12803 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12804 WM_IME_ENDCOMPOSITION messages.
12805
12806 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12807 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12808
128092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12810
12811 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12812 (READCHAR_REPORT_MULTIBYTE): New macro.
12813 (readchar): New 2nd arg MULTIBYTE.
12814 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12815 Make symbol's name multibyte according to the multibyteness of the
12816 source.
12817
128182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12819
12820 * xfaces.c (face_for_overlay_string): Call lookup_face with
12821 correct arguments (fix of synching with the trunk).
12822
128232008-02-01 Kenichi Handa <handa@m17n.org>
12824
12825 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12826 (font_prop_validate_non_neg, font_prop_validate_spacing):
12827 Delete argument prop_index.
12828 (font_property_table): Change arguments to validater. Change Callers.
12829 (font_lispy_object): Delete.
12830 (font_at): Use font_find_object instead fo font_lispy_object.
12831
128322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12833
12834 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12835 and file names.
12836
128372008-02-01 Jason Rumney <jasonr@gnu.org>
12838
12839 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12840 (font_matches_spec): Remove debug output.
12841 (add_font_entity_to_list): Avoid using substituted fonts.
12842
128432008-02-01 Jason Rumney <jasonr@gnu.org>
12844
12845 * doc.c (Fsnarf_documentation):
12846 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12847
128482008-02-01 Miles Bader <miles@gnu.org>
12849
12850 * dispextern.h (struct glyph_row): Only define "clip" field if
12851 HAVE_WINDOW_SYSTEM is defined.
12852
128532008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12854
12855 Fix up multi-tty merge.
12856
12857 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12858 and indentation.
12859
12860 * xfaces.c (free_realized_face, clear_face_gcs):
12861 Include font_done_for_face in the input_blocked section, just in case.
12862
12863 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12864 (get_char_face_and_encoding): Undo last change and remove the *other*
12865 duplicate definition (i.e. keep the one that's better scoped and that
12866 includes code for the font-backend).
12867
12868 * terminal.c (create_terminal): Default keyboard_coding to
12869 `no-conversion' and terminal_coding to `undecided'.
12870
12871 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12872
12873 * fontset.c (free_realized_fontsets): Check that the table entry does
12874 contain a fontset before trying to compare it to `base'.
12875
12876 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12877 syms_of_charset, and syms_of_coding earlier because init_window_once
12878 now needs Vcoding_system_hash_table to be setup.
12879
12880 * coding.h (default_buffer_file_coding): Remove.
12881
12882 * coding.c (default_buffer_file_coding): Remove.
12883 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12884 than ->symbol, and use the terminal-local coding system.
12885 (syms_of_coding): Don't setup the coding-systems that are not
12886 terminal-local.
12887 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12888
12889 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12890 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12891
12892 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12893 in chartab.c and were re-added here by mistake.
12894 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12895
12896 * doc.c (Fsnarf_documentation):
12897 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12898 src to etc.
12899
12900 * ChangeLog.10: Add mistakenly removed entry.
12901
129022008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12903
12904 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12905
129062008-02-01 Miles Bader <miles@gnu.org>
12907
12908 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12909 Add extra args to FACE_FOR_CHAR.
12910
129112008-02-01 Kenichi Handa <handa@m17n.org>
12912
12913 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12914 in sequence.
12915
12916 * chartab.c (map_sub_char_table, map_char_table): If the range
12917 contains just one character, call the function with that character
12918 even if the depth is not 3.
12919
129202008-02-01 Jason Rumney <jasonr@gnu.org>
12921
12922 * w32font.c (w32font_text_extents): Calculate metrics for the
12923 whole string.
12924
129252008-02-01 Jason Rumney <jasonr@gnu.org>
12926
12927 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12928
129292008-02-01 Jason Rumney <jasonr@gnu.org>
12930
12931 * w32term.c (x_set_glyph_string_clipping): Use
12932 get_glyph_string_clip_rects.
12933 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12934 Adjust for the change of struct glyph_string.
12935
12936 * w32font.c (w32font_draw): Do clipping here.
12937
129382008-02-01 Kenichi Handa <handa@m17n.org>
12939
12940 * xftfont.c (xftfont_draw): Adjust for the change of struct
12941 glyph_string.
12942
12943 * xterm.c (x_set_glyph_string_clipping): Use
12944 get_glyph_string_clip_rects.
12945 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12946 Adjust for the change of struct glyph_string.
12947
12948 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12949 the resulting clip(s}.
12950 (expose_overlaps): Add arg r. Change callers. Set it to
12951 row->clip temporarily.
12952 (expose_window): Redraw rows overlapping the exposed area.
12953
12954 * dispextern.h (struct glyph_row): New member clip.
12955 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12956 clip_height, new member clip, and num_clips.
12957
129582008-02-01 Kenichi Handa <handa@m17n.org>
12959
12960 * data.c (Fchar_or_string_p): Fix docstring.
12961
129622008-02-01 Kenichi Handa <handa@m17n.org>
12963
12964 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12965 create a temporary XftDraw object.
12966
129672008-02-01 Kenichi Handa <handa@m17n.org>
12968
12969 * font.c (Ffontp): Fix docstring.
12970
12971 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12972 strong evidence of ISO-2022.
12973
129742008-02-01 Kenichi Handa <handa@m17n.org>
12975
12976 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12977 SYNTAX_ENTRY_FOLLOW_PARENT.
12978
129792008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12980
12981 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12982 its type.
12983 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12984 Update to the new type of weak_hash_tables and next_weak.
12985
12986 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12987 a plain C pointer to Lisp_Hash_Table.
12988
12989 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12990 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12991 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12992 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12993 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12994 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12995 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12996 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12997 (GC_EQ): Remove since they've been identical to their non-GC_
12998 alter-egos ever since the markbit was eradicated.
12999
13000 * alloc.c:
13001 * buffer.c:
13002 * buffer.h:
13003 * data.c:
13004 * fileio.c:
13005 * filelock.c:
13006 * fns.c:
13007 * frame.h:
13008 * lisp.h:
13009 * macterm.c:
13010 * print.c:
13011 * process.c:
13012 * w32fns.c:
13013 * w32menu.c:
13014 * w32term.c:
13015 * xfns.c:
13016 * xmenu.c:
13017 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13018
130192008-02-01 Kenichi Handa <handa@m17n.org>
13020
13021 * chartab.c (map_sub_char_table): Make it work for the top-level
13022 char-table. Fix handling of parent char-table.
13023 (map_char_table): Adjust for the above change.
13024
130252008-02-01 Jason Rumney <jasonr@gnu.org>
13026
13027 * w32font.c (Qgdi): Rename from Qw32.
13028
130292008-02-01 Jason Rumney <jasonr@gnu.org>
13030
13031 * w32bdf.c (get_quoted_string): Make function static.
13032
130332008-02-01 Kenichi Handa <handa@m17n.org>
13034
13035 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13036 bigger ascent and descent than those of the font, use them as
13037 font's ascent and descent.
13038
130392008-02-01 Kenichi Handa <handa@m17n.org>
13040
13041 * Makefile.in (${lispsource}international/charprop.el): Move this
13042 target within "#ifdef HAVE_UNIDATA" and "#endif".
13043
130442008-02-01 Kenichi Handa <handa@m17n.org>
13045
13046 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13047 (shortlisp): Add ../lisp/language/tai-viet.el.
13048
130492008-02-01 Ulrich Mueller <ulm@gentoo.org>
13050
13051 * Makefile.in (${lispsource}international/charprop.el): Depend on
13052 temacs${EXEEXT}.
13053
130542008-02-01 Jason Rumney <jasonr@gnu.org>
13055
13056 * w32font.c (w32font_close): Delete the GDI font object.
13057
13058 * w32menu.c: Include character.h.
13059
13060 * w32proc.c: Likewise.
13061
13062 * w32select.c: Likewise.
13063
13064 * makefile.w32-in (w32proc.o): Depend on character.h.
13065
130662008-02-01 Jason Rumney <jasonr@gnu.org>
13067
13068 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13069
13070 * w32menu.c (syms_of_w32menu): Likewise.
13071
13072 * w32proc.c (syms_of_ntproc): Likewise.
13073
13074 * w32select.c (syms_of_w32select): Likewise.
13075
13076 * w32term.c (syms_of_w32term): Likewise.
13077
130782008-02-01 Jason Rumney <jasonr@gnu.org>
13079
13080 * w32font.c (w32font_draw): Delete brush after using it.
13081
130822008-02-01 Jason Rumney <jasonr@gnu.org>
13083
13084 * w32font.c (w32font_open): Don't set font_idx.
13085 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13086 to font settings.
13087 (w32font_draw): Fill background explicitly.
13088
130892008-02-01 Jason Rumney <jasonr@gnu.org>
13090
13091 * w32term.c (w32_initialize): Don't call w32font_initialize.
13092
13093 * w32font.c (w32font_info): Remove subranges.
13094 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13095 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13096 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13097 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13098 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13099 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13100 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13101 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13102 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13103 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13104 New symbols.
13105 (font_callback_data): New struct.
13106 (w32font_list, w32font_match): Use it.
13107 (w32font_open): Don't populate subranges.
13108 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13109 (w32font_encode_char): Always return unicode code-point as-is.
13110 (w32font_text_extents): Supply a transformation matrix to
13111 GetGlyphOutline. Never look up by glyph index. Avoid looping
13112 twice. Use unicode version of GetTexExtentPoint32 instead of
13113 glyph index version.
13114 (set_fonts_frame): Remove.
13115 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13116 set frame parameter. Use backward compatible fake foundries.
13117 Save generic family in extra slot under QCfamily. Make width slot
13118 constant. Save QCspacing value. Save list of scripts instead of
13119 binary subranges.
13120 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13121 (add_font_entity_to_list): Use font_callback_data struct. Filter
13122 unwanted fonts.
13123 (add_one_font_entity_to_list): Use font_callback_data struct.
13124 (w32_registry): Default to iso10646_1.
13125 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13126 string font registries. Don't fill in font name if it is a generic
13127 family name, fill family instead. Use spacing, family and script
13128 extra info to fill pitch, family and charset fields.
13129 (list_all_matching_fonts): Use font_callback_data struct.
13130 (unicode_range_for_char): Remove.
13131 (font_supported_scripts): New function.
13132 (w32font_initialize): Remove.
13133 (syms_of_w32font): Update which symbols are defined.
13134
131352008-02-01 Jason Rumney <jasonr@gnu.org>
13136
13137 * font.c (font_pixel_size): Reverse assq_no_quit args.
13138
13139 * w32term.h (FONT_WIDTH): Report max width, not average.
13140 (FONT_MAX_WIDTH): Remove.
13141 (FONT_AVG_WIDTH): New macro.
13142
13143 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13144 redefinition of FONT_WIDTH.
13145
13146 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13147 (w32_cache_char_metrics): Use FONT_WIDTH.
13148
13149 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13150
131512008-02-01 Jason Rumney <jasonr@gnu.org>
13152
13153 * w32font.c (w32font_open): Make lfHeight negative.
13154
13155 * w32fns.c (x_default_font_parameter): Use new style font name.
13156 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13157
131582008-02-01 Jason Rumney <jasonr@gnu.org>
13159
13160 * w32font.c (QCsubranges): New symbol.
13161 (w32font_open, w32font_has_char): Get subranges from subproperty
13162 of extra.
13163 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13164 (syms_of_w32font): Define :subranges symbol.
13165
13166 * font.c (font_put_extra): Expose externally.
13167
13168 * font.h (font_put_extra): Move declaration from font.c.
13169
13170 * font.c (Ffont_get): Use font driver to determine otf capability.
13171 (adjust_anchor): Check if driver defines anchor_point before using.
13172
13173 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13174 (w32font_draw): Use options.
13175 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13176 Fix detection of truetype fonts.
13177 (registry_to_w32_charset): Handle charsets other than iso8859-1
13178 expressed as lisp symbols.
13179 (w32_registry): Express charset as lisp symbol.
13180 (fill_in_logfont): Reverse pixel and point height logic.
13181 Don't set width here. Set quality to default.
13182
13183 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13184 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13185
13186 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13187 Remove redundant loop and allocation.
13188
13189 * makefile.w32-in (font.o, w32font.o): New objects.
13190 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13191 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13192
13193 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13194 STORE_XCHARB a valid l-value.
13195
13196 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13197 calculations for non-Truetype fonts.
13198 (x_draw_glyph_string): Sync with xterm.c.
13199 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13200 Remove redundant code.
13201 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13202
13203 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13204 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13205
13206 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13207 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13208
13209 * w32font.c: New file for w32 font backend.
13210
132112008-02-01 Kenichi Handa <handa@m17n.org>
13212
13213 * term.c: Don't include "buffer.h" twice.
13214
132152008-02-01 Kenichi Handa <handa@m17n.org>
13216
13217 * character.c (Funibyte_string): New function.
13218 (syms_of_character): Defsubr it.
13219
132202008-02-01 Jason Rumney <jasonr@gnu.org>
13221
13222 * w32term.c [USE_FONT_BACKEND]:
13223 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13224 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13225 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13226 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13227 (x_free_frame_resources): Sync with xterm.c.
13228
132292008-02-01 Andreas Schwab <schwab@suse.de>
13230
13231 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13232 char-table size.
13233
132342008-02-01 Kenichi Handa <handa@m17n.org>
13235
13236 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13237
132382008-02-01 Kenichi Handa <handa@m17n.org>
13239
13240 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13241 font_otf_gpos, add font_drive_otf.
13242
13243 * fontset.c (fontset_find_font): Pay attention to font size
13244 specified for a font.
13245 (reorder_font_vector): Check contents of font_def.
13246
13247 * font.c (struct otf_list): Delete it.
13248 (otf_list): Make it a lisp variable.
13249 (otf_open): Use lispy otf_list.
13250 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13251 (check_otf_features): New function.
13252 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13253 New functions.
13254 (font_drive_otf): New function merging font_otf_gsub and
13255 font_otf_gpos.
13256 (font_open_for_lface): New arg spec. Change argument order.
13257 (font_load_for_face): Adjust for the change of font_open_for_lface.
13258 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13259 Ffont_otf_gpos.
13260 (syms_of_font): Staticpro otf_list. Delete defsubr of
13261 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13262
13263 * xfaces.c (set_font_frame_param): Adjust for the change of
13264 font_open_for_lface.
13265
13266 * font.h (font_open_for_lface): Adjust prototype.
13267 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13268 member otf_drive.
13269 (font_otf_gsub, font_otf_gpos): Delete externs.
13270 (font_drive_otf): Extern it.
13271
132722008-02-01 Kenichi Handa <handa@m17n.org>
13273
13274 * font.c (font_at): If the window W is not on a window system,
13275 return Qnil.
13276
13277 * coding.c (produce_chars, encode_coding): Don't call
13278 insert_from_gap if no characters to produce.
13279
132802008-02-01 Kenichi Handa <handa@m17n.org>
13281
13282 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13283 Fclear_face_cache.
13284
13285 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13286
132872008-02-01 Miles Bader <miles@gnu.org>
13288
13289 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13290 Parse "--disable-font-backend" option.
13291 (standard_args): Add "--disable-font-backend" option.
13292
132932008-02-01 Kenichi Handa <handa@m17n.org>
13294
13295 * fontset.c (fontset_find_font): New function.
13296 (fontset_font): Use fontset_find_font.
13297 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13298 Register the specified font for all Latin characters.
13299 (new_fontset_from_font): Register the specified font for all Latin
13300 characters.
13301 (dump_fontset): For a realized fontset, include the base fontset
13302 name in the returned vector.
13303
133042008-02-01 Kenichi Handa <handa@m17n.org>
13305
13306 * character.h (CHAR_STRING): Cast C to unsigned on calling
13307 char_string.
13308
13309 * character.c (char_string): Type of arg C changed to unsigned.
13310 Signal an error if C is an invalid character code.
13311
13312 * editfns.c (general_insert_function, Fchar_to_string):
13313 Use CHARACTERP, not INTEGERP.
13314
133152008-02-01 Kenichi Handa <handa@m17n.org>
13316
13317 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13318 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13319
13320 * regex.c (analyse_first): Fix for multibyte characters in "case
13321 charset:" and "case categoryspec:".
13322
133232008-02-01 Andreas Schwab <schwab@suse.de>
13324
13325 * Makefile.in (LIBES): Move standard libraries to the end.
13326
133272008-02-01 Kenichi Handa <handa@m17n.org>
13328
13329 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13330 nonzero, don't shrink the buffer nextb.
13331
13332 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13333
13334 * coding.c (coding_alloc_by_making_gap): New arg offset.
13335 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13336 offset.
13337 (decode_coding_iso_2022): Update coding->safe_charsets.
13338 (decode_coding_gap): Temporarily set
13339 current_buffer->text->inhibit_shrinking to 1.
13340
133412008-02-01 Kenichi Handa <handa@m17n.org>
13342
13343 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13344 indexing into elements of s->cmp and s->char2b.
13345
133462008-02-01 Juanma Barranquero <lekktu@gmail.com>
13347
13348 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13349
133502008-02-01 Kenichi Handa <handa@m17n.org>
13351
13352 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13353 target_multibyte instead of multibyte.
13354 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13355 (bcmp_translate): Change the argument name from multibyte to
13356 target_multibyte.
13357
133582008-02-01 Kenichi Handa <handa@m17n.org>
13359
13360 These changes are to compile a regexp into a pattern that can be
13361 used both for multibyte and unibyte targets.
13362
13363 * Makefile.in (search.o): Depend on charset.h.
13364
13365 * character.c (multibyte_char_to_unibyte_safe): New function.
13366
13367 * search.c: Include "charset.h".
13368 (compile_pattern_1): Delete argument multibyte. Don't set
13369 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13370 (compile_pattern): Don't compare cp->buf.target_multibyte.
13371 Compare cp->buf.charset_unibyte.
13372 (compile_pattern): Set cp->buf.target_multibyte.
13373
13374 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13375
13376 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13377
13378 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13379 multibyte. Change callers.
13380 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13381 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13382 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13383 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13384 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13385 (regex_compile): Make the compiled pattern usable both for
13386 multibyte and unibyte targets.
13387 (analyse_first): Make the fastmap usable both for multibyte and
13388 unibyte targets.
13389 (TRANSLATE_VIA_MULTIBYTE): Delete.
13390 (re_match_2_internal): Pay attention to the case that the
13391 multibyteness of bufp and target may be different.
13392
133932008-02-01 Kenichi Handa <handa@m17n.org>
13394
13395 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13396 empty box occupy at least one column width.
13397
133982008-02-01 Miles Bader <miles@gnu.org>
13399
13400 * Makefile.in: Remove redundant HAVE_XFT clause.
13401
134022008-02-01 Kenichi Handa <handa@m17n.org>
13403
13404 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13405
134062008-02-01 Kenichi Handa <handa@m17n.org>
13407
13408 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13409 being nil.
13410
134112008-02-01 Kenichi Handa <handa@m17n.org>
13412
13413 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13414
134152008-02-01 Kenichi Handa <handa@m17n.org>
13416
13417 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13418
134192008-02-01 Kenichi Handa <handa@m17n.org>
13420
13421 * search.c (simple_search): Fix previous change.
13422
134232008-02-01 Kenichi Handa <handa@m17n.org>
13424
13425 * xftfont.c (ftfont_font_format): Extern declaration.
13426
13427 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13428
13429 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13430 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13431
13432 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13433 (ftfont_font_format): Fix previous change.
13434
13435 * font.h (Ffont_xlfd_name): EXFUN it.
13436
13437 * font.c (font_parse_xlfd): Fix the array size of `f'.
13438 (register_font_driver): Use EQ to compare driver->type.
13439
13440 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13441 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13442 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13443
134442008-02-01 Kenichi Handa <handa@m17n.org>
13445
13446 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13447 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13448
134492008-02-01 Kenichi Handa <handa@m17n.org>
13450
13451 * xfont.c (xfont_open): Set font->format.
13452
13453 * xftfont.c (xftfont_open): Set font->format.
13454
13455 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13456 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13457 (ftfont_open): Set font->format.
13458 (ftfont_font_format): New function.
13459
13460 * font.h (struct font): New member format.
13461
13462 * font.c (Qopentype): New variable.
13463 (syms_of_font): Defsym it.
13464 (Fquery_font): Change the format of the last element of the return
13465 value.
13466
134672008-02-01 Kenichi Handa <handa@m17n.org>
13468
13469 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13470 last resort.
13471
134722008-02-01 Kenichi Handa <handa@m17n.org>
13473
13474 * coding.c (detect_coding_charset): Fix detection of multi-byte
13475 charset.
13476
134772008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13478
13479 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13480
134812008-02-01 Kenichi Handa <handa@m17n.org>
13482
13483 * xdisp.c (get_next_display_element): Set it->face_id for the
13484 first component of a composition.
13485 (x_produce_glyphs): Check if the font is changed or not for composition.
13486
134872008-02-01 Kenichi Handa <handa@m17n.org>
13488
13489 * fontset.c (Qlatin): New variable.
13490 (syms_of_fontset): Define it as a lisp symbol.
13491 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13492
134932008-02-01 Kenichi Handa <handa@m17n.org>
13494
13495 * font.c (font_unparse_fcname): Pay attention to the case that
13496 some of font property is a null string.
13497
134982008-02-01 Kenichi Handa <handa@m17n.org>
13499
13500 * term.c: Include "composite.h".
13501 (encode_terminal_code): Output all components of composition.
13502 Check the size of encode_terminal_src.
13503 (produce_glyphs): For composition, call produce_composite_glyph.
13504 (append_composite_glyph, produce_composite_glyph): New functions.
13505
13506 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13507 is not found, get font_info from the current ascii face.
13508
135092008-02-01 Kenichi Handa <handa@m17n.org>
13510
13511 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13512 buffer-file-name to Qnil before calling insert_from_buffer.
13513
13514 * font.c (font_unparse_fcname): Pay attention to the case that
13515 foundry is a null string.
13516
135172008-02-01 Kenichi Handa <handa@m17n.org>
13518
13519 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13520
13521 * font.c (Qunicode_sip): New variable.
13522 (syms_of_font): Declare it as a Lisp symbol.
13523
13524 * font.h (Qunicode_sip): Extern it.
13525
135262008-02-01 Kenichi Handa <handa@m17n.org>
13527
13528 * composite.c (get_composition_id): Pay attention to TAB component.
13529
13530 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13531 TAB. Adjust for the change of s->char2b which always points to
13532 the first element of allocated memory.
13533
13534 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13535
13536 * xdisp.c (handle_composition_prop): Set it->c to the first
13537 non-TAB component.
13538 (fill_composite_glyph_string): Change argument.
13539 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13540 (x_produce_glyphs): Fix handling of left/right padding.
13541
135422008-02-01 Kenichi Handa <handa@m17n.org>
13543
13544 * coding.c (detect_coding_system): Fix for handling off
13545 inhibit_iso_escape_detection. Fix for the case that no coding
13546 system is defined for a specific coding category.
13547
135482008-02-01 Kenichi Handa <handa@m17n.org>
13549
13550 * font.c (font_matching_entity): Delete unused local var.
13551
13552 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13553 opening a font.
13554
13555 * fileio.c (Finsert_file_contents): On recovering a file, assume
13556 Unix-like eol.
13557 (choose_write_coding_system): On auto-saving a file, force
13558 Unix-like eol.
13559
13560 * coding.c (setup_coding_system): Fix setting of
13561 coding->common_flags based on eol_type.
13562 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13563 inherit from it.
13564
135652008-02-01 Kenichi Handa <handa@m17n.org>
13566
13567 * alloc.c (NSTATICS): Increas to 0x600.
13568
135692008-02-01 Kenichi Handa <handa@m17n.org>
13570
13571 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13572 (ftfont_list): Don't check :name property.
13573 (ftfont_match): New function.
13574 (ftfont_pattern_entity): If the pattern doesn't contain
13575 FC_SPACING, don't assume FC_MONO.
13576
13577 * font.h (struct font_driver): New member `match'.
13578 (font_update_drivers): Adjust prototype.
13579
13580 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13581 property of FONT.
13582 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13583 them unconditionally.
13584 (font_matching_entity): New function.
13585 (font_open_by_name): Try font_matching_entity if exact match is
13586 not found.
13587 (font_update_drivers): Delete the arg FONT. Return a list of
13588 actually used backends. Don't free faces, font caches here.
13589 Don't store data in frame parameters. Don't call x_set_font.
13590 (Ffont_spec): Store :name property as is.
13591 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13592 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13593 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13594 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13595 Call font->driver->otf_gsub instead of font_otf_gsub.
13596
13597 * frame.c (x_set_font_backend): Do more works that were done in
13598 font_update_drivers before.
13599
13600 * xfont.c (xfont_match): New function.
13601 (xfont_driver): Set xfont_driver.match to xfont_match.
13602 (xfont_draw): Set font in GC if necessary.
13603
13604 * ftxfont.c (ftxfont_match): New function.
13605 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13606
13607 * xftfont.c (xftfont_match): New function.
13608 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13609
136102008-02-01 Kenichi Handa <handa@m17n.org>
13611
13612 * font.h (struct font): New member scalable.
13613 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13614 (font_otf_gsub): Adjust prototype.
13615
13616 * font.c (font_otf_capability): Fix handling of the default langsys.
13617 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13618 Check the contents of SPEC.
13619 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13620 (check_gstring): New function.
13621 (REPLACEMENT_CHARACTER): New macro.
13622 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13623 glyph codes of GSTRING.
13624 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13625 (font_prepare_composition): Set cmp->glyph_len.
13626 (font_open_entity): Set font->scalable.
13627 (Ffont_get): Handle :otf property.
13628 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13629 functions.
13630 (Fquery_font): Use font->font.full_name.
13631 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13632 Sfont_otf_alternates.
13633
13634 * ftfont.c (ftfont_open): Set font->font.full_name and
13635 font->font.name properly. Fix calculation of font->font.height
13636 and font->min_width.
13637
13638 * ftxfont.c (ftxfont_create_gcs): New function.
13639 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13640 (ftxfont_draw_backgrond): Fix filling region.
13641 (ftxfont_default_fid): New function.
13642 (ftxfont_open): Set xfont->fid to the return value of
13643 ftxfont_default_fid.
13644 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13645 (ftxfont_done_face): Free only GCs that are created by
13646 ftxfont_create_gcs.
13647 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13648
13649 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13650 Clip to src->width, etc (not src->clip_XXX).
13651
13652 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13653 FontBackend frame parameter.
13654
136552008-02-01 Kenichi Handa <handa@m17n.org>
13656
13657 * font.h (struct font_driver_list): New member `on'.
13658 (Fclear_font_cache): EXFUN it.
13659 (font_update_drivers): Extern it.
13660
13661 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13662 (font_list_entities): Check driver_list->on.
13663 (register_font_driver): Initalize `on' member to 0.
13664 (font_update_drivers): New function.
13665 (Fclear_font_cache): Check driver_list->on.
13666
13667 * frame.h (Qfont_backend): Extern it.
13668 (x_set_font_backend): Extern it.
13669
13670 * frame.c (Qfont_backend): New variable.
13671 (frame_parms): New element for font-backend.
13672 (x_set_font_backend): New function.
13673
13674 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13675 FontBackend frame parameter.
13676 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13677 x_set_font_backend.
13678
13679 * xfont.c (xfont_list): Don't try listing by :name property if the
13680 name is not for XLFD.
13681
136822008-02-01 Kenichi Handa <handa@m17n.org>
13683
13684 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13685 (LGLYPH_SET_TO): New macros.
13686 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13687 element of G is vector or not.
13688 (font_at): Extern it.
13689
13690 * font.c: Include window.h.
13691 (font_lispy_object): New function.
13692 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13693 end of valid glyph.
13694 (font_close_object): Fix getting (struct font *).
13695 (font_at): New function.
13696 (Ffont_get): If FONT is a font-object, get entity from it.
13697 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13698 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13699 range check.
13700 (Ffont_at): New function.
13701 (syms_of_font): Defsubr Sfont_at.
13702
13703 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13704 before the entry for Qcomposition.
13705 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13706 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13707 the font in gstring.
13708 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13709 LGLYPH_FORM (g) to detect the end of valid glyph.
13710 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13711 we are composing with gstring.
13712
13713 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13714 Check if adjustment is vector or not.
13715
13716 * Makefile.in (font.o): Make it depends on window.h.
13717
137182008-02-01 Kenichi Handa <handa@m17n.org>
13719
13720 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13721 adjustment is vector or not.
13722
137232008-02-01 Miles Bader <miles@gnu.org>
13724
13725 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13726
137272008-02-01 Kenichi Handa <handa@m17n.org>
13728
13729 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13730 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13731 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13732
13733 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13734 (DEVICE_DELTA): Fix typo.
13735 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13736 LGLYPH format.
13737
13738 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13739 the change of LGLYPH format.
13740
137412008-02-01 Kenichi Handa <handa@m17n.org>
13742
13743 * ftfont.c (ftfont_list): Fix typo.
13744 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13745
137462008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13747
13748 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13749
13750 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13751 xftface_info is non-NULL.
13752
137532008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13754
13755 * ftfont.c (ftfont_list): Move misplaced #endif.
13756
137572008-02-01 Kenichi Handa <handa@m17n.org>
13758
13759 * ftfont.c (ftfont_list): Pay attention to the case that
13760 FC_CAPABILITY is not defined.
13761
137622008-02-01 Kenichi Handa <handa@m17n.org>
13763
13764 * xftfont.c (xftfont_open): Set charset related members to -1.
13765
13766 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13767 QCname.
13768 (ftfont_open): Set charset related members to -1.
13769
13770 * fontset.c (Votf_script_alist): New variable.
13771 (syms_of_fontset): Initialize it.
13772 (fontset_font): Delete unused variable.
13773
13774 * fontset.h (Votf_script_alist): Extern it.
13775
13776 * font.c (font_find_for_lface): Optimize code.
13777
13778 * font.h (font_close_object, font_merge_old_spec): Extern them.
13779
137802008-02-01 Kenichi Handa <handa@m17n.org>
13781
13782 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13783 (syms_of_font): Initialize them.
13784 (font_pixel_size): Allow float value in dpi.
13785 (font_prop_validate_type): Delete.
13786 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13787 Change caller.
13788 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13789 (font_prop_validate_extra): Delete.
13790 (font_prop_validate_spacing): New function.
13791 (font_property_table): Add elements for all known properties.
13792 (get_font_prop_index): Rename from check_font_prop_name. New
13793 argument FROM. Change caller.
13794 (font_prop_validate): Validate all known properties.
13795 (font_put_extra): Delete argument force. Change caller.
13796 (font_expand_wildcards): Make it static. Fix the way of shrinking
13797 the possible range.
13798 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13799 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13800 Change caller.
13801 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13802 (font_parse_fcname): Delete argument merge. Fix parsing of point
13803 size. Don't validate properties values here. Change caller.
13804 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13805 (font_open_by_name): Delete unused variable.
13806 (Ffont_spec): Likewise. Validate property values.
13807 (Ffont_match_p): New function.
13808
13809 * font.h (QCscalable): Extern it.
13810 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13811
13812 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13813
13814 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13815 (xfont_list_pattern): New function.
13816 (xfont_list): Use xfont_list_pattern.
13817
138182008-02-01 Kenichi Handa <handa@m17n.org>
13819
13820 * font.h (Flist_fonts): EXFUN it.
13821
138222008-02-01 Jason Rumney <jasonr@gnu.org>
13823
13824 * w32term.c (w32_initialize): Add back smoothing_type and
13825 smoothing_enabled definitions.
13826
138272008-02-01 Kenichi Handa <handa@m17n.org>
13828
13829 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13830 s->face->font on determining underline position.
13831
138322008-02-01 Kenichi Handa <handa@m17n.org>
13833
13834 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13835 (font_has_char): Accept font-object too.
13836 (font_find_for_lface): Try at first with a size specified in face.
13837
138382008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13841 font_open_by_name.
13842
138432008-02-01 Kenichi Handa <handa@m17n.org>
13844
13845 * font.h (QCspacing, QCdpi): Extern them.
13846 (enum font_spacing): New enum.
13847 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13848
13849 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13850 (QCspacing, QCdpi): New variables.
13851 (syms_of_font): Initialize them.
13852 (font_pixel_size): New function.
13853 (font_put_extra): New function.
13854 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13855 in FONT_EXTRA.
13856 (font_parse_fcname): Handle enumerated values (e.g. bold).
13857 Fix handling font size. Add QCname property that contains only
13858 unknown properties.
13859 (font_score): Change argument. Change caller. Pay attention to
13860 FONT_PIXEL_SIZE_QUANTUM.
13861 (font_sort_entites, font_list_entities, font_find_for_lface)
13862 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13863 (Ffont_spec): Add QCname property that contains only unknown properties.
13864
13865 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13866 include weight in listing pattern, instead check weight of each
13867 listed font. Don't include scalable in pattern. Pay attention to
13868 FONT_PIXEL_SIZE_QUANTUM.
13869
138702008-02-01 Kenichi Handa <handa@m17n.org>
13871
13872 * font.c (font_parse_fcname): Fix parsing of point-size.
13873 (font_unparse_fcname): Produce symbolic names for style properties.
13874 (font_list_entities): Handle float size correctly.
13875 (font_open_by_name): Prefer `normal' property values if the name
13876 doesn't specify them.
13877
13878 * fontset.c (Finternal_char_font): Use font_get_name, not
13879 Ffont_xlfd_name.
13880
13881 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13882 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13883 pattern. Don't force scalable.
13884
13885 * xftfont.c (xftfont_open): For generating a name, start from
13886 96-byte buffer.
13887
138882008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13889
13890 * frame.h (x_new_fontset2): Fix prototype.
13891
138922008-02-01 Kenichi Handa <handa@m17n.org>
13893
13894 * font.h (struct font_driver): Delete member parse_name.
13895 (font_match_p, font_get_spec, font_parse_fcname)
13896 (font_unparse_fcname): Extern them.
13897 (font_get_name): Adjust prototype.
13898
13899 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13900 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13901 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13902 unnecessary checks for weight, slant, and swidth.
13903 (font_parse_fcname): New function.
13904 (font_unparse_fcname): New function.
13905 (font_parse_name): New function.
13906 (font_match_p): New function.
13907 (font_get_name): Change return value to Lisp string.
13908 (font_get_spec): New function.
13909 (Qunspecified, Qignore_defface): Don't extern them.
13910 (font_find_for_lface): Assume that LFACE is fully specified.
13911 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13912 object, use it for FACE.
13913 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13914 driver->parse_name.
13915 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13916
13917 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13918 prototype.
13919
13920 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13921 argument F. Don't call Fnew_fontset. Instead, directly call
13922 make_fontset.
13923
13924 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13925
13926 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13927 of x_new_fontset2.
13928
13929 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13930 (Qsans__serif): New variables.
13931 (ftfont_generic_family_list): New variable.
13932 (syms_of_ftfont): Initialize the above variables.
13933 (ftfont_pattern_entity): Delete argument NAME.
13934 (ftfont_list_generic_family): New function.
13935 (ftfont_parse_name): Delete this function.
13936 (ftfont_list): Try generic family only when FcFontList found no font.
13937 (ftfont_list_family): Fix args to FcObjectSetBuild.
13938
13939 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13940 object in attrs[LFACE_FONT_INDEX].
13941 (set_lface_from_font_name): Cancel all changes for font-backend.
13942 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13943 function.
13944 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13945 font object in QCfont attribute.
13946 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13947 (realize_default_face) [USE_FONT_BACKEND]: Call
13948 set_lface_from_font_and_fontset.
13949
13950 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13951 "fixed", and signal error here if no suitable font was found.
13952
13953 * xfont.c (xfont_parse_name): Delete this function.
13954
13955 * xftfont.c (xftfont_open): Change coding style of error
13956 handling. Generate fontconfig's fontname pattern.
13957
13958 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13959 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13960
13961 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13962 Both args FONTSET and FONT_OBJECT must be existing ones.
13963
139642008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13965
13966 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13967
139682008-02-01 Kenichi Handa <handa@m17n.org>
13969
13970 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13971
13972 * font.h (struct font): Fix typo.
13973
13974 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13975 XLFD_XXX_INDEX.
13976 (enum xlfd_field_mask): New enum.
13977 (intern_font_field): Changed argument. Change caller. If digits
13978 are followed by non-digits, return a symbol.
13979 (font_expand_wildcards): New function.
13980 (font_parse_xlfd): Fix wildcard handling.
13981 (Ffont_spec): If :name is specified, reflect the info in the other
13982 properties.
13983
13984 * ftfont.c (ftfont_pattern_entity): Fix typo.
13985 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13986 locale.
13987
139882008-02-01 Kenichi Handa <handa@m17n.org>
13989
13990 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13991
13992 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13993 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13994 registry doesn't specify encoding part.
13995 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13996 (font_open_by_name): At first try parsing the name.
13997 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13998 as Lisp symbols.
13999
14000 * fontset.c (reorder_font_vector): Pay attention to the case that
14001 the 3rd element of font_def is nil.
14002 (fontset_font): For the default fontset, append one more fontset
14003 elements for a script-based font specification. Don't add script
14004 attribute on finding a font.
14005 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14006 font name.
14007 (fontset_ascii_font): If a font can't be opened, return nil.
14008
14009 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14010 (ftfont_pattern_entity): New function.
14011 (ftfont_get_cache): Assume that freetype_font_cache is already
14012 initialized.
14013 (ftfont_list): Handle the case that a file is specified in font
14014 name. Use ftfont_pattern_entity to generate entities.
14015 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14016 (syms_of_ftfont): Initialize freetype_font_cache.
14017
14018 * xftfont.c (xftfont_open): Make the font name fontconfig's
14019 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14020 (xftfont_close): Free font->font.name if not NULL.
14021
14022 * xfont.c (xfont_list): If script is specified for a font, return
14023 null_vector.
14024 (xfont_list_family): Declare argument type.
14025
14026 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14027 name, set LFACE_FONT (lface) to nil.
14028
14029 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14030 return Qnil.
14031
140322008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14035 (standard_args): Add "-enable-font-backend".
14036
140372008-02-01 Kenichi Handa <handa@m17n.org>
14038
14039 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14040 (struct xftdraw_list, xftdraw_list): Delete them.
14041 (register_xftdraw, check_xftdraw): Delete them.
14042 (xftfont_prepare_face): Don't call register_xftdraw.
14043 (xftfont_done_face): Don't call check_xftdraw.
14044 (xftfont_draw): Get background color only when with_background is
14045 nonzero.
14046
14047 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14048
140492008-02-01 Kenichi Handa <handa@m17n.org>
14050
14051 These changes are for the new font handling codes.
14052
14053 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14054 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14055 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14056 (FONTSRC, FONTOBJ): New variables.
14057 (obj): Add $(FONTOBJ).
14058 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14059 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14060 @LIBOTF_LIBS@.
14061 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14062 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14063
14064 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14065
14066 * character.h (Vscript_representative_chars): Extern it.
14067
14068 * character.c (Vscript_representative_chars): New variable.
14069 (syms_of_character): Declare it as a Lisp variable.
14070
14071 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14072 enable_font_backend is nonzero, accept the composition method
14073 COMPOSITION_WITH_GLYPH_STRING.
14074
14075 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14076 enumeration COMPOSITION_WITH_GLYPH_STRING.
14077
14078 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14079 members clip_x, clip_y, clip_width, and clip_height.
14080 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14081
14082 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14083 --enable-font-backend. Call syms_of_font.
14084
14085 * fns.c (assoc_no_quit): New function.
14086
14087 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14088 (face_for_font, new_fontset_from_font)
14089 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14090
14091 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14092 (fontset_font, fontset_ascii, face_for_char)
14093 (make_fontset_for_ascii_face, Ffont_info)
14094 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14095 is nonzero, use font-backend mechanism.
14096 (find_font_encoding): Make it non-static.
14097 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14098 New functions.
14099
14100 * frame.h (struct frame): New members resx and resy.
14101 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14102 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14103
14104 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14105 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14106
14107 * lisp.h (assoc_no_quit): Extern it.
14108
14109 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14110 Through out the file, use FONT_INFO_FROM_FACE instead of
14111 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14112 rif->per_char_metric.
14113 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14114 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14115 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14116 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14117 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14118 nonzero, use font-backend mechanism.
14119 (get_per_char_metric): New function.
14120
14121 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14122 (set_lface_from_font_name)
14123 (set_font_frame_param, free_realized_face)
14124 (prepare_face_for_display, clear_face_gcs)
14125 (Finternal_set_font_selection_order, realize_x_face)
14126 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14127 font-backend mechanism.
14128 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14129 (load_face_font) [USE_FONT_BACKEND]: Abort.
14130 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14131 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14132
14133 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14134 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14135 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14136 nonzero, register all available font drivers. Call
14137 x_default_font_parameter for deciding a font.
14138 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14139
14140 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14141 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14142 (x_set_glyph_string_clipping_exactly)
14143 (x_compute_glyph_string_overhangs)
14144 (x_draw_glyph_string_foreground)
14145 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14146 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14147 enable_font_backend is nonzero, use font-backend mechanism.
14148 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14149
141502008-02-01 Kenichi Handa <handa@m17n.org>
14151
14152 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14153 system_eol_type.
14154 (syms_of_coding): Initialize system_eol_type.
14155
14156 * process.c (Fset_process_coding_system): Inherit system's eol
14157 format if necessary.
14158
141592008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14160
14161 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14162
141632008-02-01 Kenichi Handa <handa@m17n.org>
14164
14165 * coding.c (decode_eol): Pay attention to buffer relocation in
14166 del_range_2.
14167 (decode_coding): Call decode_eol before restoring undo_list.
14168
141692008-02-01 Kenichi Handa <handa@m17n.org>
14170
14171 * charset.c (Fdefine_charset_internal): Fix setting of
14172 emacs_mule_bytes.
14173
141742008-02-01 Kenichi Handa <handa@m17n.org>
14175
14176 * keyboard.c (read_char): Check if C is a character or not before
14177 looking up Vkeyboard_translate_table.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14182 condition to terminate the loop.
14183
141842008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * coding.c (produce_composition): Compare charbuf[i] instead of
14187 args[i] against 0.
14188 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14189
141902008-02-01 Kenichi Handa <handa@m17n.org>
14191
14192 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14193 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14194 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14195 detect_coding.
14196 (emacs_mule_char): Handle old style (Emacs 20) component character
14197 of a composition.
14198 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14199 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14200 composition rule.
14201 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14202
142032008-02-01 Kenichi Handa <handa@m17n.org>
14204
14205 * coding.c (encode_coding_ccl): Allocate destination dynamically
14206 when necessary.
14207
142082008-02-01 Kenichi Handa <handa@m17n.org>
14209
14210 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14211 the loop. When quitted, show a proper error message.
14212
142132008-02-01 Kenichi Handa <handa@m17n.org>
14214
14215 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14216 src->clip_head and src->clip_tail temporarily instead of src->hl.
14217
14218 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14219 character sequence.
14220 (Fccl_execute_on_string): Use ASET, not XSET.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14225
142262008-02-01 Kenichi Handa <handa@m17n.org>
14227
14228 * coding.c (decode_coding): Fix the condition of terminating the
14229 decoding loop.
14230
142312008-02-01 Kenichi Handa <handa@m17n.org>
14232
14233 * data.c (Faset): On setting a character bigger than 255 in a
14234 unibyte string, signal an error instead of make the string multibyte.
14235
142362008-02-01 Kenichi Handa <handa@m17n.org>
14237
14238 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14239 made by a mapping table.
14240
142412008-02-01 Kenichi Handa <handa@m17n.org>
14242
14243 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14244 not.
14245 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14246 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14247
14248 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14249 s->face is NULL or not.
14250
142512008-02-01 Kenichi Handa <handa@m17n.org>
14252
14253 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14254 (x_draw_glyph_string): Fix drawing of right_overhang and
14255 left_overhang around/on cursor.
14256
14257 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14258
142592008-02-01 Kenichi Handa <handa@m17n.org>
14260
14261 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14262
142632008-02-01 Kenichi Handa <handa@m17n.org>
14264
14265 * coding.c (Fdefine_coding_system_internal)
14266 (Fdefine_coding_system_alias): Avoid a duplicated element in
14267 Vcoding_system_alist.
14268
142692008-02-01 Kenichi Handa <handa@m17n.org>
14270
14271 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14272
14273 * coding.c (Qcoding_system_define_form): New variable.
14274 (syms_of_coding): Intern and staticpro it.
14275 (Fcoding_system_p): Check Qcoding_system_define_form.
14276 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14277
14278 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14279 Fcoding_system_p.
14280 (CHECK_CODING_SYSTEM): If ID is not available, call
14281 Fcheck_coding_system.
14282 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14283 Try also Fcheck_coding_system.
14284
142852008-02-01 Kenichi Handa <handa@m17n.org>
14286
14287 * coding.c (code_conversion_restore): GCPRO arg.
14288
142892008-02-01 Kenichi Handa <handa@m17n.org>
14290
14291 * character.c (lisp_string_width): Check multibyteness of STRING.
14292
142932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14294
14295 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14296 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14297 (decode_mac_font_name): Use decode_coding_c_string instead of
14298 decode_coding.
14299 (x_load_font): Initialize fontp->fontset to -1. Set
14300 fontp->encoding_type.
14301
143022008-02-01 Kenichi Handa <handa@m17n.org>
14303
14304 * search.c (search_buffer): Give up BM search on case-fold-search
14305 if one of a target character has a case-equivalence of different
14306 byte length even if that target charcter is an ASCII.
14307 (simple_search): Fix calculation of byte length of matched text.
14308 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14309
143102008-02-01 Kenichi Handa <handa@m17n.org>
14311
14312 * coding.c (decode_coding): Fix handling of invalid bytes.
14313
143142008-02-01 Kenichi Handa <handa@m17n.org>
14315
14316 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14317 Unicode characters.
14318
143192008-02-01 Kenichi Handa <handa@m17n.org>
14320
14321 * coding.c (encode_coding_object): If a pre-write-conversion
14322 function makes a new buffer, kill it.
14323
143242008-02-01 Kenichi Handa <handa@m17n.org>
14325
14326 * coding.c (QCascii_compatible_p): New variable.
14327 (syms_of_coding): Initialize it.
14328 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14329 calling string_char.
14330 (record_conversion_result): Add `default:' case.
14331 (coding_charset_list): Delete unused variable `coding_type'.
14332 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14333 property in the plist of the coding system.
14334 (Fcoding_system_put): Check QCascii_compatible_p.
14335
143362008-02-01 Miles Bader <miles@gnu.org>
14337
14338 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14339 removed calculation of frame `f', as it's now used.
14340
143412008-02-01 Kenichi Handa <handa@m17n.org>
14342
14343 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14344 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14345 (UNIDATA): New variable.
14346 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14347 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14348 $(RUN_TEMACS) unconditionally.
14349
143502008-02-01 Kenichi Handa <handa@m17n.org>
14351
14352 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14353 (admindir): New variable.
14354 ($(lispsource)international/charprop.el): New target.
14355
143562008-02-01 Miles Bader <miles@gnu.org>
14357
14358 * character.c (chars-in-region): Remove obsolete function.
14359 (syms_of_character): Remove its initialization.
14360
143612008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14362
14363 * w32select.c (validate_coding_system)
14364 (setup_windows_coding_system): New functions.
14365 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14366 setup_windows_coding_system.
14367 (setup_config, Fw32_get_clipboard_data): Use
14368 validate_coding_system.
14369 (Fx_selection_exists): Move call to setup_config to a place
14370 where signals are allowed.
14371
14372 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14373 (Fcheck_coding_system): Add declarations.
14374
143752008-02-01 Kenichi Handa <handa@m17n.org>
14376
14377 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14378
143792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14380
14381 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14382 string as the second argument for x_new_fontset.
14383
143842008-02-01 Kenichi Handa <handa@m17n.org>
14385
14386 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14387 (encode_coding_object): Use safe_call instead of call2.
14388
143892008-02-01 Kenichi Handa <handa@m17n.org>
14390
14391 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14392
14393 * Makefile.in (lisp): Include charprop.el.
14394
143952008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14396
14397 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14398 Not sure if it's unnecessary.
14399
144002008-02-01 Steven Tamm <steventamm@mac.com>
14401
14402 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14403 some possibly unnecessary fontset checking code that crashed
14404 when creating a new frame.
14405
144062008-02-01 Kenichi Handa <handa@m17n.org>
14407
14408 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14409 lookup_face.
14410
14411 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14412
14413 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14414
144152008-02-01 Kenichi Handa <handa@m17n.org>
14416
14417 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14418 (coding_charset_list): New function.
14419
14420 * coding.h (coding_charset_list): Extern it.
14421
144222008-02-01 Kenichi Handa <handa@m17n.org>
14423
14424 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14425 concatenation of family and registry.
14426
144272008-02-01 Kenichi Handa <handa@m17n.org>
14428
14429 * character.h (BYTE8_STRING): Fix typo.
14430
14431 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14432 string to multibyte (sync to HEAD).
14433
14434 * casefiddle.c (casify_region): Handle changes in byte-length
14435 using replace_range_2 (sync to HEAD).
14436
144372008-02-01 Andreas Schwab <schwab@suse.de>
14438
14439 * chartab.c (map_char_table): GCPRO table and arg.
14440
144412008-02-01 Kenichi Handa <handa@m17n.org>
14442
14443 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14444 already at limit.
14445
144462008-02-01 Kenichi Handa <handa@m17n.org>
14447
14448 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14449 instead of fast_c_string_match_ignore_case.
14450 (find_font_encoding): Change argument to Lisp_Object. Use
14451 fast_string_match_ignore_case instead of
14452 fast_c_string_match_ignore_case. Change caller.
14453
144542008-02-01 Kenichi Handa <handa@m17n.org>
14455
14456 * xdisp.c (get_next_display_element): In unibyte case, decide to
14457 display in octal form by checking a character by
14458 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14459
14460 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14461
14462 * character.c (unibyte_has_multibyte_table): New variable.
14463
14464 * character.h (unibyte_has_multibyte_table): Extern it.
14465 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14466
144672008-02-01 Kenichi Handa <handa@m17n.org>
14468
14469 * coding.c (encode_coding_iso_2022): Fix handling of charset
14470 annotation.
14471
144722008-02-01 Kenichi Handa <handa@m17n.org>
14473
14474 * coding.c (setup_coding_system): If coding_system is nil, use
14475 Qundecided.
14476 (Fterminal_coding_system): Return nil if terminal coding system is
14477 `undecided'.
14478 (syms_of_coding): Define coding-system `undecided' here. Setup
14479 terminal_coding as `undecided'.
14480
144812008-02-01 Kenichi Handa <handa@m17n.org>
14482
14483 * xdisp.c (message_dolog, set_message_1): Call
14484 unibyte_char_to_multibyte with arg type int.
14485
14486 * lread.c (read1): Fix reading of a char-table.
14487
14488 * print.c (print_object): Include sub char-table in circularities
14489 detection.
14490
144912008-02-01 Kenichi Handa <handa@m17n.org>
14492
14493 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14494 Append the found sequences in car of ARGS instead of prepending.
14495
144962008-02-01 Kenichi Handa <handa@m17n.org>
14497
14498 * fileio.c (report_file_error): Make a unibyte string from
14499 strerror (errorno).
14500 (Fsubstitute_in_file_name): Fix the arg to
14501 unibyte_char_to_multibyte. It is evaluated twice.
14502
145032008-02-01 Kenichi Handa <handa@m17n.org>
14504
14505 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14506
145072008-02-01 Kenichi Handa <handa@m17n.org>
14508
14509 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14510 BOM is not found.
14511 (detect_coding, detect_coding_system): Optimization for ISO-2022
14512 when no 8-bit data is found.
14513
145142008-02-01 Jason Rumney <jasonr@gnu.org>
14515
14516 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14517
145182008-02-01 Kenichi Handa <handa@m17n.org>
14519
14520 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14521 CHARS.
14522
145232008-02-01 Steven Tamm <steventamm@mac.com>
14524
14525 * macterm.c (mac_encode_char): Add charset argument and update
14526 to use encoding_type.
14527 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14528 switch to pure fontset.
14529 (decode_mac_font_name): Temporarily remove decoding.
14530 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14531 (x_load_font): Temporarily remove encoding.
14532
145332008-02-01 Kenichi Handa <handa@m17n.org>
14534
14535 * xfaces.c (Fface_font): If frame is not on a window system,
14536 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14537 refer to face->font.
14538 (split_font_name_into_vector, build_font_name_from_vector)
14539 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14540 when HAVE_WINDOW_SYSTEM is defined.
14541
145422008-02-01 Kenichi Handa <handa@m17n.org>
14543
14544 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14545 (x_produce_glyphs): Fix setting of members of cmp in case
14546 cmp->glyph_len is zero.
14547
14548 * fontset.c (Fset_fontset_font): Fix docstring.
14549 (Ffontset_info): Make it backward compatible. New arg ALL.
14550
145512008-02-01 Kim F. Storm <storm@cua.dk>
14552
14553 * process.c (read_process_output): Grow decoding_buf when needed;
14554 this could cause a crash in allocate_string and compact_small_strings.
14555
145562008-02-01 Kenichi Handa <handa@m17n.org>
14557
14558 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14559
145602008-02-01 Kenichi Handa <handa@m17n.org>
14561
14562 * coding.c (setup_coding_system): Set coding->common_flags
14563 correctly for raw-text.
14564 (consume_chars): On encoding unibyte text by raw-text, don't check
14565 multibyte form.
14566 (encode_coding): On encoding by raw-text, never use translation tables.
14567
14568 * fileio.c (e_write): Short cut for the case of no encoding.
14569
145702008-02-01 Kenichi Handa <handa@m17n.org>
14571
14572 * coding.c (detect_coding, detect_coding_system): Delete unused
14573 variables.
14574
145752008-02-01 Kenichi Handa <handa@m17n.org>
14576
14577 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14578 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14579
145802008-02-01 Kenichi Handa <handa@m17n.org>
14581
14582 * coding.c (Ffind_coding_systems_region_internal): Include
14583 raw-text and no-conversion in the result.
14584
145852008-02-01 Kenichi Handa <handa@m17n.org>
14586
14587 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14588 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14589 FONT_DEF.
14590 (font_def_arg, add_arg, from_arg, to_arg): New args.
14591 (set_fontset_font): Change argument.
14592 (Fset_fontset_font): Fix for the case that TARGET is a script
14593 name and charset name.
14594 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14595
145962008-02-01 Kenichi Handa <handa@m17n.org>
14597
14598 * fontset.c (fontset_font): Rename from fontset_face. Change return
14599 value.
14600 (face_suitable_for_char_p, face_for_char): Adjust for the change
14601 of fontset_font.
14602 (make_fontset_for_ascii_face): Fix setting of the fontset element
14603 for ASCII.
14604 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14605 to get a font name.
14606 (Ffontset_info): Adjust for the change of fontset_font.
14607
14608 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14609
14610 * character.h (LEADING_CODE_LATIN_1_MIN)
14611 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14612
146132008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 * editfns.c (check_translation): New function.
14616 (Ftranslate_region_internal): Handle M:N mapping.
14617
146182008-02-01 Kenichi Handa <handa@m17n.org>
14619
14620 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14621
146222008-02-01 Kenichi Handa <handa@m17n.org>
14623
14624 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14625 goto invalid_code.
14626 (decode_coding_iso_2022): Fix handling of invalid designation.
14627
14628 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14629 after calling code_conversion_save.
14630
146312008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14634
14635 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14636
14637 * fontset.c: Include "intervals.h".
14638 (fontset_face): Fix comparing of Lisp_Objects.
14639 (free_face_fontset, new_fontset_from_font_name): Fix
14640 Lisp_Object/int mixup.
14641
14642 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14643
14644 * coding.c: Add many prototypes for static functions.
14645 (get_translation_table): Allow max_lookup to be NULL.
14646 (decode_coding, Ffind_coding_systems_region_internal)
14647 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14648 get_translation_table with max_lookup NULL.
14649
146502008-02-01 Kenichi Handa <handa@m17n.org>
14651
14652 * coding.c (get_translation_table): Declare it as Lisp_Object.
14653 (LOOKUP_TRANSLATION_TABLE): New macro.
14654 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14655 instead of CHAR_TABLE_REF.
14656
146572008-02-01 Kenichi Handa <handa@m17n.org>
14658
14659 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14660 annotation data format.
14661 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14662 Change arguments FROM and TO to single argument NCHARS. Change caller.
14663 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14664 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14665 (decode_coding_ccl, decode_coding_charset): Pay attention to
14666 coding->charbuf_used.
14667 (get_translation): New function.
14668 (produce_chars): New arguments translation_table and last_block.
14669 Translate characters here. Return number of carryover chars.
14670 Change caller.
14671 (produce_composition): New argument pos. Change caller.
14672 Adjust for the change of annotation data format.
14673 (produce_charset, produce_annotation): Likewise.
14674 (decode_coding, encode_coding): Don't call translate_chars.
14675 (consume_chars): New arg translation_table. Change caller.
14676 (translate_chars): Delete.
14677 (syms_of_coding): Make translation-table's number of extra slots 2.
14678
146792008-02-01 Kenichi Handa <handa@m17n.org>
14680
14681 * search.c (simple_search): Fix setting this_pos_byte in backward
14682 search.
14683
14684 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14685 byte sequence.
14686 (detect_coding_ccl): Fix setting of the variable valids.
14687
146882008-02-01 Kenichi Handa <handa@m17n.org>
14689
14690 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14691
14692 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14693
14694 * editfns.c (Ftranslate_region_internal): Rename from
14695 Ftranslate_region. Accept a char-table in TABLE.
14696 (syms_of_editfns): Defsubr Stranslate_region_internal.
14697
14698 * xfaces.c (set_lface_from_font_name): If a font is specified for
14699 a frame, generate a fontset from the font.
14700 (build_scalable_font_name): If the scalable font is requested for
14701 a specific size, don't change that size.
14702 (try_font_list): Try a scalable font also in the case that a
14703 pattern string is specified.
14704
147052008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * xfaces.c (Fface_font): New optional arg CHARACTER.
14708
147092008-02-01 Kenichi Handa <handa@m17n.org>
14710
14711 * charset.h (CHARSET_OFFSET): New macro.
14712
147132008-02-01 Kenichi Handa <handa@m17n.org>
14714
14715 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14716
14717 * fontset.c (fontset_face): Handle the case that repertory is a
14718 char-table.
14719 (find_font_encoding): Return nil for unknown encoding.
14720 (Fset_fontset_font): Ignore a font of unknown encoding.
14721
147222008-02-01 Kenichi Handa <handa@m17n.org>
14723
14724 * keymap.c (describe_vector): Handle default value of a char table.
14725
14726 * fontset.c (fontset_face): Handle fallback fonts correctly.
14727 (Ffontset_info): Return infomation about fallback fonts.
14728
147292008-02-01 Kenichi Handa <handa@m17n.org>
14730
14731 * fontset.c (FONTSET_DEFAULT): New macro.
14732 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14733 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14734 the case that it is nil.
14735 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14736 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14737
14738 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14739 subset or superset.
14740
147412008-02-01 Kenichi Handa <handa@m17n.org>
14742
14743 * emacs.c (main): Call init_charset after syms_of_XXX.
14744
14745 * charset.c (Vcharset_map_directory): Delete.
14746 (Vcharset_map_path): New variable.
14747 (load_charset_map_from_file): Use Vcharset_map_path instead.
14748 (init_charset): Initialize Vcharset_map_path.
14749 (syms_of_charset): Delete declaration of "charset-map-directory",
14750 add declaration of "charset-map-path".
14751
147522008-02-01 Kenichi Handa <handa@m17n.org>
14753
14754 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14755 ASCII only string.
14756
14757 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14758
14759 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14760 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14761
147622008-02-01 Kenichi Handa <handa@m17n.org>
14763
14764 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14765
14766 * coding.c (QCmnemonic, QCdefalut_char)
14767 (QCdecode_translation_table, QCencode_translation_table)
14768 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14769 (get_translation_table): Return a list of translation tables if
14770 necessary.
14771 (decode_coding): Call get_translation_table with ENCODEP 0.
14772 (char_encodable_p): If translation_table is non-nil, always call
14773 translate_char.
14774 (Fdefine_coding_system_internal): Accept list of translation
14775 tables as :encode-translation-table and :decode-translation-table.
14776 (Fcoding_system_put): New function.
14777 (syms_of_coding): Declare new symbols. Defsubr
14778 Scoding_system_put.
14779 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14780 typically JISX0212.
14781
14782 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14783 when the charset is superset type.
14784
14785 * character.c (translate_char): Accept list of translation tables.
14786
147872008-02-01 Kenichi Handa <handa@m17n.org>
14788
14789 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14790 (CODING_ATTR_TRANS_TBL): New macro.
14791
14792 * coding.c (get_translation_table): New function.
14793 (translate_chars): Fix the bug of skipping annotation data.
14794 (decode_coding, encode_coding): Utilize get_translation_table.
14795 (char_encodable_p, Funencodable_char_position): Translate char if
14796 necessary.
14797 (Ffind_coding_systems_region_internal)
14798 (Fcheck_coding_systems_region): Setup translation table for encode
14799 in a coding system attribute vector in advance.
14800 (Fdefine_coding_system_internal): Allow a symbol as translation
14801 table. For shift-jis type coding system, allow 4th charset.
14802
148032008-02-01 Kenichi Handa <handa@m17n.org>
14804
14805 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14806
14807 * xdisp.c (get_next_display_element): Pass -1 as POS to
14808 FACE_FOR_CHAR if displaying a C-string.
14809
148102008-02-01 Kenichi Handa <handa@m17n.org>
14811
14812 * composite.c (get_composition_id): Handle xoff and yoff in a
14813 composition rule.
14814
14815 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14816 (struct composition): New member lbearing and rbearing.
14817
14818 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14819 (x_get_glyph_overhangs): Handle a composition glyph.
14820 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14821
14822 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14823 composition glyph.
14824
148252008-02-01 Kenichi Handa <handa@m17n.org>
14826
14827 * print.c: Include charset.h.
14828 (Vprint_charset_text_property): New variable.
14829 (Qdefault): Extern it.
14830 (PRINT_STRING_NON_CHARSET_FOUND)
14831 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14832 (print_check_string_result): New variable.
14833 (print_check_string_charset_prop): New function.
14834 (print_prune_charset_plist): New variable.
14835 (print_prune_string_charset): New function.
14836 (print_object): Call print_prune_string_charset if
14837 Vprint_charset_text_property is not t.
14838 (print_interval): Print nothing if interval->plist is nil.
14839 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14840 variable. Init and staticpro print_prune_charset_plist.
14841
148422008-02-01 Kenichi Handa <handa@m17n.org>
14843
14844 * fontset.c (new_fontset_from_font_name): Use the specified font
14845 for all characters in the new fontset.
14846
14847 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14848 OBJECT args.
14849
14850 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14851 OBJECT args for composition too.
14852
14853 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14854 OBJECT args.
14855
148562008-02-01 Kenichi Handa <handa@m17n.org>
14857
14858 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14859
14860 * fontset.c (reorder_font_vector): Adjust for the change of
14861 FONT_DEF format.
14862 (fontset_face): New arg id. Change caller.
14863 (face_for_char): New args pos and object.
14864 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14865 (fs_query_fontset): Check NAME by Fassoc too.
14866 (Fset_fontset_font): Allow non-XLFD font name.
14867 (Ffontset_info): Adjust for the change of FONT_DEF format.
14868
14869 * fontset.h (face_for_char): Adjust prototype.
14870
14871 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14872 (append_space, extend_face_to_end_of_line)
14873 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14874 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14875
14876 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14877 POS and OBJECT args.
14878
14879 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14880 POS and OBJECT args.
14881
148822008-02-01 Jason Rumney <jasonr@gnu.org>
14883
14884 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14885 of GlobalAlloc'ed memory.
14886
148872008-02-01 Kenichi Handa <handa@m17n.org>
14888
14889 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14890
14891 * charset.h (charset_table_used): Delete extern.
14892
14893 * charset.c (charset_table_used): Make it static.
14894 (map_charset_chars): Fix args to c_function with.
14895
14896 * chartab.c (map_sub_char_table_for_charset): Fix args to
14897 c_function with.
14898
14899 * coding.h (enum coding_result_code): Delete
14900 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14901
14902 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14903 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14904 (Vlast_code_conversion_error): New variables.
14905 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14906 (ONE_MORE_BYTE): Record error if any instead of signaling an
14907 error. If non-ASCII multibyte char is found, return the negative
14908 value of the code. All callers changed to check it.
14909 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14910 (record_conversion_result): New function. Change all codes setting
14911 coding->result to call this function.
14912 (detect_coding_utf_8, decode_coding_utf_8)
14913 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14914 Don't use the local variable incomplete.
14915 (emacs_mule_char): Change the second arg to `const'.
14916 (decode_coding): Fix of flushing out unprocessed data.
14917 (make_conversion_work_buffer): Fix making of a work buffer.
14918 (decode_coding_object): Return coding->dst_object.
14919
14920 * fontset.c (set_fontset_font): Fix args.
14921
14922 * lisp.h (CHARACTERBITS): Define as 22.
14923
14924 * process.c (send_process): Be sure to set coding->src_multibyte.
14925
14926 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14927
149282008-02-01 Kenichi Handa <handa@m17n.org>
14929
14930 * xdisp.c (handle_auto_composed_prop): Give limit to
14931 Fnext_single_char_property_change.
14932
149332008-02-01 Kenichi Handa <handa@m17n.org>
14934
14935 * composite.c (syms_of_composite): Don't make the composition hash
14936 table weak.
14937
14938 * fontset.c (Fset_fontset_font): Fix docstring.
14939
14940 * lisp.h (detect_coding_system): Adjust prototype.
14941
14942 * fileio.c (kill_workbuf_unwind): Delete this function.
14943 (Finsert_file_contents): Adjust the call of detect_coding_system.
14944 Get conversion_buffer by code_conversion_save. Use the macro
14945 CODING_MAY_REQUIRE_DECODING. After decoding, update
14946 coding_system.
14947
14948 * coding.h (make_conversion_work_buffer): Delete extern.
14949 (code_conversion_save): Extern it.
14950
14951 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14952 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14953 (decode_coding_utf_8): Don't do eol converion.
14954 (detect_coding_utf_16): Check coding->src_chars, not
14955 coding->src_bytes. Add heuristics for those that have no signature.
14956 (decode_coding_emacs_mule, decode_coding_iso_2022)
14957 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14958 Don't do eol converion.
14959 (adjust_coding_eol_type): Return a new coding system.
14960 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14961 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14962 each change.
14963 (decode_coding): Pay attention to undo_list. Do eol conversion for
14964 all types of coding-systems (if necessary).
14965 (Vcode_conversion_work_buf_list): Delete it.
14966 (Vcode_conversion_reused_workbuf): Rename from
14967 Vcode_conversion_reused_work_buf.
14968 (Vcode_conversion_workbuf_name): New variable.
14969 (reused_workbuf_in_use): New variable.
14970 (make_conversion_work_buffer): Delete the arg DEPTH.
14971 (code_conversion_restore): Change argument to cons.
14972 (code_conversion_save): Delete the argument BUFFER. Change callers.
14973 (detect_coding_system): New argument src_chars. Change callers.
14974 Fix for utf-16 detection.
14975 (init_coding_once): Don't use ISO_carriage_return.
14976 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14977 reused_workbuf_in_use.
14978
149792008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * keymap.c (store_in_keymap): Pay attention to the case that idx
14982 is a cons specifying a character range.
14983
149842008-02-01 Kenichi Handa <handa@m17n.org>
14985
14986 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14987 HANDLED_RECOMPUTE_PROPS.
14988
14989 * coding.c (Fdefine_coding_system_internal): Fix checking of
14990 ascii compatibility.
14991
149922008-02-01 Kenichi Handa <handa@m17n.org>
14993
14994 * charset.c (find_charsets_in_text): Delete unused locale variable.
14995 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14996
14997 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14998 Resync charset_list to Vemacs_mule_charset_list.
14999
15000 * keymap.c (store_in_keymap): Pay attention to the case that idx
15001 is a cons specifying a character range.
15002
150032008-02-01 Kenichi Handa <handa@m17n.org>
15004
15005 * composite.c (update_compositions): Bind inhibit-read-only, etc
15006 to t before calling remove-list-of-text-properties.
15007
15008 * print.c (print_object): Always print ASCII chars as is.
15009
150102008-02-01 Kenichi Handa <handa@m17n.org>
15011
15012 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15013
15014 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15015 is a char table.
15016
150172008-02-01 Kenichi Handa <handa@m17n.org>
15018
15019 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15020
150212008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * xfaces.c (set_lface_from_font_name): Fix for the case that
15024 FONTNAME is not fontset name.
15025
150262008-02-01 Kenichi Handa <handa@m17n.org>
15027
15028 * fns.c (base64_encode_1): Fix previous change.
15029
150302008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * fontset.c (set_fontset_font): New function.
15033 (Fset_fontset_font): If a font is specified for a charset, use
15034 map_charset_chars to store the font spec in a fontset.
15035
150362008-02-01 Kenichi Handa <handa@m17n.org>
15037
15038 * fontset.c (fontset_face): Create a fallback fontset on demand.
15039 (make_fontset): Don't create a fallback fontset here.
15040 (free_face_fontset): Free a fallback fontset (if any) too.
15041 (n_auto_fontsets): Delete this variable.
15042 (auto_fontset_alist): New variable.
15043 (new_fontset_from_font_name): Check auto_fontset_alist.
15044 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15045 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15046 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15047 Defsubr Sfontset_list_all.
15048
150492008-02-01 Kenichi Handa <handa@m17n.org>
15050
15051 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15052
150532008-02-01 Kenichi Handa <handa@m17n.org>
15054
15055 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15056
150572008-02-01 Kenichi Handa <handa@m17n.org>
15058
15059 * editfns.c (Fgoto_char): Fix docstring.
15060
150612008-02-01 Kenichi Handa <handa@m17n.org>
15062
15063 * insdel.c (insert_from_gap): Adjust intervals correctly.
15064
150652008-02-01 Jason Rumney <jasonr@gnu.org>
15066
15067 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15068 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15069 (w32_initialize): Try to load it.
15070 (x_get_font_repertory): Use it if available.
15071 (w32_encode_char): Add shortcut for unicode output.
15072
15073 * w32fns.c (w32_load_system_font): Default charset to -1.
15074 (x_to_w32_charset): Match all fonts for unicode.
15075 (w32_to_x_charset): New parameter matching. Don't return partial
15076 or wildcard charsets.
15077 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15078 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15079 (w32_to_x_font): Match charset to real charset.
15080 (enum_font_cb2): Always list unicode versions.
15081
15082 * makefile.w32-in (temacs): Increase EMHEAP.
15083
150842008-02-01 Jason Rumney <jasonr@gnu.org>
15085
15086 * w32term.c (w32_encode_char): New charset parameter.
15087 font_info.encoding becomes encoding_type.
15088 (x_get_font_repertory): New function. Warning: stub only!
15089 (x_new_font): Return quickly if font already set.
15090 (x_new_fontset): fontsetname parameter is Lisp_Object.
15091 Use new fs_query_fontset. Try new_fontset_from_font_name.
15092 Use fontset_name for return value.
15093
15094 * w32term.h: Declare x_get_font_repertory.
15095
15096 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15097 place of find_charset_in_text. Use encode_coding_object in place
15098 of encode_coding.
15099 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15100 decode_coding.
15101
15102 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15103 of x_new_fontset.
15104 (w32_load_system_font): Initialize charset as unicode.
15105 font_info.encoding becomes encoding_type.
15106 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15107 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15108 (syms_of_w32fns): Set get_font_repertory_func.
15109
15110 * w32console.c: Include character.h. Use terminal_encode_buffer
15111 from term.c.
15112 (write_glyphs): Use new version of encode_terminal_code. Use
15113 encode_coding_object in place of encode_coding.
15114
15115 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15116 encoding becomes encoding_type.
15117
15118 * term.c (terminal_encode_buffer): Make externally visible.
15119
15120 * makefile.w32-in: Add character.h dependancies.
15121 (character.o, chartab.o): New targets.
15122
151232008-02-01 Kenichi Handa <handa@m17n.org>
15124
15125 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15126 CODING_ID_EOL_TYPE.
15127
151282008-02-01 Andreas Schwab <schwab@suse.de>
15129
15130 * coding.c (produce_chars): Revert last change.
15131
151322008-02-01 Kenichi Handa <handa@m17n.org>
15133
15134 * charset.h (charset_unicode): Extern it.
15135
15136 * charset.c (string_xstring_p): Check by (C >= 0x100).
15137 (find_charsets_in_text): Change format of the arc CHARSETS. New
15138 arg MULTIBYTE.
15139 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15140 change of find_charsets_in_text.
15141 (Fsplit_char): Fix doc. Never return unknown.
15142
15143 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15144
15145 * coding.c (Fdefine_coding_system_alias): Update
15146 Vcoding_system_list.
15147
15148 * fontset.c (load_font_get_repertory): Pay attention to the case
15149 that ENCODING of a font is specified by a char-table.
15150
15151 * xterm.c (x_get_font_repertory): Handle the case that the
15152 encoding of font is other than Unicode.
15153
151542008-02-01 Kenichi Handa <handa@m17n.org>
15155
15156 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15157 if a character is encodable by the terminal coding system. If
15158 not, produces proper number of `?'s. Update
15159 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15160 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15161
151622008-02-01 Kenichi Handa <handa@m17n.org>
15163
15164 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15165 variables.
15166 (encode_terminal_code): Change argument. Encode multiple
15167 characters at once. Store the result of encoding in
15168 terminal_encode_buffer.
15169 (write_glyphs, insert_glyphs): Adjust for the change of
15170 encode_terminal_code.
15171 (term_init): Initialize terminal_encode_buffer and
15172 terminal_encode_buf_size.
15173
15174 * coding.c (consume_chars): If coding->src_object is nil, don't
15175 check annotation.
15176
151772008-02-01 Kenichi Handa <handa@m17n.org>
15178
15179 * character.c (char_string): Use ASCII_CHAR_P instead of
15180 SINGLE_BYTE_CHAR_P.
15181
151822008-02-01 Kenichi Handa <handa@m17n.org>
15183
15184 * xdisp.c (handle_auto_composed_prop): Check if the last
15185 characters of auto-composed region is newly composed with the
15186 following characters.
15187 (handle_composition_prop): Fix checking of point being inside
15188 composition.
15189
151902008-02-01 Kenichi Handa <handa@m17n.org>
15191
15192 * fns.c (concat): Don't change multibyteness of the result by
15193 concatenating an 8-bit character.
15194
15195 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15196 multibyteness of the result when newelt is an 8-bit character.
15197
151982008-02-01 Dave Love <fx@gnu.org>
15199
15200 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15201 EMACS_INT.
15202
15203 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15204
15205 * xfaces.c (face_numeric_value): Declare dim size_t.
15206 (Finternal_lisp_face_equal_p): Remove unused f.
15207
15208 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15209 (MATRIX_ROW): Remove unused vars.
15210 (draw_glyphs, x_insert_glyphs, fast_find_position)
15211 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15212 byte/char counts.
15213
15214 * regex.c (regex_compile): Remove unused var.
15215
15216 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15217
15218 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15219 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15220
15221 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15222
15223 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15224
15225 * fileio.c (Fwrite_region): Remove unused var.
15226
15227 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15228 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15229
15230 * composite.c (Fremove_list_of_text_properties): Declare.
15231
15232 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15233 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15234 (coding_inherit_eol_type): Remove unused attrs.
15235 (detect_coding): Cast arg of detect_eol.
15236
15237 * charset.c (syms_of_charset): Remove unused var p.
15238 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15239 byte/char counts.
15240
15241 * casetab.c (set_case_table): Remove unused var.
15242
15243 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15244 unused vars.
15245
152462008-02-01 Dave Love <fx@gnu.org>
15247
15248 * xterm.c (x_bitmap_mask): Declare.
15249
152502008-02-01 Dave Love <fx@gnu.org>
15251
15252 * xterm.c (x_term_init): Fix type error.
15253
15254 * lisp.h: Add Funibyte_char_to_multibyte.
15255
15256 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15257 (Fset_coding_system_priority): Doc fix.
15258
15259 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15260
15261 * indent.c (check_composition): Make start and end EMACS_INT.
15262
15263 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15264
15265 * xdisp.c (handle_composition_prop, check_point_in_composition):
15266 Make buffer positions EMACS_INT.
15267
15268 * composite.c (find_composition, run_composition_function)
15269 (update_compositions, Ffind_composition_internal): Make buffer
15270 positions EMACS_INT.
15271
15272 * composite.h (find_composition, update_compositions): Make
15273 position args EMACS_INT.
15274
15275 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15276
15277 * intervals.c (get_property_and_range):
15278 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15279
15280 * unexalpha.c: Don't include varargs.h.
15281
152822008-02-01 Dave Love <fx@gnu.org>
15283
15284 * coding.h (ENCODE_UTF_8): New.
15285
15286 * Makefile.in (gtkutil.o): Depend on coding.h.
15287
15288 * coding.c (Fset_coding_system_priority): Doc fix.
15289
152902008-02-01 Kenichi Handa <handa@m17n.org>
15291
15292 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15293 the case of auto saving.
15294
152952008-02-01 Andreas Schwab <schwab@suse.de>
15296
15297 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15298 `range' from GC.
15299
153002008-02-01 Kenichi Handa <handa@m17n.org>
15301
15302 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15303
153042008-02-01 Kenichi Handa <handa@m17n.org>
15305
15306 * fileio.c (choose_write_coding_system): Return a decided coding system.
15307 (Fwrite_region): Set Vlast_coding_system_used to the return value
15308 of choose_write_coding_system.
15309
153102008-02-01 Kenichi Handa <handa@m17n.org>
15311
15312 * charset.c (Fset_charset_priority): Pay attention to duplicated
15313 arguments.
15314
15315 * coding.c (QCcategory): New variable.
15316 (syms_of_coding): Defsym it. Set all elements of
15317 Vcoding_category_table and their symbol values.
15318 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15319 coding-category-XXX, and coding-category-list.
15320 (Fdefine_coding_system_internal): Add category in the plist.
15321
153222008-02-01 Kenichi Handa <handa@m17n.org>
15323
15324 * callproc.c (Fcall_process): Handle carryover correctly.
15325
15326 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15327 (raw_text_coding_system): Check NILP (coding_system).
15328 (coding_inherit_eol_type): Check NILP (coding_system) and
15329 NILP (parent).
15330 (consume_chars): Fix for the case of raw-text.
15331
15332 * process.c (read_process_output): Handle carryover correctly.
15333
153342008-02-01 Dave Love <fx@gnu.org>
15335
15336 * regex.c (re_search_2): Fix last change.
15337
153382008-02-01 Kenichi Handa <handa@m17n.org>
15339
15340 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15341 target_multibyte. Even in a unibyte case, return a converted
15342 multibyte char.
15343 (GET_CHAR_AFTER): New macro.
15344 (PATFETCH): Translate via multibyte char.
15345 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15346 (SETUP_MULTIBYTE_RANGE): New macro.
15347 (regex_compile): Setup compiled code so that its multibyteness
15348 matches that of a target. Fix the handling of "[X-YZ]" using
15349 SETUP_MULTIBYTE_RANGE.
15350 (analyse_first) <charset>: For filling fastmap for all multibyte
15351 characters, don't check by BASE_LEADING_CODE_P.
15352 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15353 the same as RE_MULTIBYTE_P (bufp) now.
15354 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15355 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15356 (TRANSLATE_VIA_MULTIBYTE): New macro.
15357 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15358 It is the same as RE_MULTIBYTE_P (bufp) now.
15359 <exactn>: Translate via multibyte.
15360 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15361 translate it.
15362 <charset, charset_not>: Fetch a character by
15363 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15364 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15365 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15366 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15367 by GET_CHAR_AFTER.
15368 (bcmp_translate): Likewise.
15369
15370 * search.c (compile_pattern): Check the member target_multibyte,
15371 not the member multibyte of buf.
15372
15373 * lread.c (read1): While reading a string, set force_singlebyte
15374 and force_multibyte correctly.
15375
15376 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15377 up of unibyte_to_multibyte_table.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * coding.c (setup_coding_system): If coding has
15382 post-read-conversion or pre-write-conversion, set
15383 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15384 respectively.
15385 (decode_coding_gap): Run post-read-conversion if any.
15386
15387 * fileio.c (Finsert_file_contents): Even if we read into a
15388 unibyte buffer, check if we must decode the result or not.
15389
153902008-02-01 Kenichi Handa <handa@m17n.org>
15391
15392 * coding.c (make_conversion_work_buffer): Change the work buffer
15393 name to the same one as that of Emacs 21.
15394
153952008-02-01 Kenichi Handa <handa@m17n.org>
15396
15397 * coding.h (make_conversion_work_buffer): Adjust prototype.
15398 (code_conversion_restore): Don't extern it.
15399
15400 * coding.c (detected_mask): Delete unused variable.
15401 (decode_coding_iso_2022): Pay attention to the byte sequence of
15402 CTEXT extended segment, and retain those bytes as is.
15403 (decode_coding_ccl): Delete unused variable `valids'.
15404 (setup_coding_system): Delete unused variable `category'.
15405 (consume_chars): Delete unused variable `category'. Make it work
15406 for non-multibyte case.
15407 (make_conversion_work_buffer): Change argument.
15408 (saved_coding): Delete unused variable.
15409 (code_conversion_restore): Don't check saved_coding->destination.
15410 (code_conversion_save): New function.
15411 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15412 instead of record_unwind_protect.
15413 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15414 (detect_coding_system): Delete unused variable `mask'.
15415 (Fdefine_coding_system_internal): Delete unused variable id.
15416
15417 * fileio.c (kill_workbuf_unwind): New function.
15418 (Finsert_file_contents): On replacing, call
15419 make_conversion_work_buffer with correct args, and call
15420 record_unwind_protect with the first arg kill_workbuf_unwind.
15421
15422 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15423
154242008-02-01 Kenichi Handa <handa@m17n.org>
15425
15426 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15427 (fontset_add): Fix for the case that TO is less than TO1.
15428 (Ffontset_info): Don't use fallback fontset on checking the
15429 default fontset.
15430 (dump_fontset): New function for debugging.
15431
15432 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15433 coding_type is Qcharset.
15434
154352008-02-01 Kenichi Handa <handa@m17n.org>
15436
15437 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15438 (map_char_table): Don't inherit the value from the parent on
15439 initializing VAL. Adjust for the above change.
15440
154412008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * coding.c (Qsignature, Qendian): Delete these variables.
15444 (syms_of_coding): Don't initialize them.
15445 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15446 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15447 detect_info->found.
15448 (decode_coding_utf_16): Don't detect BOM here.
15449 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15450 is NOT utf_16_without_bom.
15451 (setup_coding_system): For a coding system of type utf-16, check
15452 if the attribute :endian is Qbig or not (not nil or not), and set
15453 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15454 (detect_coding): If coding type is utf-16 and BOM detection is
15455 required, detect it.
15456 (Fdefine_coding_system_internal): For a coding system of type
15457 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15458
154592008-02-01 Kenichi Handa <handa@m17n.org>
15460
15461 * coding.c (coding_set_source): Fix for the case that the current
15462 buffer is different from coding->src_object.
15463 (decode_coding_object): Don't use the conversion work buffer if
15464 DST_OBJECT is a buffer.
15465
154662008-02-01 Dave Love <fx@gnu.org>
15467
15468 * lread.c (read_emacs_mule_char) [len==2]: Index
15469 emacs_mule_charset correctly.
15470
154712008-02-01 Dave Love <fx@gnu.org>
15472
15473 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15474 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15475 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15476 treated specially.)
15477 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15478 (detected_mask): Remove Big5 bits.
15479
154802008-02-01 Kenichi Handa <handa@m17n.org>
15481
15482 The following changes are to make the font rescaling facility
15483 compatible with Emacs 21.
15484
15485 * xfaces.c (Vface_font_rescale_alist): Rename from
15486 Vface_resizing_fonts.
15487 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15488 (font_rescale_ratio): Rename from font_resizing_ratio.
15489 (split_font_name): Set font->rescale_ratio.
15490 (better_font_p): Pay attention to font->rescale_ratio.
15491 (build_scalable_font_name): Likewise. Change RESX, and RESY
15492 fields.
15493 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15494
154952008-02-01 Kenichi Handa <handa@m17n.org>
15496
15497 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15498 (Qutf_16_le): Remove these variables.
15499 (syms_of_coding): Don't DEFSYM them.
15500 (decode_coding_utf_16): Fix handling of BOM.
15501 (encode_coding_utf_16): Fix handling of BOM.
15502
155032008-02-01 Kenichi Handa <handa@m17n.org>
15504
15505 * fileio.c (Finsert_file_contents): On replacing, before decoding
15506 the file into the work buffer, set point of the work buffer to the end.
15507
155082008-02-01 Dave Love <fx@gnu.org>
15509
15510 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15511
155122008-02-01 Dave Love <fx@gnu.org>
15513
15514 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15515 and fix C types.
15516
155172008-02-01 Kenichi Handa <handa@m17n.org>
15518
15519 * xdisp.c (SKIP_GLYPHS): New macro.
15520 (set_cursor_from_row): Pay attention to string display properties.
15521
15522 * category.c (copy_category_entry): Fix for the case that RANGE
15523 is an integer.
15524
15525 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15526
15527 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15528
155292008-02-01 Kenichi Handa <handa@m17n.org>
15530
15531 * charset.c (Fcharset_id_internal): New function.
15532 (syms_of_charset): Defsubr it.
15533
15534 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15535 with the last arg charset_list acquired from coding.
15536 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15537 the attribute coding_attr_ccl_valids.
15538
15539 * coding.h (enum define_coding_ccl_arg_index): Set the first
15540 member coding_arg_ccl_decoder to coding_arg_max.
15541
15542 * ccl.h (ccl_driver): Adjust prototype.
15543
15544 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15545 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15546 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15547 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15548 last arg Qnil.
15549
155502008-02-01 Kenichi Handa <handa@m17n.org>
15551
15552 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15553 call encode_char.
15554
15555 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15556
155572008-02-01 Dave Love <fx@gnu.org>
15558
15559 * composite.c (syms_of_composite): Make composition_hash_table weak.
15560
155612008-02-01 Kenichi Handa <handa@m17n.org>
15562
15563 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15564 (font_name_registry): Don't extern them.
15565 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15566
15567 * fontset.h (Qfontset): Don't extern it.
15568 (new_fontset_from_font_name): Extern it.
15569
15570 * fontset.c: Give 8 extra slots to fontset objects.
15571 (Qfontset_info): New variable.
15572 (syms_of_fontset): Defsym it.
15573 (FONTSET_FALLBACK): New macro.
15574 (fontset_face): Try also the default fontset.
15575 (make_fontset): Realize a fallback fontset from the default fontset.
15576 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15577 using split_font_name_into_vector and build_font_name_from_vector.
15578 (Fset_fontset_font): Access the elements of font_spec by enum
15579 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15580 name by using split_font_name_into_vector.
15581 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15582 generate a proper font name from the fontset name. Update
15583 Vfontset_alias_alist.
15584 (n_auto_fontsets): New variable.
15585 (new_fontset_from_font_name): New function.
15586 (Ffont_info): Store the information about fonts generated from the
15587 default fontset in the first extra slot of the returned char-table.
15588
15589 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15590 (font_name_registry): Delete function.
15591 (split_font_name_into_vector): New function.
15592 (build_font_name_from_vector): New function.
15593 (font_list): The argument REGISTRY is now a list of registry names.
15594 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15595 specifies an explicit font name, return the name as is. Make a
15596 list of registy names.
15597
15598 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15599 of x_new_fontset.
15600 (Fx_create_frame): Don't call x_new_fontset here. Just use
15601 x_list_fonts to check the existence of fonts.
15602
15603 * xterm.h (x_new_fontset): Adjust prototype.
15604
15605 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15606 string. Use new_fontset_from_font_name to create a fontset from a
15607 font name.
15608
156092008-02-01 Kenichi Handa <handa@m17n.org>
15610
15611 * syntax.c (Vfind_word_boundary_function_table): New name for
15612 Vnext_word_boundary_function_table.
15613 (find-word-boundary-function-table): New name for
15614 next-word-boundary-function-table.
15615
156162008-02-01 Dave Love <fx@gnu.org>
15617
15618 * Makefile.in: Fix some dependencies.
15619
15620 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15621 set it to nil before returning.
15622
15623 * composite.c (update_compositions): Fix type error.
15624
15625 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15626
156272008-02-01 Kenichi Handa <handa@m17n.org>
15628
15629 * xterm.c (x_new_font): Optimize for the case that the font is
15630 already set for the frame.
15631
156322008-02-01 Kenichi Handa <handa@m17n.org>
15633
15634 * chartab.c (char_table_ascii): Check if the char table contents
15635 is sub-char-table or not.
15636 (char_table_set, char_table_set_range): Fix argument to
15637 char_table_ascii.
15638
15639 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15640 (detect_coding_utf_8, detect_coding_utf_16)
15641 (detect_coding_emacs_mule, detect_coding_iso_2022)
15642 (detect_coding_sjis, detect_coding_big5)
15643 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15644 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15645 sequence is valid in this coding system. Change callers.
15646 (MAX_ANNOTATION_LENGTH): New macro.
15647 (ADD_ANNOTATION_DATA): New macro.
15648 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15649 ADD_ANNOTATION_DATA. Change the format of annotation data.
15650 (ADD_CHARSET_DATA): New macro.
15651 (emacs_mule_char): New argument ID. Change callers.
15652 (decode_coding_emacs_mule, decode_coding_iso_2022)
15653 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15654 Produce charset annotation data in coding->charbuf.
15655 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15656 to charset annotation data in coding->charbuf.
15657 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15658 coding->common_flags if the coding system is iso-2022 based and
15659 uses designation.
15660 (produce_composition): Adjust for the new annotation data format.
15661 (produce_charset): New function.
15662 (produce_annotation): Handle charset annotation.
15663 (handle_composition_annotation, handle_charset_annotation): New
15664 functions.
15665 (consume_chars): Handle charset annotation. Utilize the above two
15666 functions.
15667 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15668 buffer, get the deleted text as a string and set
15669 coding->src_object to that string.
15670 (detect_coding, detect_coding_system): Use the new struct
15671 coding_detection_info.
15672
15673 * coding.h (struct coding_detection_info): New structure.
15674 (struct coding_system): Adjust prototype of the member `detector'.
15675 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15676
156772008-02-01 Kenichi Handa <handa@m17n.org>
15678
15679 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15680
156812008-02-01 Dave Love <fx@gnu.org>
15682
15683 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15684 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15685 to new local and nullify apropos_accumulate before returning.
15686 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15691 correctly.
e3eea1fc 15692
aac0c6e3
MR
156932008-02-01 Dave Love <fx@gnu.org>
15694
15695 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15696
156972008-02-01 Kenichi Handa <handa@m17n.org>
15698
15699 The following changes are to make character composition happen
15700 automatically on displaying.
15701
15702 * Makefile.in (lisp, shortlisp): Add composite.elc.
15703
15704 * composite.h (Qauto_composed, Vauto_composition_function)
15705 (Qauto_composition_function): Extern them.
15706
15707 * composite.c (Vcomposition_function_table)
15708 (Qcomposition_function_table): Delete variables.
15709 (Qauto_composed, Vauto_composition_function)
15710 (Qauto_composition_function): New variables.
15711 (run_composition_function): Don't call
15712 compose-chars-after-function.
15713 (update_compositions): Clear `auto-composed' text property.
15714 (compose_chars_in_text): Delete this function.
15715 (syms_of_composite): Staticpro Qauto_composed and
15716 Qauto_composition_function. Declare Vauto_composition_function as
15717 a Lisp variable.
15718
15719 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15720
15721 * xdisp.c (it_props): Add an entry for Qauto_composed.
15722 (handle_auto_composed_prop): New function.
15723
15724 * xselect.c (selection_data_to_lisp_data): Don't call
15725 compose_chars_in_text.
15726
157272008-02-01 Dave Love <fx@gnu.org>
15728
15729 * keyboard.c (read_char): Modify checking around use of
15730 Vkeyboard_translate_table.
15731
15732 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15733 and fix C types.
15734
157352008-02-01 Kenichi Handa <handa@m17n.org>
15736
15737 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15738 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15739 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15740 the case that the last byte is '\r' correctly.
15741 (decode_coding): Flush out the unprocessed data correctly.
15742 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15743
157442008-02-01 Dave Love <fx@gnu.org>
15745
15746 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15747 Add XK_ISO... case.
15748 (xaw_scroll_callback): Revert last change.
15749
157502008-02-01 Kenichi Handa <handa@m17n.org>
15751
15752 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15753
157542008-02-01 Kenichi Handa <handa@m17n.org>
15755
15756 * xfaces.c (Vface_resizing_fonts): New variable.
15757 (struct font_name): New member `resizing_ratio'.
15758 (font_resizing_ratio): New function.
15759 (split_font_name): Set font->resizing_ratio.
15760 (better_font_p): Pay attention to font->resizing_ratio.
15761 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15762 RESX, and RESY fields.
15763 (try_alternative_families): Try scalable fonts if
15764 Vscalable_fonts_allowed is not Qt.
15765 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15766
157672008-02-01 Dave Love <fx@gnu.org>
15768
15769 * xterm.c (xaw_scroll_callback): Cast correctly.
15770
157712008-02-01 Dave Love <fx@gnu.org>
15772
15773 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15774 (lispy_kana_keys): Comment out.
15775 (make_lispy_event) [XK_kana_A]: Comment out.
15776
15777 * xterm.c (xaw_scroll_callback): Cast call_data.
15778 (XTread_socket): Deal with ASCII keysyms.
15779 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15780
157812008-02-01 Dave Love <fx@gnu.org>
15782
15783 * xterm.c (Vx_keysym_table): New.
15784 (syms_of_xterm): Initialize it.
15785 (XTread_socket): Use it.
15786 From head: Eliminate incorrect optimization that tried to avoid
15787 decoding the output of X*LookupString.
15788 (x_get_font_repertory): Delete charset declaration.
15789
157902008-02-01 Kenichi Handa <handa@m17n.org>
15791
15792 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15793 return 0.
15794 (Fdefine_coding_system_internal): Setup
15795 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15796
157972008-02-01 Dave Love <fx@gnu.org>
15798
15799 * coding.c (Fcheck_coding_system): Doc fix.
15800
15801 * editfns.c (Finsert_byte): Return a proper value.
15802
158032008-02-01 Kenichi Handa <handa@m17n.org>
15804
15805 * coding.c (decode_coding): Fix args to translate_chars. Pay
15806 attention to Vstandard_translation_table_for_decode.
15807 (encode_coding): Fix args to translate_chars. Pay attention to
15808 Vstandard_translation_table_for_encode.
15809
15810 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15811 SINGLE_BYTE_CHAR_P.
15812
15813 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15814 not by SINGLE_BYTE_CHAR_P.
15815
15816 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15817 SINGLE_BYTE_CHAR_P.
15818
15819 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15820 SINGLE_BYTE_CHAR_P.
15821
15822 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15823 by SINGLE_BYTE_CHAR_P.
15824
15825 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15826 SINGLE_BYTE_CHAR_P.
15827
158282008-02-01 Dave Love <fx@gnu.org>
15829
15830 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15831
158322008-02-01 Dave Love <fx@gnu.org>
15833
15834 * fns.c (Flanginfo): Fix typo.
15835
15836 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15837
158382008-02-01 Kenichi Handa <handa@m17n.org>
15839
15840 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15841 (detect_coding_emacs_mule, detect_coding_iso_2022)
15842 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15843 incomplete byte sequence. Don't update *mask when correctly detected.
15844 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15845 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15846 (detect_coding, detect_coding_system): Adjust for the changes above.
15847
158482008-02-01 Kenichi Handa <handa@m17n.org>
15849
15850 * character.c (char_string): Rename from
15851 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15852 (string_char): Rename from string_char.
15853
15854 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15855 if C is greater than MAX_3_BYTE_CHAR.
15856 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15857 string_char instead of string_char_with_unification.
15858
158592008-02-01 Dave Love <fx@gnu.org>
15860
15861 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15862
158632008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * keymap.c (push_key_description): Pay attention to force_multibyte.
15866
15867 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15868
158692008-02-01 Dave Love <fx@gnu.org>
15870
15871 * charset.c (define_charset_internal): Rename `supprementary'.
15872
15873 * Makefile.in (lisp, shortlisp): Remove latin-N.
15874
158752008-02-01 Dave Love <fx@gnu.org>
15876
15877 * xfns.c (x_window, x_window): Use use_xim.
15878
15879 * xterm.c (use_xim): Initialize.
15880 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15881 (x_term_init): Maybe set use_xim.
15882
15883 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15884
158852008-02-01 Kenichi Handa <handa@m17n.org>
15886
15887 * search.c (search_buffer): Fix case-fold-search of multibyte
15888 characters.
15889 (boyer_moore): Rename the last argument to char_high_bits.
15890
158912008-02-01 Kenichi Handa <handa@m17n.org>
15892
15893 * xdisp.c (display_string): Fix for the case of zero width glyph.
15894
15895 * xfns.c (x_set_font): Change the error message of the case that
15896 x_new_fontset returns Qt.
15897
15898 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15899 (Finternal_set_lisp_face_attribute): Use signal_error for the
15900 error of invalid fontset.
15901
15902 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15903 fontset, return Qt.
15904
159052008-02-01 Dave Love <fx@gnu.org>
15906
15907 * unexelf.c (unexec): Make .got handling not SGI-specific.
15908
15909 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15910
15911 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15912
15913 * keyboard.c (read_key_sequence): Fix type error.
15914
15915 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15916 type error.
15917
15918 * fontset.c (fontset_add): Return Lisp_Object.
15919
159202008-02-01 Dave Love <fx@gnu.org>
15921
15922 * charset.h (charset_ordered_list_tick): Declare extern.
15923
159242008-02-01 Kenichi Handa <handa@m17n.org>
15925
15926 The following changes (and some of 2008-02-01 changes of mine) are
15927 for handling syntax, category, and case conversion for unibyte
15928 characters by converting them to multibyte on the fly. With these
15929 changes, we don't have to setup syntax and case tables for unibyte
15930 characters in each language environment.
15931
15932 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15933 multibyte if necessary.
15934
15935 * bytecode.c (Fbyte_code): Likewise.
15936
15937 * character.h (LEADING_CODE_LATIN_1_MIN)
15938 (LEADING_CODE_LATIN_1_MAX): New macros.
15939 (unibyte_to_multibyte_table): Extern it.
15940 (unibyte_char_to_multibyte): New macro.
15941 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15942 (CHAR_LEADING_CODE): New macro.
15943 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15944
15945 * character.c (unibyte_to_multibyte_table): New variable.
15946 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15947 (multibyte_char_to_unibyte): If C is an eight-bit character,
15948 convert it to the corresponding byte value.
15949
15950 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15951 not 1, signals an error. Update the elements of
15952 unibyte_to_multibyte_table.
15953 (init_charset_once): Initialize unibyte_to_multibyte_table.
15954 (syms_of_charset): Define the charset `iso-8859-1'.
15955
15956 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15957 as is without converting it to unibyte. In a unibyte buffer,
15958 convert C to multibyte before checking the syntax.
15959
15960 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15961
15962 * minibuf.c (Fminibuffer_complete_word): Use the macro
15963 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15964
15965 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15966
15967 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15968 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15969 that is zero, convert an eight-bit char to multibyte.
15970 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15971 non-emacs case.
15972 (PATFETCH): Convert an eight-bit char to multibyte.
15973 (HANDLE_UNIBYTE_RANGE): New macro.
15974 (regex_compile): Setup the compiled pattern for multibyte chars
15975 even if the given regex string is unibyte. Use PATFETCH_RAW
15976 instead of PATFETCH in many places. To handle `charset'
15977 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15978 only for ASCII chars.
15979 (analyse_first) <exactn>: Simplify because the compiled pattern
15980 is multibyte.
15981 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15982 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15983 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15984 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15985 multibyte always 1.
15986 (re_search_2): In emacs, set the locale variable multibyte to 1,
15987 otherwise to 0. New local variable target_multibyte. Check it
15988 to decide the multibyteness of STR1 and STR2. If
15989 target_multibyte is zero, convert unibyte chars to multibyte
15990 before translating and checking fastmap.
15991 (TARGET_CHAR_AND_LENGTH): New macro.
15992 (re_match_2_internal): In emacs, set the locale variable multibyte
15993 to 1, otherwise to 0. New local variable target_multibyte. Check
15994 it to decide the multibyteness of STR1 and STR2. Use
15995 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15996 <charset, charset_not>: If multibyte is nonzero, check fastmap
15997 only for ASCII chars. Call bcmp_translate with
15998 target_multibyte, not with multibyte.
15999 <begline>: Declare the local variable C as `unsigned'.
16000 (bcmp_translate): Change the last arg name to target_multibyte.
16001
16002 * search.c (compile_pattern_1): Don't adjust the multibyteness of
16003 the regexp pattern and the matching target. Set cp->buf.multibyte
16004 to the multibyteness of the regexp pattern. Set
16005 cp->but.target_multibyte to the multibyteness of the matching target.
16006 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16007 FETCH_STRING_CHAR_ADVANCE.
16008 (Freplace_match): Convert unibyte chars to multibyte.
16009
16010 * syntax.c (char_quoted, back_comment, scan_words)
16011 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16012 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16013 unibyte chars to multibyte.
16014 (skip_chars): Delete the arg syntaxp, and move the code for
16015 handling syntaxes to skip_syntaxes. Change callers.
16016 Fix the case that the multibyteness of STRING and the current
16017 buffer doesn't match.
16018 (skip_syntaxes): New function.
16019 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16020 SINGLE_BYTE_CHAR_P.
16021
160222008-02-01 Kenichi Handa <handa@m17n.org>
16023
16024 * xfaces.c (QCfontset): New variable.
16025 (LFACE_FONTSET): New macro.
16026 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16027 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16028 (Finternal_set_lisp_face_attribute)
16029 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16030 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16031 check also LFACE_FONTSET_INDEX.
16032 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16033 attrs[LFACE_FONT_INDEX].
16034 (syms_of_xfaces): Intern and staticpro QCfontset.
16035
16036 * dispextern.h (enum lface_attribute_index): New member
16037 LFACE_FONTSET_INDEX.
16038
16039 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16040
160412008-02-01 Kenichi Handa <handa@m17n.org>
16042
16043 * coding.c (coding_set_destination): Fix coding->destination for
16044 the case converting a region.
16045 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16046 (encode_coding_object): Fix coding->dst_pos and
16047 coding->dst_pos_byte for the case converting a region.
16048
16049 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16050
16051 * character.h (BYTE8_STRING): New macro.
16052
16053 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16054
160552008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16058 characters by octal form.
16059
16060 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16061
16062 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16063 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16064 _fetch_multibyte_char_len.
16065 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16066
16067 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16068
16069 * casefiddle.c (casify_object): Simplify. Handle the case that
16070 the case conversion change the byte length.
16071 (casify_region): Likewise.
16072
16073 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16074
16075 * character.c (_fetch_multibyte_char_len): Delete this variable.
16076 (syms_of_character): Setup Vprintable_chars.
16077
16078 * editfns.c (Fchar_equal): Fix for the unibyte case.
16079 (Finsert_byte): New function.
16080 (syms_of_editfns): Defsubr it.
16081
16082 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16083 of direct code 0x3ffff.
16084
16085 * search.c (Freplace_match): Fix for the unibyte case.
16086
160872008-02-01 Kenichi Handa <handa@m17n.org>
16088
16089 * lread.c (safe_to_load_p): Fix the logic.
16090
16091 * syntax.c (scan_words): Don't treat characters belonging to
16092 different scripts as constituting a word.
16093
16094 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16095
16096 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16097
16098 * emacs.c (main): In the case of --unibyte, instead of aborting on
16099 finding non-empty buffer, make it unibyte.
16100
161012008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16104 to create a fontset.
16105
161062008-02-01 Dave Love <fx@gnu.org>
16107
16108 * character.c (Funibyte_char_to_multibyte): Doc fix.
16109
16110 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16111
161122008-02-01 Kenichi Handa <handa@m17n.org>
16113
16114 * fontset.c (fontset_add): Make the type `int'.
16115 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16116
16117 * character.c (unibyte_char_to_multibyte)
16118 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16119 charset_unibyte, not charset_primary.
16120
16121 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16122
16123 * charset.c (charset_unibyte): Rename from charset_primary.
16124 (Funibyte_charset): Rename from Fprimary_charset.
16125 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16126 (syms_of_charset): Adjust for the above changes.
16127
16128 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16129 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16130 it->multibyte_p is zero.
16131
16132 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16133 Delete extern.
16134
161352008-02-01 Kenichi Handa <handa@m17n.org>
16136
16137 * coding.c (Fdefine_coding_system_internal): Fix category setting
16138 for a coding system of type iso-2022.
16139
161402008-02-01 Kenichi Handa <handa@m17n.org>
16141
16142 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16143
161442008-02-01 Kenichi Handa <handa@m17n.org>
16145
16146 * syntax.c (Vnext_word_boundary_function_table): New variable.
16147 (next-word-boundary-function-table): Declare it as a Lisp variable
16148 in syms_of_syntax.
16149 (scan_words): Call functions in Vnext_word_boundary_function_table
16150 if any.
16151
16152 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16153
16154 * fontset.c (fs_load_font): If fontp->charset is not negative,
16155 return fontp without setting its members.
16156
161572008-02-01 Dave Love <fx@gnu.org>
16158
16159 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16160
16161 * m/sparc.h (HAVE_ALLOCA): Delete.
16162
16163 * s/irix6-5.h: Don't include strings.h.
16164 (bcopy, bzero, bcmp): Don't undef.
16165
16166 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16167
16168 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16169 (TIOCSIGSEND): Don't test IRIX6.
16170 (bcopy, bzero, bcmp): Define conditionally.
16171
161722008-02-01 Kenichi Handa <handa@m17n.org>
16173
16174 * buffer.c (Qas, Qmake, Qto): New variables.
16175 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16176 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16177
16178 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16179 we are inserting a process output into a multibyte buffer.
16180
16181 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16182 multibyte_char_to_unibyte.
16183
16184 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16185 by the primary charset, make it eight-bit char.
16186 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16187
16188 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16189 (charset_8_bit__control, charset_8_bit_graphic)
16190 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16191 (define_charset_internal): New function.
16192 (syms_of_charset): Call define_charset_internal for pre-defined
16193 charsets.
16194
16195 * charset.h (charset_8_bit): Extern it.
16196
16197 * coding.c (make_conversion_work_buffer): Adjust for the change
16198 of Fset_buffer_multibyte.
16199 (encode_coding_raw_text): Increment p0 in the loop.
16200
16201 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16202
16203 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16204 for the change of Fset_buffer_multibyte.
16205
16206 * fns.c (Fstring_to_multibyte): New function.
16207 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16208
162092008-02-01 Dave Love <fx@gnu.org>
16210
16211 * xfns.c (x_put_x_image): Declare args.
16212
16213 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16214 (try_font_list): Declare an arg.
16215
16216 * xdisp.c (message2_nolog, set_message): Declare an arg.
16217
16218 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16219
16220 * syntax.c (scan_sexps_forward): Declare an arg.
16221
16222 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16223 Declare an arg.
16224
16225 * lisp.h (Fnew_fontset): Declare.
16226
16227 * keymap.c (push_key_description): Call CHARACTERP correctly.
16228
16229 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16230 (face_for_char): Delete unused vars.
16231 (Fset_fontset_font): Doc fix. Delete unused vars.
16232
16233 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16234
16235 * composite.c (update_compositions): Declare arg.
16236
16237 * cm.c (calccost, cmgoto): Declare args.
16238
16239 * charset.c: Remove `emacs' conditional. Doc fixes.
16240 (map_char_table_for_charset): Declare.
16241
16242 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16243
16244 * ccl.c: Remove `emacs' conditional.
16245
162462008-02-01 Kenichi Handa <handa@m17n.org>
16247
16248 The following changes are to allow specifying multiple font
16249 patterns for a character range (specified by script or charset).
16250
16251 * Makefile.in (abbrev.o): Depend on syntax.h.
16252 (xfaces.o): Depend on charset.h.
16253
16254 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16255 SINGLE_BYTE_CHAR_P.
16256
16257 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16258
16259 * character.h (Vchar_script_table): Extern it.
16260
16261 * character.c (Vscript_alist): Delete.
16262 (Vchar_script_table, Qchar_script_table): New variable.
16263 (syms_of_character): Declare Vchar_script_table as a lisp variable
16264 and initialize it.
16265
16266 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16267 have property char-table-extra-slots, make no extra slot.
16268
16269 * dispextern.h (struct face): Delete member `charset'.
16270 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16271 SINGLE_BYTE_CHAR_P.
16272 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16273 Add prototypes.
16274 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16275 (generate_ascii_font_name): Rename from generate_ascii_font.
16276
16277 * fontset.h (get_font_repertory_func): New prototype.
16278 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16279 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16280
16281 * fontset.c (Qprepend, Qappend): New variables.
16282 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16283 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16284 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16285 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16286 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16287 (load_font_get_repertory): New functions.
16288 (fontset_set): Delete.
16289 (fontset_face): New arg FACE. Return face ID, not face.
16290 Complete re-write to handle new fontset structure. Change caller.
16291 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16292 (face_for_char): Don't call lookup_face.
16293 (make_fontset_for_ascii_face): New arg FACE.
16294 (fs_load_font): New arg CHARSET_ID. Don't check
16295 Vfont_encoding_alist here.
16296 (find_font_encoding): New function.
16297 (list_fontsets): Use STRINGP, not ! NILP.
16298 (accumulate_script_ranges): New function.
16299 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16300 re-written to handle new fontset structure.
16301 (Ffontset_font): Return a copy of element.
16302 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16303 docstring of font-encoding-alist.
16304
16305 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16306 (Fset_fotset_font): Fix arguments to 5.
16307
16308 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16309
16310 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16311 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16312 (highlight_trailing_whitespace): Adjust for the change of
16313 lookup_named_face.
16314
16315 * xfaces.c: Include charset.h.
16316 (load_face_font): Delete argument C. Change caller.
16317 (generate_ascii_font_name): Rename from generate_ascii_font.
16318 (font_name_registry): New function.
16319 (cache_face): Store ascii faces before non-ascii faces in buckets.
16320 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16321 Lookup only ascii faces.
16322 (lookup_non_ascii_face): New function.
16323 (lookup_named_face): Delete argument C. Change caller.
16324 (lookup_derived_face): Delete argument C. Change caller.
16325 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16326 a string, just call font_list with it.
16327 (choose_face_font): Delete arguments FACE and C. New arg
16328 FONT_SPEC. Change caller.
16329 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16330 Change caller.
16331 (realize_non_ascii_face): New function.
16332 (realize_x_face): Call load_face_font here.
16333 (realize_tty_face): Delete argument C. Change caller.
16334 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16335 get a face ID.
16336 (dump_realized_face): Don't print charset of FACE.
16337
16338 * xfns.c (x_set_font): Always call x_new_fontset and
16339 store_frame_parameter.
16340 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16341 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16342
16343 * xterm.h (x_get_font_repertory): Extern it.
16344
16345 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16346 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16347 it->multibyte_p is zero.
16348 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16349 (x_new_fontset): If FONTSETNAME doesn't match any existing
16350 fontsets, create a new one.
16351 (x_get_font_repertory): New function.
16352
163532008-02-01 Kenichi Handa <handa@m17n.org>
16354
16355 * coding.c (Ffind_coding_systems_region_internal): Detect an
16356 ASCII only string correctly.
16357
16358 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16359 version is 0.
16360
163612008-02-01 Kenichi Handa <handa@m17n.org>
16362
16363 * lread.c: Include "coding.h".
16364 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16365 (load_each_byte, unread_char): New variables.
16366 (readchar_backlog): Delete.
16367 (readchar): Return a character unless load_each_byte is nonzero.
16368 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16369 cons. If unread_char is not -1, simply return it.
16370 (unreadchar): Handle the case that readcharfun is
16371 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16372 (read_multibyte): Delete.
16373 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16374 (read_emacs_mule_char): New functions.
16375 (Fload): Even if the file doesn't have the extension ".elc", if
16376 safe_to_load_p returns a positive version number, assume that the
16377 file contains bytecompiled code. If the version is less than 22,
16378 load the file while decoding multibyte sequences by emacs-mule.
16379 (readevalloop): Don't use readchar_backlog.
16380 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16381 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16382 (read_escape): Delete the arg BYTEREP.
16383 (read1): Set load_each_byte to 1 temporarily while handling
16384 #@NUMBER. Don't call read_multibyte.
16385 (read_vector): Call Fread with a cons. If readcharfun is
16386 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16387 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16388 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16389 and Qload_force_doc_strings.
16390
163912008-02-01 Kenichi Handa <handa@m17n.org>
16392
16393 * xdisp.c (face_before_or_after_it_pos): Call
16394 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16395
163962008-02-01 Kenichi Handa <handa@m17n.org>
16397
16398 * character.h (TRAILING_CODE_P): New macro.
16399 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16400 (string_char_with_unification): Fix prototype.
16401 (Vscript_alist): Extern it.
16402
16403 * character.c (Vscript_alist): New variable.
16404 (string_char_with_unification, str_as_unibyte)
16405 (string_escape_byte8): Add `const' to local variables.
16406 (syms_of_character): Declare script-alist as a Lisp variable.
16407
16408 * charset.h (Vcharset_ordered_list): Extern it.
16409 (charset_ordered_list_tick): Extern it.
16410 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16411 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16412 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16413 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16414 (Funify_charset): Adjust for the change of Funify_charset.
16415
16416 * charset.c (charset_ordered_list_tick): New variable.
16417 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16418 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16419 deunify intead of unify a charset.
16420 (string_xstring_p): Add `const' to local variables.
16421 (find_charsets_in_text): Add `const' to arguments and local variables.
16422 (encode_char): Adjust for the change of Funify_charset. Fix
16423 detecting of invalid code.
16424 (Fset_charset_priority): Increment charset_ordered_list_tick.
16425 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16426 and TO_CODE.
16427
16428 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16429 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16430 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16431 (decode_coding_ccl, consume_chars)
16432 (Ffind_coding_systems_region_internal)
16433 (Fcheck_coding_systems_region): Add `const' to local variables.
16434
16435 * print.c (print_object): Use octal form for printing the
16436 contents of a bool vector.
16437
164382008-02-01 Dave Love <fx@gnu.org>
16439
16440 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16441 <version == 20>: Refuse to load.
16442
164432008-02-01 Dave Love <fx@gnu.org>
16444
16445 * fns.c: Move coding.h.
16446 (Qcodeset, Qdays, Qmonths): New.
16447 (concat): Use CHARACTERP instead of INTEGERP.
16448 (Flocale_codeset): Delete.
16449 (Flanginfo): New function.
16450 (syms_of_fns): Change accordingly.
16451
16452 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16453
164542008-02-01 Dave Love <fx@gnu.org>
16455
16456 * casetab.c (init_casetab_once, init_casetab_once): Fix
16457 CHAR_TABLE_SET call.
16458
16459 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16460
16461 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16462
16463 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16464 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16465 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16466
16467 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16468
16469 * coding.c (ENCODE_DESIGNATION, decode_eol)
16470 (make_conversion_work_buffer, code_conversion_restore)
16471 (Fdefine_coding_system_internal): Convert Lisp types.
16472 (code_conversion_restore): Use EQ, not ==.
16473 (Fencode_coding_string): Fix code_convert_string call.
16474
16475 * coding.h (code_convert_region): Fix prototype.
16476
16477 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16478
16479 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16480 (Ffontset_info): Convert Lisp types.
16481
16482 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16483
16484 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16485
16486 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16487
16488 * chartab.c: Include "...h", not <...h> in some cases.
16489
16490 * callproc.c (Fcall_process): Remove unused variables.
16491
164922008-02-01 Dave Love <fx@gnu.org>
16493
16494 * coding.c (Fset_coding_system_priority): Allow null arg list.
16495
164962008-02-01 Dave Love <fx@gnu.org>
16497
16498 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16499 (Fself_insert_and_exit): Use CHARACTERP.
16500
16501 * callproc.c (Fcall_process): Remove unused vars.
16502
16503 * xterm.c (XTread_socket): Add extra dead keysyms.
16504
16505 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16506
16507 * dispextern.h: Remove prototypes for redraw_frame,
16508 redraw_garbaged_frames.
16509
16510 * cmds.c (Fself_insert_command): Use CHARACTERP.
16511
16512 * chartab.c (make_sub_char_table): Remove unused var.
16513 (Fset_char_table_default, Fmap_char_table): Doc fix.
16514
16515 * keymap.c (access_keymap): Remove generic char code.
16516 (push_key_description): Use CHARACTERP.
16517
165182008-02-01 Dave Love <fx@gnu.org>
16519
16520 * charset.c: Doc fixes.
16521 (Funify_charset): Extra checking.
16522
165232008-02-01 Dave Love <fx@gnu.org>
16524
16525 * lread.c: Remove some unused variables.
16526 (safe_to_load_p): If safe, return the magic number version byte.
16527 (Fload): Maybe use load-with-code-conversion.
16528
165292008-02-01 Kenichi Handa <handa@m17n.org>
16530
16531 * category.c (Fmodify_category_entry): Don't modify the contents
16532 of category_set for characters out of the range. Avoid
16533 unnecessary modification.
16534
16535 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16536 Vchar_unify_table. The default value of the table is now nil.
16537
16538 * character.c (syms_of_character): Setup Vchar_width_table for
16539 eight-bit-control and raw-byte chars.
16540
16541 * charset.h (enum define_charset_arg_index): Delete
16542 charset_arg_parents and add charset_arg_subset and
16543 charset_arg_superset.
16544 (enum charset_attr_index): Delete charset_parents and add
16545 charset_subset and charset_superset.
16546 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16547 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16548 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16549 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16550 (CHARSET_SUPERSET): New macros.
16551 (charset_work): Extern it.
16552 (ENCODE_CHAR): Use charset_work.
16553 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16554 (map_charset_chars): Extern it.
16555
16556 * charset.c (load_charset_map): Set the default value of encoder
16557 and deunifier char-tables to nil.
16558 (map_charset_chars): Change argument. Change callers. Use
16559 map_char_table_for_charset instead of map_char_table.
16560 (Fmap_charset_chars): New optional args from_code and to_code.
16561 (Fdefine_charset_internal): Adjust for the change of
16562 `define-charset' (:parents -> :subset or :superset).
16563 (charset_work): New variable.
16564 (encode_char, syms_of_charset): Adjust for the change of
16565 Fdefine_charset_internal.
16566 (Ffind_charset_string): Setup the vector `charsets' correctly.
16567
16568 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16569 the previous change.
16570 (char_table_ref_and_range): Adjust for the above change.
16571 (map_sub_char_table_for_charset): New function.
16572 (map_char_table_for_charset): New function.
16573
16574 * keymap.c (describe_vector): Handle a char-table directly here.
16575 (describe_char_table): Delete.
16576
16577 * lisp.h (map_charset_chars): Delete.
16578
165792008-02-01 Dave Love <fx@gnu.org>
16580
16581 * fns.c (count_combining): Comment out (unused).
16582 (Flocale_codeset): New.
16583 (syms_of_fns): Defsubr it.
16584
16585 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16586 (size_t): Remove.
16587
165882008-02-01 Dave Love <fx@gnu.org>
16589
16590 * Makefile.in (chartab.o): Depend on charset.h.
16591
165922008-02-01 Kenichi Handa <handa@m17n.org>
16593
16594 * character.c (syms_of_character): Set the default value of
16595 Vprintable_chars to Qnil.
16596
165972008-02-01 Dave Love <fx@gnu.org>
16598
16599 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16600
166012008-02-01 Kenichi Handa <handa@m17n.org>
16602
16603 * charset.c (load_charset_map): Handle the case that from < to
16604 correctly.
16605
16606 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16607 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16608 Pay attention to raw-8-bit chars.
16609
166102008-02-01 Kenichi Handa <handa@m17n.org>
16611
16612 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16613 It is not bytecompiled now.
16614
16615 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16616 (charset_jisx0208): New variables.
16617 (Fdefine_charset_internal): Setup them if appropriate.
16618 (init_charset_once): Initialize them to -1.
16619
16620 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16621 (charset_jisx0208): Extern them.
16622
16623 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16624 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16625 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16626 (setup_iso_safe_charsets): Fix arguments to Fassq.
16627 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16628 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16629 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16630 (encode_coding_iso_2022): Change the 1st arg to
16631 ENCODE_ISO_CHARACTER to a variable.
16632
166332008-02-01 Kenichi Handa <handa@m17n.org>
16634
16635 * charset.h (enum define_charset_arg_index): New enums
16636 charset_arg_min_code and charset_arg_max_code.
16637 (struct charset): New member char_index_offset.
16638
16639 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16640 Take charset->char_index_offset into account.
16641 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16642 args[charset_arg_max_code]. Setup charset.char_index_offset.
16643 (syms_of_charset): Fix args to Fdefine_charset_internal.
16644
166452008-02-01 Dave Love <fx@gnu.org>
16646
16647 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16648
166492008-02-01 Dave Love <fx@gnu.org>
16650
16651 * coding.c: Doc fixes.
16652 (Fcoding_system_aliases): Fix return value.
16653 (Qmac): Remove (duplicated) definition.
16654
166552008-02-01 Dave Love <fx@gnu.org>
16656
362654a6
JB
16657 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16658 New functions.
aac0c6e3
MR
16659
16660 * character.c (Fstring): Doc fix.
16661
16662 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16663
362654a6 16664 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16665 (font-encoding-alist): Doc fix.
16666
166672008-02-01 Dave Love <fx@gnu.org>
16668
16669 * term.c (costs_set): Declare static, non-initialized for pcc.
16670 (encode_terminal_code): Remove unused var.
16671
16672 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16673 for K&R.
16674
16675 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16676
16677 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16678 (suffixes): Move out of make_subsidiaries for K&R.
16679
16680 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16681
16682 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16683
166842008-02-01 Dave Love <fx@gnu.org>
16685
16686 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16687
16688 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16689
166902008-02-01 Yong Lu <lyongu@asia-infonet.com>
16691
16692 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16693
16694 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16695
166962008-02-01 Kenichi Handa <handa@m17n.org>
16697
16698 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16699 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16700
167012008-02-01 Kenichi Handa <handa@m17n.org>
16702
16703 * coding.c (decode_coding_charset): Adjust for the change of
16704 Fdefine_coding_system_internal.
16705 (Fdefine_coding_system_internal): For a coding system of
16706 `charset' type, store a list of charset IDs in
16707 `charset_attr_charset_valids' element of coding attributes.
16708
167092008-02-01 Kenichi Handa <handa@m17n.org>
16710
16711 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16712 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16713 caller. Handle 2-byte and 3-byte charsets correctly.
16714 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16715 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16716 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16717 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16718 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16719 sequence.
16720 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16721 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16722 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16723 and alt&rule composition.
16724 (decode_coding_iso_2022): Handle composition correctly.
16725 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16726
16727 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16728 re-defining a charset. If the charset has :emacs-mule-id, setup
16729 emacs_mule_bytes.
16730 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16731
167322008-02-01 Kenichi Handa <handa@m17n.org>
16733
16734 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16735 (encode_coding_big5, encode_coding_charset): If coding requires safe
16736 encoding, produce a character specified by
16737 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16738
167392008-02-01 Dave Love <fx@gnu.org>
16740
16741 * xterm.c (XSetIMValues): Declare.
16742
16743 * process.c: Conditionally include sys/wait.h, pty.h.
16744
16745 * print.c (print_object): Fix print format for 64-bit systems.
16746
16747 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16748
16749 * buffer.c (emacs_strerror): Declare.
16750
16751 * fontset.c (Fclear_face_cache): Declare.
16752 (accumulate_font_info): Comment-out (unused).
16753 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16754 variables.
16755
16756 * character.h (string_escape_byte8): Declare.
16757
16758 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16759 unused vars.
16760 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16761 (Fmap_charset_chars): Doc fix.
16762
16763 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16764 (Fset_coding_system_priority, Fset_coding_system_priority)
16765 (Fdefine_coding_system_internal): Doc fix.
16766
167672008-02-01 Dave Love <fx@gnu.org>
16768
16769 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16770
167712008-02-01 Kenichi Handa <handa@m17n.org>
16772
16773 * character.c (string_escape_byte8): Make multibyte string with
16774 correct size.
16775
16776 * charset.c (Fmake_char): Delete unnecessary code.
16777
167782008-02-01 Kenichi Handa <handa@m17n.org>
16779
16780 * xfns.c (x_encode_text): Allocate coding.destination here, and
16781 call encode_coding_object with dst_object Qnil.
16782
16783 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16784 multibyte form correctly.
16785
16786 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16787 against Vfont_encoding_alist.
16788
16789 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16790 handling of charset list.
16791 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16792 (decode_coding_object): Move point to coding->dst_pos before
16793 calling post-read-conversion function.
16794 (encode_coding_object): Give correct arguments to
16795 pre-write-conversion. Ignore the return value of
16796 pre-write-conversion function. Pay attention to the case that
16797 pre-write-conversion changes the current buffer. If dst_object is
16798 Qt, even if coding->src_bytes is zero, allocate at least one byte
16799 to coding->destination.
16800
16801 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16802
16803 * charset.c (Fmake_char): Make it more backward compatible.
16804 (Fmap_charset_chars): Fix docstring.
16805
168062008-02-01 Dave Love <fx@gnu.org>
16807
16808 * coding.c: Doc fixes.
16809 (Fdefine_coding_system_alias): Use names, not symbols, in
16810 coding-system-alist.
16811
168122008-02-01 Kenichi Handa <handa@m17n.org>
16813
16814 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16815 of calling free_realized_face.
16816
168172008-02-01 Yong Lu <lyongu@asia-infonet.com>
16818
16819 * charset.c (read_hex): Don't treat SPC as a comment starter.
16820 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16821 (Fdecode_char): Fix typo.
16822
168232008-02-01 Kenichi Handa <handa@m17n.org>
16824
16825 * charset.h (struct charset): New member `code_space_mask'.
16826
16827 * coding.c (coding_set_source): Delete the local variable beg_byte.
16828 (encode_coding_charset, Fdefine_coding_system_internal):
16829 Delete the local variable charset.
16830 (Fdefine_coding_system_internal): Setup
16831 attrs[coding_attr_charset_valids] correctly.
16832
16833 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16834 member to check if CODE is valid or not.
16835 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16836 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16837 is within the range of charset->min_code and carset->max_code.
16838
168392008-02-01 Dave Love <fx@gnu.org>
16840
16841 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16842
16843 * dispextern.h (generate_ascii_font): Fix return type.
16844
16845 * xfaces.c (generate_ascii_font): Fix arg declaration.
16846
16847 * coding.c (coding_inherit_eol_type)
16848 (Fset_terminal_coding_system_internal)
16849 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16850
168512008-02-01 Kenichi Handa <handa@m17n.org>
16852
16853 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16854 multiple charsets correctly.
16855
168562008-02-01 Kenichi Handa <handa@m17n.org>
16857
16858 * search.c (boyer_moore): Fix handling of multibyte character
16859 translation.
16860
16861 * xdisp.c (display_mode_element): When the variable `elt' is
16862 changed, update `this' and `lisp_string'.
16863
168642008-02-01 Kenichi Handa <handa@m17n.org>
16865
16866 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16867
16868 * callproc.c (Fcall_process): Be sure to give the current buffer
16869 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16870
16871 * charset.c (struct charset_map_entries): New struct.
16872 (load_charset_map): Rename from parse_charset_map. New args
16873 entries and n_entries. Change caller.
16874 (load_charset_map_from_file): Rename from load_charset_map.
16875 Change caller. New arg control_flag. Call load_charset_map at
16876 the tail.
16877 (load_charset_map_from_vector): New function.
16878 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16879 (encode_char): If the charset is compact, change a character index
16880 to a code point.
16881
16882 * coding.c (coding_alloc_by_making_gap): Check the case that the
16883 source and destination are the same correctly.
16884 (decode_coding_raw_text): Set coding->consumed_char and
16885 coding->consumed to 0.
16886 (produce_chars): If coding->chars_at_source is nonzero, update
16887 coding->consumed_char and coding->consumed before calling
16888 alloc_destination.
16889 (Fdefine_coding_system_alias): Register ALIAS in
16890 Vcoding_system_alist.
16891 (syms_of_coding): Define `no-conversion' coding system at the tail.
16892
16893 * fileio.c (Finsert_file_contents): Set coding_system instead of
16894 val. If the current buffer is multibyte, always call
16895 decode_coding_gap.
16896
16897 * xfaces.c (try_font_list): Give higher priority to fontset's
16898 family than face's family.
16899
169002008-02-01 Kenichi Handa <handa@m17n.org>
16901
16902 * callproc.c (Fcall_process): Be sure to give the current buffer
16903 to decode_coding_c_string.
16904
16905 * xfaces.c (try_font_list): Give a family specified in a fontset
16906 higher priority than a family specified in a face.
16907
169082008-02-01 Kenichi Handa <handa@m17n.org>
16909
16910 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16911 Fix arguments to insert_from_buffer.
16912
16913 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16914
169152008-02-01 Kenichi Handa <handa@m17n.org>
16916
16917 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16918 (decode_coding_gap): Set coding->dst_multibyte correctly.
16919
169202008-02-01 Kenichi Handa <handa@m17n.org>
16921
16922 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16923 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16924 (encode_coding_utf_16): Substitute coding->default_char for
16925 non-Unicode characters.
16926 (decode_coding): Don't call record_insert here.
16927 (setup_coding_system): Initialize `surrogate' of
16928 coding->spec.utf_16 to 0.
16929 (EMIT_ONE_BYTE): Fix for multibyte case.
16930
16931 * insdel.c (insert_from_gap): Call record_insert.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * casefiddle.c (casify_region): Fix multibyte case.
16936
16937 * character.c (c_string_width): Add return type `int'.
16938 (char_string_with_unification): Delete arg ADVANCED.
16939
16940 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16941 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16942 (CHAR_STRING_ADVANCE): Make it do-while statement.
16943
16944 * chartab.c (sub_char_table_set_range): Optimize for the case
16945 DEPTH == 3. Add workaround code for a GCC optimization bug.
16946
16947 * charset.c (parse_charset_map): Remove an unused variable.
16948
16949 * coding.c: Delete unused variables.
16950
16951 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16952 earlier. If inserted is zero and the coding system doesn't
16953 require flushing, don't call decode_coding_gap.
16954
16955 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16956
169572008-02-01 Kenichi Handa <handa@m17n.org>
16958
16959 The following changes are for using Unicode as an internal
16960 character model, and use UTF-8 format for buffer/string
16961 representation.
16962
16963 * .gdbinit (xchartable): Adjust for the change of char table structure.
16964 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16965
16966 * Makefile.in (obj): Add character.o and chartab.o.
16967 (lisp, shortlisp): Remove utf-8.elc.
16968 (*.o): For many files, change dependency on charset.h to
16969 character.h, and add dependency on character.h.
16970 (character.o, chartab.o): New targets.
16971
16972 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16973 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16974 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16975 of "charset.h".
16976
16977 * dired.c, filelock.c: Include "character.h".
16978
16979 * alloc.c: Include "character.h" instead of "charset.h".
16980 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16981 (syms_of_alloc): Remove defsubr for Smake_char_table.
16982
16983 * buffer.c: Include "character.h" instead of "charset.h", don't
16984 include "coding.h".
16985 (Fset_buffer_multibyte): Adjust for UTF-8.
16986
16987 * buffer.h: EXFUN Fbuffer_live_p.
16988
16989 * callproc.c: Include "character.h" instead of "charset.h".
16990 (Fcall_process): Big change for the new code-conversion APIs.
16991
16992 * casetab.c: Include "character.h" instead of "charset.h".
16993 (set_canon, set_identity, shuffle): Adjust for the new
16994 map_char_table spec.
16995 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16996 accessing the char table structure.
16997
16998 * chartab.c: New file that implements char table.
16999
17000 * category.c: Include "character.h".
17001 (copy_category_entry): New function.
17002 (copy_category_table): Call map_char_table and copy_category_entry.
17003 (Fmake_category_table): Initialize all top-level slots.
17004 (char_category_set): New function.
17005 (modify_lower_category_set): Delete.
17006 (Fmodify_category_entry): Call char_table_ref_and_range.
17007
17008 * category.h (CATEGORY_SET): Just call char_category_set.
17009
17010 * ccl.c: Include "character.h".
17011 (Qccl, Qcclp): New variables.
17012 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17013 it's less than 256.
17014 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17015 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17016 and DST type.
17017 (ccl_driver): Change types of argument, adjust code accordingly.
17018 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17019 ccl_driver.
17020 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17021
17022 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17023 New members src_multibyte, dst_multibyte, consumed, and produced.
17024 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17025 (CODING_SPEC_CCL_PROGRAM): New macro.
17026 (ccl_driver): Update prototype.
17027 (Qccl, Qcclp, Fccl_program_p): Extern them.
17028 (CHECK_CCL_PROGRAM): New macro.
17029
17030 * character.c, character.h, chartab.c: New files.
17031
17032 * charset.c: Mostly re-written. Move character and multibyte sequence
17033 handling codes to character.c.
17034
17035 * charset.h: Mostly re-written. Move character and multibyte sequence
17036 handling codes to character.h.
17037
17038 * coding.c, coding.h: Mostly re-written.
17039
17040 * composite.c: Include "character.h" instead of "charset.h".
17041 (CHAR_WIDTH): Move to character.h.
17042 (HASH_KEY, HASH_VALUE): Delete.
17043
17044 * composite.h (enum composition_method): Change order of enumeration
17045 symbols.
17046
17047 * data.c: Include "character.h" instead of "charset.h".
17048 (Faref): Call CHAR_TABLE_REF for a char table.
17049 (Faset): Call CHAR_TABLE_SET for a char table.
17050
17051 * dispextern.h (free_realized_face, check_face_attribytes)
17052 (generate_ascii_font): Extern them.
17053 (free_realized_multibyte_face): Delete extern.
17054
17055 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17056 table structure.
17057
17058 * editfns.c: Include "character.h" instead of "charset.h".
17059 (Fchar_to_string): Always call CHAR_STRING.
17060
17061 * emacs.c (main): Call init_charset_once, init_charset,
17062 syms_of_chartab, and syms_of_character.
17063
17064 * fileio.c: Include "character.h" instead of "charset.h".
17065 (Finsert_file_contents): Big change for the new code-conversion API.
17066 (choose_write_coding_system, Fwrite_region): Likewise.
17067 (build_annotations_2): Delete.
17068 (e_write): Big change for the new code-conversion API.
17069
17070 * fns.c: Include "character.h" instead of "charset.h".
17071 (copy_sub_char_table): Move to chartab.c.
17072 (Fcopy_sequence): Call copy_char_table for a char table.
17073 (concat): Delete codes calling count_multibyte.
17074 (string_char_to_byte, string_byte_to_char): Adjust for the new
17075 multibyte form.
17076 (internal_equal): Adjust for the change of char table structure.
17077 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17078 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17079 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17080 (char_table_translate, optimize_sub_char_table)
17081 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17082 chartab.c.
17083 (char_table_ref_and_index): Delete.
17084 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17085 (Fmd5): Call preferred_coding_system instead of accessing
17086 Vcoding_category_list. Adjust for the new code-conversion API.
17087 (syms_of_fns): Move defsubr for char table related functions to
17088 chartab.c.
17089
17090 * fontset.c: Mostly re-written.
17091
17092 * fontset.h (struct font_info): Change type of the member encoding_type.
17093 (enum FONT_SPEC_INDEX): New enum.
17094 (fontset_font_pattern, fs_load_font): Update prototype.
17095 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17096
17097 * indent.c: Include "character.h" instead of "charset.h".
17098 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17099
17100 * insdel.c: Include "character.h" instead of "charset.h".
17101 (copy_text): Don't refer to Vnonascii_translation_table.
17102 (insert_from_gap): New function.
17103
17104 * keyboard.c: Include "character.h" instead of "charset.h".
17105 (command_loop_1): Never call direct_output_forward_char before
17106 a non-ASCII character.
17107 (read_char): If Vkeyboard_translate_table is a char table, always
17108 translate a character.
17109
17110 * keymap.c: Include "character.h".
17111 (store_in_keymap): Handle the case that IDX is a cons.
17112 (Fdefine_key): Handle the case that KEY is a cons and the car part
17113 is also a cons (range).
17114 (push_key_description): Adjust for the new character code.
17115 (describe_vector): Call describe_char_table for a char table.
17116 (describe_char_table): New function.
17117
17118 * keymap.h (describe_char_table): Extern it.
17119
17120 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17121 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17122 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17123 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17124 Delete.
17125 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17126 structure.
17127 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17128 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17129 (CHARTAB_SIZE_BITS_3): New macros.
17130 (chartab_size): Extern it.
17131 (struct Lisp_Char_Table): Re-design.
17132 (struct Lisp_Sub_Char_Table): New structure.
17133 (HASH_KEY, HASH_VALUE): Move from fns.c.
17134 (CHARACTERBITS): Define as 22.
17135 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17136 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17137 (GC_SUB_CHAR_TABLE_P): New macro.
17138 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17139 (code_convert_string_norecord): Deleted extern.
17140 (init_character_once, syms_of_character, init_charset)
17141 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17142
17143 * lread.c: Include "character.h".
17144 (read_multibyte): New arg NBYTES.
17145 (read_escape): Change the meaning of returned *BYTEREP.
17146 (to_multibyte): Delete.
17147 (read1): Adjust the handling of char table and string.
17148
17149 * print.c: Include "character.h" instead of "charset.h".
17150 (print_string): Convert 8-bit raw bytes to octal form by
17151 string_escape_byte8.
17152 (print_object): Adjust for the new multibyte form. Print 8-bit
17153 raw bytes always in octal form. Handle sub char table correctly.
17154
17155 * process.c: Include "character.h" instead of "charset.h".
17156 (read_process_output, send_process): Adjust for the new
17157 code-conversion API.
17158
17159 * puresize.h (BASE_PURESIZE): Increase.
17160
17161 * regex.c: Include "character.h" instead of "charset.h".
17162 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17163 (regex_compile): Accept a range whose starting and ending
17164 character have different leading bytes.
17165 (analyse_first): Adjust for the above change.
17166
17167 * search.c: Include "character.h" instead of "charset.h".
17168 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17169 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17170
17171 * syntax.c: Include "character.h" instead of "charset.h".
17172 (syntax_parent_lookup): Delete.
17173 (Fmodify_syntax_entry): Accept a cons as CHAR.
17174 (skip_chars): Adjust for the new multibyte form.
17175 (init_syntax_once): Call char_table_set_range instead of directly
17176 accessing the structure of a char table.
17177
17178 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17179 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17180 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17181 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17182
17183 * term.c: Include "buffer.h" and "character.h".
17184 (encode_terminal_code, write_glyphs): Adjust for the new
17185 code-conversion API.
17186 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17187
17188 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17189
17190 * xdisp.c: Include "character.h".
17191 (get_next_display_element): Adjust for the new multibyte form.
17192 (disp_char_vector): Adjust for the new char table structure.
17193 (decode_mode_spec_coding): Adjust for the new structure of
17194 coding system.
17195 (decode_mode_spec): Adjust for the new code-conversion API.
17196
17197 * xfaces.c: Include "character.h" instead of "charset.h".
17198 (load_face_font): Adjust for the change of choose_face_font and
17199 FS_LOAD_FONT.
17200 (generate_ascii_font): New function.
17201 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17202 (set_font_frame_param): Adjust for the change of choose_face_font.
17203 (free_realized_face): Make it public.
17204 (free_realized_faces_for_fontset): Rename from
17205 free_realized_multibyte_face. Free also faces realized for ASCII.
17206 (choose_face_font): Change arguments. Adjust for the change of
17207 fontset_font_pattern and FS_LOAD_FONT.
17208
17209 * xfns.c: Include "character.h".
17210 (x_encode_text): Adjust for the new code-conversion API.
17211
17212 * xselect.c: Don't include "charset.h".
17213 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17214
17215 * xterm.c: Include "character.h".
17216 (x_encode_char): New argument CHARSET. Change caller.
17217 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17218 Call ENCODE_CHAR instead of SPLIT_CHAR.
17219 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17220 CHAR_WIDTH instead of CHARSET_WIDTH.
17221 (XTread_socket): Adjust for the new code-conversion API.
17222 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17223 (x_load_font): Adjust for the change of struct font.
17224
172252008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17226
17227 * xfaces.c (face_at_buffer_position): Remove unused vars.
17228
172292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17230
17231 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17232 Fix overflow checking.
17233
172342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17235
17236 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17237 Cancel previous change.
17238
172392008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17240
17241 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17242 ccl->eight_bit_control. Fix check for buffer overflow.
17243 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17244 (ccl_driver): Initialize extra_bytes to 0.
17245
172462008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17247
17248 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17249 return it ORed with ctrl_modifier.
17250
172512008-01-29 Miles Bader <miles@gnu.org>
17252
17253 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17254
172552008-01-28 Jason Rumney <jasonr@gnu.org>
17256
17257 * w32.c (stat): Don't double check for networked drive.
17258
172592008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17260
17261 * window.c (run_window_configuration_change_hook): New function.
17262 Code extracted from set_window_buffer. Set the selected frame.
17263 (set_window_buffer): Use it.
17264 * window.h (run_window_configuration_change_hook): Declare.
17265 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17266
17267 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17268
172692008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17270
17271 * Makefile.in: Remove references to unused macros.
17272
172732008-01-26 Eli Zaretskii <eliz@gnu.org>
17274
17275 * w32.c (g_b_init_get_sid_sub_authority)
17276 (g_b_init_get_sid_sub_authority_count): New static variables.
17277 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17278 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17279 (init_user_info): Use them to retrieve uid and gid.
17280 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17281 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17282 st_uid and st_gid of the file.
17283
172842008-01-26 Jason Rumney <jasonr@gnu.org>
17285
17286 * w32.c (logon_network_drive): New function.
17287 (stat): Use it.
17288
172892008-01-26 Chong Yidong <cyd@stupidchicken.com>
17290
17291 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17292 invisible text covered with an ellipsis.
17293
172942008-01-25 Richard Stallman <rms@gnu.org>
17295
17296 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17297 jump back to beginning. Move some other initializations after that.
17298 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17299 New variables.
17300 (syms_of_xdisp): Init them.
17301
17302 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17303
17304 * buffer.c (reset_buffer_local_variables):
17305 Implement `permanent-local-hook'.
17306 (Qpermanent_local_hook): New variable.
17307 (syms_of_buffer): Init and staticpro it.
17308
173092008-01-25 Michael Albinus <michael.albinus@gmx.de>
17310
17311 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17312
173132008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17314
17315 * fns.c (Fclrhash): Return TABLE.
17316
173172008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17318
17319 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17320 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17321 is set even without positional changes.
17322 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17323
17324 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17325
173262008-01-23 Jason Rumney <jasonr@gnu.org>
17327
17328 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17329
17330 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17331 the unicode range available in MULE by locale-coding-system.
17332 Improve dbcs lead byte detection. Set event timestamp and modifiers
17333 earlier.
17334
173352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17336
17337 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17338 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17339 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17340 when used on child processes.
17341
173422008-01-21 Michael Albinus <michael.albinus@gmx.de>
17343
17344 * dbusbind.c (Fdbus_method_return_internal): Rename from
17345 Fdbus_method_return.
17346 (Fdbus_unregister_object): Move to dbus.el.
17347 (Fdbus_call_method, Fdbus_method_return_internal)
17348 (Fdbus_send_signal): Improve debug messages.
17349
173502008-01-20 Martin Rudalics <rudalics@gmx.at>
17351
17352 * undo.c (undo_inhibit_record_point): New variable.
17353 (syms_of_undo): Initialize it.
17354 (record_point): Don't record point when undo_inhibit_record_point
17355 is set.
17356
173572008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17358
17359 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17360
17361 * xdisp.c (Qauto_hscroll_mode): New var.
17362 (syms_of_xdisp): Initialize it.
17363 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17364 window's buffer.
17365 (hscroll_windows): Don't check automatic_hscrolling_p here.
17366
17367 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17368 vscroll if we're setting window-buffer to the value it already has.
17369
173702008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17371
17372 * m/intel386.h: Remove references to XENIX.
17373
173742008-01-17 Andreas Schwab <schwab@suse.de>
17375
17376 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17377 instead of HAVE_X86_64_LIB64_DIR.
17378 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17379
173802008-01-17 Glenn Morris <rgm@gnu.org>
17381
17382 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17383 to HAVE_X86_64_LIB64_DIR.
17384
173852008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17386
17387 * s/irix3-3.h:
17388 * s/irix4-0.h:
17389 * s/386-ix.h:
17390 * s/domain.h:
17391 * s/hpux9-x11r4.h:
17392 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17393
17394 * sysdep.c: Remove code containing references to symbols defined
17395 by unsupported systems.
17396
173972008-01-16 Glenn Morris <rgm@gnu.org>
17398
17399 * coding.c (select-safe-coding-system-function): Doc fix.
17400
174012008-01-15 Glenn Morris <rgm@gnu.org>
17402
17403 * config.in: Revert 2008-01-13 change: this is a generated file.
17404
174052008-01-13 Tom Tromey <tromey@redhat.com>
17406
17407 * lisp.h: Fix typo.
17408
174092008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17410
17411 * m/sequent-ptx.h:
17412 * m/sequent.h:
17413 * s/ptx.h:
17414 * s/ptx4-2.h:
17415 * s/ptx4.h: Remove files for systems no longer supported.
17416
17417 * callproc.c (Fcall_process): Fix previous change.
17418
174192008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17420
17421 * unexsunos4.c: Remove file, system not supported anymore.
17422
17423 * m/mips.h:
17424 * m/intel386.h:
17425 * callproc.c:
17426 * config.in:
17427 * ecrt0.c:
17428 * emacs.c:
17429 * fileio.c:
17430 * frame.c:
17431 * getpagesize.h:
17432 * keyboard.c:
17433 * lread.c:
17434 * process.c:
17435 * puresize.h:
17436 * sysdep.c:
17437 * systty.h:
17438 * syswait.h:
17439 * unexec.c:
17440 * xdisp.c:
17441 * alloc.c: Remove code containing references to symbols defined by
17442 unsupported systems.
17443
174442008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17445
17446 * coding.c (detect_coding_mask): Fix previous change.
17447
174482008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17449
17450 * coding.c (detect_coding_iso2022): New arg
17451 latin_extra_code_state. Allow Latin extra codes only
17452 when *latin_extra_code_state is nonzero.
17453 (detect_coding_mask): If there is a NULL byte, detect the encoding
17454 as UTF-16 or binary. If Latin extra codes exist, detect the
17455 encoding as ISO-2022 only when there's no other proper encoding is
17456 found.
17457
174582008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17459
17460 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17461 #ifdef MAC_OS.
17462
174632008-01-08 Richard Stallman <rms@gnu.org>
17464
17465 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17466
174672008-01-06 Nick Roberts <nickrob@snap.net.nz>
17468
17469 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17470 menu bar in parentheses.
17471
174722008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17473
17474 * m/7300.h:
17475 * m/acorn.h:
17476 * m/alliant-2800.h:
17477 * m/alliant.h:
17478 * m/alliant1.h:
17479 * m/alliant4.h:
17480 * m/altos.h:
17481 * m/amdahl.h:
17482 * m/apollo.h:
17483 * m/att3b.h:
17484 * m/aviion-intel.h:
17485 * m/aviion.h:
17486 * m/celerity.h:
17487 * m/clipper.h:
17488 * m/cnvrgnt.h:
17489 * m/convex.h:
17490 * m/cydra5.h:
17491 * m/delta88k.h:
17492 * m/dpx2.h:
17493 * m/dual.h:
17494 * m/elxsi.h:
17495 * m/f301.h:
17496 * m/gould-np1.h:
17497 * m/gould.h:
17498 * m/i860.h:
17499 * m/ibmps2-aix.h:
17500 * m/ibmrt-aix.h:
17501 * m/ibmrt.h:
17502 * m/irist.h:
17503 * m/is386.h:
17504 * m/isi-ov.h:
17505 * m/mega68.h:
17506 * m/mg1.h:
17507 * m/news-r6.h:
17508 * m/news-risc.h:
17509 * m/news.h:
17510 * m/nh3000.h:
17511 * m/nh4000.h:
17512 * m/ns16000.h:
17513 * m/ns32000.h:
17514 * m/nu.h:
17515 * m/orion.h:
17516 * m/orion105.h:
17517 * m/paragon.h:
17518 * m/pfa50.h:
17519 * m/plexus.h:
17520 * m/pyramid.h:
17521 * m/pyrmips.h:
17522 * m/sh3el.h:
17523 * m/sps7.h:
17524 * m/sr2k.h:
17525 * m/stride.h:
17526 * m/sun1.h:
17527 * m/sun2.h:
17528 * m/sun3-68881.h:
17529 * m/sun3-fpa.h:
17530 * m/sun3-soft.h:
17531 * m/sun3.h:
17532 * m/sun386.h:
17533 * m/symmetry.h:
17534 * m/tad68k.h:
17535 * m/tahoe.h:
17536 * m/targon31.h:
17537 * m/tek4300.h:
17538 * m/tekxd88.h:
17539 * m/tower32.h:
17540 * m/tower32v3.h:
17541 * m/ustation.h:
17542 * m/wicat.h:
17543 * m/xps100.h:
17544 * s/cxux.h:
17545 * s/cxux7.h:
17546 * s/dgux.h:
17547 * s/dgux4.h:
17548 * s/dgux5-4-3.h:
17549 * s/dgux5-4r2.h:
17550 * s/esix.h:
17551 * s/esix5r4.h:
17552 * s/hiuxmpp.h:
17553 * s/hiuxwe2.h:
17554 * s/iris3-5.h:
17555 * s/iris3-6.h:
17556 * s/isc2-2.h:
17557 * s/isc3-0.h:
17558 * s/isc4-0.h:
17559 * s/isc4-1.h:
17560 * s/newsos5.h:
17561 * s/newsos6.h:
17562 * s/osf1.h:
17563 * s/osf5-0.h:
17564 * s/riscix1-1.h:
17565 * s/riscix12.h:
17566 * s/sco4.h:
17567 * s/sco5.h:
17568 * s/sunos4-0.h:
17569 * s/sunos4-1.h:
17570 * s/sunos413.h:
17571 * s/sunos4shr.h:
17572 * s/umax.h:
17573 * s/unipl5-2.h:
17574 * s/xenix.h:
17575 * cxux-crt0.s:
17576 * unexapollo.c:
17577 * unexconvex.c:
17578 * unexenix.c:
17579 * unexsni.c: Remove files for systems no longer supported.
17580
17581 * m/intel386.h: Remove references to unsupported systems.
17582
17583 * w32.c (get_emacs_configuration): Remove reference to i860.
17584
17585 * sysdep.c: Remove dead code.
17586
175872008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17588
17589 * s/rtu.h:
17590 * m/masscomp.h: Remove files. Platform is obsolete.
17591
175922008-01-04 Michael Albinus <michael.albinus@gmx.de>
17593
17594 * dbusbind.c (Fdbus_method_return): New function.
17595 (xd_read_message): Add the serial number to the event.
17596 (Fdbus_register_method): Activate the function.
17597
175982008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17599
17600 * keyboard.c (read_key_sequence): Fix typo.
17601
176022008-01-03 Michael Albinus <michael.albinus@gmx.de>
17603
17604 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17605 (xd_signature, xd_append_arg): Handle element type detection for
17606 empty arrays.
17607 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17608 SDATA () calls; this must be solved more general.
17609 (Fdbus_register_signal): Use SBYTES instead of strlen.
17610
176112008-01-03 Magnus Henoch <magnus@zemdatav>
17612
17613 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17614 unsigned int for byte values (necessary for big-endian platform).
17615 (Fdbus_call_method): Handle the case of no returned arguments.
17616
176172007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17618
17619 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17620
176212007-12-31 Magnus Henoch <mange@freemail.hu>
17622
17623 * dbusbind.c (xd_signature): Signature of variant is just "v".
17624
176252007-12-30 Michael Albinus <michael.albinus@gmx.de>
17626
17627 * dbusbind.c: Fix several errors and compiler warnings.
17628 Reported by Tom Tromey <tromey@redhat.com>.
17629 (XD_ERROR, XD_DEBUG_MESSAGE)
17630 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17631 (xd_append_arg): Part for basic D-Bus types rewritten.
17632 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17633 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17634 appropriate.
17635 (xd_read_message): Return Qnil. Don't signal an error; it is not
17636 useful during event reading.
17637 (Fdbus_register_signal): Signal an error if the check for
17638 FUNCTIONP fails.
17639 (Fdbus_register_method): New function. The implementation is not
17640 complete, the call of the function signals an error therefore.
17641 (Fdbus_unregister_object): New function, renamed from
17642 Fdbus_unregister_signal. The initial check signals an error, if
17643 the object is not well formed.
17644
176452007-12-30 Richard Stallman <rms@gnu.org>
17646
17647 * textprop.c (get_char_property_and_overlay):
17648 Signal error if POSITION is out of range in a buffer.
17649
176502007-12-29 Martin Rudalics <rudalics@gmx.at>
17651
17652 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17653 because the original parameters are in pure storage now.
17654
176552007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17656
17657 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17658
176592007-12-22 Eli Zaretskii <eliz@gnu.org>
17660
17661 * callint.c (syms_of_callint) <command-history>: Add reference to
17662 history-length in the doc string.
17663
176642007-12-17 Jason Rumney <jasonr@gnu.org>
17665
17666 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17667 before passing as wParam.
17668
176692007-12-22 Michael Albinus <michael.albinus@gmx.de>
17670
17671 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17672 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17673 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17674 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17675 as number.
17676 (Fdbus_call_method): Fix docstring.
17677
176782007-12-21 Michael Albinus <michael.albinus@gmx.de>
17679
17680 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17681 New macros.
17682 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17683 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17684 Simplify.
17685 (xd_signature): New function.
17686 (xd_append_arg): Compute also signatures. Major rewrite.
17687 (xd_retrieve_arg): Make debug messages friendly.
17688 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17689 Check for signatures of arguments.
17690
176912007-12-19 Michael Albinus <michael.albinus@gmx.de>
17692
17693 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17694 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17695 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17696 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17697 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17698 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17699 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17700 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17701 (xd_retrieve_value): Remove. Functionality included in ...
17702 (xd_append_arg): New function.
17703 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17704
177052007-12-16 Michael Albinus <michael.albinus@gmx.de>
17706
17707 * dbusbind.c (top): Include <stdio.h>.
17708 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17709 dbus_message_new_method_call and dbus_message_new_signal.
17710 (Fdbus_register_signal): Rename unique_name to uname.
17711 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17712 non-existing unique name. Fix typos in matching rule. Return an
17713 object which is useful in Fdbus_unregister_signal.
17714 (Fdbus_unregister_signal): Reimplementation, in order to remove
17715 only the corresponding entry.
17716 (Vdbus_registered_functions_table): Change the order of entries.
17717 Apply these changes in xd_read_message and Fdbus_register_signal.
17718
177192007-12-16 Andreas Schwab <schwab@suse.de>
17720
17721 * fileio.c (Finsert_file_contents): Fix overflow check to not
17722 depend on undefined integer overflow.
17723
177242007-12-14 Jason Rumney <jasonr@gnu.org>
17725
17726 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17727 for characters above 127.
17728
177292007-12-13 Jason Rumney <jasonr@gnu.org>
17730
17731 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17732 before dereferencing array.
17733 (lookup_vk_code): Remove zero comparison.
17734
177352007-12-14 Michael Albinus <michael.albinus@gmx.de>
17736
17737 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17738 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17739 Use `unsigned int' instead of `uint'.
17740 (xd_read_message, Fdbus_register_signal): Split expressions into
17741 multiple lines before operators "&&" and "||", according to the
17742 GNU Coding Standards.
17743
177442007-12-14 Eli Zaretskii <eliz@gnu.org>
17745
17746 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17747
177482007-12-12 Juri Linkov <juri@jurta.org>
17749
17750 * buffer.c (Frename_buffer): In interactive spec replace
17751 `read-buffer' with `read-string' that uses `buffer-name-history'
17752 as history, and the current buffer's name as default.
17753
177542007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17755
17756 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17757 manipulating the backtrace manually.
17758 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17759 (struct backtrace, backtrace_list): Remove.
17760 (command_loop_1): Remove dead var `no_direct'.
17761
17762 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17763 preserve non-built-in buffer-local variables.
17764 (Fkill_all_local_variables): Don't re-create&re-set permanent
17765 buffer-local variables.
17766
177672007-12-09 Juri Linkov <juri@jurta.org>
17768
17769 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17770 Lisp code that uses `read-buffer' with current buffer as default.
17771
177722007-12-08 Michael Albinus <michael.albinus@gmx.de>
17773
17774 * dbusbind.c (xd_read_message): Generate an event for every
17775 registered handler. There might be several handlers registered
17776 for the same signal.
17777 (Fdbus_register_signal): Don't overwrite a registration for the
17778 same signal. Add a new registration if handlers are different.
17779 (Vdbus_registered_functions_table): Rework doc string.
17780
177812007-12-07 Michael Albinus <michael.albinus@gmx.de>
17782
17783 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17784 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17785 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17786 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17787 Unify argument lists.
17788 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17789 arguments and hash table keys. Use unique name for service.
17790 (Fdbus_unregister_signal): Remove checks.
17791 (Vdbus_registered_functions_table): Fix doc string.
17792
177932007-12-05 Magnus Henoch <mange@freemail.hu>
17794
17795 * process.c (make_process): Initialize pty_flag to 0.
17796
177972007-12-05 Jason Rumney <jasonr@gnu.org>
17798
17799 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17800 specified XBMs.
17801
178022007-12-05 Richard Stallman <rms@gnu.org>
17803
17804 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17805
178062007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17807
17808 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17809 New variable.
17810 (mac_try_close_socket) [MAC_OSX]: New function.
17811 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17812 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17813
17814 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17815 Use mac_try_close_socket.
17816
178172007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17818
17819 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17820 reloc_base.
17821 (copy_dysymtab): Compute relocation base here.
17822 (rebase_reloc_address) [__ppc64__]: New function.
17823 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17824 changed.
17825
178262007-12-05 Jason Rumney <jasonr@gnu.org>
17827
17828 * w32proc.c (sys_spawnve): Quote args with wildcards.
17829
178302007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17831
17832 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17833 __objc_* sections.
17834 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17835
178362007-12-05 Michael Albinus <michael.albinus@gmx.de>
17837
17838 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17839 Move check for Vdbus_registered_functions_table to
17840 xd_read_queued_messages.
17841 (xd_read_queued_messages): Protect xd_read_message calls by
17842 internal_condition_case_1.
17843
178442007-12-04 Michael Albinus <michael.albinus@gmx.de>
17845
17846 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17847 Qdbus_system_bus and Qdbus_session_bus, respectively.
17848 (Vdbus_intern_symbols): Remove.
17849 (Vdbus_registered_functions_table): New hash table.
17850 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17851 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17852 Rewrite in order to manage registered functions by hash table
17853 Vdbus_registered_functions_table.
17854
178552007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17856
17857 * xterm.c: Update URL to Window Manager Specification in comment.
17858
178592007-12-02 Michael Albinus <michael.albinus@gmx.de>
17860
17861 * config.in (HAVE_DBUS): Add.
17862
17863 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17864 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17865 (obj): Add $(DBUS_OBJ).
17866 (LIBES): Add $(DBUS_LIBS).
17867 (dbusbind.o): New target.
17868
17869 * dbusbind.c: New file.
17870
17871 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17872
17873 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17874 (Qdbus_event): New Lisp symbol.
17875 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17876 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17877 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17878
17879 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17880
178812007-12-01 Richard Stallman <rms@gnu.org>
17882
17883 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17884
178852007-11-30 Jason Rumney <jasonr@gnu.org>
17886
17887 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17888 (w32con_reset_terminal_modes): Clear screen buffer.
17889 (w32_face_attributes): Don't use color indexes that are out of range.
17890 Only reverse the default colors.
17891
17892 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17893 WINDOWSNT.
17894
17895 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17896
178972007-11-29 Jason Rumney <jasonr@gnu.org>
17898
17899 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17900 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17901 if the terminal colors are initialized.
17902 (unspecified_fg, unspecified_bg): Remove unused declarations.
17903
179042007-11-29 Andreas Schwab <schwab@suse.de>
17905
17906 * keyboard.c (apply_modifiers): Fix typo.
17907
179082007-11-29 Richard Stallman <rms@gnu.org>
17909
17910 * keymap.c (Fcurrent_local_map): Doc fix.
17911
179122007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17913
17914 * s/gnu-kfreebsd.h: New file.
17915
179162007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17917
17918 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17919 Don't cast redundantly.
17920
17921 * keyboard.c (KEY_TO_CHAR): New macro.
17922 (parse_modifiers, apply_modifiers): Accept integer arguments.
17923 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17924 for chars and symbol keys.
17925 After doing such remapping, apply function-key-map again.
17926
179272007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17928
17929 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17930 compiled anymore.
17931
179322007-11-26 Andreas Schwab <schwab@suse.de>
17933
17934 * process.c (list_processes_1): Fix indentation level of the
17935 command column.
17936
179372007-11-23 Andreas Schwab <schwab@suse.de>
17938
17939 * editfns.c (Fformat): Handle %c specially since it requires the
17940 argument to be of type int.
17941
179422007-11-23 Markus Triska <markus.triska@gmx.at>
17943
17944 * emacs.c (main): Call init_editfns before init_process, since
17945 init_process sets Vprocess_connection_type depending on OS release.
17946
179472007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17948
17949 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17950 (find_symbol_value): Use do_symval_forwarding.
17951
17952 * data.c (set_internal): Set the value in the `cons-cell' (for
17953 Buffer_Local_values) not only for frame-local variables.
17954
179552007-11-22 Andreas Schwab <schwab@suse.de>
17956
17957 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17958 values to sprintf.
17959 * keymap.c (Fsingle_key_description): Likewise.
17960 * print.c (print_object): Likewise.
17961
179622007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17963
17964 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17965 file for image is nil.
17966
179672007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17968
17969 * term.c: Include stdarg.h.
17970 (fatal): Implement using varargs.
17971 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17972
179732007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17974
17975 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17976 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17977 Update call to buffer_slot_type_mismatch.
17978 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17979 (buffer_slot_type_mismatch): Update.
17980 * buffer.c (buffer_local_types): Remove.
17981 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17982 (defvar_per_buffer): Set the type in the buffer_objfwd.
17983
179842007-11-21 Jason Rumney <jasonr@gnu.org>
17985
17986 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17987 CreateFileMapping returns NULL on failure.
17988
179892007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17990
17991 * search.c (Fset_match_data): Remove the `evaporate' feature.
17992 (unwind_set_match_data): Don't use the `evaporate' feature.
17993
179942007-11-21 Jason Rumney <jasonr@gnu.org>
17995
17996 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17997
17998 * w32console.c (w32con_write_glyphs): Remove unused variables.
17999
180002007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
18001
18002 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
18003
18004 * s/darwin.h (MULTI_KBOARD): Remove.
18005
18006 * macfns.c (x_create_tip_frame, Fx_create_frame)
18007 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18008
180092007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18010
18011 * buffer.c (Fbuffer_local_value): Remove redundant test.
18012 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18013 than in `current-buffer' to match the comment.
18014 Do the swap using swap_in_global_binding.
18015
18016 * data.c (store_symval_forwarding, set_internal):
18017 * eval.c (specbind): Remove dead code.
18018
18019 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18020 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18021 Since we do not want to see internal Lisp_*fwd objects here.
18022
180232007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18024
18025 * sysdep.c (init_system_name): Use getaddrinfo if available.
18026
18027 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18028 (x_scroll_bar_note_movement): start, end, with, height in struct
18029 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18030
180312007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18032
18033 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18034
180352007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18036
18037 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18038 This undoes Richard's change of 14-Oct-2002.
18039
18040 * alloc.c (allocate_other_vector):
18041 * lisp.h (allocate_other_vector): Remove.
18042
18043 * window.c (struct save_window_data): Move non-lisp data to the end
18044 and make it `int' rather than Lisp_Object.
18045 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18046 Done wrap/unwrap integer values.
18047 (Fset_window_configuration, compare_window_configurations):
18048 Update use of fields to their new types.
18049
18050 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18051 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18052 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18053 (SET_SCROLL_BAR_X_WINDOW): Remove.
18054 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18055 Access the new x_window field directly.
18056 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18057 Don't wrap/unwrap integers into Lisp_Objects.
18058 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18059 (x_scroll_bar_report_motion):
18060 Don't wrap/unwrap integers into Lisp_Objects.
18061 (x_term_init): Use SDATA.
18062 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18063 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18064 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18065 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18066 * xfns.c (x_set_background_color):
18067 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18068 Access the new x_window field directly.
18069
18070 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18071 (allocate_pseudovector): Make non-static.
18072
18073 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18074 (allocate_pseudovector): Declare.
18075 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18076
180772007-11-15 Andreas Schwab <schwab@suse.de>
18078
18079 * editfns.c (Fformat): Correctly format EMACS_INT values.
18080 Also take precision into account when formatting an integer.
18081
18082 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18083
180842007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18085
18086 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18087 (syms_of_keyboard): Defsubr it.
18088
18089 * data.c (swap_in_global_binding): Fix longstanding bug where
18090 store_symval_forwarding was not called with the right second argument,
18091 thus causing objfwd-ing from being dropped.
18092
180932007-11-14 Juanma Barranquero <lekktu@gmail.com>
18094
18095 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18096 (Fx_display_pixel_height, Fx_display_planes)
18097 (Fx_display_color_cells, Fx_server_max_request_size)
18098 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18099 (Fx_display_visual_class, Fx_display_save_under):
18100 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18101 (Fx_display_pixel_height, Fx_display_planes)
18102 (Fx_display_color_cells, Fx_server_max_request_size)
18103 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18104 (Fx_display_mm_height, Fx_display_mm_width)
18105 (Fx_display_backing_store, Fx_display_visual_class)
18106 (Fw32_select_font, Fx_display_save_under):
18107 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18108 (Fx_display_pixel_height, Fx_display_planes)
18109 (Fx_display_color_cells, Fx_server_max_request_size)
18110 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18111 (Fx_display_save_under): Fix typos in docstrings.
18112
181132007-11-14 Juanma Barranquero <lekktu@gmail.com>
18114
18115 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18116 corresponding to deleted entries; they are an implementation detail.
18117 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18118 Remove variables.
18119 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18120 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18121 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18122 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18123 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18124 (Fw32_define_rgb_color, Fw32_load_color_file)
18125 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18126 Fix typos in docstrings.
18127 (Fx_server_version): Reflow docstring.
18128 (Fw32_shell_execute): Doc fixes.
18129
181302007-11-13 Juanma Barranquero <lekktu@gmail.com>
18131
18132 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18133 if w32_parse_hot_key returned nil.
18134
181352007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18136
18137 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18138
181392007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18140
aac0c6e3
MR
18141 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18142
18143 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18144
18145 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18146 Remove W32_SCROLL_BAR_CLICK_EVENT.
18147
18148 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18149 Add MULTIMEDIA_KEY_EVENT.
18150
18151 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18152 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18153 (make_lispy_event) [WINDOWSNT]: Use it to translate
18154 MULTIMEDIA_KEY_EVENT.
18155
18156 * w32term.h (WM_APPCOMMAND): Define if not already.
18157 (GET_APPCOMMAND_LPARAM): Likewise.
18158
18159 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18160 WM_APPCOMMAND.
18161
18162 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18163 (syms_of_w32fns): Export and initialize it.
18164 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18165
181662007-11-09 Chong Yidong <cyd@stupidchicken.com>
18167
18168 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18169 twice.
18170
18171 * xdisp.c (handle_face_prop): Fix last change.
18172
181732007-11-09 Richard Stallman <rms@gnu.org>
18174
18175 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18176 not just for after-strings and before-strings.
18177 Call face_for_overlay_string and pass the overlay to it.
18178 (handle_display_prop): Determine whether property came from an overlay.
18179 Pass OVERLAY arg to handle_single_display_spec.
18180 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18181 (load_overlay_strings): Fill in it->string_overlays.
18182 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18183
18184 * xfaces.c (face_for_overlay_string): Function renamed from
18185 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18186
18187 * dispextern.h (struct it): New elt string_overlays.
18188 New elt from_overlay, also in stack.
18189 Rearrange a few elements.
18190 (face_for_overlay_string): Decl renamed from
18191 face_at_buffer_position_no_overlays, and add argument.
18192
181932007-11-09 Richard Stallman <rms@gnu.org>
18194
18195 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18196 to get the base face for an overlay string.
18197
18198 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18199
18200 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18201
18202 * xdisp.c (handle_stop): Move some code out of loop.
18203
182042007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18205
18206 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18207 Fix conversion from Lisp object to ATSUFontID.
18208
182092007-11-09 Jason Rumney <jasonr@gnu.org>
18210
18211 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18212
182132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18214
18215 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18216 Don't assume regions are aligned to page boundary.
18217 (print_load_command_name): Add LC_UUID if defined.
18218
182192007-11-09 Richard Stallman <rms@gnu.org>
18220
18221 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18222
182232007-11-07 Jason Rumney <jasonr@gnu.org>
18224
18225 * s/windows95.h: Remove.
18226
182272007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18228
18229 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18230 abort with a message on unhandled store_type values.
18231
182322007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18233
18234 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18235 Remove HAVE_X11R5 and HAVE_X11R4.
18236
182372007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18238
18239 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18240
182412007-11-01 Johan Bockgård <bojohan@gnu.org>
18242
18243 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18244 Don't set s->stippled_p here, since it has already been set by
18245 x_set_glyph_string_gc from x_draw_glyph_string.
18246
182472007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18248
18249 * sunfns.c: Remove file.
18250
18251 * m/sun386.h:
18252 * m/sun2.h:
18253 * m/sparc.h: Remove Sun windows code.
18254
182552007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18256
18257 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18258 (init_keyboard): Set current_kboard's window-system to nil.
18259 (tty_read_avail_input): Typo.
18260 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18261
182622007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18263
18264 * s/usg5-4.h:
18265 * s/usg5-3.h:
18266 * s/ptx.h:
18267 * m/is386.h:
18268 * m/ibmps2-aix.h:
18269 * Makefile.in: Remove all mentions of X10.
18270
18271 * dispnew.c (syms_of_display): Don't mention version 10.
18272
182732007-10-28 Juanma Barranquero <lekktu@gmail.com>
18274
18275 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18276 ($(BLD)/abbrev.$(O)): Remove.
18277
182782007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18279
18280 Rewrite abbrev.c in Elisp.
18281 * image.c (Qcount): Don't declare as extern.
18282 (syms_of_image): Initialize and staticpro `Qcount'.
18283 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18284 * emacs.c (main): Don't call syms_of_abbrev.
18285 * Makefile.in (obj): Remove abbrev.o.
18286 (abbrev.o): Remove.
18287 * abbrev.c: Remove.
18288
182892007-10-26 Martin Rudalics <rudalics@gmx.at>
18290
18291 * window.c (window_min_size_2): Don't count header-line.
18292
182932007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18294
18295 * frame.h (struct frame): Move all bit fields after the first bit
18296 field to take advantage of the available space. Group all the
18297 chars together to reduce wasted space due to padding.
18298
182992007-10-26 Juanma Barranquero <lekktu@gmail.com>
18300
18301 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18302
18303 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18304 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18305 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18306 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18307 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18308 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18309 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18310 (last_marked, mark_object_loop_halt): Make static.
18311
18312 * frame.c (syms_of_frame) <delete-frame-functions>:
18313 Fix typo in docstring.
18314
183152007-10-25 Juanma Barranquero <lekktu@gmail.com>
18316
18317 * w32.c (init_environment): Fix tiny memory leak.
18318 (w32_get_resource): Remove unused variable `ok'.
18319
183202007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18321
18322 Make `window-system' into a keyboard-local variable (rather than
18323 frame-local as done originally by multi-tty).
18324
18325 * keyboard.h (struct kboard): Add Vwindow_system.
18326 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18327 (mark_kboards): Mark Vwindow_system.
18328
18329 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18330 (init_display): Don't set the obsolete `window-system' frame-param.
18331
18332 * xterm.c (x_term_init):
18333 * w32term.c (w32_create_terminal):
18334 * term.c (init_tty): Set Vwindow_system.
18335 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18336 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18337
18338 * xfns.c (Fx_create_frame, x_create_tip_frame):
18339 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18340 * macfns.c (Fx_create_frame):
18341 Don't set the obsolete `window-system' frame-param.
18342
18343 * frame.h (Qwindow_system): Remove.
18344 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18345 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18346
183472007-10-24 Richard Stallman <rms@gnu.org>
18348
18349 * frame.c (x_figure_window_size): For fullscreen case,
18350 set USPosition | PPosition without clobbering rest of window_prompting.
18351
18352 * keyboard.c (Fcurrent_idle_time): Doc fix.
18353
18354 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18355
183562007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18357
18358 * process.c (unwind_request_sigio): Only define if __ultrix__.
18359
18360 * callproc.c (child_setup): Remove spurious *.
18361
18362 * lisp.h (Fget_text_property): Declare.
18363 (have_menus_p): Declare it here rather than in sys-dep header files.
18364 * macterm.h (have_menus_p):
18365 * msdos.h (have_menus_p):
18366 * xterm.h (have_menus_p): Remove.
18367
18368 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18369 (Fmake_variable_frame_local): Just check the variable's const-ness
18370 rather than checking nil or t.
18371
183722007-10-22 Jason Rumney <jasonr@gnu.org>
18373
18374 * w32fns.c: Include math.h.
18375 (w32_abort): Declaration moved to nt/config.nt.
18376
18377 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18378 (abort): Redefinition moved to nt/config.nt.
18379
18380 * m/windowsnt.h: Remove.
18381
183822007-10-22 Juanma Barranquero <lekktu@gmail.com>
18383
18384 * emacs.c (Fdump_emacs): Fix typo in message.
18385 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18386 <installation-directory>: Reflow docstring.
18387
183882007-10-22 Juri Linkov <juri@jurta.org>
18389
18390 * minibuf.c: Allow minibuffer default to be a list of default values.
18391 With empty input use the first element of this list as returned default.
18392 (string_to_object)
18393 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18394 (read_minibuf): If defalt is cons, set histstring to its car.
18395 (Fread_string): If default_value is cons, set val to its car.
18396 (Fread_buffer): If def is cons, use its car.
18397 (Fcompleting_read): If defalt is cons, set val to its car.
18398
183992007-10-21 Michael Albinus <michael.albinus@gmx.de>
18400
18401 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18402
184032007-10-20 Juanma Barranquero <lekktu@gmail.com>
18404
18405 * doc.c (Fdocumentation): Check for advice in all cases.
18406
184072007-10-19 Chong Yidong <cyd@stupidchicken.com>
18408
18409 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18410
184112007-10-19 Richard Stallman <rms@gnu.org>
18412
18413 * doc.c (Fdocumentation): Check for and handle an advised function.
18414
184152007-10-19 Juanma Barranquero <lekktu@gmail.com>
18416
18417 * process.c (Fset_process_filter): Doc fix.
18418
184192007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18420
18421 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18422 which caused key-translation-map to applied repeatedly (thus breaking
18423 double-mode).
18424
184252007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18426
18427 * xselect.c (x_own_selection, x_handle_selection_clear)
18428 (x_clear_frame_selections):
18429 * w32menu.c (list_of_panes, list_of_items):
18430 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18431 * textprop.c (validate_plist, interval_has_all_properties)
18432 (interval_has_some_properties, interval_has_some_properties_list)
18433 (add_properties, text_property_list):
18434 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18435 * minibuf.c (Fassoc_string):
18436 * macselect.c (x_own_selection, x_clear_frame_selections)
18437 (Fx_disown_selection_internal):
18438 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18439 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18440
184412007-10-17 Chong Yidong <cyd@stupidchicken.com>
18442
18443 * process.c: Link to libs for calling res_init() if available.
18444 (Fmake_network_process): Call res_init() before getaddrinfo or
18445 gethostbyname, if possible.
18446
184472007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18448
18449 * lread.c (read1): Set pvectype for char_tables.
18450
18451 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18452 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18453 Add type checks.
18454 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18455
18456 * alloc.c (free_misc): Use XMISCTYPE.
18457 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18458
184592007-10-17 Glenn Morris <rgm@gnu.org>
18460
18461 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18462 (syms_of_minibuf): Add Qcompletion_ignore_case.
18463 * dired.c (Qcompletion_ignore_case): Change to external.
18464 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18465 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18466 (Fread_file_name): Use it rather than intern'ing.
18467
18468 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18469 (Fread_coding_system): Ignore case of user input.
18470
184712007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18472
18473 * xdisp.c (handle_display_prop): Ignore display specs after
18474 replacing one when string text is being replaced.
18475 (handle_single_display_spec): Pretend as if characters with display
18476 property haven't been consumed only when buffer text is being replaced.
18477
184782007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18479
18480 * xfns.c (Fx_create_frame, Fx_display_list):
18481 * window.c (window_fixed_size_p, enlarge_window)
18482 (shrink_window_lowest_first):
18483 * macterm.c (init_font_name_table):
18484 * macfns.c (Fx_create_frame, Fx_display_list):
18485 * lread.c (close_load_descs):
18486 * keyboard.c (read_char_x_menu_prompt):
18487 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18488 * coding.c (code_convert_region_unwind): Test the type of an object
18489 rather than just !NILP before extracting data from it.
18490
18491 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18492
18493 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18494 (XMISCANY): New macro.
18495 (XMISCTYPE): Use it.
18496 (struct Lisp_Misc_Any): New type.
18497 (union Lisp_Misc): Use it.
18498 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18499 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18500 (find_symbol_value, set_internal, default_value, Fset_default)
18501 (Fmake_variable_buffer_local, Fmake_local_variable)
18502 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18503 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18504 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18505 * alloc.c (allocate_buffer): Set the size and tag.
18506 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18507 Use XMISCANY.
18508 (die): Follow the GNU convention for error messages.
18509 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18510 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18511 tag any more.
18512 (set_buffer_internal_1):
18513 * frame.c (store_frame_param):
18514 * eval.c (specbind):
18515 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18516
18517 * doc.c (Fsnarf_documentation): Simplify.
18518
185192007-10-14 Juanma Barranquero <lekktu@gmail.com>
18520
18521 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18522 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18523
185242007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18525
18526 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18527
185282007-10-14 Juanma Barranquero <lekktu@gmail.com>
18529
18530 * eval.c (do_autoload): Don't save autoloads.
18531
18532 * data.c (Ffset): Save autoload of the function being set.
18533
185342007-10-07 John Paul Wallington <jpw@pobox.com>
18535
18536 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18537 parameter before setting up faces.
18538
185392007-10-13 Eli Zaretskii <eliz@gnu.org>
18540
18541 * ccl.c (Fregister_code_conversion_map):
18542 * keyboard.c (append_tool_bar_item): Reformat last change.
18543
18544 * lisp.h (eabs): Rename from `abs'. All callers changed.
18545
185462007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18547
18548 * buffer.c (add_overlay_mod_hooklist):
18549 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18550 * fontset.c (make_fontset):
18551 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18552 (append_tool_bar_item):
18553 * macmenu.c (grow_menu_items):
18554 * w32menu.c (grow_menu_items):
18555 * xmenu.c (grow_menu_items): Use larger_vector.
18556
185572007-10-13 Eli Zaretskii <eliz@gnu.org>
18558
18559 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18560 selected frame'' on MSDOS).
18561
185622007-10-12 Martin Rudalics <rudalics@gmx.at>
18563
18564 * frame.c (Qexplicit_name): New variable.
18565 (x_report_frame_params): Report it in parameter alist.
18566 (syms_of_frame): Intern and staticpro it.
18567
185682007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18569
18570 * macfns.c (x_create_tip_frame): Set terminal for frame.
18571
185722007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18573
18574 * frame.c (Qenvironment): Remove.
18575 (syms_of_frame) <Qenvironment>: Don't initialize.
18576 (Fdelete_frame): Don't treat the `environment' param specially.
18577 * frame.h (Qenvironment): Don't declare.
18578 * callproc.c (set_initial_environment): Don't set unused frame param.
18579
18580 * frame.c (Fframe_with_environment): Remove.
18581 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18582
18583 * lisp.h (Fframe_with_environment): Don't declare.
18584
185852007-10-10 Juanma Barranquero <lekktu@gmail.com>
18586
18587 * indent.c (indent_tabs_mode, last_known_column)
18588 (last_known_column_modified): Make static.
18589 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18590
185912007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18592
18593 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18594
185952007-10-09 Jason Rumney <jasonr@gnu.org>
18596
18597 * w32term.c (x_set_window_size): Disable code that attempts to tell
18598 Lisp code about a size change before it actually happens.
18599
186002007-10-09 Richard Stallman <rms@gnu.org>
18601
18602 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18603 return HANDLED_RETURN.
18604
186052007-10-08 Martin Rudalics <rudalics@gmx.at>
18606
18607 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18608 when there's an unread command event.
18609
18610 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18611 window autoselection act appropriately when leaving selected frame.
18612 (syms_of_frame): Initialize focus_follows_mouse.
18613 * frame.h (focus_follows_mouse): Extern it.
18614 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18615 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18616 * msdos.c (dos_rawgetc): Likewise.
18617 * w32term.c (w32_read_socket): Likewise.
18618 * xterm.c (handle_one_xevent): Likewise.
18619 * xdisp.c (syms_of_xdisp): In doc-string of
18620 mouse-autoselect-window mention focus-follows-mouse.
18621
186222007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18623
18624 * macterm.c (mac_load_query_font): Fix missing return value.
18625 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18626 Add BLOCK_INPUT.
18627
186282007-10-08 Richard Stallman <rms@gnu.org>
18629
18630 * xdisp.c (get_window_cursor_type): Implement documented behavior
18631 for cursor-in-non-selected-windows = t.
18632
186332007-10-08 Jason Rumney <jasonr@gnu.org>
18634
18635 * w32.c (w32_get_resource): Always close registry keys.
18636
186372007-10-08 Jason Rumney <jasonr@gnu.org>
18638
18639 * makefile.w32-in (LIBS): Add COMCTL32.
18640
18641 * w32fns.c (globals_of_w32fns): Init common controls.
18642
186432007-10-08 Richard Stallman <rms@gnu.org>
18644
18645 * image.c (our_memory_buffer): Rename from omfib_buffer.
18646
186472007-10-08 Richard Stallman <rms@gnu.org>
18648
18649 * buffer.c (Foverlays_at): Doc fix.
18650
186512007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18652
18653 * fns.c (Fplist_put): Preserve uneven tail data.
18654
186552007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18656
18657 * termhooks.h (enum event_kind): Remove trailing comma.
18658
18659 * frame.h (enum): Remove trailing comma.
18660
186612007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18662
18663 * w32proc.c (delete_child): Don't terminate threads of zombies.
18664
186652007-10-08 Martin Rudalics <rudalics@gmx.at>
18666
18667 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18668
18669 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18670 last-repeatable-command.
18671 (init_kboard): Initialize Vlast_repeatable_command.
18672 (command_loop_1): Set it to real_this_command unless that was
18673 bound to an input event.
18674 (mark_kboards): Mark it.
18675
186762007-10-08 Richard Stallman <rms@gnu.org>
18677
18678 * eval.c (condition-case): Doc fix.
18679
186802007-10-08 Masatake YAMATO <jet@gyve.org>
18681
18682 * xfaces.c (tty_supports_face_attributes_p): Fix code
18683 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18684 was copied and not edited.
18685
186862007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18687
18688 Add new `input-decode-map' keymap and use it for terminal
18689 escape sequences.
18690 * keyboard.h (struct kboard): Add Vinput_decode_map.
18691 Remove Vlocal_key_translation_map.
18692 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18693 (init_kboard): Init input-decode-map.
18694 Replace local-key-translation-map back with key-translation-map.
18695 (syms_of_keyboard): Declare input-decode-map.
18696 Remove local-key-translation-map. Update docstrings.
18697 (mark_kboards): Mark Vinput_decode_map.
18698 Don't mark Vlocal_key_translation_map.
18699 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18700 Replace local-key-translation-map back with key-translation-map.
18701 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18702 Bind in input-decode-map rather than function-key-map.
18703
18704 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18705 This was made redundant by the previous introduction of XSETPVECTYPE.
18706
187072007-10-09 Richard Stallman <rms@gnu.org>
18708
18709 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18710
187112007-09-29 Richard Stallman <rms@gnu.org>
18712
18713 * eval.c (internal_condition_case_2, internal_condition_case_1)
18714 (internal_condition_case): Reenable abort if x_catching_errors ()
18715 to see if that really happens and why.
18716
187172007-10-06 Andreas Schwab <schwab@suse.de>
18718
18719 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18720
187212007-10-04 Juanma Barranquero <lekktu@gmail.com>
18722
18723 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18724
187252007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18726
18727 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18728
187292007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18730
18731 * window.h (struct window):
18732 * window.c (struct save_window_data, struct saved_window):
18733 * termhooks.h (struct terminal):
18734 * process.h (struct Lisp_Process):
18735 * frame.h (struct frame):
18736 * buffer.h (struct buffer):
18737 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18738 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18739 The size field of (pseudo)vectors is now unsigned.
18740 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18741
18742 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18743 Turn `count' into an integer.
18744
18745 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18746 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18747 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18748 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18749 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18750
18751 * alloc.c (allocate_pseudovector): New fun.
18752 (ALLOCATE_PSEUDOVECTOR): New macro.
18753 (allocate_window, allocate_terminal, allocate_frame)
18754 (allocate_process): Use it.
18755 (mark_vectorlike): New function.
18756 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18757 (mark_terminals): Use it.
18758 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18759 (Fmake_byte_code): Use XSETPVECTYPE.
18760
18761 * frame.c (Fframe_parameters): Minor simplification.
18762
18763 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18764
18765 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18766
18767 * buffer.c (Fget_buffer_create, init_buffer_once):
18768 * lread.c (defsubr):
18769 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18770
18771 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18772 defined differently in the m/*.h files.
18773 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18774 (XSETPVECTYPE): New macro.
18775 (XSETPSEUDOVECTOR): Use it.
18776
18777 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18778 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18779
18780 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18781 * lread.c (defvar_per_buffer):
18782 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18783
18784 * window.c (candidate_window_p): Only consider as visible frames that
18785 are on the same terminal.
18786
18787 * m/ibms390x.h (MARKBIT): Remove unused macro.
18788
187892007-10-01 Juanma Barranquero <lekktu@gmail.com>
18790
18791 * lread.c (Fload): Fix typo in docstring.
18792
187932007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18794
18795 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18796 of a non-zero value can't yield zero.
18797
187982007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18799
18800 * term.c (term_clear_mouse_face, term_mouse_highlight)
18801 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18802
18803 * print.c (safe_debug_print): Use XHASH.
18804
18805 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18806 Lisp elements such as tags.
18807 (XHASH): New macro.
18808 (EQ): Use it.
18809 (SREF, SSET, STRING_COPYIN): Use SDATA.
18810 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18811
18812 * alloc.c (mark_terminal): Remove left-over declaration.
18813 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18814 (allocate_vectorlike): Remove type argument. Adjust callers.
18815 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18816 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18817
18818 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18819 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18820 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18821 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18822 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18823 Use them.
18824
18825 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18826 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18827 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18828
188292007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18830
18831 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18832 loaded by default.
18833
188342007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18835
18836 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18837 on this tty.
18838 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18839
18840 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18841 Update all users.
18842 (handle_one_term_event): Use Gpm_DrawPointer.
18843 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18844 Signal errors instead of returning nil. Always return nil.
18845 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18846 Make it a noop if gpm-mouse was not activated.
18847 (syms_of_term): Update names.
18848
188492007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18850
18851 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18852 (init_sys_modes): Check that gpm_tty is the current tty.
18853
18854 * alloc.c (allocate_terminal): Set the vector size to only count the
18855 lisp fields. Initialize those to nil.
18856 (mark_object): Don't treat terminals specially.
18857 (mark_terminal): Remove.
18858 (mark_terminals): Use mark_object instead.
18859
18860 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18861 the GC to the beginning.
18862
18863 * indent.h:
18864 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18865
18866 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18867
188682007-09-25 Jason Rumney <jasonr@gnu.org>
18869
18870 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18871
18872 * w32console.c (create_w32cons_output): Remove.
18873
18874 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18875
18876 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18877 (reset_sys_modes): Use reset_terminal_modes_hook.
18878
188792007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18880
18881 * eval.c (do_autoload): Don't output any message.
18882
188832007-09-24 Juri Linkov <juri@jurta.org>
18884
18885 * emacs.c (standard_args): Change priority of "--no-splash"
18886 from 40 to 3. Add "--no-desktop" with the same priority.
18887
188882007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18889
18890 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18891 and optimize the case where they are all 1.
18892
188932007-09-23 Johannes Weiner <hannes@saeurebad.de>
18894
18895 * lisp.h (abs): Define if not defined.
18896 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18897 Don't define `abs', since it's defined in lisp.h.
18898
188992007-09-22 Eli Zaretskii <eliz@gnu.org>
18900
18901 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18902 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18903 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18904 (init_tty): Use DEV_TTY instead of "/dev/tty".
18905 [WINDOWSNT]: No need to protect from NAME arg being null.
18906
189072007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18908
18909 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18910 up the tty state.
18911
189122007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18913
18914 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18915 (gpm_tty): Change its type.
18916 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18917 (gpm_tty): Change its type and initialize it.
18918 (Fterm_open_connection): Check the frame is indeed a tty.
18919 Use the new gpm_tty.
18920 (Fterm_close_connection): Use the new gpm_tty.
18921 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18922 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18923
189242007-09-21 Juanma Barranquero <lekktu@gmail.com>
18925
18926 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18927 underline_color, to draw strike-through.
18928
189292007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18930
18931 * lisp.h (allocate_terminal): Declare.
18932
18933 * window.c (candidate_window_p): Consider frames that are being placed
18934 by the user as somewhere between visible and iconified.
18935 (window_loop): Prefer windows on the current frame.
18936 (Fselect_window): Move the use of select-frame to the beginning so we
18937 can just delegate all the work (it'll call us back anyway).
18938
18939 * frame.c (Qdisplay_environment_variable):
18940 * frame.h (Qdisplay_environment_variable): Delete.
18941
18942 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18943 of the first arg, since that value may be a union.
18944
18945 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18946 parameter rather than Qdisplay_environment_variable. If all else
18947 fails, look for DISPLAY in initial-environment.
18948
189492007-09-21 Glenn Morris <rgm@gnu.org>
18950
18951 * Makefile.in (emacstool): Remove target.
18952 (lisp, shortlisp): Remove termdev.elc.
18953
189542007-09-21 Markus Triska <markus.triska@gmx.at>
18955
18956 * xterm.c (x_delete_display): Compile session management conditionally.
18957
189582007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18959
18960 * callproc.c (getenv_internal_1): New function.
18961 (getenv_internal): Use it.
18962 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18963
18964 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18965 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18966 (Fset_terminal_parameter): Work with dead terminals as well.
18967 (Fmodify_terminal_parameters): Remove.
18968
18969 * terminal.c (get_terminal): Handle terminals.
18970 Make sure the terminal returned is live.
18971 (create_terminal): Use allocate_terminal.
18972 (mark_terminals): Move to alloc.c.
18973 (delete_terminal): Use terminal->name as liveness status.
18974 NULL out fields after freeing their contents.
18975 Don't deallocate the object.
18976 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18977 rather than an int.
18978 (Fterminal_live_p): Accept non-integer arguments.
18979 (Fterminal_list): Return terminal objects rather than an ints.
18980
18981 * alloc.c (enum mem_type): New member for `terminal' objects.
18982 (allocate_terminal): New function.
18983 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18984 Handle terminals.
18985 (mark_terminal): New fun.
18986 (mark_terminals): Move from terminal.c.
18987
18988 * term.c (get_tty_terminal): Don't treat output_initial specially.
18989 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18990 (delete_tty): Use terminal->name as liveness status.
18991
18992 * termhooks.h (struct terminal): Make it into a pseudovector.
18993 Remove `deleted' replaced by checking `name's nullness.
18994
18995 * print.c (print_object): Handle terminals.
18996
18997 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18998 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18999
19000 * frame.c (make_terminal_frame):
19001 * keyboard.c (tty_read_avail_input):
19002 * w32term.c (x_delete_terminal):
19003 * xfns.c (Fx_create_frame, x_create_tip_frame):
19004 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
19005
190062007-09-20 Glenn Morris <rgm@gnu.org>
19007
19008 * process.c (Fmake_network_process): Doc fix.
19009
190102007-09-19 Jason Rumney <jasonr@gnu.org>
19011
19012 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19013
190142007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19015
19016 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19017 Fix a C warning regarding variable constness.
19018
19019 * xterm.c (handle_one_xevent): Fix a C warning.
19020
190212007-09-18 Jason Rumney <jasonr@gnu.org>
19022
19023 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19024
190252007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19026
19027 * gtkutil.c (gdpy_def): New variable.
19028 (xg_initialize): Initialize gdpy_def.
19029 (xg_display_close): If no other display exists, set gdpy_def to a
19030 new connection.
19031
190322007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19033
19034 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19035 when we have no file name for the icon.
19036 (xg_tool_bar_expose_callback): Remove.
19037 (xg_create_tool_bar): Don't connect expose signal to
19038 xg_tool_bar_expose_callback.
19039 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19040
190412007-09-16 Andreas Schwab <schwab@suse.de>
19042
19043 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19044 values instead of zapping them.
19045
190462007-09-14 Glenn Morris <rgm@gnu.org>
19047
19048 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19049 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19050 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19051 scope and rename to omfib_buffer for clarity.
19052 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19053
190542007-09-14 Kenichi Handa <handa@m17n.org>
19055
19056 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19057
190582007-09-13 Jason Rumney <jasonr@gnu.org>
19059
19060 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19061
19062 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19063
19064 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19065 (mac_term_init): Call here instead, passing rif.
19066
190672007-09-13 Glenn Morris <rgm@gnu.org>
19068
19069 * s/hpux.h: No longer define `static' as nothing.
19070
190712007-09-13 Johan Bockgård <bojohan@gnu.org>
19072
19073 * callint.c (Fcall_interactively): Remove unused var `fun'.
19074
190752007-09-12 Romain Francoise <romain@orebokech.com>
19076
19077 * window.c (prefer_window_split_horizontally, display_buffer):
19078 Revert 2007-09-08 change.
19079
190802007-09-12 Glenn Morris <rgm@gnu.org>
19081
19082 * alloca.c: Remove file.
19083 * Makefile.in (alloca): Do not undef.
19084 (allocaobj, alloca.o): Remove.
19085 (otherobj): Remove allocaobj.
19086 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19087 * regex.c (C_ALLOCA): Remove all references and code that was only
19088 used when this was defined.
19089 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19090 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19091 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19092
19093 * Makefile.in (SOURCES, unlock, relock): Delete.
19094
19095 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19096 (menu_grab_callback): All uses changed.
19097
19098 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19099 (x_reply_selection_request): All uses changed.
19100
191012007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19102
19103 * lread.c (load_warn_old_style_backquotes): Change message to look
19104 better when it appears in the middle of byte-compiler messages.
19105
191062007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19107
19108 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19109
19110 * xterm.c (x_create_terminal): Add comment.
19111
19112 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19113
191142007-09-10 Richard Stallman <rms@gnu.org>
19115
19116 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19117
191182007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19119
19120 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19121 (DEFUN): Document `intspec', use it instead of `prompt'.
19122
19123 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19124
19125 * data.c (Finteractive_form): If the interactive specification starts
19126 with a `(', use it as a Lisp form.
19127
19128 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19129 name and file modes.
19130
19131 * callint.c (Fcall_interactively): Comment fixes.
19132
191332007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19134
19135 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19136 and compiled functions.
19137
191382007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19139
19140 * window.c (prefer_window_split_horizontally): New variable.
19141 (display_buffer): Consider splitting window horizontally depending
19142 on prefer_window_split_horizontally.
19143
191442007-09-08 Eli Zaretskii <eliz@gnu.org>
19145
19146 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19147
191482007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19149
19150 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19151
19152 * frame.c (x_set_frame_parameters): Check number is positive before
19153 using XFASTINT.
19154
19155 * window.c (freeze_window_start): Don't presume selected_window holds
19156 a window object.
19157 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19158
191592007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19160
19161 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19162
191632007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19164
19165 * window.c (Vsplit_window_preferred_function): New var.
19166 (Fdisplay_buffer): Use it.
19167 (syms_of_window): Export, and initialize it.
19168
191692007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19170
19171 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19172
191732007-09-06 Glenn Morris <rgm@gnu.org>
19174
19175 * gtkutil.c (menu_grab_callback) <cnt>:
19176 * xselect.c (x_reply_selection_request) <cnt>: Move static
19177 variable to file scope.
19178
191792007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19180
19181 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19182 consistent values of selected_frame and selected_window.
19183
191842007-09-04 Jason Rumney <jasonr@gnu.org>
19185
19186 * w32console.c (initialize_w32_display): Zero unused hooks.
19187
191882007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19189
19190 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19191 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19192
191932007-09-04 Jason Rumney <jasonr@gnu.org>
19194
19195 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19196 in w32console.c. Set up input. Remove XXX comments that have been
19197 confirmed as correct.
19198
19199 * s/ms-w32.h (MULTI_KBOARD): Define.
19200
19201 * w32console.c (one_and_only_w32cons): Remove.
19202 (initialize_w32_display): Take terminal argument.
19203
19204 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19205 initialize_w32_display.
19206 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19207
19208 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19209
19210 * keyboard.c (discard_mouse_events): Discard it.
19211 (make_lispy_event): Translate it to a lisp event.
19212 (lispy_wheel_names): Add wheel-left and right events.
19213 (syms_of_keyboard): Enlarge wheel_syms.
19214
19215 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19216 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19217
19218 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19219
19220 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19221 from WM_MOUSEHWHEEL.
19222 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19223
19224 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19225 terminal.
19226
19227 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19228 keyboard for the terminal.
19229
192302007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19231
19232 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19233 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19234 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19235 and resume-tty-function to resume-tty-hook.
19236 (Fsuspend_tty, Fresume_tty): Use new names.
19237
192382007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19239
19240 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19241 if it starts with "n:".
19242
192432007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19244
19245 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19246
192472007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19248
19249 * frame.h:
19250 * frame.c (Qterm_environment_variable): Remove.
19251 (syms_of_frame): Don't init and staticpro it.
19252
19253 * callproc.c (getenv_internal): Remove special case for $TERM.
19254
19255 * callproc.c (Vinitial_environment): New variable.
19256 (set_initial_environment): Initialize it.
19257 (syms_of_callproc): Declare it.
19258 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19259 TERM under which a process runs is never related to the TERM in which
19260 Emacs is running.
19261
192622007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19263
19264 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19265 * s/darwin.h: ... do it here.
19266
192672007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19268
19269 * lisp.h (set_initial_environment): Rename from set_global_environment.
19270
19271 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19272 removed by mistake on the multi-tty branch.
19273
19274 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19275 (Fmodify_frame_parameters): Return a value.
19276
19277 * image.c (png_load): Comment-out var only used in commented-out code.
19278
19279 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19280 before passing it to mark_object.
19281
19282 * xfaces.c (internal_resolve_face_name): Return a value.
19283 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19284
19285 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19286 (x_icon): Comment-out var only used in commented-out code.
19287
192882007-08-29 Romain Francoise <romain@orebokech.com>
19289
19290 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19291 QUIT hasn't been provided.
19292
192932007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19294
19295 * callproc.c (child_setup, getenv_internal): Use the
19296 display-environment-variable and term-environment-variable frame params.
19297 (set_initial_environment): Initialise Vprocess_environment.
19298
19299 * config.in: Disable multi-keyboard support on a mac.
19300
19301 * frame.c (Qterm_environment_variable)
19302 (Qdisplay_environment_variable): New variables.
19303 (syms_of_frame): Intern and staticpro them.
19304 (Fmake_terminal_frame): Disable output method test.
19305
19306 * frame.h: Declare them here.
19307
19308 * macfns.c (x_set_mouse_color): Get rif from the frame.
19309 (x_set_tool_bar_lines): Don't use updating_frame.
19310 (mac_window): Add 2 new parameters for consistency with other systems.
19311 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19312 frame parameters following what is done in X11 and w32. Don't use
19313 FRAME_MAC_DISPLAY_INFO.
19314 (Fx_open_connection, start_hourglass): Remove window-system check.
19315 (x_create_tip_frame): Get the keyboard from the terminal.
19316
19317 * macmenu.c: Reorder includes.
19318 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19319
19320 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19321 terminal parameter.
19322 (x_clear_frame): Add a frame parameter.
19323 (note_mouse_movement): Get rif from the frame.
19324 (mac_term_init): Initialize the terminal.
19325 (mac_initialize): Make static and move terminal initialization ...
19326 (mac_create_terminal): ... to this new function.
19327
19328 * macterm.h (struct mac_display_info): Add terminal.
19329 (mac_initialize): Delete declaration.
19330
19331 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19332
19333 * sysdep.c: Comment out text after #endif.
19334
19335 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19336 is defined. Better initialize ttys in windows. Use terminal
19337 specific mouse_position_hook.
19338
19339 * termhooks.h (union display_info): Add mac_display_info.
19340
19341 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19342 Set the default minibuffer frame, window_system and the rest of the
19343 frame parameters following what is done in X11.
19344
19345 * w32term.c (w32_initialize): Make static.
19346
19347 * xselect.c (x_handle_selection_clear): Only access
19348 terminal->kboard when MULTI_KBOARD is defined.
19349
19350 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19351 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19352
193532007-08-29 Jason Rumney <jasonr@gnu.org>
19354
19355 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19356 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19357
19358 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19359 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19360
19361 * keyboard.c (restore_kboard_configuration): Only define when
19362 MULTI_KBOARD defined.
19363
19364 * makefile.w32-in: Update dependancies from Makefile.in.
19365 (OBJ1): Add terminal.$(O)
19366
19367 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19368 Don't define function body.
19369 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19370
19371 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19372
19373 * w32.c (request_sigio, unrequest_sigio): Remove.
19374
19375 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19376 (w32con_clear_frame, w32con_clear_end_of_line)
19377 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19378 (w32con_delete_glyphs, w32con_set_terminal_window)
19379 (scroll_line, w32_sys_ring_bell): Add frame arg.
19380 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19381 Add terminal arg.
19382 (PICK_FRAME): Remove.
19383 (w32con_write_glyphs): Use frame specific terminal coding.
19384 (one_and_only_w32cons): New global variable.
19385 (initialize_w32_display): Use it for storing hooks.
19386 (create_w32cons_output): New function.
19387
19388 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19389 arg a frame.
19390
19391 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19392 Set window_system.
19393 (x_set_tool_bar_lines): Don't use updating_frame.
19394 (Fx_create_frame): Set terminal and ref count.
19395 (Fx_open_connection): Remove window-system check.
19396
19397 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19398
19399 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19400 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19401 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19402 Add frame arg.
19403 (x_delete_terminal, w32_create_terminal): New functions.
19404 (w32_term_init): Create a terminal.
19405 (w32_initialize): Move terminal specific initialization to
19406 w32_create_terminal.
19407
19408 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19409 (w32_clear_rect, w32_clear_area): Use background from frame.
19410 (w32_display_info): Add terminal.
19411 (w32_sys_ring_bell, x_delete_display): Declare here.
19412
19413 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19414
19415 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19416
194172007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19418
19419 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19420 Fix get_named_tty calls for the controlling tty.
19421
194222007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19423
19424 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19425
194262007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19427
19428 * term.c (tty_insert_glyphs): Add missing first parameter.
19429
194302007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19431
19432 * buffer.c (Fbuffer_list, Fbury_buffer):
19433 Take frame->buried_buffer_list into account.
19434
19435 * cm.c (current_tty): New variable, for cmputc().
19436 (cmputc): Use it.
19437 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19438 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19439 (cmgoto): Add tty parameter. Pass it on to calccost().
19440 Use emacs_tputs() instead of tputs().
19441
19442 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19443 tputs().
19444 (current_tty): New variable, for cmputc().
19445 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19446
19447 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19448 (internal_condition_case, internal_condition_case_1)
19449 (internal_condition_case_2): Don't abort when x_catching_errors.
19450
19451 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19452 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19453 prevent crashes caused by bogus longjmps in read_char.
19454
19455 * keymap.h (Fset_keymap_parent): Add EXFUN.
19456
19457 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19458 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19459 Remove redundant definition.
19460
19461 * macfns.c (x_set_mouse_color, x_make_gc):
19462 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19463
19464 * w32term.c (x_free_frame_resources):
19465 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19466 (w32_initialize): Use the accessor macros for terminal characteristics.
19467
19468 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19469 Use the accessor macros for terminal characteristics.
19470 * msdos.c (internal_terminal_init): Use the accessor macros for
19471 terminal characteristics.
19472 (ScreenVisualBell, internal_terminal_init):
19473 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19474
19475 * termopts.h (no_redraw_on_reenter): Declare.
19476
19477 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19478 (mark_terminals, mark_ttys): Declare.
19479 (Fgarbage_collect): Call them.
19480 (mark_object): Mark buried_buffer_list.
19481
19482 * prefix-args.c: Include stdlib.h for exit.
19483
19484 * syssignal.h: Add comment.
19485
19486 * indent.c: Include stdio.h.
19487
19488 * window.h (Vinitial_window_system): Declare.
19489 (Vwindow_system): Delete declaration.
19490
19491 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19492
19493 * image.c (lookup_image): Don't initialize `c' until the xasserts
19494 have been run.
19495
19496 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19497 FRAME_FOREGROUND_PIXEL.
19498
19499 * print.c (print_preprocess): Don't lose print_depth levels while
19500 iterating.
19501
19502 * widget.c (update_from_various_frame_slots):
19503 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19504
19505 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19506 frames.
19507 (window_internal_height): Remove bogus make_number call.
19508 (init_window_once): Call make_terminal_frame with two zero parameters.
19509
19510 * fileio.c (Fread_file_name): Update comment.
19511
19512 * callint.c (Fcall_interactively):
19513 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19514 Make sure it is correctly unwound.
19515
19516 * xsmfns.c (x_session_close): New function.
19517
19518 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19519 Delete declarations.
19520
19521 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19522 (x_output): Remove background_pixel and foreground_pixel fields.
19523 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19524 (x_delete_device, x_session_close): Declare.
19525
19526 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19527 (read_filtered_event): Call `read_char' with a local
19528 `wrong_kboard_jmpbuf'.
19529
19530 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19531 Don't call single_kboard_state. Use FRAME_RIF.
19532
19533 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19534 systems.
19535
19536 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19537 (Fframe_with_environment, Fset_input_meta_mode)
19538 (Fset_quit_char): EXFUN.
19539 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19540 (init_sys_modes, reset_sys_modes): Update prototypes.
19541 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19542
19543 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19544 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19545 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19546 Delete declarations.
19547 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19548 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19549 New declarations.
19550
19551 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19552 already does that during init_display(). Call syms_of_keymap
19553 before syms_of_keyboard. Call `syms_of_terminal'.
19554 Call set_initial_environment, not set_process_environment.
19555 (shut_down_emacs): Call reset_all_sys_modes() instead of
19556 reset_sys_modes().
19557
19558 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19559 (internal_resolve_face_name, resolve_face_name_error): New functions.
19560 (resolve_face_name): Protect against loops and errors thrown by Fget.
19561 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19562 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19563
19564 * scroll.c: Replace CURTTY() with local variables throughout the
19565 file (where applicable).
19566 (calculate_scrolling, calculate_direct_scrolling)
19567 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19568 characteristics.
19569
19570 * keymap.c (Vfunction_key_map): Remove.
19571 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19572 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19573 (Vkey_translation_map): Remove.
19574 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19575 (Fdescribe_buffer_bindings)
19576 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19577 Update for terminal-local key-translation-map.
19578
19579 * Makefile.in (callproc.o): Update dependencies.
19580 (lisp, shortlisp): Add termdev.elc.
19581 (obj): Add terminal.o.
19582 (terminal.o): Add dependencies.
19583 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19584 (data.o, fns.o): Add termhooks.h dependency.
19585 (SOME_MACHINE_LISP): Add dnd.elc.
19586 (minibuf.o): Fix typo.
19587 Update dependencies.
19588
19589 * data.c (do_symval_forwarding, store_symval_forwarding)
19590 (find_symbol_value): Use the selected frame's keyboard, not
19591 current_kboard.
19592
19593 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19594 Vwindow_system.
19595
19596 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19597 Fmenu_bar_open.
19598 (syms_of_xmenu): Update defsubr.
19599 (mouse_position_for_popup, Fx_popup_menu)
19600 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19601 (set_frame_menubar, free_frame_menubar)
b97439ce 19602 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19603 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19604 an X frame.
19605
19606 * xselect.c (x_own_selection): Abort if not an X frame.
19607 (some_frame_on_display): Check if it is an X frame.
19608 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19609
19610 * coding.c: Include frame.h and termhooks.h.
19611 (terminal_coding, keyboard_coding): Delete.
19612 (Fset_terminal_coding_system_internal)
19613 (Fset_keyboard_coding_system_internal)
19614 (Fkeyboard_coding_system)
19615 (Fterminal_coding_system): Add a terminal parameter.
19616 Get terminal_coding from the terminal.
19617 (init_coding_once): Don't call setup_coding_system here.
19618
19619 * dispextern.h (set_scroll_region, turn_off_insert)
19620 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19621 (tty_clear_end_of_line, tty_setup_colors)
19622 (delete_tty, updating_frame)
19623 (produce_special_glyphs, produce_glyphs, write_glyphs)
19624 (insert_glyphs): Remove.
19625 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19626 (tty_turn_off_highlight, get_tty_size): Add declaration.
19627 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19628
19629 * frame.h (enum output_method): Add output_initial.
19630 (struct x_output): Delete.
19631 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19632 Access foreground_pixel and background_pixel directly from the frame.
19633 (tty_display): Delete.
19634 (struct frame): Add buried_buffer_list, foreground_pixel,
19635 background_pixel and terminal. Delete kboard.
19636 (union output_data): Add tty.
19637 (FRAME_KBOARD): Get the kboard from the terminal.
19638 (FRAME_INITIAL_P): New macro.
19639 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19640 (Qterm_environment_variable, Qdisplay_environment_variable)
19641 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19642 New declarations.
19643
19644 * termchar.h (tty_output, tty_display_info): New structures.
19645 (tty_list): Declare.
19646 (FRAME_TTY, CURTTY): New macros.
19647 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19648 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19649 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19650 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19651
19652 * callproc.c: Include frame.h and termhooks.h, for terminal
19653 parameters.
19654 (add_env): New function.
19655 (child_setup): Use it.
19656 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19657 (getenv_internal): Fix get_terminal_param call.
19658 (Fgetenv_internal, egetenv): Update doc.
19659 (syms_of_callproc): Initialize Vprocess_environment to nil.
19660 Register and initialize them. Remove obsolete defvars. Update doc
19661 strings.
19662 (child_setup): Handle Vlocal_environment_variables.
19663 (getenv_internal): Add terminal parameter.
19664 Handle Vlocal_environment_variables.
19665 (Fgetenv_internal): Add terminal parameter.
19666 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19667 environment in a frame (not terminal) parameter. Update doc strings.
19668 (set_initial_environment): Rename from set_global_environment.
19669 Store Emacs environment in initial frame parameter.
19670
19671 * xdisp.c (redisplay_internal): Update references to
19672 `previous_terminal_frame'.
19673 (display_mode_line, Fformat_mode_line): Replace calls to
19674 `push_frame_kboard' with `push_kboard'.
19675 (get_glyph_string_clip_rects): Add extra parentheses and
19676 braces to prevent compiler warnings.
19677 (calc_pixel_width_or_height): Add xassert to check that the
19678 frame is alive. Don't call `lookup_image' on a termcap frame.
19679 (message2_nolog, message3_nolog, redisplay_internal)
19680 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19681 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19682 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19683 (Fx_display_pixel_width, Fx_display_pixel_height)
19684 (Fx_display_planes, Fx_display_color_cells)
19685 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19686 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19687 (Fx_display_backing_store, Fx_display_visual_class)
19688 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19689 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19690
19691 * xfns.c (x_set_foreground_color x_set_background_color)
19692 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19693 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19694 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19695 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19696 terminal that is being deleted.
19697 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19698 frame parameter, and make sure it overrides any user-supplied setting.
19699 (Fx_close_connection, Fx_synchronize): Unify argument names with
19700 the rest of the DEFUNs.
19701
19702 * dispnew.c (Fsend_string_to_terminal): Update call to
19703 `get_tty_terminal'.
19704 (Fredraw_frame, Fsend_string_to_terminal)
19705 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19706 FRAME_TERMCAP_P and FRAME_TTY.
19707 (window_change_signal): Don't believe width/height values that are
19708 impossibly small.
19709 (Vinitial_window_system): Rename from Vwindow_system.
19710 (termscript, Wcm, rif): Delete.
19711
19712 * termhooks.h (struct terminal): New struct containing the
19713 previously global text display hooks and new members NAME,
19714 DELETED and PARAM_ALIST.
19715 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19716 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19717 (FRAME_RIF): New macros.
19718 (get_terminal_param, get_device): New declarations.
19719 (termscript): Delete declaration.
19720
19721 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19722 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19723 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19724 FRAME_FOREGROUND_PIXEL.
19725 (x_fully_uncatch_errors): Disable definition.
19726 (x_scroll_bar_expose): Fix reference to foreground pixel.
19727 (XTread_socket): Disable loop on all X displays.
19728 (x_delete_terminal): Don't set terminal->deleted and let
19729 delete_terminal delete the frames on the terminal.
19730 (x_delete_display): Doc update to reflect changes in
19731 delete_terminal.
19732 (x_display_info) <terminal>: Move member earlier in the struct.
19733 (deleting_tty): Remove old variable.
19734 (Fsuspend_tty): Call clear_tty_hooks.
19735 (Fresume_tty, init_tty): Call set_tty_hooks.
19736 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19737 errors on X frames.
19738 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19739 (handle_one_xevent): Initialize `f' to NULL.
19740 (x_delete_terminal, x_create_terminal): New functions.
19741 (XTset_terminal_modes, XTreset_terminal_modes)
19742 (XTread_socket, x_connection_closed, x_term_init)
19743 (x_term_init, x_delete_display): Add terminal parameter.
19744 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19745 X connections.
19746
19747 * frame.c: Include termchar.h.
19748 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19749 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19750 (Qdisplay_environment_variable): New vars.
19751 (Fframep): Deal with output_initial.
19752 (Fframe-live-p): Doc fix.
19753 (Fwindow-system): New function.
19754 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19755 (make_terminal_frame): Don't create frames on a terminal that is
19756 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19757 (store_frame_param): Check for found_for_frame before calling XFRAME.
19758 (Fmake_terminal_frame): Handle NULL tty names correctly.
19759 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19760 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19761 frames to refer to a deleted frame in their 'environment parameter.
19762 (Fframe_with_environment): New function.
19763 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19764 (get_future_frame_param): New function.
19765 (Fmake_terminal_frame): Use it.
19766 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19767
19768 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19769 * sysdep.c (reset_sys_modes): Update for renames.
19770
19771 * keyboard.c (tty_read_avail_input): New function.
19772 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19773 (syms_of_keyboard): Defsubr them.
19774 (Fset_input_meta_mode, Fset_quit_char): New functions.
19775 (Fset_input_mode): Split to above functions.
19776 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19777 parameter. Use it in call to `read_char'.
19778 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19779 Set wrong_kboard_jmpbuf correctly in recursive calls.
19780 Use current_kboard to access Vkeyboard_translate_table.
19781 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19782 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19783 Update longjmp invocations. Remember the original current_kboard,
19784 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19785 changes it. Comment out unnecessary calls to
19786 `record_single_kboard_state' and `any_kboard_state'.
19787 Update recursive calls.
19788 (wrong_kboard_jmpbuf): Remove global variable.
19789 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19790 Handle deleted interrupted_kboards correctly; that is a legal
19791 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19792 and read_char calls. Abort if interrupted_kboard died in read_char.
19793 (any_kboard_state, single_kboard_state)
19794 (push_frame_kboard): Remove function.
19795 (pop_kboard): Switch out of single_kboard mode if the kboard has
19796 been deleted. Remove unused variable. Help debugging by not
19797 changing current_kboard unnecessarily. Set current_kboard to the
19798 kboard of the selected frame when the stored kboard object has
19799 been deleted before pop_kboard.
19800 (temporarily_switch_to_single_kboard): Change first parameter to a
19801 frame pointer. Throw an error when caller wants to change kboards
19802 while in single_kboard mode. Don't push_kboard if we weren't in
19803 single kboard state. Don't pop_kboard if we popped into any
19804 kboard state.
19805 (restore_kboard_configuration): Abort if pop_kboard changed the
19806 kboard in single_kboard mode. Call pop_kboard only after setting
19807 up single_kboard mode.
19808 (Frecursive_edit): Switch to single_kboard mode only in nested
19809 command loops.
19810 (cmd_error, command_loop, command_loop_1, timer_check):
19811 Comment out unnecessary call to `any_kboard_state' and
19812 `record_single_kboard_state'.
19813 (delete_kboard): Exit single_kboard mode if we have just deleted
19814 that kboard. Use FRAME_KBOARD.
19815 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19816 `fatal_error_signal'.
19817 (record_single_kboard_state): Don't push_kboard if we weren't in
19818 single kboard state. Don't pop_kboard if we popped into any
19819 kboard state.
19820 (push_frame_kboard): Rename to push_kboard.
19821 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19822 (read_avail_input): Read input from all terminals.
19823 (mark_kboards): Also mark Vkeyboard_translate_table.
19824 (kbd_buffer_store_event_hold): Simplify condition.
19825 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19826 (Vkeyboard_translate_table): Move to struct kboard.
19827 (init_kboard): Initialize Vkeyboard_translate_table.
19828 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19829 Vkeyboard_translate_table. Update doc strings. Update docs of
19830 local-function-key-map and function-key-map.
19831
19832 * terminal.c: New file.
19833
19834 * term.c: Include errno.h.
19835 (Vring_bell_function, device_list, initial_device)
19836 (next_device_id, ring_bell, update_begin, update_end)
19837 (set_terminal_window, cursor_to, raw_cursor_to)
19838 (clear_to_end, clear_frame, clear_end_of_line)
19839 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19840 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19841 (syms_of_term): Move their initialization to terminal.c.
19842 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19843 (Ftty_display_color_cells)
19844 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19845 (clear_tty_hooks, set_tty_hooks)
19846 (init_tty, maybe_fatal): New functions.
19847 (Ftty_type): Return nil if terminal is not on a tty instead of
19848 throwing an error. Doc update.
19849 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19850 Doc update. Initialize new subrs and variables.
19851 (delete_tty): Use terminal->deleted.
19852 (tty_set_terminal_modes): Rename from set_terminal_modes.
19853 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19854 (set_scroll_region): Rename to `tty_set_scroll_region'.
19855 (turn_on_insert): Rename to `tty_turn_on_insert'.
19856 (turn_off_insert): Rename to `tty_turn_off_insert'.
19857 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19858 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19859 (toggle_highligh): Rename to `tty_toggle_highlight'.
19860 (background_highlight): Rename to `tty_background_highlight'.
19861 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19862 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19863 (tty_set_scroll_region, tty_background_highlight)
19864 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19865 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19866 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19867 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19868 Add static modifier.
19869 (tty_reset_terminal_modes, tty_set_terminal_window)
19870 (tty_set_scroll_region, tty_background_highlight)
19871 (tty_highlight_if_desired, tty_cursor_to)
19872 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19873 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19874 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19875 renames.
19876
198772007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19878
19879 * keyboard.c: Qrtl is new.
19880 (parse_tool_bar_item): Handle :rtl keyword.
19881 (syms_of_keyboard): Intern :rtl keyword.
19882
19883 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19884
19885 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19886 so no Lisp code is executed.
19887 (file_for_image, find_rtl_image): New functions.
19888 (xg_get_image_for_pixmap): Use file_for_image.
19889 (update_frame_tool_bar): If direction is RTL, use RTL image if
19890 defined. Use Gtk stock images if defined.
19891
198922007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19893
19894 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19895 for nonexistent or zero-width glyph in composition glyph.
19896
198972007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19898
19899 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19900
19901 * xdisp.c (Finvisible_p): New function.
19902 (syms_of_xdisp): defsubr it.
19903
199042007-08-24 Juanma Barranquero <lekktu@gmail.com>
19905
19906 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19907 Doc fixes.
19908
199092007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19910
19911 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19912
199132007-08-24 Martin Rudalics <rudalics@gmx.at>
19914
19915 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19916 whether decoding has modified buffer contents.
19917
199182007-08-24 Jason Rumney <jasonr@gnu.org>
19919
19920 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19921 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19922 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19923 (init_svg_functions) [HAVE_NTGUI]: New function.
19924 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19925 (svg_load_image): Use them.
19926 (svg_load_image) [HAVE_NTGUI]: Implement background.
19927
199282007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19929
19930 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19931 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19932 (LIBX): Remove @RSVG_LIBS@.
19933 (LIBES): Add $(RSVG_LIBS).
19934
19935 * image.c (svg_load_image): Blend with specified background if exists.
19936 Use IMAGE_BACKGROUND. Add Mac OS Support.
19937
19938 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19939 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19940 Remove macros.
19941 [MAC_OSX] (socket_callback): Do nothing.
19942 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19943 ReceiveNextEvent.
19944 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19945 socket_callback.
19946 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19947
199482007-08-22 Glenn Morris <rgm@gnu.org>
19949
19950 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19951
199522007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19953
19954 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19955
19956 * image.c: Add support for SVG images. Some additional comments
19957 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19958 (svg_image_p): New function to test for SVG image.
19959 (svg_load): New function to load SVG image.
19960 (svg_load_image): New function, helper for svg_load.
19961 (Qsvg): New Lisp_object.
19962 (svg_keyword_index): New enum.
19963 (svg_format): New static `image_keyword' struct.
19964 (svg_type): New static `image_type' struct.
19965 (librsvg/rsvg.h): Include it.
19966
199672007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19968
19969 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19970
199712007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19972
19973 * lread.c (Qold_style_backquotes): New var.
19974 (syms_of_lread): Init and staticpro it.
19975 (load_warn_old_style_backquotes): New fun.
19976 (Fload): Use them to warn about old style backquotes.
19977 (end_of_file_error, Fload): Remove unused vars.
19978
19979 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19980
19981 * lread.c (Vold_style_backquotes): New var.
19982 (syms_of_lread): Init and export it to Elisp.
19983 (read1): Set it when we find an old-style (back)quote.
19984
199852007-08-22 Jason Rumney <jasonr@gnu.org>
19986
19987 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19988
199892007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19990
19991 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19992
199932007-08-19 Richard Stallman <rms@gnu.org>
19994
19995 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19996
199972007-08-19 Andreas Schwab <schwab@suse.de>
19998
19999 * alloc.c (pure): Round PURESIZE up.
20000
200012007-08-17 Jan Djärv <jan.h.d@swipnet.se>
20002
20003 * xterm.c (handle_one_xevent): Remove check that mouse click is in
20004 active frame.
20005
200062007-08-16 Richard Stallman <rms@gnu.org>
20007
20008 * eval.c (Fcommandp): Add parens to clarify.
20009
20010 * minibuf.c (Fall_completions): Use enum for type of table.
20011
20012 * emacs.c (USAGE2): Improve text.
20013
200142007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20015
20016 * term.c (tty_default_color_capabilities): Declare static
20017 variables in file scope, to avoid HPUX compiler problem.
20018
200192007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20020
20021 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20022 to gtk_toolbar_insert.
20023
200242007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20025
20026 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20027
20028 * insdel.c (reset_var_on_error): New fun.
20029 (signal_before_change, signal_after_change):
20030 Use it to reset (after|before)-change-functions to nil in case of error.
20031 Bind inhibit-modification-hooks to t.
20032 Don't bind (after|before)-change-functions to nil while they run.
20033
200342007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20035
20036 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20037 filling pixmap with stippled background.
20038
200392007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20040
20041 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20042 Don't use invisible frame as parent window for repositioning.
20043
200442007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20045
20046 * print.c (new_backquote_output): Rename from old_backquote_output.
20047 (print): Inverse its logic (according to its name) so as to match the
20048 behavior of new_backquote_flag in lread.c.
20049
200502007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20051
20052 * gmalloc.c (posix_memalign): New function.
20053
20054 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20055 ActivateControl/DeactivateControl here.
20056 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20057 frame-notice-user-settings is non-nil.
20058 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20059 for kEventParamFMFontStyle.
20060 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20061 mac_pass_command_to_system and mac_pass_control_to_system here.
20062 (XTread_socket): Call ActivateControl/DeactivateControl here.
20063 (XTread_socket) [TARGET_API_MAC_CARBON]:
20064 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20065 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20066 for window repositioning.
20067
200682007-08-08 Glenn Morris <rgm@gnu.org>
20069
20070 * Replace `iff' in doc-strings and comments.
20071
200722007-08-07 Chong Yidong <cyd@stupidchicken.com>
20073
20074 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20075
200762007-08-07 Martin Rudalics <rudalics@gmx.at>
20077
20078 * fileio.c (Finsert_file_contents): Run format-decode and
20079 after_insert_file_functions on entire buffer when REPLACE is
20080 non-nil and inhibit modification_hooks and point_motion_hooks.
20081 For consistency, run after_insert_file_functions iff something
20082 got inserted. Move signal_after_change and update_compositions
20083 after code running after_insert_file_functions. Make sure that
20084 undo_list doesn't record intermediate steps of the decoding process.
20085
200862007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20087
20088 * emacs.c (main)
20089 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20090 Call malloc_enable_thread on interactive startup.
20091
20092 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20093 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20094 [USE_PTHREAD]: Conditionalize with it.
20095 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20096 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20097 New functions.
20098
200992007-08-06 Chong Yidong <cyd@stupidchicken.com>
20100
20101 * xdisp.c (redisplay_window): When restoring original buffer
20102 position, make sure it is still valid.
20103
20104 * image.c (png_load): Ignore png-supplied background color.
20105
201062007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20107
20108 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20109 Use kCFAbsoluteTimeIntervalSince1970.
20110
20111 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20112 New variable.
20113 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20114 event loop should be quit.
20115 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20116 Quit dialog event loop if quit_dialog_event_loop is set.
20117
20118 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20119 (Selection): New typedef. Use instead of ScrapRef.
20120 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20121 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20122 (mac_clear_selection): Rename from clear_scrap.
20123 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20124 scrap_has_target_type. All uses changed.
20125 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20126 (mac_selection_has_target_p): New functions.
20127 (mac_put_selection_value): Rename from put_scrap_string.
20128 (mac_get_selection_value): Rename from get_scrap_string.
20129 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20130 (put_scrap_private_timestamp, scrap_has_target_type)
20131 (get_scrap_private_timestamp): Remove functions.
20132 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20133 (x_own_selection, x_get_local_selection):
20134 Use mac_valid_selection_value_p.
20135 (x_own_selection): Don't use put_scrap_private_timestamp.
20136 Record OWNERSHIP-INFO into Vselection_alist instead.
20137 (x_get_local_selection): Don't check type if request is local.
20138 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20139 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20140
201412007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20142
20143 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20144 add comment explaining why.
20145
201462007-08-03 Richard Stallman <rms@gnu.org>
20147
20148 * fileio.c (Fvisited_file_modtime): Use make_time.
20149
201502007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20151
20152 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20153 build.
20154
201552007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20156
20157 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20158
201592007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20160
20161 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20162
201632007-07-30 Richard Stallman <rms@gnu.org>
20164
20165 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20166
201672007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20168
20169 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20170
201712007-07-28 Nick Roberts <nickrob@snap.net.nz>
20172
20173 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20174 remote default-directory.
20175
20176 * buffer.c (mode-line-format): Update doc string.
20177
201782007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20179
20180 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20181 scroll bar gap.
20182 (x_scroll_bar_create): Set bar->fringe_extended_p.
20183 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20184 on frame edge. Check fringe background extension. Don't clear
20185 extended fringe background area.
20186
20187 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20188 (w32_fill_area): Enclose multiple statements with do ... while (0).
20189
20190 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20191 Extend fringe background to scroll bar gap.
20192 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20193 Set bar->fringe_extended_p.
20194 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20195 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20196 background extension. Don't clear extended fringe background area.
20197
20198 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20199 New member fringe_extended_p.
20200
202012007-07-25 Glenn Morris <rgm@gnu.org>
20202
20203 * Relicense all FSF files to GPLv3 or later.
20204
20205 * COPYING: Switch to GPLv3.
20206
202072007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20208
20209 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20210
20211 * data.c (Finteractive_form): Check for the presence of an
20212 `interactive-form' symbol property more thoroughly.
20213
20214 * data.c (Finteractive_form): Use an `interactive-form' property if
20215 present, analogous to the function-documentation property.
20216
202172007-07-24 Jason Rumney <jasonr@gnu.org>
20218
20219 * w32fns.c (x_real_positions): Get real position from OS instead of
20220 calculating it.
20221
202222007-07-23 Jason Rumney <jasonr@gnu.org>
20223
20224 * filelock.c (current_lock_owner): Allow for @ sign in username.
20225
202262007-07-22 Nick Roberts <nickrob@snap.net.nz>
20227
20228 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20229 remote default-directory.
20230
20231 * buffer.c (mode-line-format): Describe above case in doc string.
20232
202332007-07-20 Eli Zaretskii <eliz@gnu.org>
20234
20235 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20236 Define if not defined.
20237
202382007-07-18 Jason Rumney <jasonr@gnu.org>
20239
20240 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20241
202422007-07-18 Richard Stallman <rms@gnu.org>
20243
20244 * data.c (Fsetq_default): Doc fix.
20245
20246 * eval.c (Fsetq): Doc fix.
20247
202482007-07-18 Juanma Barranquero <lekktu@gmail.com>
20249
20250 * coding.c (Ffind_operation_coding_system):
20251 * eval.c (For, Fand): Doc fixes.
20252 Reported by Johan Bockgård.
20253
202542007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20255
20256 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20257
20258 * xterm.h: Declare x_ewmh_activate_frame.
20259
20260 * xterm.c (x_ewmh_activate_frame): New function.
20261 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20262
202632007-07-17 Martin Rudalics <rudalics@gmx.at>
20264
20265 * window.c (Fdisplay_buffer): If largest or LRU window is the
20266 only window, split it even if it is not eligible for splitting.
20267 This restores the original behavior broken by the 2007-07-15
20268 change.
20269
202702007-07-17 Glenn Morris <rgm@gnu.org>
20271
20272 * abbrev.c (abbrev_check_chars): New function.
20273 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20274 Call abbrev_check_chars to check abbrev characters are word
20275 constituents. Doc fix.
20276
202772007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20278
20279 * process.c (Fstart_process, Fmake_network_process)
20280 (read_process_output): Fix up last changes.
20281
202822007-07-16 Eli Zaretskii <eliz@gnu.org>
20283
20284 * makefile.w32-in (clean): Don't delete *~.
20285
202862007-07-16 Andreas Schwab <schwab@suse.de>
20287
20288 * window.c (Fdisplay_buffer): Use NILP.
20289 (Fset_window_scroll_bars): Likewise.
20290
202912007-07-15 Martin Rudalics <rudalics@gmx.at>
20292
20293 * window.c (window_min_size_2): New function.
20294 (window_min_size_1, size_window, Fdisplay_buffer)
20295 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20296 windows without mode- or header-lines when window-min-height is
20297 too small.
20298 (size_window): Reset nodelete_p after testing it, following an
20299 earlier note by Kim F. Storm.
20300 (display_buffer): Do not set split_height_threshold to twice the
20301 value of window_min_height to avoid changing the value of a
20302 customizable variable. Rather explicitly check whether the
20303 height of the window that shall be splitted is at least as large
20304 as split_height_threshold.
20305 (Fwindow_full_width_p): New defun.
20306 (syms_of_window): Defsubr it.
20307
20308 * window.h: Add EXFUN for Fwindow_full_width_p.
20309
203102007-07-14 Jason Rumney <jasonr@gnu.org>
20311
20312 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20313
203142007-07-14 Richard Stallman <rms@gnu.org>
20315
20316 * eval.c (maybe_call_debugger): New function.
20317 (find_handler_clause): Use maybe_call_debugger.
20318 Call it when the handler says `debug'.
20319 Eliminate DEBUGGER_VALUE_PTR.
20320 (Fsignal): Eliminate debugger_value.
20321 (Qdebug): New variable.
20322 (syms_of_eval): Initialize it.
20323
203242007-07-14 Juanma Barranquero <lekktu@gmail.com>
20325
20326 * eval.c (Fprogn):
20327 * keyboard.c (Ftrack_mouse):
20328 * print.c (Fwith_output_to_temp_buffer):
20329 * window.c (Fsave_window_excursion): Doc fix.
20330
203312007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20332
20333 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20334
203352007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20336
20337 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20338 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20339 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20340 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20341 Remove unused encoding_carryover.
20342 * process.c: Adjust all functions accordingly.
20343
203442007-07-12 Richard Stallman <rms@gnu.org>
20345
20346 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20347
203482007-07-11 Jason Rumney <jasonr@gnu.org>
20349
20350 * makefile.w32-in (LIBS): Include OLE32.
20351
20352 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20353 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20354
203552007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20356
20357 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20358 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20359 from a Lisp_Object into a bare pointer.
20360 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20361 Adjust the code correspondingly.
20362
20363 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20364
20365 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20366 (term_show_mouse_face): Remove unused var `j'.
20367 (handle_one_term_event): Remove unused vars `i' and `j'.
20368 Don't cast return value of ttyname since it's not necessary.
20369
203702007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20371
20372 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20373 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20374
20375 * fns.c (map_char_table): Use an array of int for `indices' rather than
20376 an array of Lisp_Objects (which are only ever integers anyway).
20377 (Fmap_char_table): Update caller.
20378 * lisp.h: Update prototype.
20379 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20380 * fontset.c (Ffontset_info):
20381 * casetab.c (set_case_table): Update callers.
20382
20383 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20384
20385 * keymap.c (struct accessible_keymaps_data)
20386 (struct where_is_internal_data): New structures.
20387 (accessible_keymaps_1, where_is_internal_1): Use them to change
20388 interface to adhere to the one used by map_keymap.
20389 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20390 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20391
20392 * keymap.h (map_keymap_function_t): More informative prototype.
20393
203942007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20395
20396 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20397 (looking_at_1): Don't change search_regs and last_thing_searched
20398 if `inhibit-changing-match-data' is non-nil.
20399 (string_match_1, search_buffer, set_search_regs): Likewise.
20400 (syms_of_search): Add Lisp level definition for
20401 `inhibit-changing-match-data' and set it to nil.
20402 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20403 start and end of the match, instead of using values in search_regs.
20404
204052007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20406
20407 * minibuf.c (Fcompleting_read): New value `confirm-only'
20408 for `require-match'.
20409
204102007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20411
20412 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20413 part of the 2007-06-27 change to syms_of_fileio.
20414
204152007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20416
20417 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20418 Check WINDOWP before using XWINDOW. Consolidate return statements.
20419
204202007-06-27 Richard Stallman <rms@gnu.org>
20421
20422 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20423
204242007-06-27 Juanma Barranquero <lekktu@gmail.com>
20425
20426 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20427
204282007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20429
20430 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20431 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20432 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20433 (_free_internal, memalign): Use them.
20434 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20435 Initialize to PTHREAD_MUTEX_INITIALIZER.
20436 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20437 (morecore_nolock): Rename from morecore. All uses changed.
20438 Use only nolock versions of internal allocation functions.
20439 (_malloc_internal_nolock, _realloc_internal_nolock)
20440 (_free_internal_nolock): New functions created from
20441 _malloc_internal, _realloc_internal, and _free_internal.
20442 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20443 Copy hook value to automatic variable before its use.
20444 (memalign): Copy hook value to automatic variable before its use.
20445
204462007-06-26 Kenichi Handa <handa@m17n.org>
20447
20448 * coding.c (Ffind_operation_coding_system): Docstring improved.
20449 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20450
204512007-06-25 David Kastrup <dak@gnu.org>
20452
20453 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20454 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20455 cater for additional parameter.
20456
20457 * keymap.h: Adjust number of parameters to `current-active-maps'.
20458
20459 * doc.c (Fsubstitute_command_keys): Adjust call of
20460 `current-active-maps'.
20461
204622007-06-25 David Kastrup <dak@gnu.org>
20463
20464 * callint.c (Fcall_interactively): Make the parsing of interactive
20465 specs somewhat more readable.
20466
204672007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20468
20469 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20470 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20471 if extended background has already been filled.
20472
204732007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20474
20475 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20476 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20477
20478 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20479 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20480 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20481 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20482 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20483 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20484 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20485 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20486 Run timers during dialog popup.
20487 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20488
204892007-06-21 Jason Rumney <jasonr@gnu.org>
20490
20491 * image.c (convert_mono_to_color_image): Swap fore and background.
20492
204932007-06-20 Jason Rumney <jasonr@gnu.org>
20494
20495 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20496 (w32_free_bdf_font): Unmap memory not handle.
20497
204982007-06-20 Sam Steingold <sds@gnu.org>
20499
20500 * gmalloc.c (__morecore): Fix the declaration to comply with the
20501 definition.
20502
205032007-06-20 Juanma Barranquero <lekktu@gmail.com>
20504
20505 * w32term.c (w32_delete_display): Remove leftover declaration.
20506 (w32_define_cursor, w32_initialize): Make static.
20507
20508 * w32.c (_wsa_errlist): Fix typo in error message.
20509 (init_environment): Ignore any environment variable from the
20510 registry having a null value.
20511
205122007-06-20 Glenn Morris <rgm@gnu.org>
20513
20514 * Makefile.in (LIBGIF): Default to -lgif.
20515
205162007-06-17 Jason Rumney <jasonr@gnu.org>
20517
20518 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20519 unicode strings.
20520
205212007-06-16 Juanma Barranquero <lekktu@gmail.com>
20522
20523 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20524 Fix typo in docstring.
20525
205262007-06-16 Eli Zaretskii <eliz@gnu.org>
20527
20528 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20529 and their keybindings.
20530
205312007-06-15 Chong Yidong <cyd@stupidchicken.com>
20532
20533 * composite.c (update_compositions): Fix last fix.
20534
205352007-06-14 Jason Rumney <jasonr@gnu.org>
20536
20537 * w32.c (get_process_times_fn): New function pointer.
20538 (globals_of_w32): Intialize it if present in kernel32.dll.
20539 (w32_get_internal_run_time): New function.
20540
20541 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20542
205432007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20544
20545 * composite.c (update_compositions): Check the validness of
20546 compositions.
20547
205482007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20549
20550 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20551 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20552
20553 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20554 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20555
20556 * macgui.h (USE_MAC_TOOLBAR): New define.
20557
20558 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20559 Return immediately unless popup is activated.
20560
20561 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20562 background to scroll bar gap.
20563 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20564 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20565 scroll bars on frame edge. Check fringe background extension.
20566 Don't clear extended fringe background area.
20567 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20568 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20569 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20570 [USE_MAC_TOOLBAR]: New macros.
20571 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20572 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20573 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20574 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20575 [USE_MAC_TOOLBAR]: New functions.
20576 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20577 manually if previous repositioning has failed.
20578 (mac_handle_keyboard_event): Use precomputed event kind.
20579 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20580 as tool bar item click. Handle mouse movement over tool bar items.
20581
20582 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20583 toolbar_win_gravity.
20584 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20585 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20586 Add externs.
20587
20588 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20589 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20590
205912007-06-14 Chong Yidong <cyd@stupidchicken.com>
20592
20593 * image.c (search_image_cache): Remove unused variable.
20594
205952007-06-13 Chong Yidong <cyd@stupidchicken.com>
20596
20597 * xfns.c, xmenu.c: Link to xaw3d if available.
20598
205992007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20600
20601 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20602 frame_foreground and frame_background.
20603
20604 * image.c (lookup_image): Save frame foreground and background colors.
20605 (search_image_cache): Check if saved and current frame colors match.
20606
206072007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20608
20609 * regex.c (regex_compile): Remove the `regnum' counter.
20610 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20611
206122007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20613
20614 * term.c: Include intervals.h to declare Fget_text_property.
20615
206162007-06-10 Jason Rumney <jasonr@gnu.org>
20617
20618 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20619
206202007-06-08 Juanma Barranquero <lekktu@gmail.com>
20621
20622 * callint.c (Fcall_interactively):
20623 * editfns.c (Fdelete_and_extract_region):
20624 * fileio.c (Fread_file_name):
20625 * fns.c (Fmapconcat):
20626 * keyboard.c (cmd_error_internal):
20627 * keymap.c (Fkey_description):
20628 * lread.c (openp):
20629 * minibuf.c (read_minibuf):
20630 * search.c (wordify):
20631 * sunfns.c (sel_read):
20632 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20633 * xfns.c (x_default_scroll_bar_color_parameter):
20634 * xmenu.c (menu_help_callback):
20635 * xselect.c (Fx_get_atom_name):
20636 * xterm.c (x_term_init): Use empty_unibyte_string.
20637
206382007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20639
20640 * alloc.c (init_strings): Initialize canonical empty strings.
20641 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20642 canonical empty string when the requested size is 0.
20643
20644 * emacs.c (empty_unibyte_string): Rename from empty_string.
20645 (empty_multibyte_string): New canonical empty string.
20646 (syms_of_emacs): Don't initialize empty_string.
20647
20648 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20649 string, if appropriate.
20650 (empty_unibyte_string, empty_multibyte_string): New externs.
20651 (empty_string): Remove extern.
20652
20653 * lread.c (syms_of_lread): Use empty_unibyte_string.
20654
206552007-06-07 Jason Rumney <jasonr@gnu.org>
20656
20657 * s/ms-w32.h: Don't define HAVE_TZNAME.
20658
20659 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20660
206612007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20662
20663 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20664
20665 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20666 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20667
20668 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20669 Don't call next handler.
20670 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20671 Remove argument. Install handler to application.
20672 (set_frame_menubar): Don't change deep_p.
20673 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20674 FRAME_OUTER_TO_INNER_DIFF_Y.
20675 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20676 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20677 [HAVE_DIALOGS]: New macros.
20678 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20679 Use them.
20680 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20681
20682 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20683 init_service_handler. All callers changed. Return OSStatus value.
20684
20685 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20686 All callers changed so as not to call SetPortWindowPort.
20687 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20688 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20689 mac_draw_string_common.
20690 (mac_draw_image_string_qd): Likewise.
20691 (mac_draw_string_common): Use them. Add INLINE.
20692 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20693 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20694 GetGlobalMouse.
20695 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20696 and FRAME_OUTER_TO_INNER_DIFF_Y.
20697 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20698 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20699 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20700 repositioning window to mac_handle_window_event.
20701 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20702 saving window location to mac_handle_window_event
20703 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20704 (install_menu_target_item_handler): Remove argument in extern.
20705 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20706 Also accept command events.
20707 (do_keystroke): New function created from XTread_socket.
20708 (init_command_handler): Remove functions.
20709 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20710 and save window location by kEventWindowShowing and kEventWindowHiding
20711 handlers here. Don't call next handler for window state change and
20712 focus events.
20713 (mac_handle_application_event, mac_handle_keyboard_event)
20714 [TARGET_API_MAC_CARBON]: New functions.
20715 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20716 kEventWindowShowing and kEventWindowHiding events. Move installation
20717 of mouse, font, text input and menu target item handlers to
20718 install_application_handler.
20719 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20720 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20721 New function.
20722 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20723 Register it.
20724 (XTread_socket) [TARGET_API_MAC_CARBON]:
20725 Consolidate SendEventToEventTarget calls.
20726 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20727 Move application activation handler to mac_handle_application_event.
20728 Move keyboard handler to mac_handle_keyboard_event.
20729 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20730 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20731 init_command_handler. Call install_application_handler.
20732
20733 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20734 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20735
207362007-06-07 Glenn Morris <rgm@gnu.org>
20737
20738 * emacs.c (main): Use `emacs-copyright' in --version output.
20739
207402007-06-06 Chong Yidong <cyd@stupidchicken.com>
20741
20742 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20743
207442007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20745
20746 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20747
20748 * macgui.h: Replace WindowPtr with WindowRef.
20749
20750 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20751 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20752 Replace ControlHandle with ControlRef.
20753 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20754
20755 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20756 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20757 Replace ControlHandle with ControlRef.
20758 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20759 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20760
20761 * macterm.h (struct scroll_bar): Rename member control_handle_low
20762 and control_handle_high to control_ref_low and control_ref_high.
20763 All uses changed.
20764 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20765 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20766 respectively. All uses changed.
20767 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20768 (install_window_handler, remove_window_handler): Replace WindowPtr
20769 with WindowRef in externs.
20770
207712007-06-05 Juanma Barranquero <lekktu@gmail.com>
20772
20773 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20774
207752007-06-03 Nick Roberts <nickrob@snap.net.nz>
20776
20777 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20778
20779 * frame.c (Fmouse_position, Fmouse_pixel_position):
20780 Condition on HAVE_GPM too.
20781
20782 * term.c (term_mouse_highlight): Remove unused variables.
20783 (Fterm_open_connection): Set gpm_zerobased to 1.
20784 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20785 Use zero based co-ordinates.
20786 (handle_one_term_event): Report a drag as mouse movement too.
20787
20788 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20789
207902007-06-03 Chong Yidong <cyd@stupidchicken.com>
20791
20792 * image.c (search_image_cache): New function. Require background
20793 color match if background color is unspecified in the image spec.
20794 (uncache_image, lookup_image): Use it.
20795
207962007-06-01 Juanma Barranquero <lekktu@gmail.com>
20797
20798 * window.c (Fshrink_window): Reflow docstring.
20799
208002007-06-02 Chong Yidong <cyd@stupidchicken.com>
20801
20802 * Version 22.1 released.
20803
208042007-06-01 Richard Stallman <rms@gnu.org>
20805
20806 * xfns.c (x_encode_text): Add GCPRO.
20807
208082007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20809
20810 * xfns.c (x_set_name_internal): Save encoded name before
20811 x_encode_text in case string data is relocated.
20812
208132007-05-31 Richard Stallman <rms@gnu.org>
20814
20815 * buffer.c (syms_of_buffer): Doc fix.
20816
208172007-05-30 Nick Roberts <nickrob@snap.net.nz>
20818
20819 * sysdep.c (init_sys_modes): Add rather than replace with
20820 O_NONBLOCK.
20821
20822 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20823 term_mouse_moveto.
20824
20825 * termhooks.h (term_mouse_moveto): New extern.
20826
20827 * term.c (mouse_face_window): Rename...
20828 (Qmouse_face_window): ...to this.
20829 (term_show_mouse_face, term_clear_mouse_face)
20830 (term_mouse_highlight): Use Qmouse_face_window.
20831 (term_mouse_moveto): New function.
20832 (term_mouse_position): Make it work.
20833 (syms_of_term): Uncomment assignment to mouse_position_hook.
20834 Staticpro Qmouse_face_window.
20835
208362007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20837
20838 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20839 around current_column call.
20840
208412007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20842
20843 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20844 * xdisp.c (next_element_from_buffer):
20845 * window.c (delete_window):
20846 * term.c (term_mouse_highlight):
20847 * msdos.c (getdefdir):
20848 * macterm.c (mac_create_bitmap_from_bitmap_data)
20849 (init_font_name_table):
20850 * fns.c (Fsxhash):
20851 * data.c (Fmake_local_variable):
20852 * ccl.c (ccl_driver): Likewise.
20853
208542007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20855
20856 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20857 Call mac_wakeup_from_rne on window size change.
20858
208592007-05-25 Chong Yidong <cyd@stupidchicken.com>
20860
20861 * image.c (uncache_image): Fix typo.
20862
208632007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20864
20865 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20866
208672007-05-22 Richard Stallman <rms@gnu.org>
20868
20869 * xterm.c (x_connection_closed): Remove NO_RETURN.
20870
208712007-05-22 Martin Rudalics <rudalics@gmx.at>
20872
20873 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20874
208752007-05-21 Chong Yidong <cyd@stupidchicken.com>
20876
20877 * image.c (uncache_image): New function.
20878 (Fimage_refresh): New function.
20879
208802007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20881
20882 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20883
208842007-05-20 Nick Roberts <nickrob@snap.net.nz>
20885
20886 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20887 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20888
208892007-05-20 Nick Roberts <nickrob@snap.net.nz>
20890
20891 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20892 conditional on [HAVE_GPM_H].
20893
208942007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20895
20896 * syntax.c (skip_chars): Update syntax-table only after we checked that
20897 the new location is valid.
20898
208992007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20900
20901 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20902 mac_get_window_bounds.
20903
209042007-05-20 Nick Roberts <nickrob@snap.net.nz>
20905
20906 * Makefile.in (LIBGPM): Allow it to be set from configure.
20907 If set then link Emacs with it.
20908
20909 * config.in: Regenerate.
20910
20911 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20912 New externs.
20913
20914 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20915 Include gpm.h.
20916 (handle_one_term_event, term_gpm): New externs.
20917
20918 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20919 and allow it to be interrupted by SIGIO.
20920
20921 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20922 (wait_reading_process_output): Wait on gpm_fd too.
20923 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20924 (add_gpm_wait_descriptor_called_flag): New variable.
20925 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20926
20927 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20928 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20929 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20930 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20931 (make_lispy_event): Add case GPM_CLICK_EVENT.
20932 (read_avail_input): Handle mouse input.
20933
20934 * term.c (write_glyphs_with_face): New function.
20935 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20936 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20937 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20938 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20939 (last_mouse_x, last_mouse_y): New variables.
20940 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20941 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20942 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20943 (Fterm_close_connection): New functions.
20944 (term_init): Initialise mouse_face_window.
20945
209462007-05-19 Chong Yidong <cyd@stupidchicken.com>
20947
20948 * xdisp.c (redisplay_window): If first window line is a
20949 continuation line, recompute the new window start instead of
20950 recentering.
20951
209522007-05-18 Glenn Morris <rgm@gnu.org>
20953
20954 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20955 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20956
209572007-05-17 Glenn Morris <rgm@gnu.org>
20958
20959 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20960
209612007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20962
20963 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20964 dead key repeat and up events.
20965
209662007-05-14 Chong Yidong <cyd@stupidchicken.com>
20967
20968 * image.c (pbm_load): Check image size for monochrome pbm.
20969
209702007-05-13 Chong Yidong <cyd@stupidchicken.com>
20971
20972 * xterm.c (XTread_socket): Revert last change.
20973
209742007-05-12 Chong Yidong <cyd@stupidchicken.com>
20975
20976 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20977
20978 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20979
209802007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20981
20982 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20983 mixup (YAILOM).
20984
209852007-05-07 Andreas Schwab <schwab@suse.de>
20986
20987 * keymap.c (Flookup_key): Fix typo in last change.
20988
209892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20990
20991 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20992 mapping for unibyte strings.
20993
209942007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20995
20996 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20997 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20998
209992007-04-29 Richard Stallman <rms@gnu.org>
21000
21001 * insdel.c (replace_range): For undo, record insertion first.
21002
210032007-04-29 Andreas Schwab <schwab@suse.de>
21004
21005 * lisp.h (VECSIZE): Use OFFSETOF.
21006
210072007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21008
21009 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21010 disabled lines.
21011
210122007-04-28 Richard Stallman <rms@gnu.org>
21013
21014 * lread.c (read_escape): In a string, \s is always space.
21015
210162007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21017
21018 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21019
21020 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21021 submenu for menu bar items.
21022
21023See ChangeLog.10 for earlier changes.
21024
21025;; Local Variables:
21026;; coding: utf-8
21027;; add-log-time-zone-rule: t
aac0c6e3
MR
21028;; End:
21029
76b6f707 21030 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
21031
21032 This file is part of GNU Emacs.
21033
21034 GNU Emacs is free software: you can redistribute it and/or modify
21035 it under the terms of the GNU General Public License as published by
21036 the Free Software Foundation, either version 3 of the License, or
21037 (at your option) any later version.
21038
21039 GNU Emacs is distributed in the hope that it will be useful,
21040 but WITHOUT ANY WARRANTY; without even the implied warranty of
21041 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21042 GNU General Public License for more details.
21043
21044 You should have received a copy of the GNU General Public License
21045 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21046
21047;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40