Add commentary about how to use Semantic.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
3c055b77
JD
12009-12-12 Jan Djärv <jan.h.d@swipnet.se>
2
3 * xsettings.c (struct xsettings): Add member seen.
4 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 5 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6 (apply_xft_settings): Only update Xft settings with what member seen
7 indicates as new.
8
05fe33ff
EZ
92009-12-12 Eli Zaretskii <eliz@gnu.org>
10
11 * dispextern.h (struct text_pos): Use EMACS_INT;
12 (struct glyph): Use EMACS_INT for charpos.
13 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
14 region_beg_charpos, region_end_charpos,
15 redisplay_end_trigger_charpos, and also for
16 iterator_stack_entry.end_charpos and
17 iterator_stack_entry.stop_charpos.
18
e8d7886a
JD
192009-12-12 Jan Djärv <jan.h.d@swipnet.se>
20
21 * gtkutil.c (scroll_end_callback): New function (bug #5177)
22 (xg_create_scroll_bar): Call scroll_end_callback on button release
23 event (bug #5177).
24 (xg_event_is_for_scrollbar): != replaced with ==.
25
d0db2ec8
KH
262009-12-12 Kenichi Handa <handa@m17n.org>
27
28 * ftfont.c (struct ftfont_info): New member matrix.
29 (ftfont_open): Setup xftfont_info->matrix.
30 (MFLTFontFT): New member matrix.
31 (FLOOR, CEIL, ROUND): New macros.
32 (ftfont_get_metrics): Handle matrix transformation.
33 (ftfont_shape_by_flt): New arg matrix. Callers changed.
34
35 * xftfont.c (struct xftfont_info): New member matrix.
36 (xftfont_open): Setup xftfont_info->matrix.
37
382009-12-10 Kenichi Handa <handa@m17n.org>
39
40 * xdisp.c (append_space_for_newline): Consider face-remapping.
41
2cc7b62f
AS
422009-12-09 Andreas Schwab <schwab@linux-m68k.org>
43
b87dd913
AS
44 * xsettings.c: Include "keyboard.h".
45
eba5eb94
AS
46 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
47
2cc7b62f
AS
48 Fix implicit function declarations.
49 * cmds.c: Include "frame.h".
50 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
51 * frame.h: Move declaration of delete_frame outside of
52 HAVE_WINDOW_SYSTEM.
53
a4ef73c8
CY
542009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
55
56 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
57
58 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
59 GTK builds.
60
944a300c
AS
612009-12-07 Andreas Schwab <schwab@linux-m68k.org>
62
63 * unexelf.c (unexec): Don't search for .data twice.
64
022eef62
CY
652009-12-05 Chong Yidong <cyd@stupidchicken.com>
66
426ac949
CY
67 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
68 if push failed.
69 (handle_line_prefix): Set avoid_cursor_p here. Check return value
70 of push_display_prop (Bug#5000).
71
022eef62
CY
72 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
73 value of font_list_entities (Bug#5085).
74
be95bee9
JB
752009-12-04 Juanma Barranquero <lekktu@gmail.com>
76
77 Fix `string-to-number' to deal consistently with integers and floats.
78 * lread.c (isfloat_string): New argument ignore_trailing to accept all
79 trailing characters, not just whitespace.
80 (read1): Pass new arg 0 to keep old behavior.
81 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
82 trailing chars, as it is already done for integers. Doc fixes.
83 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
84
24c2d7ce
EZ
852009-12-04 Eli Zaretskii <eliz@gnu.org>
86
87 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
88 unused enumeration value.
89
7e694795
EZ
902009-12-03 Eli Zaretskii <eliz@gnu.org>
91
92 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
93
84b31826
SM
942009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
95
96 * process.c (Fmake_network_process): Fix up the tests for
97 "connectionless socket", so they DTRT for seqpacket sockets as well.
98
f00c449b
SM
992009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
100
101 * process.c (Qseqpacket): New symbol.
102 (HAVE_SEQPACKET): New macro.
103 (Fmake_network_process): Accept new :type `seqpacket'.
104 (init_process): Add `seqpacket' feature when applicable.
105 (syms_of_process): Initialize Qseqpacket.
106
8096a0ff
YM
1072009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
108
109 * font.c (font_load_for_lface, font_open_by_name): Don't store name
110 if entity is Qnil.
111
3e0de07f
SM
1122009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
113
114 * print.c (print_preprocess): Preprocess the key_and_value table of
115 hashtables, even tho they're "hidden" (bug#5082).
116
abeafb2a
JD
1172009-11-29 Jan Djärv <jan.h.d@swipnet.se>
118
119 * frame.c (frame_make_pointer_invisible)
120 (frame_make_pointer_visible): Declare f before statements.
121
4bf47195
EZ
1222009-11-28 Eli Zaretskii <eliz@gnu.org>
123
124 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
125 omitted dependencies on lisp.h.
126
c525b3f2
JD
1272009-11-27 Jan Djärv <jan.h.d@swipnet.se>
128
ece2d4ed
JD
129 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
130 is NULL.
131
132 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
133
134 * frame.c (frame_make_pointer_invisible)
3e0de07f 135 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
136 frame.
137
c525b3f2
JD
138 * search.c (simple_search): Remove warning by making *p const.
139
2f00e299
DN
1402009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
141
142 * xdisp.c (power_letter): Remove duplicate const.
143
084b049b
JD
1442009-11-25 Jan Djärv <jan.h.d@swipnet.se>
145
a1fadc6f
JD
146 * term.c (delete_tty): Remove check for last terminal (bug#4970).
147
084b049b
JD
148 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
149 defaults (bug #5025).
150
28259cac
SM
1512009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
152
153 * insdel.c (adjust_markers_for_delete): Move it in the
154 right direction! (bug#4803)
155
e8e14166
YM
1562009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
157
158 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
159
160 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
161
86677b58
GM
1622009-11-24 Glenn Morris <rgm@gnu.org>
163
164 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
165
581e51e8
JD
1662009-11-23 Jan Djärv <jan.h.d@swipnet.se>
167
cfc86c7a
JD
168 * Makefile.in: Must create deps for ecrt0.o in its rule.
169
581e51e8
JD
170 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
171 because that is what Gtk+ font dialog understands.
172
173 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
174 of Fcopy_sequence.
175 (font_open_by_name): Put name given into QCname for font-object returned.
176
177 * frame.c (x_set_font): Save original font name as frame parameter
178 font-parameter.
179
180 * xsettings.c (set_default_xft_settings): New function.
181 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
182 is found.
183
8b264ecb
AS
1842009-11-22 Andreas Schwab <schwab@linux-m68k.org>
185
186 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
187 searching backwards through multibyte buffer.
188
872870b2
JD
1892009-11-21 Jan Djärv <jan.h.d@swipnet.se>
190
191 * xterm.c: #include xgselect.h.
192 (x_initialize): Call xgselect_initialize.
193
194 * xsettings.c (something_changedCB): C++ comments => C comments.
195 (init_gconf): Do not deal with any GLib file descriptors, xg_select
196 does that now.
197
198 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
199 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
200 (scroll_bar_button_cb): Remove.
201 (create_menus): C++ comments => C comments. Don't bind grab-notify
202 event.
203 (xg_create_scroll_bar): Don't bind button-press-event and
204 button-release-event.
205
206 * process.c: Include xgselect.h if defined (USE_GTK) ||
207 defined (HAVE_GCONF).
208 (wait_reading_process_output): Call xg_select for the same condition.
209
210 * xgselect.c (xg_select): New function to better integrate with
211 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
212
213 * xgselect.h: New file, declare xg_select, xgselect_initialize.
214
215 * Makefile.in (XOBJ): Add xgselect.o.
216
62a6e103
AS
2172009-11-21 Andreas Schwab <schwab@linux-m68k.org>
218
219 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
220 ignored second argument. All callers changed.
221 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
222 (RE_STRING_CHAR_AND_LENGTH): Likewise.
223 * xdisp.c (string_char_and_length): Likewise.
224
b0ca0f33
DN
2252009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
226
227 * xterm.c (x_new_font):
228 * print.c (print_object):
229 * cmds.c (Fself_insert_command): Move declarations before statements.
230
dd5a6279
CY
2312009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
232
233 * s/cygwin.h: Remove unneeded linker flags.
234
4a8e097d
JD
2352009-11-20 Jan Djärv <jan.h.d@swipnet.se>
236
0d1d0d26
JD
237 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
238
239 * xsettings.h: Declare xsettings_get_system_font.
240
241 * xsettings.c (xsettings_get_system_font): New function.
242 (init_gconf): No use initiating gconf unless we have Xft also.
243 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
244 HAVE_GCONF.
245
4a8e097d
JD
246 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
247 add a blank entry so it doesn't collapse into nothing.
248
8ab1650e
SM
2492009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
250
251 * lread.c (Funintern): Comment out last change.
252
82c602f0
RS
2532009-11-19 Richard Stallman <rms@gnu.org>
254
255 * lread.c (Funintern): Error if symbol is t or nil.
256
87e32266
SM
2572009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
258
259 * insdel.c (make_gap_larger): Don't make as many assumptions about the
260 representation of Lisp integers.
261 Reported by MJ Chan <mjchan.inbox@gmail.com>.
262
1b9ac145
AS
2632009-11-17 Andreas Schwab <schwab@linux-m68k.org>
264
265 * lisp.h: Remove declaration of Ffont_get_system_font.
266 * xfns.c: Move include of "xsettings.h".
267 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
268
dfb3c4c6
JD
2692009-11-17 Jan Djärv <jan.h.d@swipnet.se>
270
87e32266
SM
271 * xsettings.c (something_changedCB, Ffont_get_system_font):
272 Check use_system_font.
dfb3c4c6
JD
273 (syms_of_xsettings): DEFVAR font-use-system-font.
274
9370c1d8
AS
2752009-11-17 Andreas Schwab <schwab@linux-m68k.org>
276
25fe851a
AS
277 * xfns.c (x_default_font_parameter): Remove dead assignment.
278
9370c1d8
AS
279 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
280
637fa988
JD
2812009-11-17 Jan Djärv <jan.h.d@swipnet.se>
282
87e32266 283 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 284 not have FC_LCD_*. #define them if not there.
a6eb20d8 285
87e32266 286 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 287
637fa988
JD
288 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
289
290 * xterm.c (handle_one_xevent): Call xft_settings_event for
291 ClientMessage, PropertyNotify and DestroyNotify.
292 (x_term_init): If we have XFT, get DPI from Xft.dpi.
293 Call xsettings_initialize.
294
295 * xftfont.c (xftfont_fix_match): New function.
296 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
297 Call xftfont_fix_match after XftFontMatch.
298
299 * xfont.c (xfont_driver): Initialize all members.
300
87e32266
SM
301 * xfns.c (x_default_font_parameter):
302 Try font from Ffont_get_system_font.
637fa988
JD
303 Do not get font from x_default_parameter if we got one from
304 Ffont_get_system_font.
87e32266 305 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
306
307 * w32font.c (w32font_driver): Initialize all members.
308
309 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
310
311 * lisp.h: Declare syms_of_xsettings.
312
87e32266
SM
313 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
314 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
315
316 * ftfont.c (ftfont_filter_properties): New function.
317
318 * frame.c (x_set_font): Remove unused variable lval.
319
87e32266 320 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
321
322 * font.c (font_put_extra): Don't return if val is nil, it means
323 boolean option is off.
324 (font_parse_fcname): Collect all extra properties in extra_props
325 and call filter_properties for all drivers with extra_props and
326 font as parameter.
87e32266
SM
327 (font_open_entity): Do not use cache, it does not pick up new
328 fontconfig settings like hinting.
637fa988
JD
329 (font_load_for_lface): If spec had a name in it, store it in entity.
330
331 * emacs.c (main): Call syms_of_xsettings
332
333 * config.in: HAVE_GCONF is new.
334
335 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
336 xsettings.o is new.
337
5a942932
KH
3382009-11-17 Kenichi Handa <handa@m17n.org>
339
340 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
341 back to the default font in case that no suitable font is found.
342
b7c7a4d1
SM
3432009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
344
345 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
346 Suggested by Chad Brown <yandros@mit.edu>.
347 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
348
072f1e39
JD
3492009-11-16 Jan Djärv <jan.h.d@swipnet.se>
350
351 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
352
5d1e70a2
AS
3532009-11-14 Andreas Schwab <schwab@linux-m68k.org>
354
87e32266 355 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 356
a53cfbe5
JD
3572009-11-14 Jan Djärv <jan.h.d@swipnet.se>
358
473a99b7
JD
359 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
360 has a parent.
361
a53cfbe5
JD
362 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
363 dependency files in deps/. Include those files into Makefile.
364
365 * config.in: Generated (AUTO_DEPEND).
366
f04bb9b2
MA
3672009-11-13 Michael Albinus <michael.albinus@gmx.de>
368
b7c7a4d1 369 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
370 Vdbus_registered_functions_table, because it contains also
371 properties. Fix docstring.
b7c7a4d1 372 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 373
8f11f7ec
SM
3742009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
375
376 * alloc.c (mark_object): Don't reprocess marked strings.
377 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
378 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
379
8a605fe8
KH
3802009-11-13 Kenichi Handa <handa@m17n.org>
381
8f11f7ec 382 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
383 semantics of Vword_combining_categories.
384 (Vword_combining_categories): Describe the slight change of the
385 semantics.
386
241c4680
EZ
3872009-11-13 Eli Zaretskii <eliz@gnu.org>
388
389 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
390
391 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
392
5d58e44c
SM
3932009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
394
395 * xdisp.c (syms_of_xdisp): Fix typo in last change.
396
5e13f9d3
JB
3972009-11-12 Juanma Barranquero <lekktu@gmail.com>
398
399 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
400
cf54c754
DR
4012009-11-11 David Reitter <david.reitter@gmail.com>
402
403 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
404 variables to fix 2009-11-09 change.
405
a4ada374
DN
4062009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
407
91433552
DN
408 * process.c (ifflag_def): Make flag_sym constant.
409 (Fnetwork_interface_info): Use a constant pointer.
410 (ifflag_table):
411 * xfns.c (cursor_bits):
412 * xdisp.c (power_letter):
413 * termcap.c (speeds, esctab):
414 * sysdep.c (baud_convert):
415 * keyboard.c (lispy_accent_codes, modifier_names):
416 * image.c (xbm_format, xpm_format, pbm_format, png_format)
417 (jpeg_format, tiff_format, gif_format, svg_format)
418 (interlace_start, interlace_increment, gs_format):
419 * gtkutil.c (separator_names):
420 * fringe.c (swap_nibble):
421 * fns.c (base64_value_to_char, base64_char_to_value):
422 * fileio.c (make_temp_name_tbl):
423 * coding.c (suffixes): Make constant.
424
f4265f6c
DN
425 * frame.c (make_initial_frame):
426 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
427 build_string.
428 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
429
04420943
DN
430 * s/freebsd.h:
431 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
432
0a5d24ae
DN
433 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
434 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
435
a4ada374
DN
436 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
437 * xterm.c (syms_of_xterm):
438 * xfaces.c (syms_of_xfaces):
439 * xdisp.c (syms_of_xdisp):
440 * lread.c (syms_of_lread):
441 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
442 build_string.
91433552 443
a4ada374
DN
444 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
445
af98fc7f
SM
4462009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
447
8ab1650e 448 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 449
e90292a9
JD
4502009-11-10 Jan Djärv <jan.h.d@swipnet.se>
451
452 * keyboard.h: Declare timer_check.
453
454 * keyboard.c (timer_check_2): New function that does what the old
455 timer_check did.
456 (timer_check): Call timer_check_2 until -1 or a non-zero time is
457 returned, i.e. don't return -1 with timers pending.
458
459 * process.c: Remove extern declaration of timer_check.
460
461 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
462 even if timer_check returned -1.
463
af98fc7f
SM
464 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
465 xg_dialog_data.
e90292a9
JD
466 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
467 the event loop.
468 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
469 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
470 Destroy the dialog after xg_dialog_run.
471
045b83c0
SM
4722009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
473
474 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
475
1fb99a3a
JD
4762009-11-10 Jan Djärv <jan.h.d@swipnet.se>
477
478 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
479
04e452cb
JB
4802009-11-09 Juanma Barranquero <lekktu@gmail.com>
481
482 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
483
ef7417fd
SM
4842009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
485
486 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
487 w32menu.c, and nsmenu.m.
488 Simplify the obsolete case where position is nil.
489 (cleanup_popup_menu): New function, moved from nsmenu.m.
490 (struct skp): Remove slot `notreal'.
491 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
492 adjust callers.
493 (single_menu_item): Adjust call to parse_menu_item.
494 (syms_of_menu): Defsubr x-popup-menu.
495 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
496 (keymap_panes): Don't export any more.
497 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
498 (xmenu_show): Declare.
499 * keyboard.c (parse_menu_item): Remove arg `notreal'.
500 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
501 * keyboard.h (parse_menu_item): Update declaration.
502 * xmenu.c (Fx_popup_menu): Remove.
503 (syms_of_xmenu): Don't defsubr x-popup-menu.
504 * w32menu.c (Fx_popup_menu): Remove.
505 (syms_of_w32menu): Don't defsubr x-popup-menu.
506 * nsmenu.m (cleanup_popup_menu): Remove.
507 (ns_menu_show): Rename from ns_popup_menu and remove all the code
508 moved to menu.c's Fx_popup_menu.
509 (Fx_popup_menu): Remove.
510 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
511 menu_items (it's done in menu.c already).
512
424d6179
SM
5132009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
514
515 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
516 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
517
c0df13a6 5182009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
519
520 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 521 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
522 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
523 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
524
2de9f71c
SM
5252009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
526
527 Let integers use up 2 tags to give them one extra bit and thus double
528 their range.
529 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
530 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
531 New macros.
532 (enum Lisp_Type): Use them. Give explicit values.
533 (Lisp_Type_Limit): Remove.
534 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
535 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
536 Pay attention to USE_2_TAGS_FOR_INTS.
537 (INTEGERP): Use LISP_INT_TAG_P.
538 * fns.c (internal_equal): Simplify the default case.
539 (sxhash): Use case_Lisp_Int.
540 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
541 any more.
542 (Ftype_of): Use case_Lisp_Int.
543 (store_symval_forwarding): Take into account the fact that Ints can
544 now have more than one tag.
545 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
546 buffer_slot_type_mismatch):
547 * xfaces.c (face_attr_equal_p):
548 * print.c (print_object):
549 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
550 Use case_Lisp_Int.
551
323637a2
EZ
5522009-11-06 Eli Zaretskii <eliz@gnu.org>
553
7ac65b38
EZ
554 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
555
323637a2
EZ
556 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
557 warning.
558
e511451f
JD
5592009-11-06 Jan Djärv <jan.h.d@swipnet.se>
560
561 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
562
563 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
564
565 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
566 ButtonPressRelease and MotionNotify (bug#4870).
567
5e2327cf
DN
5682009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
569
5adc433e
DN
570 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
571
d67b4f80
DN
572 * xterm.c (syms_of_xterm):
573 * xselect.c (syms_of_xselect):
574 * xmenu.c (syms_of_xmenu):
575 * xfns.c (syms_of_xfns):
576 * xfaces.c (syms_of_xfaces):
577 * xdisp.c (syms_of_xdisp):
578 * window.c (syms_of_window):
579 * w32fns.c (syms_of_w32fns):
580 * undo.c (syms_of_undo):
581 * textprop.c (syms_of_textprop):
582 * terminal.c (syms_of_terminal):
583 * syntax.c (syms_of_syntax):
584 * sound.c (syms_of_sound):
585 * search.c (syms_of_search):
586 * print.c (syms_of_print):
587 * minibuf.c (syms_of_minibuf):
588 * macros.c (syms_of_macros):
589 * keymap.c (syms_of_keymap, initial_define_key)
590 (initial_define_lispy_key):
591 * keyboard.c (syms_of_keyboard):
592 * insdel.c (syms_of_insdel):
593 * image.c (syms_of_image):
594 * fringe.c (syms_of_fringe):
595 * frame.c (syms_of_frame):
596 * fontset.c (syms_of_fontset):
597 * fns.c (syms_of_fns):
598 * fns.c (syms_of_fns):
599 * fileio.c (syms_of_fileio):
600 * fileio.c (syms_of_fileio):
601 * eval.c (syms_of_eval):
602 * doc.c (syms_of_doc):
603 * dispnew.c (syms_of_display):
604 * dired.c (syms_of_dired):
605 * dbusbind.c (syms_of_dbusbind):
606 * data.c (syms_of_data):
607 * composite.c (syms_of_composite):
608 * coding.c (syms_of_coding):
609 * cmds.c (syms_of_cmds):
610 * charset.c (define_charset_internal, syms_of_character):
611 * ccl.c (syms_of_ccl):
612 * category.c (syms_of_category, init_category_once):
613 * casetab.c (syms_of_casetab):
614 * casefiddle.c (syms_of_casefiddle):
615 * callint.c (syms_of_callint):
616 * bytecode.c (syms_of_bytecode):
617 * buffer.c (keys_of_buffer, syms_of_buffer):
618 * alloc.c (syms_of_alloc):
619 * process.c (syms_of_process, init_process):
620 * lread.c (syms_of_lread, init_obarray):
621 * font.c (build_style_table):
622 * emacs.c (syms_of_emacs, main): Replace calls to intern with
623 intern_c_string, calls to make_pure_string with
624 make_pure_c_string. Use pure_cons instead of Fcons.
625
5e2327cf
DN
626 * process.c (socket_options): Make it const.
627 (set_socket_option, init_process): Use a const pointer.
628
629 * lread.c (intern_c_string): New function.
630 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
631 (defvar_int): Uset it. Make the name const char*.
632
633 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
634 (defvar_int): Update prototypes.
635 (DEFUN, EXFUN): Support for prototypes is now required.
636 (intern_c_string): New prototype.
637 (struct Lisp_Subr): Make symbol_name constant.
638
639 * font.c (struct table_entry): Remove unused member. Make NAMES
640 constant.
641 (weight_table, slant_table, width_table): Make constant.
642
643 * emacs.c (struct standard_args): Make name and longname constant.
644
645 * character.h (DEFSYM): Use intern_c_string.
646
a56eaaef
DN
6472009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
648
649 * alloc.c (make_pure_c_string): New function.
650
651 * eval.c (Fautoload): Purecopy all arguments.
652
f6a07420
KH
6532009-11-05 Kenichi Handa <handa@m17n.org>
654
655 * fileio.c (Finsert_file_contents): Be sure set coding-system of
656 the buffer in case of replace.
657
5d28d4b1
DN
6582009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
659
660 * puresize.h (BASE_PURESIZE): Increase to 1620000.
661
b349d111
SM
6622009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
663
d528b1ce
SM
664 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
665 when applicable (bug#4851).
666
b349d111
SM
667 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
668 (P_): Support for prototypes is now required.
669
c38eb027
CY
6702009-10-31 Chong Yidong <cyd@stupidchicken.com>
671
672 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
673 (Bug#4827).
674
0405f8d9
EZ
6752009-10-30 Eli Zaretskii <eliz@gnu.org>
676
d528b1ce 677 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 678
ca0a881a
DN
6792009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
680
681 * puresize.h (BASE_PURESIZE): Increase to 1470000.
682
d528b1ce
SM
683 * lread.c (Fload): Purecopy the file name when building
684 Vpreloaded_file_list.
ca0a881a 685
47e0e0e4
JR
6862009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
687
688 * w32fns.c (syms_of_w32fns): Change default value of
689 w32-scroll-lock-modifier to nil. (Bug#2827)
690
057bce6f
JB
6912009-10-26 Juanma Barranquero <lekktu@gmail.com>
692
782a943e 693 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 694
242bc74c
AS
6952009-10-26 Andreas Schwab <schwab@redhat.com>
696
697 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
698
522d013a
JB
6992009-10-26 Juanma Barranquero <lekktu@gmail.com>
700
701 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
702 For delta < 0, skip check that only makes sense when the mini-window
703 is going to be enlarged. (Bug#4534)
704
18060980
CY
7052009-10-25 Chong Yidong <cyd@stupidchicken.com>
706
707 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
708 string in menu maps (Bug#4471).
709
fec8f0fe
CY
7102009-10-24 Chong Yidong <cyd@stupidchicken.com>
711
712 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
713 FRAME_NS_VIEW on terminal frames (Bug#4765).
714
10d66ec0
AS
7152009-10-24 Andreas Schwab <schwab@linux-m68k.org>
716
1cae01f7
AS
717 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
718 DBUS_TYPE_UINTnn separately to get proper sign extension.
719
58a12889
AS
720 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
721 can properly handle unsigned types.
d528b1ce 722 (make_uid, make_gid): Remove.
58a12889 723
987c9327
AS
724 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
725 types again.
726
522d013a 727 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
728 (system_process_attributes): Likewise.
729
905a9ed3
DN
7302009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
731
732 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
733
734 * eval.c (Fautoload): Purecopy the filename. Simplify.
735
736 * category.c (Fdefine_category): Purecopy docstring.
737
a599b3e8
AS
7382009-10-23 Andreas Schwab <schwab@linux-m68k.org>
739
7b792fc9
AS
740 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
741
a599b3e8
AS
742 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
743
b35ac83e
CY
7442009-10-23 Chong Yidong <cyd@stupidchicken.com>
745
746 * window.c (Fwindow_edges, Fwindow_pixel_edges)
747 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
748 (Bug#4775).
749
e8903e00
SM
7502009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
751
752 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
753 (init_fileio_once):
754 * lisp.h (init_fileio_once): Remove.
755 * emacs.c (main): Don't call init_fileio_once.
756
8f43cbf3
DN
7572009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
758
759 * puresize.h (BASE_PURESIZE): Increase to 1430000.
760
26898943
AS
7612009-10-21 Andreas Schwab <schwab@linux-m68k.org>
762
763 * doprnt.c (doprnt): Fix overflow check.
764
5c646d5a
JD
7652009-10-21 Jan Djärv <jan.h.d@swipnet.se>
766
3132a7ea
JD
767 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
768
5c646d5a
JD
769 * xterm.h (x_wait_for_event): Declare it.
770
771 * xterm.c (pending_event_wait): New variable.
772 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
773 see pending_event_wait.eventtype.
774 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
775 (x_new_font): Call change_frame_size with new rows/columns before we
776 try to resize the frame.
5c646d5a 777 (x_wait_for_event): New function.
d528b1ce
SM
778 (x_set_window_size_1): Don't change gravity unless change_gravity
779 is set.
5c646d5a
JD
780 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
781 don't change frame size, instead wait for the ConfigureNotify.
782 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
783 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
784 (x_initialize): Initialize pending_event_wait.
785
786 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
787 size.
788
789 * widget.c (EmacsFrameSetValues): Add comment.
790 (EmacsFrameSetCharSize): Just call x_set_window_size.
791
792 * gtkutil.c (xg_frame_set_char_size): Flush events and call
793 x_wait_for_event.
d528b1ce 794 (flush_and_sync): Remove again.
5c646d5a
JD
795 (xg_get_font_name): Suggest monospace if no previous font is known.
796
e9c1637d
SM
7972009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
798
799 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 800 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 801
5a72cccb
YM
8022009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
803
804 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
805 processing pending events when event is filtered for input method.
ab04798f 806 (Bug#3681)
5a72cccb 807
2629aa37
JB
8082009-10-20 Juanma Barranquero <lekktu@gmail.com>
809
810 * fns.c: Add #endif accidentally removed in previous change.
811
c3417a74
DN
8122009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
813
814 * fns.c: Remove code for unsupported system: MAC_OS.
815 * image.c: Likewise. Include setjmp.h.
816
9685cef2
JD
8172009-10-19 Jan Djärv <jan.h.d@swipnet.se>
818
819 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
820 pixel -1 (bug #4742).
821
d7306fe6
DN
8222009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
823
019d2c4c
DN
824 * process.c (create_pty): Remove conditionals for no longer
825 supported systems: UNIPLUS and RTU.
826
ee6bacd4
DN
827 * xterm.c:
828 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
829
d7306fe6
DN
830 * alloc.c: Do not define struct catchtag.
831 * eval.c: Move struct catchtag definition ...
832 * lisp.h: ... here.
833
834 * image.c: Move png.h #include earlier to avoid warnings.
835
836 * xterm.c:
837 * xsmfns.c:
838 * xselect.c:
839 * xrdb.c:
840 * xmenu.c:
841 * xftfont.c:
842 * xfont.c:
843 * xfns.c:
844 * xfaces.c:
845 * xdisp.c:
846 * window.c:
847 * widget.c:
848 * w32xfns.c:
849 * w32uniscribe.c:
850 * w32term.c:
851 * w32select.c:
852 * w32reg.c:
853 * w32proc.c:
854 * w32menu.c:
855 * w32inevt.c:
856 * w32heap.c:
857 * w32font.c:
858 * w32fns.c:
859 * w32console.c:
860 * w32.c:
861 * w16select.c:
862 * vm-limit.c:
863 * unexsol.c:
864 * unexec.c:
865 * unexcw.c:
866 * unexaix.c:
867 * undo.c:
868 * tparam.c:
869 * textprop.c:
870 * terminfo.c:
871 * terminal.c:
872 * termcap.c:
873 * term.c:
874 * syntax.c:
875 * sound.c:
876 * sheap.c:
877 * search.c:
878 * scroll.c:
879 * region-cache.c:
880 * regex.c:
881 * ralloc.c:
882 * process.c:
883 * print.c:
b024548b
DN
884 * nsterm.m:
885 * nsselect.m:
886 * nsmenu.m:
887 * nsimage.m:
888 * nsfont.m:
889 * nsfns.m:
d7306fe6
DN
890 * msdos.c:
891 * minibuf.c:
892 * menu.c:
893 * marker.c:
894 * macros.c:
895 * keymap.c:
896 * keyboard.c:
897 * intervals.c:
898 * insdel.c:
899 * indent.c:
900 * gtkutil.c:
901 * ftxfont.c:
902 * ftfont.c:
903 * fringe.c:
904 * frame.c:
905 * fontset.c:
906 * font.c:
907 * fns.c:
908 * floatfns.c:
909 * filelock.c:
910 * fileio.c:
911 * emacs.c:
912 * editfns.c:
913 * dosfns.c:
914 * doprnt.c:
915 * doc.c:
916 * dispnew.c:
917 * dired.c:
918 * dbusbind.c:
919 * data.c:
920 * composite.c:
921 * coding.c:
922 * cmds.c:
923 * cm.c:
924 * chartab.c:
925 * charset.c:
926 * character.c:
927 * ccl.c:
928 * category.c:
929 * casetab.c:
930 * casefiddle.c:
931 * callproc.c:
932 * callint.c:
933 * bytecode.c:
934 * buffer.c:
935 * atimer.c: Include setjmp.h. (Bug#4643)
936
fd5f21e6
SM
9372009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
938
4c0354d7
SM
939 Remove leftover table unibyte_to_multibyte_table.
940 * character.c (unibyte_to_multibyte_table): Remove.
941 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
942 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
943 * character.h (UNIBYTE_TO_CHAR): New macro.
944 (MAKE_CHAR_MULTIBYTE): Use it.
945 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
946 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
947 (message_dolog, set_message_1):
948 * search.c (Freplace_match):
949 * editfns.c (Fcompare_buffer_substrings):
950 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
951 (concat):
952 * insdel.c (copy_text, count_size_as_multibyte):
953 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
954 * term.c (produce_glyphs):
955 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
956 * regex.c (RE_CHAR_TO_MULTIBYTE):
957 * cmds.c (internal_self_insert):
958 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
959
fd5f21e6
SM
960 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
961
4418646e
DN
9622009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
963
964 * puresize.h (BASE_PURESIZE): Increase to 1310000.
965
35f5c1d2
JB
9662009-10-16 Juanma Barranquero <lekktu@gmail.com>
967
968 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
969
a0cd8f6b
AR
9702009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
971
972 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
973 still needed under Tiger.
974
975 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
976
977 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
978 __Apple__.
979
980 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
981
01a8d3fa
KH
9822009-10-15 Kenichi Handa <handa@m17n.org>
983
984 * print.c (print_object): Escape a symbol like "2E10" too.
985
bf6c75c9 9862009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
987
988 Cleanups and changes for 64-bit compile under Snow Leopard.
989 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
990
991 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
992
c5959062 993 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
994 (ns_findfonts, nsfont_list_family): Use long format in printf, and
995 cast argument.
996 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 997 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
998
999 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
1000
1001 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
1002 where appropriate.
1003
1004 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
1005 where appropriate.
6e4780c5
JB
1006 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
1007 Use stringWithUTF8String.
bf6c75c9
AR
1008 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
1009
6e4780c5
JB
1010 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
1011 Add formal protocol mention to inheritance.
bf6c75c9
AR
1012 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
1013
6e4780c5
JB
1014 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
1015 Fix printf format.
bf6c75c9
AR
1016 (ns_query_color): Use CGFloat where appropriate.
1017 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
1018 (EmacsScroller-mouseDown:) Use long format in printf, and cast
1019 argument.
1020
3d87f118
AR
1021 * config.in (NS_HAVE_NSINTEGER): Drop.
1022
a95c8102
AR
1023 * dbusbind.c (dbus-method-return-internal)
1024 (dbus-method-error-internal): Use long format in printf, and cast
1025 argument.
1026
1027 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
1028 in printf, and cast argument.
1029
6873acca 1030 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
1031 cast argument.
1032
9ec6f100
GM
10332009-10-11 Glenn Morris <rgm@gnu.org>
1034
1035 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
1036
5be883cd
JD
10372009-10-08 Jan Djärv <jan.h.d@swipnet.se>
1038
1039 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
1040 menu bar with a small width so it doesn't enlarge the frame.
1041
d7a39b51
JB
10422009-10-08 Juanma Barranquero <lekktu@gmail.com>
1043
1044 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1045
0c2b6f8e
GM
10462009-10-06 Glenn Morris <rgm@gnu.org>
1047
1048 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1049 SOME_MACHINE_LISP (this enters indirectly via DOC).
1050
e02131a2
EZ
10512009-10-05 Eli Zaretskii <eliz@gnu.org>
1052
1053 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1054
b4744254
EZ
10552009-10-04 Eli Zaretskii <eliz@gnu.org>
1056
1057 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1058 Doc fix.
1059
dbf64827
JB
10602009-10-03 Martin Rudalics <rudalics@gmx.at>
1061
1062 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1063
e9a0aef8
MA
10642009-10-02 Michael Albinus <michael.albinus@gmx.de>
1065
d528b1ce 1066 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1067 used anymore outside fileio.c.
1068
1069 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1070
64eb2b56
JB
10712009-10-01 Juanma Barranquero <lekktu@gmail.com>
1072
1073 * lisp.h (Qdelete_directory_internal):
1074 Declare, instead of Qdelete_directory.
1075
1076 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1077
9d28c33e
SM
10782009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1079
1080 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1081
9d8f3bd9
MA
10822009-10-01 Michael Albinus <michael.albinus@gmx.de>
1083
9d28c33e 1084 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1085 Fdelete_directory. It is not a command anymore. It has no file
1086 name handler.
1087
9694740b
SM
10882009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1089
1090 * xdisp.c (get_next_display_element): Use an enum in last change.
1091
748e162f
KH
10922009-09-28 Kenichi Handa <handa@m17n.org>
1093
9694740b 1094 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1095 unibyte_display_via_language_environment in handling
1096 Vnobreak_char_display.
1097
17efd58d
AR
10982009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1099
1100 * nsterm.h (ns_app_name): New extern variable.
1101
1102 * nsterm.m (ns_app_name): New variable.
1103 (ns_term_init): Set and use it.
1104 (ns_term_shutdown): Use it.
1105
1106 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1107 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1108
1109 * nsfns.m (ns_set_name_iconic, ns_set_name)
1110 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1111 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1112
9694740b
SM
1113 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1114 Remove double-casting in client_data comparison.
31c2d412 1115
3208cb35
YM
11162009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1117
1118 * keyboard.c (make_lispy_event): Remember last wheel direction.
1119 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1120
b7d552d6
GM
11212009-09-26 Glenn Morris <rgm@gnu.org>
1122
1123 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1124 internal.elc. Add term/pc-win.elc.
1125 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1126 term/x-win.elc.
1127 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1128 term/w32-win.elc.
1129 (NS_SUPPORT): New.
1130 (lisp): Add NS_SUPPORT.
1131 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1132
4ff670a8
DR
11332009-09-25 David Reitter <david.reitter@gmail.com>
1134
1135 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1136 on Mac OS X 10.6+ (bug#4513).
1137
feabfb6c
JB
11382009-09-24 Juanma Barranquero <lekktu@gmail.com>
1139
1140 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1141 some parts of Emacs code (like font selection) don't grok them.
1142 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1143
de59072a
AS
11442009-09-24 Andreas Schwab <schwab@redhat.com>
1145
1146 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1147
a489517b
JB
11482009-09-24 Juanma Barranquero <lekktu@gmail.com>
1149
1150 * dired.c (Fdirectory_files): Fix typo in docstring.
1151
0592970c
AR
11522009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1153
1154 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1155 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1156 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1157 under GNUstep.
1158 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1159
1160 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1161 glyph advancement.
1162
48e8a88b
AR
11632009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1164
1165 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1166 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1167
1168 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1169 deleted (bug #4492).
1170
e14f0a78
AR
1171 * nsfont.m (Vns_reg_to_script): New lisp variable.
1172 (syms_of_nsfont): Declare it.
1173 (ns_registry_to_script): New function.
1174 (ns_get_req_script): Call it.
1175 (ns_findfonts): Don't give up on non-unicode registry.
1176
1177 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1178
5b650faa
SM
11792009-09-20 Tom Tromey <tromey@redhat.com>
1180
1181 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1182 batch mode (bug#4228).
1183
a489517b 11842009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1185
1186 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1187 carefully. (Bug #4339)
0bae4e09 1188
fcfe06f3
CY
11892009-09-18 Chong Yidong <cyd@stupidchicken.com>
1190
d798ba87 1191 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1192
31642728
AR
11932009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1194
1195 * emacs.c (inhibit_x_resources): Update doc string for NS.
1196 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1197 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1198
1199 * nsterm.h (ns_no_defaults): Remove.
1200
1201 * nsterm.m (ns_no_defaults): Remove.
1202 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1203 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1204 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1205 don't update the NSWindow itself.
1206 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1207 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1208
1209 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1210 ns_use_qd_smoothing.
1211
1212 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1213 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1214 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1215 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1216
8686ac71
JB
12172009-09-17 Juanma Barranquero <lekktu@gmail.com>
1218
1219 * emacs.c (inhibit_x_resources): New variable.
1220 (main) [HAVE_NS]: Don't process --quick command line option.
1221 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1222
1223 * lisp.h (inhibit_x_resources): Declare it extern.
1224
1225 * w32reg.c (x_get_string_resource):
1226 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1227
e227ba05
EZ
12282009-09-17 Eli Zaretskii <eliz@gnu.org>
1229
362654a6
JB
1230 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1231 Add lisp/term/internal.elc.
e227ba05 1232
742d40e8
SM
12332009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1234
1235 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1236 (bug#4461).
1237
005bd5a2
DN
12382009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1239
1240 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1241
1242 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1243 (OBJECTS_MACHINE): Remove, unused.
1244
f9af9719
SM
12452009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1246
1247 * frame.c (x_get_resource_string): Remove unused.
1248
0307c7d2
JD
12492009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1250
1251 * xterm.c (x_new_font): Call change_frame_size before calling
1252 x_set_window_size, in case frame size won't change.
1253
1254 * frame.c (x_set_font): Remove dead code.
1255
428b13d6
SM
12562009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1257
1258 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1259
5766c380
SM
12602009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1261
1262 * lread.c (Fload): Don't output a message after loading an obsolete
1263 package any more (done in Lisp now).
1264
2fd0161b
CY
12652009-09-12 Chong Yidong <cyd@stupidchicken.com>
1266
1267 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1268
bc5e75b6
SM
12692009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1270
1271 * keymap.c (Fwhere_is_internal): Use nconc2.
1272
c31c985e
AM
12732009-09-11 Alan Mackenzie <acm@muc.de>
1274
1275 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1276 batch mode.
1277
78012bd2
AS
12782009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1279
1280 * xdisp.c (display_mode_element): Detect cycles.
1281
9d889332
SM
12822009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1283
1284 * keymap.c (where_is_internal): Don't erroneously return nil right after
1285 filling the cache.
1286 (where_is_internal_1): Fix up typo.
1287
7ab5d780
GM
12882009-09-11 Glenn Morris <rgm@gnu.org>
1289
1290 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1291 share a common doc-string.
1292
5238a749
SM
12932009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1294
66d77eda
SM
1295 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1296 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1297
5238a749
SM
1298 * keymap.c (QCadvertised_binding): New constant.
1299 (syms_of_keymap): Initialize it.
1300 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1301 if applicable.
1302
19f48442
SM
13032009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1304
50d4ba39
SM
1305 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1306 (parse_menu_item): Streamline since bindings are recomputed all the
1307 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1308 more and don't support lmenu's menu-alias any more either.
1309
a88a5372
SM
1310 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1311 (where_is_internal): Strip it down to only traverse the keymaps.
1312 Move the cache handling from Fwhere_is_internal to here.
1313 (Fwhere_is_internal): Move the handling of remapping and the choice of
1314 the best binding from where_is_internal to here.
1315 Unify the cached/noncached paths, so remapping is also handled
1316 correctly when the cache is used, and so the cache can be used to
1317 speed up remap-handling when applicable.
1318 Give preference to non-remapped bindings.
1319 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1320 non-remapped bindings.
1321 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1322 command remapping.
1323
19f48442
SM
1324 * xdisp.c (display_mode_element): Move list length limit from 50 to
1325 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1326
599498c3 13272009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1328
1329 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1330
f9b7b5ac
SM
13312009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1332
a53af587
JB
1333 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1334 (Bug#4334)
1335
f9b7b5ac
SM
1336 * keymap.c (where_is_internal): Filter out shadowed remappings.
1337 Assume that where_is_internal returns unshadowed bindings to simplify
1338 the code and get rid of the gotos. Use ASIZE.
1339
04f4b72d
JD
13402009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1341
4da146f2
JD
1342 * xterm.c (x_focus_changed): If we get a focusout and pointer
1343 is invisible, make it visible.
1344
04f4b72d
JD
1345 * xterm.h: Remove condition for declaration of
1346 x_*_window_to_frame.
1347
7cef7ce3
SM
13482009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1349
1350 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1351 initial terminal as well.
1352
a54fa5b7
JD
13532009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1354
1355 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1356 x_menubar_window_to_frame.
a54fa5b7
JD
1357
1358 * xterm.c: Remove declarations also in xterm.h
1359 (XTmouse_position): Do not return valid positions
1360 for clicks in the menubar and the toolbar for Gtk+.
1361
1362 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1363 if the widget for the event has the same top level as a frame,
1364 return the frame.
1365 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1366 internal windows, bug #4122.
1367 (x_non_menubar_window_to_frame): Remove.
1368
5a021dd0
GM
13692009-09-02 Glenn Morris <rgm@gnu.org>
1370
1371 * buffer.c (default-major-mode): Move most of the doc from here...
1372 (major-mode): ... to here.
1373
548fe2f3
NR
13742009-08-30 Nick Roberts <nickrob@snap.net.nz>
1375
1376 * process.c (wait_reading_process_output): Keep the descriptor
1377 when pty is used by a non-child process, e.g., in I/O buffer of
1378 GDB this allows inferior to be restarted.
1379
e0840eef
EZ
13802009-08-29 Eli Zaretskii <eliz@gnu.org>
1381
1382 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1383 both branches into one.
1384
82e98df4
SM
13852009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1386
1387 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1388 (main): Use enable-multibyte-characters rather than
1389 default-enable-multibyte-characters. Output a warning message when
1390 running a unibyte session.
1391
890617cb
YM
13922009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1393
1394 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1395 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1396 (copy_data_segment): Also copy __program_vars section.
1397 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1398 (dump_it) [LC_DYLD_INFO]: Use it.
1399
1400 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1401
e7adeadc
EZ
14022009-08-28 Eli Zaretskii <eliz@gnu.org>
1403
1404 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1405 $(SRC)/buildobj.h.
1406 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1407 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1408 $(SRC)/buildobj.h.
1409 (clean): Add buildobj.h.
1410
3ed8bbdc
TZ
14112009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1412
1413 * print.c (print_object): Set escapeflag to 1 when printing
1414 hashtable keys and values.
1415
155a6764
SM
14162009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1417
1418 * lread.c (read_integer): Use doubles (and potentially return a float
1419 number) as we do in string-to-number.
1420 (read1): Use strtol to read integers, signal errors on strtol's
1421 overflow and use floats if strtol's output is too large for
1422 Elisp integers.
1423
877610de
EZ
14242009-08-27 Eli Zaretskii <eliz@gnu.org>
1425
1426 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1427 (make-buildobj-SH): Fix last change.
1428 (SRC): Move to before where it's first used.
1429
ef73e7be
KH
14302009-08-27 Kenichi Handa <handa@m17n.org>
1431
550c8289
KH
1432 * process.c (send_process): Use encode_coding_object instead of
1433 encode_coding_string to perform eol-conversion even if the string
1434 is unibyte.
1435
60afa08d
KH
1436 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1437 character.
1438
ef73e7be 1439 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1440 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1441
7b3a82d7
DN
14422009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1443
5654bf63
DN
1444 * callproc.c (Fcall_process): Remove always true #if.
1445
7b3a82d7
DN
1446 * lisp.h: Replace #if 0 code for checking with text pointing to
1447 the --enable-checking configure flag.
1448
1449 * emacs.c (main): Mention the --enable-profiling configure flag
1450 instead of using CFLAGS.
1451
878bde49
KR
14522009-08-26 Ken Raeburn <raeburn@raeburn.org>
1453
1454 * Makefile.in (buildobj.h): New target.
1455 (doc.o): Depend on it.
1456 (temacs${EXEEXT}): Don't generate buildobj.lst.
1457 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1458 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1459 ($(BLD)/doc.$(O)): Depend on it.
1460 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1461 provided by Eli Zaretskii.)
1462 ($(TEMACS)): Don't generate buildobj.lst.
1463 * doc.c: Include buildobj.h.
1464 (buildobj): New static variable.
1465 (Fsnarf_documentation): Use it, instead of opening and reading
1466 buildobj.lst.
1467
1574224c
MA
14682009-08-25 Michael Albinus <michael.albinus@gmx.de>
1469
1470 * dbusbind.c (Fdbus_call_method)
1471 (Fdbus_call_method_asynchronously): Use English numeric format for
1472 timeout values in doc string.
1473
d9da2f45
KH
14742009-08-25 Kenichi Handa <handa@m17n.org>
1475
ef73e7be
KH
1476 * alloc.c (mark_char_table): New function.
1477 (mark_object): Use mark_char_table for a char-table.
1478
d9da2f45
KH
1479 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1480 (CHAR_TABLE_REF): Use it.
1481
c8edcc01
KR
14822009-08-23 Ken Raeburn <raeburn@raeburn.org>
1483
1484 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1485 before invoking the newly build emacs to check for load-path
1486 shadowing.
1487
7763401b
GM
14882009-08-22 Glenn Morris <rgm@gnu.org>
1489
1490 * Makefile.in (bootstrap_exe): New variable.
1491 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1492 Use ${bootstrap_exe}.
1493
729eadda
EZ
14942009-08-22 Eli Zaretskii <eliz@gnu.org>
1495
1496 * coding.h (encode_coding_string): Don't encode unibyte strings.
1497 (Bug#4047)
1498
eb4c6ace
MA
14992009-08-22 Michael Albinus <michael.albinus@gmx.de>
1500
1501 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1502
1503 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1504 intended as hotfix only.
1505 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1506
36e34d1b
AR
15072009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1508
1509 * nsterm.m (ns_get_color): Update documentation properly for last
1510 change, and clean up loose ends in the code left by it. Fix
1511 longstanding bug with 16-bit hex parsing, and add support for
1512 yet another X11 format (rgb:r/g/b) for compatibility.
1513 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1514 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1515
f983eb8a
SM
15162009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1517
1518 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1519
3f56d3c6
MA
15202009-08-20 Michael Albinus <michael.albinus@gmx.de>
1521
1522 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1523 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1524 (xd_initialize, xd_pending_messages): Check, whether
1525 $DBUS_SESSION_BUS_ADDRESS is set.
1526
fb641d68
YM
15272009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1528
1529 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1530
1531 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1532
cf59a374
GM
15332009-08-20 Glenn Morris <rgm@gnu.org>
1534
1535 * emacs.c (system-type): Doc fix.
1536
1373f3be
SM
15372009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1538
1539 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1540 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1541
058ed861
MA
15422009-08-18 Michael Albinus <michael.albinus@gmx.de>
1543
1373f3be
SM
1544 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1545 New functions.
058ed861
MA
1546 (xd_initialize): Revert change from 2009-08-16.
1547
563a866e 15482009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1549
1550 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1551 font-group vector, return nil.
5fc05db0 1552
e42bdf01
CY
15532009-08-17 Chong Yidong <cyd@stupidchicken.com>
1554
1555 * process.c (status_notify): Don't perform redisplay.
1556 (Fdelete_process, list_processes_1, process_send_signal):
1557 Expliticly perform redisplay.
1558 (wait_reading_process_output): Always check process status, but
1559 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1560
4230ab74
KR
15612009-08-17 Ken Raeburn <raeburn@raeburn.org>
1562
1373f3be 1563 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1564 (XFLOAT_INIT): New macro for storing a float value.
1565 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1566 * fns.c (sxhash): Copy out the value of a float in order to
1567 examine its bytes.
1568 * dbusbind.c (xd_append_arg): Likewise.
1569
4230ab74
KR
1570 * emacs.c (main): Don't call syms_of_data twice.
1571
a0645cdd
MA
15722009-08-16 Michael Albinus <michael.albinus@gmx.de>
1573
1574 * dbusbind.c (xd_initialize): Add connection file descriptor to
1575 input_wait_mask, in order to let select() detect, whether a new
1576 message has been arrived.
ca4f31ea 1577 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1578
485db0ba
MA
15792009-08-15 Michael Albinus <michael.albinus@gmx.de>
1580
1373f3be
SM
1581 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1582 New functions.
485db0ba
MA
1583
1584 * lisp.h (xd_pending_messages): Declare.
1585
1586 * keyboard.c (readable_events): Call xd_pending_messages.
1587
b5b98ff4
CY
15882009-08-15 Chong Yidong <cyd@stupidchicken.com>
1589
1373f3be 1590 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1591
f8354c6e
CY
1592 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1593
b5b98ff4
CY
1594 * buffer.c (set_buffer_internal_1)
1595 (swap_out_buffer_local_variables): Check for unbound local
1596 variables (Bug#4138).
1597
8b9fc636
EZ
15982009-08-14 Eli Zaretskii <eliz@gnu.org>
1599
1600 * process.c (create_pty): Fix last change.
1601
ce959360
CY
16022009-08-13 Chong Yidong <cyd@stupidchicken.com>
1603
1604 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1605 (xbm_load_image): Caller changed.
64b807c9 1606 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1607
c7baf7e9
NR
16082009-08-13 Nick Roberts <nickrob@snap.net.nz>
1609
1610 * process.c (create_pty): New function.
1611 (Fstart_process): Use it to allow Emacs to just associate a pty
1612 with the buffer. See associated change in gdb-mi.el.
1613 (list_processes_1): Deal with no program name.
1614 (start_process_unwind): Use pid == -2 to mean no process.
1615
1ac9108a
SM
16162009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1617
1618 * cmds.c (nonundocount): New global variable.
1619 (keys_of_cmds): Initialize it.
1620 (Fself_insert_command): Use it to combine upto 20 sequential chars
1621 into a single undo entry, just like the Qself_insert_command code in
1622 keyboard.c does.
1623 Call frame_make_pointer_invisible, also like the Qself_insert_command
1624 code in keyboard.c does.
1625 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1626 than its own local replacement for it.
1627
e267324c
KR
16282009-08-10 Ken Raeburn <raeburn@raeburn.org>
1629
1ac9108a 1630 * fns.c (concat): Don't re-set string length to its current value.
77437343 1631
1ac9108a
SM
1632 * coding.h (decode_coding_string, encode_coding_string):
1633 Use SBYTES macro.
f0bed503 1634
1ac9108a 1635 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1636 (doprnt): Merge with doprnt1, discarding lispstrings code.
1637 * lisp.h (doprnt_lisp): Don't declare.
1638
416e006d
JL
16392009-08-07 Juri Linkov <juri@jurta.org>
1640
1641 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1642
6f7d5780
DN
16432009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1644
1645 * print.c (syms_of_print): Undo previous change.
1646
f19a0f5b
TZ
16472009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1648
1649 * lread.c (read1, syms_of_lread): Read hashtables back from the
1650 readable format.
1651
1652 * print.c (print_preprocess, print_object): Print hashtables fully
1653 and readably.
1654 (syms_of_print): Provide 'hashtable-print-readable.
1655
b9173dc2
AR
16562009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1657
1658 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1659 no family set.
1660 (nsfont_open): Handle case when entity has no family.
1661
1586503c
AR
16622009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1663
1664 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1665 element, not a list, for match case.
1666
087048cd
KH
16672009-07-28 Kenichi Handa <handa@m17n.org>
1668
1669 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1670 rigidly.
1671
1672 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1673 font_parse_xlfd. Check font properties more rigidly.
1674
780c2506
DN
16752009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1676
31fd7c5c
JB
1677 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1678 bsd-common.h.
780c2506 1679
a8c0cc18
KH
16802009-07-27 Kenichi Handa <handa@m17n.org>
1681
1682 * xfaces.c (face_with_height): Call font_clear_prop.
1683
4fbe2306
CY
16842009-07-26 Chong Yidong <cyd@stupidchicken.com>
1685
111d9af3
CY
1686 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1687
1688 * xterm.c (x_term_init): Use Qx.
1689
4fbe2306
CY
1690 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1691
1ac9108a 1692 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1693 (ns_get_color): Revert 2009-07-16 change.
1694
beb0b7f9
EZ
16952009-07-25 Eli Zaretskii <eliz@gnu.org>
1696
1697 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1698 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1699
2baf5e76
KR
17002009-07-25 Ken Raeburn <raeburn@raeburn.org>
1701
1ac9108a
SM
1702 * coding.h (decode_coding_string, encode_coding_string):
1703 Use SCHARS macro.
8890e5f5 1704
2baf5e76 1705 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1706 (load_depth): Delete.
2baf5e76
KR
1707 (Qload_in_progress): New variable.
1708 (load_unwind): Don't reference load_depth or load_in_progress.
1709 (Fload): Likewise; specbind Qload_in_progress instead.
1710 (init_lread): Don't initialize load_depth.
1711 (syms_of_lread): Initialize and protect Qload_in_progress.
1712
1395c6f5
AR
17132009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1714
1715 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1716
4e2f36cf
AR
17172009-07-23 Yavor Doganov <yavor@gnu.org>
1718
1719 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1720
5dd9a6f7
AR
17212009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1722
1723 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1724 Bugs 3792, 3720, 2402.
1725 (ns_lookup_indexed_color): Check for bad index.
1726 (ns_index_color): Init unused slot to 0.
1727 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1728 Bug 3714, possibly 3082.
5dd9a6f7 1729
c902b920
JR
17302009-07-22 Jason Rumney <jasonr@gnu.org>
1731
1ac9108a
SM
1732 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1733 Position IME window at cursor (Bug#2570).
c902b920
JR
1734 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1735 (globals_of_w32fns): Dynamically load functions required above.
1736
1737 * w32term.c (w32_draw_window_cursor): Send message to reposition
1738 any IME window.
1739
090101cf
CY
17402009-07-21 Chong Yidong <cyd@stupidchicken.com>
1741
1742 * fileio.c: Revert 2009-07-16 changes.
1743 (Vauto_save_include_big_deletions): New variable.
1744 (Fdo_auto_save): Disable auto-save only if
1745 auto-save-include-big-deletions is nil.
1746
e6583e3d
CY
17472009-07-21 Chong Yidong <cyd@stupidchicken.com>
1748
1749 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1750 the overflowed pixels into account (Bug#3879).
1751
ece435a5
KR
17522009-07-21 Ken Raeburn <raeburn@raeburn.org>
1753
1754 * lread.c (load_depth): New variable.
1755 (Fload, load_unwind, init_lread): Set it to the load recursion
1756 depth; set load_in_progress as a simple boolean based on the
1757 current load_depth. (Bug#3892)
1758
40b2d973
AR
17592009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1760
1761 * nsfont.m (ns_has_attribute): Remove.
1762 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1763
10be7e0d
JL
17642009-07-18 Juri Linkov <juri@jurta.org>
1765
1766 * process.c (Fset_process_query_on_exit_flag): Mention killing
1767 a buffer in docstring.
1768
fa055055
KH
17692009-07-17 Kenichi Handa <handa@m17n.org>
1770
1771 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1772
042f7b69
YM
17732009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1774
1775 * nsfns.m (Fns_set_alpha): Remove function.
1776 (syms_of_nsfns): Don't defsubr it.
1777
1778 * nsterm.m (ns_get_color): Remove incompatible color formats.
1779 (ns_color_to_lisp): Generate #rrggbb color format string.
1780
4be941e3
RS
17812009-07-16 Richard Stallman <rms@gnu.org>
1782
1783 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1784 (Fset_buffer_auto_saved): Handle save_length = -2.
1785
4e6b227d
CY
17862009-07-16 Chong Yidong <cyd@stupidchicken.com>
1787
1788 * xterm.c (Qx_gtk_map_stock): New var.
1789
1790 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1791 of calling intern each time.
1792
a1856973
YM
17932009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1794
1795 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1796 does tiling.
1797
1798 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1799
497e54d8
KH
18002009-07-14 Kenichi Handa <handa@m17n.org>
1801
72d36834
KH
1802 * font.c (font_vconcat_entity_vectors): New function.
1803 (struct font_sort_data): New member font_driver_preference.
1804 (font_compare): Check font_driver_preference.
1805 (font_sort_entities): The format of the first argument changed.
1806 (font_delete_unmatched): Likewise.
1807 (font_list_entities): The return type changed.
1808 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1809 (font_find_for_lface): Adjuste for the above changes.
1810 Don't suppress the checking of C even if the repertory supports it.
1811 (Flist_fonts): Adjust for the above changes.
72d36834 1812
1ac9108a
SM
1813 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1814 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1815 Reject a font who has adstyle property that is different from a
1816 langname derived from registry property.
1ac9108a 1817 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1818
b6046155
EZ
18192009-07-13 Eli Zaretskii <eliz@gnu.org>
1820
1821 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1822 local copy of dirfilename.
1823
fb6b6049
KH
18242009-07-13 Kenichi Handa <handa@m17n.org>
1825
e2402a5e
KH
1826 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1827 against max_char.
1828
fb6b6049
KH
1829 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1830 calling XSYMBOL (sym).
1831
65156807
EZ
18322009-07-11 Eli Zaretskii <eliz@gnu.org>
1833
1ac9108a
SM
1834 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1835 New function.
1836 (directory_files_internal) [WINDOWSNT]:
1837 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1838 the filesystem of the directory is fast or slow.
1839
1840 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1841 file name.
1842 (is_slow_fs): New function.
1843 (stat): Use it to determine whether to issue more system calls to
1844 get accurate file attributes, when w32-get-true-file-attributes is
1845 `local'.
1846
e0ab5fcf
JD
18472009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1848
1849 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1850 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1851 parameter font-parameter as default to the font dialog.
1852
784ceded
KH
18532009-07-10 Kenichi Handa <handa@m17n.org>
1854
1855 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1856
fb8edc0b
EZ
18572009-07-09 Eli Zaretskii <eliz@gnu.org>
1858
1ac9108a 1859 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1860
fb8edc0b
EZ
1861 * w32.c (stat): Treat UNC file names as residing on remote
1862 drives. (Bug#3542)
1863
635c75b1
KH
18642009-07-09 Kenichi Handa <handa@m17n.org>
1865
1866 * fontset.c (fontset_find_font): Fix previous change.
1867
c1d5ce94
MA
18682009-07-08 Michael Albinus <michael.albinus@gmx.de>
1869
1870 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1871 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1872 error flag.
1873
edb61b39
KH
18742009-07-08 Kenichi Handa <handa@m17n.org>
1875
374bf7e4
KH
1876 * fontset.c (fontset_find_font): Fix the logic of handling
1877 charset_matched.
1878 (font_for_char): Delete unused var.
1879 (generate_ascii_font_name): Delete it.
1880
edb61b39
KH
1881 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1882
1883 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1884 (encode_coding_sjis): Fix the code range check.
1885
0f3f018c
CY
18862009-07-07 Chong Yidong <cyd@stupidchicken.com>
1887
1888 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1889 (Fexpand_file_name): Copy string data properly (Bug#3772).
1890
fcaf6f3a
JD
18912009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1892
1893 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1894 first MapNotify.
1895
6809ca75
KH
18962009-07-07 Kenichi Handa <handa@m17n.org>
1897
1898 * character.h (unibyte_has_multibyte_table): Delete extern.
1899 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1900
1901 * charset.c (Fset_charset_priority): Update charset_unibyte.
1902 (syms_of_charset): Initialize charset_unibyte.
1903
1904 * character.c (unibyte_has_multibyte_table): Delete it.
1905 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1906 charset_unibyte.
1907 (multibyte_char_to_unibyte_safe): Likewise.
1908 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1909
1ac9108a 1910 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1911 (x_produce_glyphs): Likewise.
1912
1913 * .gdbinit (xcharset): Fix the treating $arg0.
1914
ad9e2d54
EZ
19152009-07-04 Eli Zaretskii <eliz@gnu.org>
1916
1917 Emulation of `getloadavg' on MS-Windows.
1918 * w32.c: Include float.h
1919 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1920 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1921 (get_native_system_info, get_system_times): New functions.
1922 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1923 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1924 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1925 g_b_init_get_system_times, and num_of_processors.
1926
0a3472c7
JR
19272009-07-03 Jason Rumney <jasonr@gnu.org>
1928
1929 * w32term.c (w32_initialize): Use standard types.
1930
80904120
EZ
19312009-07-03 Eli Zaretskii <eliz@gnu.org>
1932
1933 * dired.c (Ffile_attributes): Decode user and group names by the
1934 locale's encoding. (Bug#3443)
1935
6978862d
DN
19362009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1937
f8d23104
DN
1938 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1939 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1940
1941 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1942
1943 * term.c (init_tty): Remove spurious #ifdef.
1944
6978862d
DN
1945 * m/mips.h: Mention this file is also used for netbsd.
1946 * m/pmax.h: Remove file.
1947
e044e4fc
JD
19482009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1949
1950 * xterm.h (struct x_display_info): Add invisible_cursor.
1951 (struct x_output): Add current_cursor.
1952
1953 * xterm.c (XTtoggle_invisible_pointer): New function.
1954 (x_define_frame_cursor): Don't define cursor if invisible or the
1955 same as before. Set current_cursor.
1956 (x_create_terminal): Set toggle_invisible_pointer_hook.
1957
1958 * xfns.c (make_invisible_cursor): New function.
1959 (x_set_mouse_color): Call make_invisible_cursor.
1960 Set current_cursor.
1961 (x_window): Set current_cursor.
1962
1963 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1964
1965 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1966 inserting a character.
1967 (read_avail_input): Call frame_make_pointer_visible.
1968
1969 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1970 (frame_make_pointer_invisible, frame_make_pointer_visible):
1971 New functions.
e044e4fc
JD
1972 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1973
1974 * frame.h: Declare frame_make_pointer_invisible and
1975 frame_make_pointer_visible.
1976 (struct frame): Add pointer_invisible.
1977
574c8efa
JD
19782009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1979
7b507248
JD
1980 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1981 frame isn't visible.
1982 (xg_frame_resized): If width/height is -1, get size of window
1983 from X server.
1984
1985 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1986 for MapNotify.
1987
835bdaa7 1988 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1989 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1990 (flush_and_sync): Reintroduce.
574c8efa 1991
3f1c6666 19922009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1993
31fd7c5c 1994 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1995
1996 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1997 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1998
1999 * frame.h: Declare Qsticky.
2000
cad9ef74
JD
2001 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
2002
2003 * nsfns.m (ns_frame_parm_handlers): Ditto.
2004
2005 * frame.c: Declare Qsticky.
2006 (frame_parms): Add sticky.
2007
2008 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
2009
2010 * xterm.h: Declare x_set_sticky.
2011
2012 * xterm.c (x_set_sticky): New function.
2013
69b16610
JD
2014 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
2015 (xg_tool_bar_menu_proxy): Attach enter/leave events to
2016 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
2017
2018 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
2019
2020 * frame.c: Qmaximized is new.
2021 (x_set_frame_parameters): Do not handle fullscreen specially.
2022 Only set width and height if explicitly set.
2023 (x_set_fullscreen): Handle Qmaximized.
2024 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
2025 (syms_of_frame): Initialize Qmaximized.
2026
1ac9108a
SM
2027 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
2028 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
2029
2030 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
2031 for Expose event. Add call to x_check_fullscreen for MapNotify event.
2032 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
2033 set gravity to NorthWestGravity when USE_GTK.
2034 (set_wm_state): New function.
31fd7c5c 2035 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
2036 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
2037 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 2038 or the case when no window manager is running. That means remove calls
3f1c6666
JD
2039 to x_real_positions and x_fullscreen_adjust.
2040
2041 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2042 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2043 flush_and_sync.
2044 (xg_height_changed): New function.
2045 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2046 and gtk_window_set_policy. Set frame gravity after parsing the
2047 geometry string.
3f1c6666
JD
2048 (xg_update_frame_menubar, free_frame_menubar)
2049 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2050 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2051 Remove calls to xg_frame_set_char_size.
2052
fd503d99
KH
20532009-07-01 Kenichi Handa <handa@m17n.org>
2054
2055 * keyboard.c (decode_keyboard_code): New function.
2056 (tty_read_avail_input): Decode the input bytes if necessary.
2057
1ac9108a
SM
2058 * coding.c (setup_coding_system):
2059 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2060 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2061 use Qno_conversion.
2062
24ed93fb
YM
20632009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2064
2065 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2066
99061dfc
CY
20672009-06-30 Chong Yidong <cyd@stupidchicken.com>
2068
1ac9108a 2069 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2070
ff90fbde
JR
20712009-06-30 Jason Rumney <jasonr@gnu.org>
2072
2073 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2074 is already loaded.
2075 Set user model ID if supported (bug#1849).
2076
5f445726
JM
20772009-06-29 Jim Meyering <meyering@redhat.com>
2078
2079 Remove useless if-before-xfree test.
2080 * nsfont.m (nsfont_close): Remove useless test.
2081 * term.c (delete_tty): Likewise.
2082 * w32.c (system_process_attributes): Likewise.
2083 * w32font.c (w32font_close): Likewise.
2084 * xfaces.c (x_free_gc): Likewise.
2085 * xselect.c (buffer): Likewise.
2086
b9607587
AS
20872009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2088
2089 * process.c (send_process): Keep decoded string in a local
2090 variable and protect it from GC. (Bug#3521)
2091
89ba96f4
EZ
20922009-06-28 Eli Zaretskii <eliz@gnu.org>
2093
2094 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2095 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2096
098a1589
CY
20972009-06-28 Chong Yidong <cyd@stupidchicken.com>
2098
485422be
CY
2099 * xdisp.c (start_display, handle_face_prop)
2100 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2101 (redisplay_window, try_window_id, produce_image_glyph):
2102 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2103
098a1589
CY
2104 * xterm.c (x_update_window_begin, x_new_focus_frame)
2105 (x_scroll_bar_handle_click, handle_one_xevent)
2106 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2107 (x_make_frame_visible, x_make_frame_invisible)
2108 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2109 code chunks that are now obsolete.
2110
78c38319
MA
21112009-06-28 Michael Albinus <michael.albinus@gmx.de>
2112
2113 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2114 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2115 for hours, when optimzation is enabled.
2116 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2117 (xd_read_message): Make them static.
2118
4189ed40
CY
21192009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2120
2121 * term.c (turn_on_face): Allow simultaneously bold and dim
2122 terminal faces (Bug#3530).
2123
cd9b5e16
CY
21242009-06-27 Chong Yidong <cyd@stupidchicken.com>
2125
4e23bedb
CY
2126 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2127
cd9b5e16
CY
2128 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2129 truncation glyphs (Bug#3686).
2130
07cc3c35
GM
21312009-06-27 Glenn Morris <rgm@gnu.org>
2132
2133 * m/pmax.h: Restore file, with only netbsd portions.
2134
31fd7c5c 21352009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2136
cd9b5e16 2137 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2138
42d4a64f
KH
21392009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2140
2141 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2142 the arg FORCE_SYMBOL.
2143
930fe55b 21442009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2145
2146 * fontset.c (fontset_find_font): When a usable rfont_def is found
2147 in a fallback font-group, make it the first element of the group.
2148
57ebc3fd
CY
21492009-06-24 Chong Yidong <cyd@stupidchicken.com>
2150
2151 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2152
f084f942
KH
21532009-06-24 Kenichi Handa <handa@m17n.org>
2154
2155 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2156 set for C.
2157 (fontset_font): Record the availability of a font for C both in
2158 the realized fontsets of the current one and the default one.
2159
2f686c87
DN
21602009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2161
2162 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2163 conditional, it is always defined on AIX.
2164
666e158e
MB
21652009-06-23 Miles Bader <miles@gnu.org>
2166
2167 * window.c (Vrecenter_redisplay): New variable.
2168 (syms_of_window): Initialize it.
2169 (Qtty): New extern declaration.
2170 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2171
c6da7cd2
JM
21722009-06-23 Jim Meyering <meyering@redhat.com>
2173
1ac9108a
SM
2174 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2175 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2176 pointer dereferences are guaranteed to be valid.
c6da7cd2 2177
678dca3d
KH
21782009-06-23 Kenichi Handa <handa@m17n.org>
2179
74d75424
KH
2180 * emacs.c (main): Call init_font ().
2181
2182 * font.h (Vfont_log): Extern it.
2183 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2184
2185 * font.c (font_sort_entities, font_list_entities)
2186 (font_matching_entity, font_open_entity)
2187 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2188 (Vfont_log): Delete static.
2189 (font_log_env_checked): Delete this variable.
2190 (font_add_log): Don't check font_log_env_checked.
2191 (font_deferred_log): Check Vfont_log.
2192 (init_font): New function.
2193
678dca3d
KH
2194 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2195
2196 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2197
2198 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2199
2200 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2201
2202 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2203 (face_for_char): Don't call font_deferred_log here.
2204 (font_for_char): Likewise.
2205
8a668709
CY
22062009-06-22 Chong Yidong <cyd@stupidchicken.com>
2207
9a01ee33
CY
2208 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2209 rather than its background_width for drawing the overline and
2210 underline (Bug#489).
2211
2212 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2213 rather than its background_width for drawing the overline and
2214 underline (Bug#489).
ec7c9926
CY
2215 (xg_default_icon_file): New variable.
2216 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2217 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2218
8a668709
CY
2219 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2220 (load_overlay_strings): Remove externs.
2221 (fast_find_position): Function deleted.
2222 (mouse_face_from_buffer_pos): New function, based on
2223 fast_find_position. Correctly handle before-strings,
2224 display-strings, and after-strings (Bug#1220).
2225 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2226
4d4c02d8
CY
22272009-06-21 Chong Yidong <cyd@stupidchicken.com>
2228
1ac9108a 2229 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2230 (move_it_in_display_line_to, move_it_in_display_line_to)
2231 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2232
70243478
CY
22332009-06-21 Chong Yidong <cyd@stupidchicken.com>
2234
2235 * Branch for 23.1.
2236
13087e59
JR
22372009-06-21 Jason Rumney <jasonr@gnu.org>
2238
2239 * w32term.c (keyboard_codepage): New static variable.
2240 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2241 (w32_read_socket) [WM_CHAR]: Use it to decode character
2242 input (bug#3237).
2243 (w32_initialize): Initialize it.
2244 (codepage_for_locale): New function.
2245
4735b74e
KR
22462009-06-20 Ken Raeburn <raeburn@raeburn.org>
2247
2248 * process.c (status_message): Pass Faset index argument as a lisp
2249 object, so as to work with USE_LISP_UNION_TYPE.
2250
0e727afa
YM
22512009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2252
2253 * coding.c (Ffind_coding_systems_region_internal):
2254 Cache checked characters.
2255
cf299835
KH
22562009-06-18 Kenichi Handa <handa@m17n.org>
2257
1ac9108a 2258 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2259
90f20d94
AS
22602009-06-18 Andreas Schwab <aschwab@redhat.com>
2261
2262 * xdisp.c (redisplay_internal): Check that the frame is still
2263 live after redisplay of its windows.
2264 (redisplay_windows): Check that the window is still live.
2265
7f1faf1c
KH
22662009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2267
2268 * coding.c (detect_coding_utf_16): Fix previous change.
2269
cc13543e
KH
22702009-06-16 Kenichi Handa <handa@m17n.org>
2271
2272 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2273 UTF-16 by checking the dispersion of Eth and Oth bytes.
2274
977b85f4
AS
22752009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2276
2277 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2278
66bd43d1
KH
22792009-06-15 Kenichi Handa <handa@m17n.org>
2280
2281 * process.c (status_message): Fix previous change. Be sure to
2282 decode a localized string.
2283
cb5ca9c5
YM
22842009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2285
2286 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2287 add comment explaining why.
2288
ec7709ba 22892009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2290
ec7709ba 2291 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2292
4b7f335c
AR
22932009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2294
2295 * nsfont.m (ns_attribute_value): Remove.
2296 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2297 (ns_has_attribute): Shrink the normal range.
2298 (ns_findfonts): Don't worry about requested spec in determining
2299 need for synthItal.
e41820ee 2300 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2301
73b26103
SZ
23022009-06-14 Seiji Zenitani <zenitani@mac.com>
2303
2304 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2305
5753e4da
KH
23062009-06-11 Kenichi Handa <handa@m17n.org>
2307
2308 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2309 overhang for the static composition case.
2310
3561b671
KH
23112009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2312
5753e4da
KH
2313 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2314 overhang for the automatic composition case.
2315
3561b671
KH
2316 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2317 composition case.
2318
852bbd41
CY
23192009-06-10 Chong Yidong <cyd@stupidchicken.com>
2320
2321 * xdisp.c (get_next_display_element): When handling wrap-prefix
2322 and line-prefix, treat \n as a control character (bug#3502).
2323
9903d1e6
KH
23242009-06-10 Kenichi Handa <handa@m17n.org>
2325
2326 * font.c (font_parse_family_registry): Fix for one-char foundry.
2327 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2328
0bcbaaaa
CY
23292009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2330
2331 * process.c (status_message): Fix handling of multibyte signal
2332 string (Bug#3499).
2333
40aa3f13
JM
23342009-06-09 Jim Meyering <meyering@redhat.com>
2335
1f80c7e2
CY
2336 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2337 color name is missing.
40aa3f13 2338
72d51285
KH
23392009-06-09 Kenichi Handa <handa@m17n.org>
2340
2341 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2342 FROM-CODE and TO-CODE are codepoints of CHARSET.
2343
c1d04d84
AR
23442009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2345
2346 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2347
23482009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2349
2350 Changes to support :script/:lang/:otf in NS font driver.
2351 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2352 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2353 indicate not part of font driver interface, and change callers.
2354 (ns_get_family): Remove pointless null check.
2355 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2356 ns_spec_to_descriptor, ns_descriptor_to_entity.
2357 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2358 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2359 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2360 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2361 (ns_get_req_script, ns_accumulate_script_ranges)
2362 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2363 New functions.
2364 (nsfont_list, nsfont_match): Use ns_findfonts.
2365 (nsfont_open): Use font descriptor instead of traits.
2366 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2367 (dump_glyphstring): Rename to ns_dump_glyphstring.
2368
c7eb9816
AR
2369 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2370
c1d04d84
AR
2371 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2372
2373 * fontset.c (fontset_from_font): Remove NS-specific code.
2374
ec7709ba 23752009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2376
2377 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2378 nonactive windows.
2379
31fd7c5c 23802009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2381
1ac9108a 2382 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2383
68852c13 23842009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2385
2386 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2387
6756cd1d
CY
23882009-06-07 Chong Yidong <cyd@stupidchicken.com>
2389
2390 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2391 account for the overflowing of newlines into the last glyph on the
2392 display line (Bug#3482).
2393
28bf482a
DR
23942009-06-05 David Reitter <david.reitter@gmail.com>
2395
ec7709ba
JB
2396 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2397 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2398 Fns_selection_exists_p, Fns_selection_owner_p.
2399
fdb55376
JR
24002009-06-03 Jason Rumney <jasonr@gnu.org>
2401
2402 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2403 available. (Bug#3379)
2404
05129fbe
KH
24052009-05-29 Kenichi Handa <handa@m17n.org>
2406
1ac9108a
SM
2407 * coding.c (get_translation_table):
2408 Check Venable_character_translation.
05129fbe 2409
ec7709ba 24102009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2411
ec7709ba
JB
2412 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2413 (x_make_frame_visible): Move frame to front rather than calling
15891144 2414 ns_raise_frame().
ec7709ba 2415 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2416 isn't key window.
ec7709ba 2417 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2418 drawRect may be called by NSView even if the frame is hidden.
2419
ec7709ba
JB
2420 * nsfns.m (Fx_create_frame): Follow other ports in
2421 determining visibility; default to t. Ensure async_visible is set.
15891144 2422
21f73755
EZ
24232009-05-23 Eli Zaretskii <eliz@gnu.org>
2424
2425 * dired.c (Ffile_attributes): Doc fix.
2426
34001e41
CY
24272009-05-22 Chong Yidong <cyd@stupidchicken.com>
2428
2429 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2430
46306a17
SM
24312009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2432
2433 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2434 and xfont_scratch_props.
2435 (syms_of_xfont): Do it here instead.
2436 (xfont_find_ccl_program): Delete, unused.
2437 (xfont_open): Delete unused var `i'.
2438
ef6e0694
KH
24392009-05-21 Kenichi Handa <handa@m17n.org>
2440
2441 * fontset.c (Qlatin): Don't make it static.
2442
46306a17
SM
2443 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2444 New functions.
ef6e0694
KH
2445 (xfont_scripts_cache, xfont_scratch_props): New variables.
2446 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2447 (xfont_list_pattern): Argument changed. Callers changed.
2448 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2449 (xfont_list): Don't reject a font spec with :script property.
2450 (xfont_has_char): Fix setting of encoding.
2451 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2452 xfont_scratch_props.
2453
24542009-05-19 Kenichi Handa <handa@m17n.org>
2455
46306a17 2456 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2457 Callers changed.
2458
24592009-05-18 Kenichi Handa <handa@m17n.org>
2460
2461 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2462
ac71ced7
SM
24632009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2464
2465 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2466 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2467
1c6d1051
YM
24682009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2469
2470 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2471 (x_delete_terminal): Dissociate resource database from display and
2472 then call XrmDestroyDatabase before closing display.
2473
9b9b779c
AR
24742009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2475
2476 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2477 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2478 whether selected frame is viable before raising it (based on patch
2479 by David Reitter), and improve commentary.
2480 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2481
cccd42d5
KH
24822009-05-15 Kenichi Handa <handa@m17n.org>
2483
2484 * font.c (Ffont_spec): Check arguments.
2485
337fbd17
CY
24862009-05-14 Chong Yidong <cyd@stupidchicken.com>
2487
2488 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2489 weight when testing attributes (Bug#3282).
2490
47a6002f
JD
24912009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2492
2493 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2494 what we expect to get in the next ConfigureNotify event.
2495
9cb363db
YM
2496 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2497 before Xft one (Bug#1696).
2498
b9126609
CY
24992009-05-07 David Reitter <david.reitter@gmail.com>
2500
2501 * nsfns.m (Fx_display_planes): Compute bitplanes using
2502 NSBitsPerPixelFromDepth (Bug#3207).
2503
27a69fd9
CY
25042009-05-10 Chong Yidong <cyd@stupidchicken.com>
2505
2506 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2507
00f37552
TTN
25082009-05-10 Ulrich Mueller <ulm@gentoo.org>
2509
2510 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2511
2d82a920
DR
25122009-05-07 David Reitter <david.reitter@gmail.com>
2513
ec7709ba
JB
2514 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2515 Respect mouse face background.
2d82a920 2516
46b0d52d
DR
25172009-05-07 David Reitter <david.reitter@gmail.com>
2518
ec7709ba
JB
2519 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2520 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2521 in ns_update_begin and ns_update_end.
2522
ce1b23bb
SM
25232009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2524
5996e1b7
SM
2525 * nsfns.m (ns_get_screen): Rewrite.
2526 Don't presume selected-frame is of type `ns'.
2527
ba98e3a0
SM
2528 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2529 all drivers.
2530
ce1b23bb
SM
2531 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2532
bcda200f
YM
25332009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2534
2535 * keyboard.h (add_user_signal): Fix typo in extern.
2536
2537 * lisp.h (add_user_signal): Remove extern.
2538
2539 * unexelf.c (unexec): Consider a section to precede the .bss section
2540 if its addresses overlap that of .bss.
2541 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2542 instead of dumping process.
2543
864660a2
SM
25442009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2545
2546 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2547
50da4e56
SM
25482009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2549
2550 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2551
51520a1a
DN
25522009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2553
2554 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2555 any statements.
2556
409ea3a1
AS
25572009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2558
59c4c60f
AS
2559 * process.c (read_process_output): Make sure the current buffer is
2560 always restored.
2561
409ea3a1
AS
2562 * coding.c (record_conversion_result): Don't modify
2563 Vlast_code_conversion_error for successful result.
2564 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2565
56f00ed2
KH
25662009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2567
2568 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2569 (load_charset_map): Remove unnecessary code.
56f00ed2 2570
4491c9d2
DR
25712009-04-30 David Reitter <david.reitter@gmail.com>
2572
35f5b128 2573 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2574 through f24.
2575
6970f632
CY
25762009-04-30 Chong Yidong <cyd@stupidchicken.com>
2577
2578 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2579
2580 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2581 face_at_buffer_position.
2582 (face_before_or_after_it_pos, get_next_display_element)
2583 (note_mouse_highlight): Update face_at_buffer_position call.
2584
2585 * term.c (term_mouse_highlight):
2586 * msdos.c (IT_note_mouse_highlight):
2587 * fontset.c (Finternal_char_font):
35f5b128 2588 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2589
2590 * dispextern.h (face_at_buffer_position): Update prototype.
2591
0c616f63
KH
25922009-04-30 Kenichi Handa <handa@m17n.org>
2593
35f5b128 2594 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2595
ad3aaf33
AS
25962009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2597
2598 * callproc.c (Fcall_process): Fix GC protection. Make sure
2599 current buffer is always restored.
2600
c3c963a0
YM
26012009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2602
2603 * atimer.c (init_atimer): Also clear stopped_atimers.
2604
2605 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2606
7e3386cb
YM
2607 * process.c (create_process): Clean up merger residues of
2608 2008-07-17 change.
2609
91f68422
CY
26102009-04-29 Ulrich Mueller <ulm@gentoo.org>
2611
2612 * lread.c (Vread_circle): New variable.
2613 (read1): Disable recursive read if Vread_circle is nil.
2614
24b34550
KH
26152009-04-29 Kenichi Handa <handa@m17n.org>
2616
2617 * fontset.h (set_default_ascii_font): Delete extern.
2618
2619 * fontset.c (set_default_ascii_font): Delete this unused function.
2620
2621 * frame.c (x_set_font): When ARG is a font-object, check if the
2622 font-object matches with the ASCII font-spec of the frame's
9c358bda 2623 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2624
77bf07e1
AS
26252009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2626
2627 * fns.c (Flocale_info): Protect vector from GC during decoding.
2628
2629 * process.c (Fstart_process): Protect argv strings from GC during
2630 encoding.
2631
2c55aacf
AS
26322009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2633
2634 * sysdep.c: Include <ctype.h>.
2635
b892d3c9
DR
26362009-04-27 David Reitter <david.reitter@gmail.com>
2637
35f5b128 2638 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2639 Remove commented-out code.
2640
9d0644c4
JB
26412009-04-26 Johan Bockgård <bojohan@gnu.org>
2642
2643 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2644
b7053016
JR
26452009-04-25 Jason Rumney <jasonr@gnu.org>
2646
2647 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2648
4e8231f3
YM
26492009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2650
2651 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2652 Swap bytes in short integer if fringe bitmap width > 8.
2653
493dcf2c
KH
26542009-04-23 Kenichi Handa <handa@m17n.org>
2655
2656 * xfaces.c (Fx_list_fonts): If a font size is specified in
2657 PATTERN, set it in returned scalable fonts.
2658
401e9e57
CY
26592009-04-22 Chong Yidong <cyd@stupidchicken.com>
2660
708e05dc
CY
2661 * keyboard.c (Fset_input_meta_mode): Doc fix.
2662
2663 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2664
1ac9108a 2665 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2666
2667 * coding.c (Fterminal_coding_system): Doc fix.
2668
2669 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2670 (Fx_display_pixel_height, Fx_display_planes)
2671 (Fx_display_color_cells, Fx_server_max_request_size)
2672 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2673 (Fx_display_mm_height, Fx_display_mm_width)
2674 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2675 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2676 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2677 (check_x_display_info): Handle terminal objects instead of
2678 terminal ids.
2679
401e9e57
CY
2680 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2681 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2682 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2683 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2684
df80c7f0
KH
26852009-04-21 Kenichi Handa <handa@m17n.org>
2686
5a8f12af 2687 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2688 (font_score): Check AVGWIDTH too.
908567ef 2689
df80c7f0
KH
2690 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2691 worst case.
1ac9108a
SM
2692 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2693 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2694
705af33f
JR
26952009-04-19 Jason Rumney <jasonr@gnu.org>
2696
2697 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2698 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2699
2700 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2701 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2702 get_phys_cursor_geometry.
2703
b71ac3dd 2704 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2705 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2706 using get_phys_cursor_geometry.
2707
2708 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2709 correctly calculated.
2710
dc2933eb
JD
27112009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2712
1ac9108a
SM
2713 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2714 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2715 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2716 is deprecated.
2717
973e7849
AS
27182009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2719
2720 * font.c (font_put_frame_data): Use xfree instead of free.
2721
314d66f4
JB
27222009-04-17 Juanma Barranquero <lekktu@gmail.com>
2723
2724 * w32font.c (Qja, Qko): Remove declarations.
2725 (syms_of_w32font): Don't DEFSYM them.
2726
cf702558
CY
27272009-04-17 Chong Yidong <cyd@stupidchicken.com>
2728
2729 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2730
2731 * font.h (Qja, Qko): Extern them.
2732
2733 * ftfont.c (Qja, Qko): Remove declarations.
2734
2735 * xfont.c (Qja, Qko): Remove declarations.
2736
b50504f5
KH
27372009-04-17 Kenichi Handa <handa@m17n.org>
2738
bde25748
KH
2739 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2740 string from a vector to handle Latin-1 characters correctly.
2741
b50504f5
KH
2742 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2743 entity even if the cache hits.
2744
f4646fff
AS
27452009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2746
2747 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2748 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2749
e7deaab0
AS
2750 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2751 * lisp.h: Adjust prototypes.
2752
0a0e7d49
CY
27532009-04-16 Chong Yidong <cyd@stupidchicken.com>
2754
2755 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2756 change (Bug#3003).
2757
3c908a57
KH
27582009-04-16 Kenichi Handa <handa@m17n.org>
2759
1ac9108a 2760 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2761
2762 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2763 adstyle.
2764
2765 * ftfont.c (Qja, Qko): Don't make them static.
2766 (enum ftfont_cache_for): New enum.
2767 (fc_charset_table): Undo the previous change.
2768 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2769 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2770 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2771 non-scarable font, try to get AVERAGE_WIDTH.
2772 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2773 Change ft_face_cache from a list of a hash-table. Don't check
2774 `ja' and `ko' adstyle here.
2775 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2776 FTFONT_CACHE_FOR_CHARET.
2777 (ftfont_get_charset): Undo the previous change.
1ac9108a 2778 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2779 (ftfont_close): Likewise.
2780 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2781
2782 * font.c (font_sort_entites): Change the meaning of the arg
2783 BEST-ONLY. Don't optimize for VEC of lenght 1.
2784 (font_select_entity): Just return the value of font_sort_entites.
2785
2786 * xfaces.c (merge_face_vectors): Reflect font properties in
2787 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2788 font_clear_prop if a face attribute doesn't change.
2789
3c908a57
KH
2790 * charset.h (charset_ksc5601): Extern it.
2791
2792 * charset.c (charset_ksc5601): New variable.
2793 (Fdefine_charset_internal): Set charset_ksc5601.
2794 (init_charset_once): Initialize charset_ksc5601 to -1.
2795
d65859c3
DN
27962009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2797
2798 * fileio.c (history_delete_duplicates): Remove unused declaration.
2799
2800 * callint.c (history_delete_duplicates): New declaration.
2801 (Fcall_interactively): Remove command history duplicates when
2802 history_delete_duplicates is true.
2803
3ba010e5
EZ
28042009-04-14 Eli Zaretskii <eliz@gnu.org>
2805
2806 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2807
06f19b91
KH
28082009-04-14 Kenichi Handa <handa@m17n.org>
2809
2810 * font.c (Ffont_info): Fix docstring. Fix the second element of
2811 the returned value (bug#2949).
2812
2cce8bfc
CY
28132009-04-14 Chong Yidong <cyd@stupidchicken.com>
2814
2815 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2816
d156542d
KH
28172009-04-14 Kenichi Handa <handa@m17n.org>
2818
2819 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2820 encoding charset is ascii_compatible.
2821
2822 * charset.c (Fdefine_charset_internal): Make charset
2823 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2824 code_offset is 0, and covers all ASCII characters.
2825
86fa089e
SM
28262009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2827
2828 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2829 (ns_string_to_pasteboard_internal):
2830 * nsmenu.m (process_dialog):
2831 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2832 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2833 * lisp.h (Fx_load_color_file): Declare.
2834
a8a3728b
KH
28352009-04-13 Kenichi Handa <handa@m17n.org>
2836
1ac9108a 2837 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2838 (font_select_entity): Suppress the code to optimize for the same
2839 kind of fonts.
2840 (font_load_for_lface): Get a font that supports at least ASCII
2841 characters.
2842
2843 * ftfont.c (Qja, Qko): New variables.
2844 (fc_charset_table): Delete uniquifier data for iso8859-1.
2845 (ftfont_get_latin1_charset): New function.
2846 (get_adstyle_property): New function.
2847 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2848 bitmap fonts.
2849 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2850 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2851 `ko' or `ja'.
2852 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2853 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2854 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2855 property.
2856 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2857 (syms_of_ftfont): DEFSYM Qja and Qko.
2858
483670b5
KH
28592009-04-09 Kenichi Handa <handa@m17n.org>
2860
12b55765
KH
2861 * charset.c (map_charset_chars): For a charset of `superset'
2862 method, fix calculation of code range.
2863
483670b5
KH
2864 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2865 from the list of extra properties.
2866 (font_clear_prop): Be sure to delete `:name' font property.
2867
57d3b93b
KH
28682009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2869
b4b2c2ca
YM
2870 * dispnew.c (redraw_overlapping_rows): Fix detection of
2871 overlapping for topmost and bottommost rows.
2872
1ac9108a 2873 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2874
472c3609
JR
28752009-04-06 Jason Rumney <jasonr@gnu.org>
2876
2877 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2878
ab193662
KH
28792009-04-06 Kenichi Handa <handa@m17n.org>
2880
2881 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2882
2883 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2884
0c26f026
KH
28852009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2886
2887 * ftfont.c (ftfont_open): Fix checking of the return value of
2888 FT_Load_Char. Fix setting font->underline_thickness.
2889
e173bbce
CY
28902009-04-04 Chong Yidong <cyd@stupidchicken.com>
2891
2892 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2893 (Fterminal_parameters, Fterminal_parameter)
2894 (Fset_terminal_parameter): In doc string, refer to terminal
2895 objects rather than terminal ids.
2896
693a2698
EZ
28972009-04-04 Eli Zaretskii <eliz@gnu.org>
2898
2899 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2900 ret_lim_data. (Bug#2867)
2901
d5221487
CY
29022009-04-03 Chong Yidong <cyd@stupidchicken.com>
2903
2904 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2905 so they don't get wider than the window, matching 2006-01-23
2906 change to the partner function in xdisp.c (Bug#2800).
2907
223509a3
KH
29082009-04-03 Kenichi Handa <handa@m17n.org>
2909
2910 * print.c (print_object): Make each lowest sub_char_table start a
2911 new line (Bug#2866).
2912
74fcd0b1
KH
29132009-04-02 Kenichi Handa <handa@m17n.org>
2914
2915 * fontset.c (fontset_font): Record no-font when a fontset
2916 explicitly tells not to try another font-specs.
2917
c542407d
SM
29182009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2919
2920 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2921
e3869731
KH
29222009-03-30 Kenichi Handa <handa@m17n.org>
2923
d8d2f142
KH
2924 * fontset.c (fontset_from_font): Specify only registry in a
2925 font-spec for all characters supported by that registry.
2926
e3869731
KH
2927 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2928 even if HAVE_M17N_FLT is not defined.
2929
5da5f805
CY
29302009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2931
2932 * ftfont.c: Conditionalize prototyping and use of
2933 ftfont_variation_glyphs.
2934
ab226c50
SM
29352009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2936
9628fed7
SM
2937 * frame.c (delete_frame): Work around compiler bug.
2938
2939 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2940 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2941 Some more EMACS_INT.
2942 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2943
2944 * xdisp.c (dump_glyph): Fix typo.
2945
ae19ba7c
SM
2946 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2947 (adjust_markers_gap_motion, adjust_markers_for_delete)
2948 (adjust_markers_for_insert, adjust_point)
2949 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2950 (make_gap, copy_text, count_size_as_multibyte, insert)
2951 (insert_and_inherit, insert_before_markers)
2952 (insert_before_markers_and_inherit, insert_1)
2953 (count_combining_before, count_combining_after, insert_1_both)
2954 (insert_from_string, insert_from_string_before_markers)
2955 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2956 (insert_from_buffer_1, adjust_after_replace)
2957 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2958 (replace_range_2, del_range, del_range_1, del_range_byte)
2959 (del_range_both, del_range_2, modify_region)
2960 (prepare_to_modify_buffer, signal_before_change)
2961 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2962 for buffer positions and sizes.
2963 * lisp.h: Adjust prototypes accordingly.
2964
2965 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2966 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2967 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2968
ab226c50
SM
2969 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2970
46dfb8fb
JD
29712009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2972
2973 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2974 lines and columns so we keep the same pixel height and width.
2975
2976 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2977 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2978 (x_handle_net_wm_state): New function to update frame parameter
2979 fullscreen.
2980 (x_term_init): Initialize atoms for _NET_WM_STATE.
2981
2982 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2983
d347e494
SM
29842009-03-27 Kevin Ryde <user42@zip.com.au>
2985
2986 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2987 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2988 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2989 (Fgpm_mouse_stop): Pass that new parameter.
2990 * termhooks.h (close_gpm): Adjust prototype.
2991
84db11d6
SM
29922009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2993
c95a5008
SM
2994 * lisp.h (Fx_focus_frame): Declare.
2995
84db11d6
SM
2996 * callint.c (Fcall_interactively): For '^' just delegate the work to
2997 handle-shift-selection.
2998 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2999
0a1958d6
CY
30002009-03-24 Chong Yidong <cyd@stupidchicken.com>
3001
0bfdff23
CY
3002 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
3003
0a1958d6
CY
3004 * data.c (Qinteractive_form): New variable.
3005 (Finteractive_form): Use it.
3006
3007 * eval.c (Fcommandp): Use Qinteractive_form.
3008
58aec0d6
JR
30092009-03-24 Jason Rumney <jasonr@gnu.org>
3010
3011 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
3012 Calculate total size precisely. Decode environment variables
3013 before substituting. (Bug#38)
3014
553dd618
KH
30152009-03-24 Kenichi Handa <handa@m17n.org>
3016
3017 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 3018 encoding (Bug#2722).
553dd618 3019
c39ea606
JD
30202009-03-23 Jan Djärv <jan.h.d@swipnet.se>
3021
3022 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
3023 that gdpy is set.
3024
bc9b2b5e
AM
30252009-03-22 Alan Mackenzie <acm@muc.de>
3026
3027 * callint.c (Finteractive): Clarify the doc string - even
3028 promptless elements need \n separators.
3029
9f995a76
JR
30302009-03-22 Jason Rumney <jasonr@gnu.org>
3031
3032 * w32term.c (syms_of_w32term): Doc fix for
3033 x-use-underline-position-properties.
3034
22749e9a
EZ
30352009-03-21 Eli Zaretskii <eliz@gnu.org>
3036
3037 * w32.c (getpwuid): Change argument type to unsigned.
3038 (struct w32_id): Change type of `rid' member to unsigned.
3039 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
3040 argument ID to unsigned. All callers changed.
3041 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3042
e00553bf
EZ
30432009-03-20 Eli Zaretskii <eliz@gnu.org>
3044
3045 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3046 negative, produce a float value.
3047
3048 * dired.c (make_uid, make_gid): New functions.
3049 (Ffile_attributes): Use them to avoid negative UID and GID.
3050
f761d6b6
JB
30512009-03-20 Juanma Barranquero <lekktu@gmail.com>
3052
3053 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3054 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3055 Fix typos in docstrings.
3056
d507f8d7
KH
30572009-03-19 Kenichi Handa <handa@m17n.org>
3058
3059 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3060 changed, use font_load_for_lface to get a new font object.
3061 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3062
3063 * frame.c (x_set_font): Handle the case that ARG is a cons.
3064
c68845e0
GM
30652009-03-19 Glenn Morris <rgm@gnu.org>
3066
3067 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3068
bfa49dd1
CY
30692009-03-19 Chong Yidong <cyd@stupidchicken.com>
3070
3071 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3072
8458d4c1
KH
30732009-03-19 Kenichi Handa <handa@m17n.org>
3074
3075 * charset.c (load_charset_map_from_file): When a mapfile can't be
3076 loaded, signal an error.
3077
78e7d1fe
EZ
30782009-03-18 Eli Zaretskii <eliz@gnu.org>
3079
3080 * dired.c (Ffile_attributes): Make sure UID and GID are always
3081 positive, even if the value is too large for a positive EMACS_INT.
3082 Doc fix.
3083
3084 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3085
5da9fdfa
YM
30862009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3087
3088 * xmenu.c (xdialog_show): Move Fredisplay call ...
3089 (Fx_popup_dialog): ... here.
3090
7519c40d
SM
30912009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3092
3093 * dired.c (file_name_completion): Disable the first optimization just
3094 installed, since it is not implemented correctly.
3095
2cd298e2
SM
30962009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3097
3098 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3099 only if the entry can affect bestmatch.
2cd298e2
SM
3100 Stop the search early, as Ftry_completion already does.
3101
48d37adf
CY
31022009-03-17 Chong Yidong <cyd@stupidchicken.com>
3103
e10c9c93 3104 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3105
9286b16a
CY
31062009-03-15 Chong Yidong <cyd@stupidchicken.com>
3107
3108 * keyboard.c (parse_menu_item): Don't display remappings as menu
3109 equivalent bindings (Bug#788).
3110
f7b146dc
JR
31112009-03-15 Jason Rumney <jasonr@gnu.org>
3112
3113 * w32term.h (WM_EMACS_PAINT): New message.
3114 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3115 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3116 before passing to lisp thread. (Bug#950)
3117
f761d6b6 31182009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3119
d93f9575
CY
3120 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3121 variable as it was never reset.
3122 (ns_term_init): Remove initialization of Lisp-settable defaults
3123 and ns_expand_space.
3124 (-setPanelFromDefaultValues): Remove ns_expand_space.
3125 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3126 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3127 i.e. no additional spacing, similar to Carbon port.
3128
d93f9575
CY
3129 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3130 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3131
305018ec
JD
31322009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3133
3134 * sound.c (alsa_configure): Remove call to deprecated
3135 snd_pcm_sw_params_set_xfer_align.
3136
f761d6b6 31372009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3138
3139 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3140 after clicking in a detached tool bar.
3141 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3142
46e722a9
SM
31432009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3144
348db3dd
SM
3145 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3146 int/Lisp_Object mixup).
46e722a9 3147
a3d16f39
KH
31482009-03-13 Kenichi Handa <handa@m17n.org>
3149
3150 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3151 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3152 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3153 (set_fontset_font): Change ARG to a vector. Handle range_list in
3154 ARG correctly.
3155 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3156 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3157 the above change.
3158 (fontset_from_font): Fix previous change.
fe24f56a 3159 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3160 entry. If FONTSET is the default fontset, don't set the extra
3161 slot of the returning char-table.
3162
b066e6b6
JB
31632009-03-12 Juanma Barranquero <lekktu@gmail.com>
3164
3165 * nsfns.m (Fx_close_connection): Doc fix.
3166 (Fns_do_applescript): Reflow docstring.
3167 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3168 (Fx_display_pixel_width, Fx_display_pixel_height)
3169 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3170 Fix typos in docstrings.
3171 (Fns_set_alpha): Fix typos in error messages.
3172
d472514e 31732009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3174
d472514e 3175 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3176 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3177 were used for such events.
3178
d472514e
JB
3179 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3180 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3181
d472514e 3182 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3183 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3184
fb930676
KH
31852009-03-11 Kenichi Handa <handa@m17n.org>
3186
ff85581a
KH
3187 * font.h (font_open_by_spec): Extern it.
3188
c50b7e98
KH
3189 * font.c (font_open_by_spec): New function.
3190 (font_open_by_name): Use font_open_by_spec.
3191
fb930676
KH
3192 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3193 fontset of the frame.
3194
3195 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3196 modify the default font of frames that use this fontset.
3197 (num_auto_fontsets): New variable.
3198 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3199 name. Be sure to set FONTSET_ASCII to the correct font name.
3200 (update_auto_fontset_alist): New function.
3201
df4e8455
JB
32022009-03-11 Juanma Barranquero <lekktu@gmail.com>
3203
3204 * makefile.w32-in: Update dependencies.
3205
0a375797
AR
32062009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3207
3208 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3209
61313fa3
SM
32102009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3211
3212 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3213
b55103fb
CY
32142009-03-10 Chong Yidong <cyd@stupidchicken.com>
3215
3216 * lread.c (Feval_buffer): Doc fix.
3217
dde2559c
KH
32182009-03-09 Kenichi Handa <handa@m17n.org>
3219
3220 * charset.c (Qfile_name_handler_alist): Extern it.
3221 (load_charset_map_from_file): Temporarily bind
3222 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3223
df4e8455 32242009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3225
47f588bb
GM
3226 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3227 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3228
4ddf94bd
AR
32292009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3230
4c9bdfc2
AR
3231 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3232 (x_set_window_size): Change back to calculated method of setting
3233 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3234 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3235 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3236
fe41ae9e
AR
3237 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3238
4c9bdfc2
AR
3239 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3240 accelerator in parens under GNUstep.
3241
825d0875
KH
32422009-03-06 Kenichi Handa <handa@m17n.org>
3243
3244 These changes are to detect incorrect composition sequence without
f3b3be74 3245 looking ahead the source. (Bug#2370)
825d0875
KH
3246
3247 * coding.h: Include "composite.h".
3248 (enum compisition_state): New enum.
3249 (struct compisition_status): New struct.
3250 (struct iso_2022_spec): New member cmp_status.
3251 (struct emacs_mule_spec): New struct.
3252 (struct coding_system): New members ctext_extended_segment_len and
3253 embedded_utf_8. Change the union member
3254 spec.emacs_mule_full_support to spec.emacs_mule.
3255
3256 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3257 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3258 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3259 (ADD_COMPOSITION_DATA): New arg nbytes.
3260 (emacs_mule_char): New arg cmp_status.
3261 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3262 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3263 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3264 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3265 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3266 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3267 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3268 (EMACS_MULE_COMPOSITION_END): New macro.
3269 (emacs_mule_finish_composition): New function.
3270 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3271 (decode_coding_emacs_mule): Avoid long looking ahead while
3272 handling composition.
3273 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3274 (ENCODE_COMPOSITION_RULE): New macro.
3275 (finish_composition): New function.
3276 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3277 (DECODE_COMPOSITION_START): New implementation.
3278 (DECODE_COMPOSITION_END): Likewise.
3279 (STORE_COMPOSITION_RULE): New macro.
3280 (decode_coding_iso_2022): Avoid long looking ahead while handling
3281 composition, CTEXT extended segment, and embedded UTF-8.
3282 (setup_coding_system): For a coding of type iso-2022, reset
3283 CODING_ISO_EXTSEGMENT_LEN (coding) and
3284 CODING_ISO_EMBEDDED_UTF_8 (coding).
3285 (get_translation): Delete arguments last_block, from_nchars,
3286 to_nchars. Callers changed.
3287 (produce_chars): Don't modify charbuf. Adjusted for the change of
3288 get_translation.
98a326f7 3289 (produce_composition): Adjust for the new annotation sequence.
825d0875 3290 (handle_composition_annotation): Likewise.
98a326f7 3291 (consume_chars): Adjust for the change of get_translation.
825d0875 3292
ccbc4452
AR
32932009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3294
4ddf94bd 3295 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3296
988a7ddb
KH
32972009-03-05 Kenichi Handa <handa@m17n.org>
3298
3299 * font.c (font_select_entity): New function.
3300 (font_find_for_lface): Use font_select_entity to select a font.
3301
3302 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3303 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3304 font with C restriction.
3305
98a326f7 33062009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3307
be1bce46 3308 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3309
10ea2b82
JR
33102009-03-04 Jason Rumney <jasonr@gnu.org>
3311
2c93b248 3312 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3313 characters that have already been read. (Bug#2569)
2c93b248 3314
10ea2b82
JR
3315 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3316 Log an error message if check_image_size failed.
3317 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3318 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3319
71a0c011
EZ
33202009-03-02 Eli Zaretskii <eliz@gnu.org>
3321
3322 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3323 when decoding process output.
3324
2f63bba8
RS
33252009-03-01 Richard M Stallman <rms@gnu.org>
3326
3327 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3328
3329 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3330
0a9564cb
EZ
33312009-02-28 Eli Zaretskii <eliz@gnu.org>
3332
3333 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3334 (decode_coding_emacs_mule, decode_coding_iso_2022)
3335 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3336 (decode_coding_raw_text, decode_coding_charset)
3337 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3338 Honor inhibit-eol-conversion. (Bug #2186)
3339
449148b3
JR
33402009-02-28 Jason Rumney <jasonr@gnu.org>
3341
3342 * coding.c (detect_coding_charset): If not checking latin extra,
3343 fail on characters between 0x80 and 0xA0. (Bug#2354)
3344
a4aee864
EZ
33452009-02-28 Eli Zaretskii <eliz@gnu.org>
3346
3347 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3348 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3349
d88bee5a
GM
33502009-02-27 Glenn Morris <rgm@gnu.org>
3351
3352 * callint.c (Finteractive): Doc fix.
3353
a808f22d
KH
33542009-02-27 Kenichi Handa <handa@m17n.org>
3355
3356 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3357
caf8d60c
CY
33582009-02-27 Chong Yidong <cyd@stupidchicken.com>
3359
3360 * font.c (font_style_to_value): Set value for unknown symbols to
3361 100 instead of 255.
b61137ea
CY
3362 (weight_table, slant_table, width_table): Treat "unspecified" as
3363 the default value.
caf8d60c 3364
1a0de25c
JB
33652009-02-26 Juanma Barranquero <lekktu@gmail.com>
3366
3367 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3368
8fc45744
JB
33692009-02-25 Juanma Barranquero <lekktu@gmail.com>
3370
107bd7d1
JB
3371 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3372 error as soon as a recursive load is detected.
8fc45744 3373
f097e223
AR
33742009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3375
3376 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3377 before caching.
3378
8810a12f
KH
33792009-02-24 Kenichi Handa <handa@m17n.org>
3380
3381 * fontset.c (fontset_find_font): Fix the condition for checking
3382 unavailable font.
3383
2c7d1565
GM
33842009-02-24 Glenn Morris <rgm@gnu.org>
3385
3386 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3387 whitespace that confuses documentation.
3388
a20878b6
MB
33892009-02-23 Miles Bader <miles@gnu.org>
3390
3391 * process.c (Flist_system_processes, Fprocess_attributes)
3392 (syms_of_process): Rename `system-process-attributes' to
3393 `process-attributes'.
3394
b3b58c01
AS
33952009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3396
1b3b981b
AS
3397 * coding.h (struct coding_system): Make safe_charsets a pointer to
3398 unsigned char.
3399 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3400 being 255.
3401 (SAFE_CHARSET_P): Likewise.
3402 (setup_iso_safe_charsets): Properly setup safe_charsets.
3403 (Fdefine_coding_system_internal): Likewise.
3404 (setup_coding_system): Likewise. Remove unneeded casts.
3405 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3406 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3407 unneeded casts.
3408
b3b58c01
AS
3409 * insdel.c (del_range_2): Don't modify gap contents when called
3410 from decode_coding_object. (Bug#1809)
3411
0b6f228c
CY
34122009-02-21 Chong Yidong <cyd@stupidchicken.com>
3413
3414 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3415 Qfont_object.
3416 (Ftype_of): Recognize font objects.
3417
3418 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3419
3420 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3421 moved to data.c.
3422
52f8870b
AR
34232009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3424
3425 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3426 async_iconified. Based on a patch by Christian Lynbech
3427 <christian.lynbech@tieto.com>.
3428 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3429
7087d5e9
GM
34302009-02-20 Glenn Morris <rgm@gnu.org>
3431
3432 * syntax.c (Fskip_chars_forward): Fix doc typo.
3433
41d2ceef
CY
34342009-02-20 Chong Yidong <cyd@stupidchicken.com>
3435
3436 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3437
1a3b7ca6
CY
34382009-02-19 Chong Yidong <cyd@stupidchicken.com>
3439
3440 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3441
73cce38d
KH
34422009-02-19 Kenichi Handa <handa@m17n.org>
3443
3444 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3445 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3446
a51092ee
DN
34472009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3448
3449 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3450
c423ecca
KH
34512009-02-18 Kenichi Handa <handa@m17n.org>
3452
3453 * font.c (font_check_otf_features): Fix handling of `nil' element.
3454 (Ffont_spec): Describe :lang and :otf in the docstring.
3455
4c1958f4
AS
34562009-02-16 Andreas Schwab <schwab@suse.de>
3457
3458 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3459 string.
3460
5704f39a
KH
34612009-02-16 Kenichi Handa <handa@m17n.org>
3462
3463 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3464 (Bug#1723)
5704f39a 3465
8f0085aa
CY
34662009-02-14 Chong Yidong <cyd@stupidchicken.com>
3467
a057d86a 3468 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3469
3470 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3471 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3472
aff01dd9
EZ
34732009-02-14 Eli Zaretskii <eliz@gnu.org>
3474
3475 * msdos.c (MAX_SCREEN_BUF): New macro.
3476 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3477 Encode the entire run of glyphs sharing the same face, instead of
3478 doing that one glyph at a time (fixes a bug with displaying
3479 double-size characters).
3480
ba301db3
AR
34812009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3482
3483 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3484
3485 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3486 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3487 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3488
3489 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3490 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3491
51d861de
SM
34922009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3493
3494 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3495 invisible areas.
3496
7fed8996
JR
34972009-02-12 Jason Rumney <jasonr@gnu.org>
3498
631ea4fb
JR
3499 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3500 (add_font_entity_to_list): Call check_face_name even when family
3501 is unspecified.
3502
cb4a3e42
JR
3503 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3504 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3505 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3506
7fed8996 3507 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3508 raster fonts. (Bug#2219)
7fed8996 3509
895416e3
KH
35102009-02-12 Kenichi Handa <handa@m17n.org>
3511
3512 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3513 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3514 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3515 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3516 (find_automatic_composition): While looking forward and backward,
3517 check static composition. Fix where to stop looking forward.
3518 (composition_adjust_point): Fix checking of static composition.
3519 (Fcomposition_get_gstring): Pay attention to
1dacf998 3520 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3521
3522 * lisp.h (fast_looking_at): Extern it.
3523
3524 * search.c (fast_looking_at): New function.
3525
51d861de 3526 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3527 <struct glyph>.u.cmp.to.
3528 (append_composite_glyph): Likewise.
3529
51d861de 3530 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3531 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3532 composition.
51d861de 3533 (append_composite_glyph): Adjust for the change of
895416e3
KH
3534 <strcut glyph>.u.cmp.to.
3535
8510724d
JB
35362009-02-11 Juanma Barranquero <lekktu@gmail.com>
3537
3538 * casetab.c (init_casetab_once):
3539 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3540 * font.c (font_update_lface):
3541 * fontset.c (Fnew_fontset):
3542 * ftfont.c (ftfont_drive_otf):
3543 * xfont.c (xfont_open):
3544 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3545
294fa707
SM
35462009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3547
3548 * fileio.c (Fwrite_region): !NILP -> CONSP.
3549
b5bfebec
AS
35502009-02-10 Andreas Schwab <schwab@suse.de>
3551
3552 * process.c (send_process): Properly relocate pointer into data
adab88bd 3553 when using encoded data. (Bug#2272)
b5bfebec 3554
cb84a2be
KH
35552009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3556
3557 * coding.c (detect_coding_charset): Fix previous change.
3558
89e09428
JR
35592009-02-08 Jason Rumney <jasonr@gnu.org>
3560
3561 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3562 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3563
4470a277
AS
35642009-02-07 Andreas Schwab <schwab@suse.de>
3565
3566 * unexelf.c (unexec): Fix error message.
3567
3175b12a
AR
35682009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3569
3570 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3571 when modal window is active. (Bug #2152)
3175b12a
AR
3572 (applicationShouldTerminate:): Remove now-unneeded while loop
3573 around NSRunAlertPanel.
3574
3575 * nsmenu.m (popupSession): New file-global variable.
3576 (pop_down_menu): End the popupSession before closing dialog.
3577 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3578 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3579 don't query NSApp for events (just sleep instead).
3580
8434d0b8
EZ
35812009-02-07 Eli Zaretskii <eliz@gnu.org>
3582
51d861de
SM
3583 * coding.c (syms_of_coding) <translation-table-for-input>:
3584 Modify doc string to discourage use for character code unification.
8434d0b8 3585
aa82edfd
CY
35862009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3587
3588 * atimer.c (run_timers): Update pending_atimers.
3589
2d283c7c
CY
35902009-02-06 Chong Yidong <cyd@stupidchicken.com>
3591
eb306cab
CY
3592 * image.c (svg_load_image): Fix last change.
3593
2d283c7c
CY
3594 * xfns.c (Fx_create_frame): Signal an error if no font is
3595 found (Bug#2147).
3596
4d8e170e
JB
35972009-02-05 Juanma Barranquero <lekktu@gmail.com>
3598
3599 * character.c (syms_of_character) <script-representative-chars>:
3600 Fix typo in docstring.
3601
c96169a0
AR
36022009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3603
3604 * nsmenu.m (pop_down_menu): New function.
3605 (ns_popup_dialog): Call it on unwind.
3606 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3607 call timer_check() (Bug#2154).
3608 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3609 handling_signal is set.
3610 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3611
31fd7c5c 3612 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3613
3614 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3615
3616 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3617
51d861de
SM
3618 * keyboard.c (poll_for_input_1, handle_async_input):
3619 Set handling_signal under HAVE_NS.
c96169a0 3620
aacd8ba1
GM
36212009-02-04 Glenn Morris <rgm@gnu.org>
3622
3623 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3624
4cb75c4b
KH
36252009-02-04 Kenichi Handa <handa@m17n.org>
3626
3627 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3628
3629 * charset.c (Fchar_charset): New optional arg restriction.
3630
3631 * coding.h (coding_system_charset_list): Extern it.
3632
3633 * coding.c (coding_system_charset_list): New function.
3634
3635 * composite.c: Include coding.h and termhooks.h.
3636 (composition_gstring_p): Fix for the terminal case.
3637 (composition_gstring_width): Likewise.
3638 (fill_gstring_body): Likewise.
3639 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3640 the frame.
3641 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3642 is within a composition.
867d4bb3 3643 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3644
3645 * term.c (encode_terminal_code): Fix handling of composition.
3646 (produce_composite_glyph): For static composition, get pixel_width
3647 from struct composition.
3648
826ba17e
AS
36492009-02-02 Andreas Schwab <schwab@suse.de>
3650
3651 * unexelf.c (unexec): Handle unaligned bss offset.
3652
8ad093db
AR
36532009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3654
3655 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3656 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3657
8ad093db
AR
3658 * keyboard.c (handle_interrupt): Don't call
3659 quit_throw_to_read_char() under NS.
d0a76a6e 3660
8ad093db
AR
3661 * blockinput.h: Remove NS-specific code.
3662
4d18a7a2
DN
36632009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3664
db878925
DN
3665 * dispnew.c (window_change_signal): Don't try to get the size of a
3666 suspended tty frame.
3667 * term.c (Fresume_tty): Resize if the size has changed while the
3668 tty was suspended.
3669
4d18a7a2
DN
3670 * alloc.c (mark_stack): Properly conditionalize previous change.
3671
8984df7c
JB
36722009-01-30 Juanma Barranquero <lekktu@gmail.com>
3673
3674 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3675 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3676 Remove; this code is not used on Windows.
3677
75f4f1ac
EZ
36782009-01-30 Eli Zaretskii <eliz@gnu.org>
3679
3680 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3681 EOLs that also has stray ^M characters.
3682
07a1e794
JB
36832009-01-30 Juanma Barranquero <lekktu@gmail.com>
3684
3685 * atimer.c (run_timers, alarm_signal_handler):
3686 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3687 * w32inevt.c (w32_console_read_socket):
3688 * w32term.c (w32_read_socket):
3689 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3690
a8b11cc9
CY
36912009-01-30 Chong Yidong <cyd@stupidchicken.com>
3692
3693 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3694 Initialize it as a relative filename pattern.
3695 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3696 (Fcall_process_region): Simplify temp file creation using
3697 temporary-file-directory.
3698
c279587b
EZ
36992009-01-29 Eli Zaretskii <eliz@gnu.org>
3700
3701 * msdos.c: Rename pending_signals to msdos_pending_signals.
3702 (sig_suspender, sigprocmask): Adjust.
3703
a8fe3242
CY
37042009-01-29 Chong Yidong <cyd@stupidchicken.com>
3705
3706 * keyboard.c (pending_signals): New var.
3707 (poll_for_input, input_available_signal, init_keyboard): Set it.
3708 (process_pending_signals): New function.
3709
3710 * lisp.h (QUIT): Check pending_signals instead of
3711 interrupt_input_pending. Use process_pending_signals.
3712
51d861de 3713 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3714
51d861de 3715 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3716
3717 * sysdep.c (emacs_write): Use process_pending_signals.
3718
3719 * xterm.c (XTread_socket): Update pending_signals.
3720
3721 * w32term.c (w32_read_socket): Update pending_signals.
3722
3723 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3724
6570a1c4
KH
37252009-01-29 Kenichi Handa <handa@m17n.org>
3726
3727 * xftfont.c (xftfont_has_char): New function.
3728 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3729
d72a4afa
AR
37302009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3731
3732 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3733 under GNUstep.
3734 (ns_query_color): New declaration.
3735
3736 * nsterm.m (ns_confirm_quit): New variable.
3737 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3738 (EmacsApp-applicationShouldTerminate:): Use it.
3739 (EmacsPrefsController): Let user set it.
3740 (ns_query_color): New function.
3741 (ns_defined_color): Use it.
3742 (ns_initialize): Drop.
3743 (ns_term_init): Add two lines from ns_initialize(), and set
3744 input_interrupt_mode to nil.
3745
3746 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3747 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3748
9fe78804
KH
37492009-01-28 Kenichi Handa <handa@m17n.org>
3750
3751 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3752 (fontset_get_font_group): Remember that no font-group is specified
3753 for C.
9fe78804 3754
fa57de36
CY
37552009-01-27 Chong Yidong <cyd@stupidchicken.com>
3756
930600e9
CY
3757 * fns.c (concat): Check for string overflow (bug#1787).
3758
fa57de36
CY
3759 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3760 Quadruple undo limits (bug#1501).
3761
7179ce7b
KH
37622009-01-27 Kenichi Handa <handa@m17n.org>
3763
3764 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3765 directly use GT_Get_Char_index.
3766
3767 * xftfont.c (struct xftfont_info): New member `index'.
3768
3769 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3770 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3771
5be8fcc0
CY
37722009-01-26 Kenichi Handa <handa@m17n.org>
3773
3774 * fontset.c (fontset_find_font): Fix handling of non-cons return
3775 value of fontset_get_font_group.
3776 (fontset_font): Revert last change.
3777
19ae3e61
JR
37782009-01-26 Jason Rumney <jasonr@gnu.org>
3779
3780 * w32font.c (w32font_list_internal): Return quickly if registry is
3781 unknown. Simplify final return.
3782 (add_font_entity_to_list): Break complex logic down into more
3783 manageable chunks. Move unknown registry check to
3784 w32font_list_internal.
3785
8612b71a
AR
37862009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3787
3788 Changes to remove Feval calls from GUI under NS.
3789
d8038940
JB
3790 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3791 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3792 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3793
3794 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3795 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3796 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3797 instead of NON_ASCII_KEYSTROKE_EVENT.
3798 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3799 (EmacsApp-applicationShouldTerminate:): Query user.
3800 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3801 instead of Feval.
3802
3803 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3804
3805 * keyboard.c (kbd_buffer_get_event): Check for it.
3806 (keys_of_keyboard): Define lispy keys for
3807 ns-put/unput-working-text.
3808
3809 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3810 versions.
3811 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3812
6288ae55
CY
38132009-01-25 Chong Yidong <cyd@stupidchicken.com>
3814
3815 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3816 setting current_buffer directly. (Bug#2044)
6288ae55 3817
289e7f8f
CY
38182009-01-24 Chong Yidong <cyd@stupidchicken.com>
3819
5ce87308 3820 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3821 any work. (Bug#1952, bug#1990).
5ce87308 3822
64cc3cf6 3823 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3824
b3243e6f
AR
38252009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3826
3827 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3828 (ns_no_defaults): New declaration.
3829 (main): Use it.
e0d2e69a 3830
d900b2af 3831 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3832
d900b2af 3833 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3834
d900b2af
AR
3835 * nsterm.m (ns_no_defaults): New variable.
3836 (ns_initialize): Don't read defaults when ns_no_defaults.
3837 (EmacsView-readSelectionFromPasteboard:)
3838 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3839 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3840 (ns_dumpglyphs_stretch): New function.
3841 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3842 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3843
e0d2e69a
AR
3844 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3845
3ac71f5d
CY
38462009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3847
3848 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3849 call for Sparc64.
3850
3fe53a83
AR
38512009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3852
3853 * nsfns.m:
3854 * nsgui.h:
3855 * nsmenu.m:
3856 * nsselect.m:
3857 * nsterm.h:
3858 * nsterm.m: Remove '23' comments that indicated code added during
3859 update from emacs-20 -> emacs-23.
3860
10f87c6f 38612009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3862
3863 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3864 ns_alternate_modifier. (Bug#1217)
a3b53a85 3865
c7cef62d
AR
3866 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3867 Display all shortcuts, including those w/o super modifier.
3868
575fb8bd
AR
3869 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3870
918b848b
CY
38712009-01-22 Chong Yidong <cyd@stupidchicken.com>
3872
3873 * fileio.c (Vwrite_region_post_annotation_function)
3874 (Vwrite_region_annotation_buffers): New vars.
3875 (build_annotations_unwind): Just reset
3876 Vwrite_region_annotation_buffers.
3877 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3878 Call write-region-post-annotation-function.
3879 (build_annotations): Add to Vwrite_region_annotation_buffers if
3880 buffer changes.
3881
a39e2539
AR
38822009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3883
3884 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3885 Tiger.
51d861de
SM
3886 * nsfns.m (ns_do_applescript):
3887 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3888
35ed44db
AR
38892009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3890
3891 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3892
cbe0b5bf
AR
38932009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3894
3895 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3896
6049d3a0
AR
3897 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3898
3899 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3900 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3901 handle Ctrl-tab. (Bug#1841)
3902 (ns_get_color): Use unsigned long long for scanned hex string value.
3903 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3904 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3905 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3906 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3907 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3908 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3909 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3910
d3810c21 3911 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3912 DPI. (Bug#1316)
d3810c21
AR
3913 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3914 values in onTiger section.
4c7077c3 3915
e301e634
CY
39162009-01-19 Chong Yidong <cyd@stupidchicken.com>
3917
7f82490b
CY
3918 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3919 Check return value of font_spec_from_name.
64cc3cf6 3920 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3921
3922 * font.c (font_spec_from_name): Return Qnil if font name could not
3923 be parsed.
3924 (font_parse_name): Treat a `?' character as part of an XLFD.
3925
e301e634
CY
3926 * fns.c (Fsubstring): Doc fix.
3927
1c0db158
KH
39282009-01-19 Kenichi Handa <handa@m17n.org>
3929
51d861de 3930 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3931 (ftfont_list): Likewise.
3932
acf20901
JB
39332009-01-18 Juanma Barranquero <lekktu@gmail.com>
3934
fff4e459
JB
3935 * dbusbind.c (Fdbus_register_signal):
3936 * process.c (conv_sockaddr_to_lisp):
3937 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3938
acf20901
JB
3939 * callproc.c (Fgetenv_internal): Doc fix.
3940
e7abcdfb
CY
39412009-01-16 Chong Yidong <cyd@stupidchicken.com>
3942
3943 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3944 it is not even used.
3945
b60861e6
GM
39462009-01-16 Glenn Morris <rgm@gnu.org>
3947
3948 * font.c (Ffont_variation_glyphs): Silence compiler.
3949
8db52afe
JB
39502009-01-15 Juanma Barranquero <lekktu@gmail.com>
3951
3952 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3953 Reported by David Robinow <drobinow@gmail.com>.
3954
4cddb209
KH
39552009-01-15 Kenichi Handa <handa@m17n.org>
3956
51d861de 3957 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3958
f247f67b
JR
39592009-01-14 Jason Rumney <jasonr@gnu.org>
3960
3961 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3962 never a fontset. (Bug#1562)
f247f67b 3963
f56a4450
KH
39642009-01-14 Kenichi Handa <handa@m17n.org>
3965
3966 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3967 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3968
4e99855e
CY
39692009-01-13 Chong Yidong <cyd@stupidchicken.com>
3970
3971 * font.c (font_clear_prop): If clearing the family, clear the font
3972 width index too.
3973
fff4e459 3974 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3975
24f01470
JB
39762009-01-12 Juanma Barranquero <lekktu@gmail.com>
3977
3978 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3979 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3980 functions, use sizeof.
3981
a41240a3
MR
39822009-01-12 Martin Rudalics <rudalics@gmx.at>
3983
3984 * keyboard.c (read_char): Fix case where last_nonmenu_event
3985 returned a bad value with submenus. (Bug#447)
3986
944636b8
CY
39872009-01-12 Chong Yidong <cyd@stupidchicken.com>
3988
3989 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3990 family, clear the font width index too.
3991
0dad7c6f
JR
39922009-01-11 Jason Rumney <jasonr@gnu.org>
3993
3994 * keyboard.c (cmd_error_internal): Exit when errors occur before
3995 frame creation and not in daemon mode. (Bug#1836)
3996
7c2363af
CY
39972009-01-10 Chong Yidong <cyd@stupidchicken.com>
3998
3999 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
4000 of a display vector, backtrack.
4001 (try_window_reusing_current_matrix): Check glyph type before
4002 referencing charpos member.
4003
97b1b294
EZ
40042009-01-10 Eli Zaretskii <eliz@gnu.org>
4005
4006 Fix Bug #876:
4007
4008 * coding.c (inhibit_null_byte_detection): New variable.
4009 (detect_coding, detect_coding_system): Don't pay attention to null
4010 bytes if inhibit_null_byte_detection is non-zero.
51d861de 4011 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
4012 <inhibit-iso-escape-detection>: Doc fix.
4013
4624b6e3
JR
40142009-01-09 Jason Rumney <jasonr@gnu.org>
4015
4016 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 4017 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
4018 Only report Unicode Plane 2 fonts as unicode-sip.
4019
323b840c
CY
40202009-01-09 Chong Yidong <cyd@stupidchicken.com>
4021
51d861de
SM
4022 * xfaces.c (Fx_font_family_list): Delete function.
4023 Move compatibility version to faces.el.
323b840c 4024
51d861de 4025 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 4026
eba7400d
MR
40272009-01-09 Martin Rudalics <rudalics@gmx.at>
4028
4029 * frame.c (x_set_frame_parameters): Remember requested value for
4030 fullscreen before it's reset by the parameter handler.
4031
4b09796d
GM
40322009-01-09 Glenn Morris <rgm@gnu.org>
4033
4034 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 4035 (last_command_event): ... and update all users.
4b09796d
GM
4036 (last_input_char): For clarity, rename to...
4037 (last_input_event): ... and update all users.
4038 (last-command-char, last-input-char): Move to subr.el as aliases.
4039 * cmds.c, commands.h: Update for last_command_char rename.
4040
14ccea62
CY
40412009-01-08 Chong Yidong <cyd@stupidchicken.com>
4042
51d861de 4043 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4044
5f004711
JR
40452009-01-08 Jason Rumney <jasonr@gnu.org>
4046
4047 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4048 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4049 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4050 Don't declare.
fff4e459 4051 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4052 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4053
b71f6f73
KH
40542009-01-07 Kenichi Handa <handa@m17n.org>
4055
50b06221 4056 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4057 remember the coding system used for decoding in
50b06221
KH
4058 coding_system (Bug#1039).
4059
b71f6f73 4060 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4061 breaking the loop. (Bug#870)
b71f6f73
KH
4062 (decode_coding_utf_16, decode_coding_emacs_mule)
4063 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4064 (decode_coding_charset): Likewise.
4065
56f668f7
MR
40662009-01-05 Martin Rudalics <rudalics@gmx.at>
4067
4068 * frame.c (x_set_frame_parameters): Make sure height (width) get
4069 applied when fullwidth (fullheight) is set. (Bug#1522)
4070
5da9424d
JB
40712009-01-04 Juanma Barranquero <lekktu@gmail.com>
4072
4073 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4074 (utc_base): Declare as ULONGLONG, not long double.
4075 (convert_time_raw): Delete.
4076 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4077 (initialize_utc_base): New function.
4078 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4079 (convert_from_time_t): Use initialize_utc_base; compute result with
4080 64-bit arithmetic.
4081 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4082
c4605e09
EZ
40832009-01-03 Eli Zaretskii <eliz@gnu.org>
4084
9acef61c 4085 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4086 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4087 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4088 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4089 [!subprocesses]: Define.
4090 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4091 (Flist_system_processes, Fsystem_process_attributes)
4092 [!subprocesses]: Call list_system_processes and
4093 system_process_attributes instead of returning Qnil.
4094
9acef61c
JB
4095 * dosfns.c (system_process_attributes, list_system_processes):
4096 New functions.
c4605e09
EZ
4097
4098 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4099
4100 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4101 Don't use the default (no-op) implementation.
4102
8b7d0a16
JR
41032009-01-03 Jason Rumney <jasonr@gnu.org>
4104
a6d46bc1
JR
4105 * keyboard.c (parse_modifiers_uncached): Wheel events are
4106 clicks (bug#687).
4107
8b7d0a16
JR
4108 * w32term.c (x_query_colors, x_query_color): New functions.
4109
4110 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4111 (svg_load_image): Cast returned pointers from dynamically loaded
4112 functions. Eliminate W32 specific code.
4113
bfe11752
DN
41142009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4115
89e2438a
DN
4116 * nsfns.m (x_set_foreground_color, x_set_background_color)
4117 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4118 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4119 x_ prefix instead of ns_. Update references.
4120 (syms_of_nsfns): Add a FIXME comment.
4121
4122 * nsterm.m (x_set_cursor_type): New prototype.
4123 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4124
bfe11752
DN
4125 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4126 for Solaris instead of incorrectly providing Qutime and Qcutime.
4127
031da700
EZ
41282009-01-02 Eli Zaretskii <eliz@gnu.org>
4129
4130 * w32.c (process_times): Compute sum of utime and stime.
4131 (system_process_attributes): Add Qtime to the alist.
4132
4133 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4134 and add them to the alist.
4135
4136 * process.c (top level) <Qtime, Qctime>: New variables.
4137 (syms_of_process): staticpro them.
4138 (Fsystem_process_attributes): Add their documentation to the doc
4139 string.
4140
4141 * process.h: Declare Qtime and Qctime.
4142
df23bf08
JR
41432009-01-02 Jason Rumney <jasonr@gnu.org>
4144
9acef61c 4145 * image.c (Qgobject): New symbol.
df23bf08
JR
4146 (syms_of_image): Initialize it.
4147 (init_svg_functions): Load some functions from gobject library.
4148
5bbdf7aa
DN
41492009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4150
4151 * frame.c (make_terminal_frame): Remove redundant code and useless
4152 block.
4153
63136da6
AS
41542009-01-01 Andreas Schwab <schwab@suse.de>
4155
4156 * process.c (conv_sockaddr_to_lisp): Add workaround for
4157 getsockname bug on BSD.
4158
9ef69046
CY
41592009-01-01 Chong Yidong <cyd@stupidchicken.com>
4160
d6fafbe0
CY
4161 * xfns.c (x_create_tip_frame): Set border width of the X window.
4162
51d861de 4163 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4164
f9c34147
JR
41652009-01-01 Jason Rumney <jasonr@gnu.org>
4166
9acef61c 4167 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4168 Don't block input, as per earlier xterm.c changes.
4169
f5497e45
AR
41702008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4171
4172 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4173 (ns_appkit_version_int): New function.
4174 (x-server-version): Use ns_appkit_version_int and follow 21+
4175 convention of returning 3 integers.
4176
c19cab20
KH
41772008-12-30 Kenichi Handa <handa@m17n.org>
4178
4179 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4180 (CHAR_SURROGATE_PAIR_P): New macro.
4181
4182 * font.h (struct font_driver): New member get_variation_glyphs.
4183
9acef61c 4184 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4185 (Ffont_variation_glyphs): New function.
4186 (syms_of_font): Defsubr it.
4187
4188 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4189 ftfont_variation_glyphs.
4190 (setup_otf_gstring): New function.
4191 (ftfont_drive_otf): Use it.
4192 (ftfont_shape_by_flt): Handle variation selector.
4193 (ftfont_variation_glyphs): New function.
4194
28cd591f
MR
41952008-12-30 Martin Rudalics <rudalics@gmx.at>
4196
4197 * frame.c (Vemacs_iconified): Remove.
4198
7f714baf
JR
41992008-12-30 Jason Rumney <jasonr@gnu.org>
4200
4201 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4202 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4203
9d2d22ab
CY
42042008-12-30 Chong Yidong <cyd@stupidchicken.com>
4205
4206 * indent.c (Fvertical_motion): Don't advance iterator if we have
4207 reseated to the desired position.
4208
4209 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4210 checking for pos match.
4211
545312c2
KH
42122008-12-30 Kenichi Handa <handa@m17n.org>
4213
1ede3eb6
KH
4214 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4215 just get the low 8-bit of the code.
4216
545312c2
KH
4217 * font.c (font_intern_prop): Validate str as multibyte.
4218
bd7bbf29
DN
42192008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4220
31e0750e
DN
4221 * dispextern.h (struct face): Move lface and hash from the middle
4222 of bitfields.
4223
bd7bbf29
DN
4224 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4225
b5672e7c
DN
42262008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4227
4228 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4229 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4230 instead of intervals.h.
4231
d704470f
AS
42322008-12-26 Andreas Schwab <schwab@suse.de>
4233
4234 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4235 cons.
4236
54b33868
MR
42372008-12-26 Martin Rudalics <rudalics@gmx.at>
4238
4239 * textprop.c (Qminibuffer_prompt): New variable.
4240 (syms_of_textprop): Initialize it.
4241 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4242 in minibuffer-prompt face. (Bug#1662)
4243
40b615d6
JR
42442008-12-25 Jason Rumney <jasonr@gnu.org>
4245
4246 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4247
baae5c2d
JR
42482008-12-24 Jason Rumney <jasonr@gnu.org>
4249
4250 * ralloc.c (r_alloc_reset_variable): New function.
4251
4252 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4253 record of what points where. (Bug#716)
baae5c2d 4254
a9051c88
DN
42552008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4256
4257 * minibuf.c (read_minibuf): Follow the non-interactive case when
4258 running as a daemon, before detaching.
4259
8b146312
AS
42602008-12-22 Andreas Schwab <schwab@suse.de>
4261
4262 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4263 * gtkutil.c (free_widget_value): Use xfree instead of free.
4264
56f2de10
MR
42652008-12-22 Martin Rudalics <rudalics@gmx.at>
4266
4267 * frame.c (delete_frame): New function derived from
4268 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4269 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4270 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4271 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4272 * frame.h: Extern delete_frame.
4273 * window.c (window_loop):
4274 * terminal.c (delete_terminal):
4275 * xterm.c (x_connection_closed):
4276 * xfns.c (Fx_hide_tip):
9acef61c 4277 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4278
1fc200d6
JR
42792008-12-21 Jason Rumney <jasonr@gnu.org>
4280
4281 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4282 when character maps to .notdef character.
4283
5e252df2
SM
42842008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4285
4286 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4287
99b72cc4
JR
42882008-12-20 Jason Rumney <jasonr@gnu.org>
4289
4290 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4291 a graphical frame on Windows. (Bug#1325)
99b72cc4 4292
acc49a52
JD
42932008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4294
4295 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4296
6ea15123
CY
42972008-12-20 Chong Yidong <cyd@stupidchicken.com>
4298
4299 * minibuf.c (Fread_buffer): Doc fix.
4300
b2dab6c8
JR
43012008-12-20 Jason Rumney <jasonr@gnu.org>
4302
54ea0c87 4303 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4304 server name in UNC paths. (Bug#719)
54ea0c87 4305
b2dab6c8 4306 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4307 charbuf. (Bug#1035)
b2dab6c8 4308
6d1921be
DN
43092008-12-19 Daniel Engeler <engeler@gmail.com>
4310
4311 * sysdep.c (serial_configure): Fix typo.
4312
53934c98
DN
43132008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4314
4315 * sysdep.c: Include alloca.h.
f4f634e8
DN
4316 (system_process_attributes): Add implementation for Solaris.
4317
4318 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4319
06e111a6
DN
43202008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4321
4322 Reorganize implementation of Flist_system_processes and
4323 Fsystem_process_attributes. No functional changes.
4324 * process.c: Don't #include pwd.h, grp.h and limits.h.
4325 (Flist_system_processes): Just call list_system_processes.
4326 (Fsystem_process_attributes): Just call system_process_attributes.
4327 (procfs_list_system_processes, time_from_jiffies)
4328 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4329 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4330
4331 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4332 (list_system_processes): Rename from
4333 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4334 Provide a do nothing implementation.
4335 (system_process_attributes): Rename from
4336 procfs_list_system_processes.
4337 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4338 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4339
4340 * w32.c (list_system_processes): Rename from
4341 w32_list_system_processes.
4342 (system_process_attributes): Rename from
4343 w32_system_process_attributes.
4344
4345 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4346
4347 * process.h (w32_list_system_processes)
4348 (w32_system_process_attributes): Remove.
362654a6
JB
4349 (list_system_processes, system_process_attributes):
4350 New prototypes.
06e111a6 4351
6a705b23
KH
43522008-12-19 Kenichi Handa <handa@m17n.org>
4353
4354 * xfont.c (xfont_decode_coding_xlfd): New function.
4355 (xfont_encode_coding_xlfd): New function.
4356 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4357 (xfont_list): Decode and encode XLFD by iso-8859-1.
4358 (xfont_match): Likewise.
4359 (xfont_list_family): Likewise.
4360 (xfont_open): Likewise.
4361
d66c0241 4362 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4363 names are utf-8.
4364
d66c0241 4365 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4366 names are utf-8.
4367
5a130941
JD
43682008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4369
4370 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4371 changed.
bfd20325
JD
4372 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4373 clicked on a detached tool bar button.
5a130941 4374
fd95644b
DN
43752008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4376
4377 * emacs.c (main): Print and error and exit when no data is read
4378 from the pipe.
4379
e6eee6ae
JR
43802008-12-17 Jason Rumney <jasonr@gnu.org>
4381
4382 * w32font.c (w32font_has_char): Always return -1.
4383
a35dd56b
KH
43842008-12-16 Kenichi Handa <handa@m17n.org>
4385
4386 * font.c (font_open_entity): Fix previous change.
4387
0e3635c2
DN
43882008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4389
4390 * process.c: Include <limits.h>.
4391
d4835507 43922008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4393
4394 * font.c (font_update_drivers): Fix mistake in reconstructing the
4395 driver list.
4396
43972008-12-16 Chong Yidong <cyd@stupidchicken.com>
4398
4399 * font.c (font_clear_cache): Fix format of font cache data.
4400
e2cbc401
CY
44012008-12-15 Chong Yidong <cyd@stupidchicken.com>
4402
4403 * xftfont.c (xftfont_open): Free Xft font pattern if
4404 XftFontOpenPattern fails.
4405
4406 * xterm.c (x_free_frame_resources): Remove extraneous call to
4407 free_frame_faces.
4408
b131d535
CY
44092008-12-13 Chong Yidong <cyd@stupidchicken.com>
4410
4411 * xterm.c (x_delete_display): Move xim_close_dpy call to
4412 x_delete_terminal.
4413 (x_delete_terminal): Call xim_close_dpy.
4414
e6df5336
JR
44152008-12-13 Jason Rumney <jasonr@gnu.org>
4416
4417 * w32font.c (intern_font_name): New function.
4418 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4419 (w32font_open_internal, Fx_select_font): Decode font name.
4420 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4421
4422 * w32font.h (intern_font_name): Declare new function.
4423
4424 * w32uniscribe.c (add_opentype_font_name_to_list):
4425 Use intern_font_name.
4426
20d68145
CY
44272008-12-13 Chong Yidong <cyd@stupidchicken.com>
4428
9f2554de
CY
4429 * frame.c (Fdelete_frame): Call free_font_driver_list.
4430
3d9bec9a
CY
4431 * font.c (free_font_driver_list): Implement missing function.
4432
20d68145
CY
4433 * w32term.c (w32_term_init): Don't initialize the image cache
4434 here; it will be done in init_frame_faces.
4435
4436 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4437 (struct x_display_info): Remove unused member null_pixel. New
4438 member xim_callback_data.
4439
4440 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4441 (xim_initialize): Save pointer to callback function data.
4442 (xim_close_dpy): Free callback function data. Call XCloseIM,
4443 reverting 2008-11-04 change by David Smith.
4444 (x_term_init): Don't initialize the image cache here; it will be
4445 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4446 (x_delete_display): Free x_dnd_atoms member.
4447
96f9306b
KH
44482008-12-13 Kenichi Handa <handa@m17n.org>
4449
6dec9044
JB
4450 * font.c (font_rescale_ratio): Moved from xfaces.c.
4451 Argument type changed. Handle a font-spec too.
96f9306b 4452 (font_score): Check Vface_font_rescale_alist.
6dec9044 4453 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4454
4455 * xfaces.c (font_rescale_ratio): Moved to font.c.
4456
8d5b4964
CY
44572008-12-13 Chong Yidong <cyd@stupidchicken.com>
4458
4459 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4460
e6df5336
JR
44612008-12-12 Jason Rumney <jasonr@gnu.org>
4462
4463 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4464 Vwindow_system_version to the real w32 major version.
4465
97c6058a
DN
44662008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4467
4468 * term.c (init_tty): Move setting the terminal name before the
4469 potential user: maybe_fatal.
4470
ec4e88d7
CY
44712008-12-11 Chong Yidong <cyd@stupidchicken.com>
4472
d4835507
JB
4473 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4474 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4475
b4233ec9
JR
44762008-12-11 Jason Rumney <jasonr@gnu.org>
4477
8ec71e23 4478 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4479 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4480
b4233ec9 4481 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4482 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4483
011a0143
JB
44842008-12-11 Juanma Barranquero <lekktu@gmail.com>
4485
4486 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4487
3c309f34
JB
44882008-12-11 Juanma Barranquero <lekktu@gmail.com>
4489
4490 * process.c (Fsystem_process_attributes, syms_of_process):
4491 Fix typo in name of Ssystem_process_attributes.
4492 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4493
fedc6ab5
JB
44942008-12-11 Juanma Barranquero <lekktu@gmail.com>
4495
4496 * syntax.c (Fmodify_syntax_entry): Doc fix.
4497
ba3de0e8
JB
44982008-12-10 Juanma Barranquero <lekktu@gmail.com>
4499
4500 * font.c (Ffont_spec): Move usage to end of docstring.
4501
174f1c74
JR
45022008-12-10 Jason Rumney <jasonr@gnu.org>
4503
4504 * w32font.c (Qcham): New symbol.
4505 (font_supported_scripts): Add cham, and comments for other new
4506 scripts in bitfield from OpenType spec.
9d32f818
JR
4507 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4508 contain characters beyond the bmp.
174f1c74 4509
7b649478
KH
45102008-12-10 Kenichi Handa <handa@m17n.org>
4511
4512 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4513 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4514 Qunicode_sip.
4515
2133e2d1
JB
45162008-12-10 Juanma Barranquero <lekktu@gmail.com>
4517
4518 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4519 (Fcoding_system_put): Use QCdefault_char.
4520 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4521
9af886ee
CY
45222008-12-09 Chong Yidong <cyd@stupidchicken.com>
4523
74d819eb
CY
4524 * xftfont.c (syms_of_xftfont): Fix typo.
4525
4ccfa1c0 4526 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4527
7c19d3ae
DN
45282008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4529
4530 * emacs.c (main): Close daemon_pipe on exec.
4531
567826bb
CY
45322008-12-08 Chong Yidong <cyd@stupidchicken.com>
4533
4534 * termchar.h (struct tty): New members termcap_term_buffer and
4535 termcap_strings_buffer.
4536
4537 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4538 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4539 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4540 All callers changed.
4541 (init_tty): Store termcap data and string buffers in new struct
4542 tty members termcap_term_buffer and termcap_strings_buffer.
4543 (delete_tty): Free them.
4ccfa1c0 4544 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4545
aa96c42b
SZ
45462008-12-07 Seiji Zenitani <zenitani@mac.com>
4547
4548 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4549 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4550
b7e1d896
CY
45512008-12-06 Chong Yidong <cyd@stupidchicken.com>
4552
4553 * coding.c (make_conversion_work_buffer): Disable buffer
4554 modification hooks in the work buffer.
4555
b5ec91a5
EZ
45562008-12-05 Eli Zaretskii <eliz@gnu.org>
4557
4558 * process.c (procfs_system_process_attributes): If `nread' has a
4559 negative value, assign zero to it.
4560
a5d2a52b
CY
45612008-12-05 Chong Yidong <cyd@stupidchicken.com>
4562
68c5540b 4563 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4564
7bf1bb21
KH
45652008-12-05 Kenichi Handa <handa@m17n.org>
4566
4567 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4568 second character is a combining character.
4569
2fdc7d00
EZ
45702008-12-05 Eli Zaretskii <eliz@gnu.org>
4571
4572 * process.c (procfs_system_process_attributes): Don't use cmd,
4573 cmdsize, and q without initializing them first.
4574
bf6bfba8
JR
45752008-12-04 Jason Rumney <jasonr@gnu.org>
4576
4577 * w32font.c (w32font_draw): Initialize orig_clip before getting
4578 it, and delete it when finished.
4579
a3b1a468
DN
45802008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4581
4582 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4583 case when running as a daemon before detaching.
4584
8b8be8eb
JB
45852008-12-03 Juanma Barranquero <lekktu@gmail.com>
4586
805f2638 4587 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4588
b1bde622
KH
45892008-12-03 Kenichi Handa <handa@m17n.org>
4590
e500c47d
KH
4591 * font.c (font_at): Set `multibyte' at first.
4592
ca516334
KH
4593 * coding.c (decode_coding_charset): Check type of an element of
4594 vector VALIDS.
7bf1bb21 4595 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4596
4ccfa1c0 4597 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4598 (font_for_char): Likewise.
4599
1e5ecd37
CY
46002008-12-03 Chong Yidong <cyd@stupidchicken.com>
4601
d5b01609 4602 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4603 (font_update_lface): Handle fonts with corrupted size specs,
4604 i.e. non-int and non-float.
d5b01609 4605
11e3a6e4 4606 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4607 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4608 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4609
ab06788b
CY
4610 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4611
1e5ecd37 4612 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4613 underline_minimum_offset for underline position.
1e5ecd37 4614
63c125ab
DN
46152008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4616
4617 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4618
4619 * character.c (c_string_width): Specify the type for LEN.
4620
3a8406e1
KH
46212008-12-03 Kenichi Handa <handa@m17n.org>
4622
4ccfa1c0 4623 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4624 (decode_coding_utf_8): Likewise.
4ccfa1c0 4625 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4626 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4627
651df7d9
CY
46282008-12-02 Chong Yidong <cyd@stupidchicken.com>
4629
4630 * keyboard.c (make_lispy_position): Only use PT if the selected
4631 window is current.
4632
1f625c6c
AS
46332008-12-02 Andreas Schwab <schwab@suse.de>
4634
f7741ce9
AS
4635 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4636
1f625c6c
AS
4637 * doprnt.c (doprnt1): Fix size of charbuf.
4638
92bc2678
CY
46392008-12-02 Chong Yidong <cyd@stupidchicken.com>
4640
4641 * keyboard.c (timer_check): Revert last change.
4642
93b9e8cc
JB
46432008-12-02 Juanma Barranquero <lekktu@gmail.com>
4644
4645 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4646
fd7a37d5
JB
46472008-12-01 Juanma Barranquero <lekktu@gmail.com>
4648
4649 * makefile.w32-in: Update dependencies.
4650 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4651
c115043b
AS
46522008-12-01 Andreas Schwab <schwab@suse.de>
4653
4654 * font.c (register_font_driver): Use xmalloc.
4655 (font_put_frame_data): Likewise.
4656
f5668d2a
CY
46572008-12-01 Chong Yidong <cyd@stupidchicken.com>
4658
860d96be
CY
4659 * xfaces.c (realize_x_face): Make abort condition clearer.
4660
f5668d2a
CY
4661 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4662
379c17e7
CY
46632008-11-30 Chong Yidong <cyd@stupidchicken.com>
4664
4665 * keyboard.c (timer_check): After a timer runs, ensure that the
4666 selected window's buffer is current.
4667
35f36d65
JB
46682008-11-30 Juanma Barranquero <lekktu@gmail.com>
4669
f952c61c
JB
4670 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4671 It was accidentally restored by the Unicode merge.
4672
35f36d65
JB
4673 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4674
b23077df
JB
46752008-11-29 Juanma Barranquero <lekktu@gmail.com>
4676
4677 * w32proc.c: Include "coding.h".
4678 (Fw32_short_file_name): Encode filename passed to Windows API.
4679 (Fw32_long_file_name): Encode filename passed to Windows API and
4680 decode back the result. (Bug#1433)
4681
b8ebe9dd
KH
46822008-11-29 Kenichi Handa <handa@m17n.org>
4683
8cc53f96
KH
4684 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4685 not before accessing it.
4686
b8ebe9dd
KH
4687 * charset.c (Fdefine_charset_internal): After calculating
4688 min_char, max_char, and fastmap, copy the charset structure again.
4689 (encode_char): Fix the previous change.
4690
59bc82c0
SZ
46912008-11-28 Seiji Zenitani <zenitani@mac.com>
4692
4693 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4694
4695 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4696
4697 * nsterm.m (x_set_frame_alpha): New function.
4698
32247e3d
EZ
46992008-11-27 Eli Zaretskii <eliz@gnu.org>
4700
4701 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4702
b003e5ff
JB
47032008-11-27 Juanma Barranquero <lekktu@gmail.com>
4704
4705 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4706 pointer to check_face_name.
4707
708550f5
KH
47082008-11-27 Kenichi Handa <handa@m17n.org>
4709
4710 * category.h (SET_CATEGORY_SET): Call set_category_set.
4711 (set_category_set): Extern it.
4712
4713 * category.c (hash_get_category_set): New function.
4714 (Fmodify_category_entry): Adjusted for the change of
4715 char_table_ref_and_range. Call hash_get_category_set to get a
4716 category set to store in the table.
4717
4718 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4719 Funify_charset.
4720
2ae37cf0 4721 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4722 (DECODE_CHAR): Check if the decoder vector is ready.
4723 (ENCODE_CHAR): Check if the encoder char-table is ready.
4724 (maybe_unify_char): Extern it.
4725
4726 * charset.c (Vchar_unified_charset_table): Delete it.
4727 (inhibit_load_charset_map): New variable.
4728 (temp_charset_work): New variable.
4729 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4730 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4731 New macros.
4732 (load_charset_map): Meaning of control_flag changed. If
4733 inhibit_load_charset_map is nonzero, setup a table in
4734 temp_charset_work.
4735 (load_charset): New argument control_flag.
4736 (map_charset_for_dump): New function.
4737 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4738 map_charset_for_dump.
4739 (Fdefine_charset_internal): If the charset method is MAP, load
4740 mapping tables by calling load_charset.
4741 (Funify_charset): Don't load a mapping table but directly set
4742 Vchar_unify_table.
4743 (maybe_unify_char): New function.
4744 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4745 Handle the case of inhibit_load_charset_map being nonzero.
4746 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4747 Handle the case of inhibit_load_charset_map being nonzero.
4748 (Fclear_charset_maps): Just free temp_charset_work.
4749 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4750 variable.
4751
4752 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4753 change of char_table_ref_and_range.
4754 (char_table_ref_and_range): Change the meaning of argument FROM
4755 and TO. Now the caller must provide initial values for *FROM
4756 and *TO.
4757
4758 * fontset.c (fontset_add): Adjusted for the change of
4759 char_table_ref_and_range.
4760 (fontset_get_font_group): Likewise.
4761 (Ffontset_info): Likewise.
4762
4763 * keymap.c (describe_vector): Adjusted for the change of
4764 char_table_ref_and_range. For char-table, put boundary between
4765 non-ASCII and 8-bit characters.
4766
4767 * print.c (print_object): For bool-vector, delete unnecessary
4768 check of ASCII_BYTE_P.
4769
9196133b
JR
47702008-11-26 Jason Rumney <jasonr@gnu.org>
4771
4772 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4773 leading in font height. (Bug#879)
9196133b 4774
9f688acf
GM
47752008-11-26 Glenn Morris <rgm@gnu.org>
4776
4777 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4778 redefinition with ifdef. (Bug#1383)
4779
90d19aff
AR
47802008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4781
4782 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4783
4ccfa1c0 47842008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4785
4786 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4787 New EmacsView methods.
4788 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4789 Fixes bug #1048,1357,1414.
4790
47912008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4792
4793 Fix bug #1362.
4794 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4795 is not an indexed color.
4796 * nsterm.m (free_indexed_color): Add argument checking.
4797 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4798
e7d5ecb3
CY
47992008-11-24 Chong Yidong <cyd@stupidchicken.com>
4800
4801 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4802 Document confirm-after-completion value for
4803 minibuffer-completion-confirm.
4804
c285743c
JR
48052008-11-24 Jason Rumney <jasonr@gnu.org>
4806
4807 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4808 warning.
4809
b0857706
JR
48102008-11-23 Jason Rumney <jasonr@gnu.org>
4811
4812 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4813 restored before returning.
4814
4815 * w32font.c (check_face_name): New function.
4816 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4817 fonts. (Bug#642)
b0857706 4818
ee50ff07
MR
48192008-11-22 Martin Rudalics <rudalics@gmx.at>
4820
4821 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4822 confirm-nonexistent-file-or-buffer in doc-string.
4823
b8ff72fa
SM
48242008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4825
4826 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4827 Fix copy/paste typo. Add checks.
4828
cee53ed4
KH
48292008-11-21 Kenichi Handa <handa@m17n.org>
4830
4831 * coding.c (detect_coding_iso_2022): Reject invalid composition
4832 sequence.
4833 (DECODE_COMPOSITION_START): If the current source is the last
4834 block, and the current composition doesn't end, regard this
4835 sequence as invalid.
4836 (decode_coding_iso_2022): Handle invalid composition sequence.
4837
f6ef1e65
MR
48382008-11-20 Martin Rudalics <rudalics@gmx.at>
4839
4840 * window.c (coordinates_in_window): Don't return
4841 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4842 line when the window is not the rightmost one. (Bug#1372)
4843
e08b1705
MR
48442008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4845
4846 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4847
ad98e89f
EZ
48482008-11-15 Eli Zaretskii <eliz@gnu.org>
4849
4850 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4851 and bright_bg if noninteractive is non-zero.
4852
fb098a4b
CY
48532008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4854
4855 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4856 x_draw_glyph_string_background.
4857
4858 * w32term.c (x_draw_glyph_string): Likewise.
4859
ce952b6e
CY
48602008-11-15 Chong Yidong <cyd@stupidchicken.com>
4861
4862 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4863 the next glyph string once past the overhang width.
4864
4865 * nsterm.m (ns_draw_glyph_string): Likewise.
4866
4867 * w32term.c (x_draw_glyph_string): Likewise.
4868
26ea7079
CY
48692008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4870
4871 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4872 double file close.
4873
1c33c906
MR
48742008-11-14 Martin Rudalics <rudalics@gmx.at>
4875
4876 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4877 dedicated status of window before attempting to display another
4878 buffer in it.
4879
8fc29035
JB
48802008-11-14 Juanma Barranquero <lekktu@gmail.com>
4881
4882 * msdos.c (Fmsdos_long_file_names):
4883 (syms_of_msdos) <dos-unsupported-char-glyph>:
4884 * dosfns.c (Fint86): Fix typos in docstrings.
4885
55fb4286
EZ
48862008-11-14 Eli Zaretskii <eliz@gnu.org>
4887
4888 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4889
3fda0315
KY
48902008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4891
4892 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4893
7e849c17
CY
48942008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4895
4896 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4897
4898 * frame.h: Negative alpha means "don't touch".
4899
4900 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4901
4902 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4903
b9fd67bd
DN
49042008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4905
4906 * hftctl.c:
4907 * chpdef.h:
4908 * acldef.h: Remove files used only for systems no longer supported.
4909
4910 * Makefile.in: Fix .o alphabetical ordering.
4911 (hftctl.o): Remove dependency, file removed.
4912 (keymap.o, print.o): Depend on charset.h.
4913
d5998e03
KH
49142008-11-10 Kenichi Handa <handa@m17n.org>
4915
2ae37cf0 4916 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4917
be70e183
CY
49182008-11-08 Chong Yidong <cyd@stupidchicken.com>
4919
4920 * dired.c (file_name_completion): If completion_ignore_case is
4921 enabled, ignore case when checking completion-regexp-list.
4922
7cf94eac
EZ
49232008-11-08 Eli Zaretskii <eliz@gnu.org>
4924
4925 * vm-limit.c (get_lim_data): Fix last change.
4926
ee107a89
KH
49272008-11-08 Kenichi Handa <handa@m17n.org>
4928
4929 * character.c (Fget_byte): New function.
4930 (syms_of_character): Defsubr Fget_byte.
4931
5fd15622
CY
49322008-11-07 Chong Yidong <cyd@stupidchicken.com>
4933
4934 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4935 cursor position is valid after scrolling.
4936
13d62fad
JB
49372008-11-06 Juanma Barranquero <lekktu@gmail.com>
4938
4939 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4940
a1dd2936
GM
49412008-11-06 Glenn Morris <rgm@gnu.org>
4942
4943 * xterm.c (handle_one_xevent): Don't let popup menus cause
4944 mouse-autoselect-window related window switching. (Bug#1261)
4945
860cd236
CY
49462008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4947
4948 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4949
653a3150
AS
49502008-11-04 Andreas Schwab <schwab@suse.de>
4951
4952 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4953
870f5cac
CY
49542008-11-03 Chong Yidong <cyd@stupidchicken.com>
4955
4956 * xfns.c (Fx_wm_set_size_hint): New function.
4957
1e02f3cb
MR
49582008-11-03 Martin Rudalics <rudalics@gmx.at>
4959
4960 * textprop.c (Fprevious_single_char_property_change): Return 0
4961 when there's no change in a string. (Bug#1301)
4962
e630dfc6
MR
49632008-11-02 Martin Rudalics <rudalics@gmx.at>
4964
4965 * frame.c (do_switch_frame): New argument NORECORD passed to
4966 Fselect_window.
4967 (Fselect_frame): New argument NORECORD passed to
4968 do_switch_frame.
4969 (Fset_frame_selected_window): New argument NORECORD passed to
4970 Fselect_frame.
4971 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4972 in call of do_switch_frame.
4973 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4974 Handle NORECORD argument in call of Fselect_frame.
4975 * lisp.h (do_switch_frame, Fselect_frame)
4976 (Fset_frame_selected_window): Adjust declarations.
4977 * window.c (select_frame_norecord): New function.
4978 (run_window_configuration_change_hook): Use it and call
4979 Fselect_frame with NORECORD set.
4980 (Fselect_window): Pass NORECORD to Fselect_frame.
4981 (Fset_window_configuration): Handle NORECORD argument in call of
4982 do_switch_frame.
4983 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4984 Fset_frame_selected_window.
4985 * keyboard.c (command_loop_1): Handle NORECORD in call of
4986 Fselect_frame (currently ifdefd).
4987
9020b223
GM
49882008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4989
4990 * emacs.c (USAGE2): Untabify.
4991
793ffee8
SM
49922008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4993
4994 * composite.c (fill_gstring_header): Fix copy/paste typo.
4995
ab6d1131
MR
49962008-10-31 Martin Rudalics <rudalics@gmx.at>
4997
4998 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4999 (Fother_window): Rename argument and rewrite doc-string.
5000 (select_window_norecord): Fix return value. (Bug#1276)
5001
601a9cf1
JB
50022008-10-30 Juanma Barranquero <lekktu@gmail.com>
5003
5004 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
5005 new frames overriding foreground for tooltips. Based on similar patch
5006 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
5007
813b0652
CY
50082008-10-29 Chong Yidong <cyd@stupidchicken.com>
5009
5010 * emacs.c (Fdaemon_initialized): Initialize nfd.
5011
4414f58f
MR
50122008-10-29 Martin Rudalics <rudalics@gmx.at>
5013
5014 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
5015 (Fwindow_text_height): Clarify doc-strings.
5016 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
5017 doc-string of window-scroll-functions.
5018
ecdcaa09
RS
50192008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
5020
5021 * category.c (syms_of_category): Fix typo in docstring.
5022
23fe745a
JB
50232008-10-28 Juanma Barranquero <lekktu@gmail.com>
5024
5025 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
5026 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
5027 Fix typos in docstrings.
5028
ff808935
DN
50292008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
5030
5031 * emacs.c (daemon_pipe): Make non-static.
5032 (IS_DAEMON): Move definition ...
5033 * lisp.h (IS_DAEMON): ... here.
5034 (daemon_pipe): Declare.
5035 (is_daemon): Remove.
5036 * dispnew.c (init_display): Use IS_DAEMON.
5037
fc012771
SM
50382008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
5039
5040 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5041 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5042
5043 * emacs.c (is_daemon): Remove.
5044 (main): Don't set is_daemon.
5045 (IS_DAEMON): New macro.
5046 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5047 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5048 parent exits.
5049 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5050
d8bdbe6f
CY
50512008-10-27 Chong Yidong <cyd@stupidchicken.com>
5052
d1a072bf
CY
5053 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5054 over-sized glyph, draw it with the default glyph width.
5055
e2e325aa
CY
5056 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5057 glyph, draw it with the default glyph width.
5058
5059 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5060 glyph, draw it with the default glyph width.
5061
d8bdbe6f
CY
5062 * xdisp.c (try_scrolling): When computing the distance from the
5063 scroll margin to PT, try moving some distance past the window
5064 bottom before giving up.
5065
7bfac547
MR
50662008-10-27 Martin Rudalics <rudalics@gmx.at>
5067
5068 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5069 (Fset_window_buffer): Explain in doc-string that a window can be
5070 "strongly" dedicated to its buffer.
5071
4ff029f6
DN
50722008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5073
5074 * emacs.c (daemon_name): New variable.
5075 (main): Deal with --daemon=SERVER_NAME.
5076 (Fdaemonp): Return a name if one was passed to --daemon.
5077
5790ef40
DN
50782008-10-26 Romain Francoise <romain@orebokech.com>
5079
f9bd0df9 5080 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5081 (main): Create a pipe before forking, make the parent exit only after
5082 the child has closed its end of the pipe. Move closing the
5083 descriptors ...
5084 (Fdaemon_initialized): ... here. New function.
5085
f5385255
SM
50862008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5087
4d632321
SM
5088 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5089 the previous unoptimized table.
5090
f5385255
SM
5091 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5092 the distinction between non-nil and non-t value of `dedicated'.
5093
6c56a0f3
CY
50942008-10-25 Chong Yidong <cyd@stupidchicken.com>
5095
5096 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5097 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5098
fec89261
MR
50992008-10-25 Martin Rudalics <rudalics@gmx.at>
5100
5101 * window.c (Fget_buffer_window, Fdelete_windows_on)
5102 (Freplace_buffer_in_windows): Make buffer argument optional and
5103 rename to buffer_or_name.
5104
34fcddd0
CY
51052008-10-24 Chong Yidong <cyd@stupidchicken.com>
5106
f5385255
SM
5107 * xdisp.c (handle_single_display_spec, handle_display_prop):
5108 Undo 2005-05-16 change.
34fcddd0
CY
5109 (handle_stop): Pop iterator if it's loaded with an empty string.
5110 (get_overlay_strings_1): Don't save iterator if it's loaded with
5111 an empty string (bug#1201).
5112
064766f2
KH
51132008-10-24 Kenichi Handa <handa@m17n.org>
5114
5115 * ftfont.c (ftfont_otf_features): Fix previous change.
5116 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5117 calling ftfont_otf_features.
5118
f9bd0df9 51192008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5120
5121 * font.c (font_match_p): Fix for the case that a vector of
5122 characters is in script-representative-chars.
5123
1dae9197
MA
51242008-10-24 Michael Albinus <michael.albinus@gmx.de>
5125
5126 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5127 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5128 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5129 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5130 macro. (Bug#1186).
5131
f9bd0df9 51322008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5133
5134 * s/sol2-10.h: New file.
5135
878a4584
JB
51362008-10-23 Juanma Barranquero <lekktu@gmail.com>
5137
5138 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5139 poor beast has survived 9+ years and the jump from xterm.c!).
5140
cd265ca6
MR
51412008-10-23 Martin Rudalics <rudalics@gmx.at>
5142
5143 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5144 Reword doc-string.
f5385255 5145 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5146
472a4dc9
JB
51472008-10-23 Juanma Barranquero <lekktu@gmail.com>
5148
5149 * character.c (syms_of_character) <script-representative-chars>:
5150 <unicode-category-table>: Doc fixes.
5151
159bd5a2
NF
51522008-10-23 Noah Friedman <friedman@splode.com>
5153
5154 * coding.c (make_conversion_work_buffer): Check that
5155 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5156 Fget_buffer_create.
5157
49f9c344
KH
51582008-10-23 Kenichi Handa <handa@m17n.org>
5159
5160 * font.c (font_add_log): Check the values of extra properties.
5161
12bb3111
MR
51622008-10-22 Martin Rudalics <rudalics@gmx.at>
5163
5164 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5165 Reword doc-string.
5166 (Fset_window_parameter): Use NILP.
5167 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5168 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5169
bbeb4e99
JB
51702008-10-22 Juanma Barranquero <lekktu@gmail.com>
5171
5172 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5173
51742008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5175
5176 * nsfns.m (ns_appkit_version): New function.
5177 (x-server-version): Use it.
5178 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5179 (x-server-vendor): Don't check_ns().
5180
5181 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5182
a9b555d3
JB
51832008-10-22 Juanma Barranquero <lekktu@gmail.com>
5184
5185 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5186 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5187
4626499f
KH
51882008-10-22 Kenichi Handa <handa@m17n.org>
5189
e3681952
KH
5190 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5191 scripts.
5192
4626499f
KH
5193 * category.c (word_boundary_p): Check scripts instead of charset.
5194 Handle nil value in word-separating-categories and
5195 word-combining-categories.
5196 (syms_of_category): Fix docstrings of word-separating-categories
5197 and word-combining-categories.
5198
1560f91a
EZ
51992008-10-21 Eli Zaretskii <eliz@gnu.org>
5200
5201 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5202 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5203
f4668441
MR
52042008-10-21 Martin Rudalics <rudalics@gmx.at>
5205
5206 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5207 Rename arg "buffer" to "buffer_or_name".
5208 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5209 it optional.
5210 (no_switch_window): Remove since the return value is not used.
a9b555d3 5211 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5212 Consider window as dedicated when Fwindow_dedicated_p returns a
5213 non-nil value.
5214 * lisp.h: Remove prototype for no_switch_window.
5215
fd75ddb2
JD
52162008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5217
5218 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5219 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5220
07295713
KH
52212008-10-21 Kenichi Handa <handa@m17n.org>
5222
5223 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5224 check Vlatin_extra_code_table.
5225
712adc82
EZ
52262008-10-20 Eli Zaretskii <eliz@gnu.org>
5227
5228 * fileio.c (Fset_file_modes): Doc fix.
5229
f549eb0b
MA
52302008-10-19 Michael Albinus <michael.albinus@gmx.de>
5231
5232 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5233 in arrays.
5234
aac0c6e3
MR
52352008-10-19 Martin Rudalics <rudalics@gmx.at>
5236
5237 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5238 Mention kill-buffer in doc-string.
5239 (Fset_window_buffer): Reinsert tem check removed in last commit.
5240 (Fenlarge_window, Fshrink_window): Have argument names and
5241 doc-string follow Elisp manual more closely.
5242
52432008-10-18 Eli Zaretskii <eliz@gnu.org>
5244
5245 * fileio.c (Fset_file_modes): Doc fix.
5246
52472008-10-18 Martin Rudalics <rudalics@gmx.at>
5248
5249 * window.c (Fwindow_width, Fset_window_start)
5250 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5251 (Fdelete_windows_on, Freplace_buffer_in_windows):
5252 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5253 (Fwindow_dedicated_p): Make window argument optional.
5254 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5255 (Fset_window_buffer): Respect any non-nil dedicated value for
5256 window. Rename "buffer" argument to "buffer_or_name".
5257
52582008-10-18 Ulrich Mueller <ulm@gentoo.org>
5259
5260 * m/sh3.h: New file, machine description for SuperH.
5261
52622008-10-17 Martin Rudalics <rudalics@gmx.at>
5263
5264 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5265
52662008-10-17 Kenichi Handa <handa@m17n.org>
5267
5268 * ftfont.c (ftfont_otf_features): Fix indexing
5269 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5270
52712008-10-16 Magnus Henoch <mange@freemail.hu>
5272
5273 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5274 (Fdbus_call_method_asynchronously): Ditto.
5275 This change makes C-h f display the argument list.
5276
52772008-10-16 Chong Yidong <cyd@stupidchicken.com>
5278
5279 * fileio.c (Fexpand_file_name): Doc fix.
5280
5281 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5282 of :foreground and :background equivalent to unspecified (20.x
5283 compatibility).
5284
52852008-10-15 Eli Zaretskii <eliz@gnu.org>
5286
5287 * buffer.c (syms_of_buffer): Doc fix.
5288
52892008-10-14 Kenichi Handa <handa@m17n.org>
5290
5291 * font.c (font_clear_prop): When clearing font width, clear the
5292 average width field too.
5293
52942008-10-12 Andreas Schwab <schwab@suse.de>
5295
5296 * ftfont.c (ftfont_shape_by_flt): Make static.
5297 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5298
5299 * font.c: Don't include <m17n-flt.h>.
5300
53012008-10-10 Eli Zaretskii <eliz@gnu.org>
5302
5303 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5304
53052008-10-09 Eli Zaretskii <eliz@gnu.org>
5306
5307 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5308 away code.
5309
53102008-10-09 Chong Yidong <cyd@stupidchicken.com>
5311
5312 * dispnew.c (update_text_area): Avoid looping due to large glyph
5313 overhangs (bug#1070).
5314
53152008-10-09 Kenichi Handa <handa@m17n.org>
5316
5317 * fontset.c (face_for_char): If face->fontset is negative, just
5318 return ascii_face.
5319
f5385255
SM
5320 * font.c (font_delete_unmatched): Fix previous change.
5321 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5322
53232008-10-09 Martin Rudalics <rudalics@gmx.at>
5324
5325 * frame.c (Fraise_frame): On text-only terminals select frame in
5326 order to make it visible. (Bug#1061)
5327
53282008-10-08 Chong Yidong <cyd@stupidchicken.com>
5329
5330 * fontset.c (fontset_find_font): Check frame validity.
5331
53322008-10-07 Chong Yidong <cyd@stupidchicken.com>
5333
a9b555d3 5334 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5335 (xg_display_close): Allow Emacs to close all displays (bug#985).
5336
53372008-10-06 Andreas Schwab <schwab@suse.de>
5338
f5385255 5339 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5340
53412008-10-06 Chong Yidong <cyd@stupidchicken.com>
5342
f5385255 5343 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5344
a9b555d3 5345 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5346
5347 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5348 during initialization.
5349
53502008-10-04 Eli Zaretskii <eliz@gnu.org>
5351
5352 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5353 whole thing on MSDOS frames as well as on a TTY.
5354
5355 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5356 well as for TTY.
5357 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5358 well as on a TTY.
5359
5360 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5361 as well as for TTY.
5362
5363 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5364
5365 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5366 MSDOS frames as well.
5367
53682008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5369
5370 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5371 correct arguments.
b71ac3dd 5372 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5373
53742008-10-03 Glenn Morris <rgm@gnu.org>
5375
5376 * emacs.c (USAGE1): Add --daemon.
5377
53782008-10-02 Eli Zaretskii <eliz@gnu.org>
5379
5380 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5381 100, so it's in percents as advertised.
5382
53832008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5384
5385 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5386 (ns_output.current_cursor, ns_output.desired_cursor)
5387 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5388 (FRAME_NEW_CURSOR_COLOR): Remove.
5389
5390 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5391 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5392 enumeration (HOLLOW_BOX_CURSOR, etc.).
5393
5394 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5395 (draw_window_cursor): Simplify code.
f5385255
SM
5396 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5397 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5398 updates manually.
a9b555d3
JB
5399 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5400 Use core Emacs cursor types.
aac0c6e3 5401
b8ff72fa 5402 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5403
54042008-10-02 Martin Rudalics <rudalics@gmx.at>
5405
5406 * process.c (Faccept_process_output): Fix doc-string.
5407
54082008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5409
5410 * gmalloc.c (__sbrk): Also define for uClibc.
5411
5412 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5413 for uClibc.
5414
54152008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5416
5417 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5418 styles.
5419 (nsfont_open): Reenable the cache.
5420
54212008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5422
5423 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5424 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5425
54262008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5427
5428 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5429 a suspended terminal.
5430
54312008-09-30 Michael Albinus <michael.albinus@gmx.de>
5432
5433 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5434
54352008-09-30 Eli Zaretskii <eliz@gnu.org>
5436
5437 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5438
54392008-09-30 Chong Yidong <cyd@stupidchicken.com>
5440
5441 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5442 in a continued line coincides with a line beginning.
5443
54442008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5445
5446 * nsfont.m (nsfont_trait_distance): Fix bug.
5447 (nsfont_list): Return a list rather than a vector (syncs with Handa
5448 changes of 2008-05-14).
5449 (nsfont_open): Improve logging.
5450
54512008-09-29 Andreas Schwab <schwab@suse.de>
5452
5453 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5454
54552008-09-28 Martin Rudalics <rudalics@gmx.at>
5456
5457 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5458 name as char-resolve-modifiers.
5459 Reported by: Markus Triska <markus.triska@gmx.at>
5460
54612008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5462
5463 * dispnew.c (init_display): Return earlier when running as a daemon.
5464
54652008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5466
5467 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5468
54692008-09-27 Eli Zaretskii <eliz@gnu.org>
5470
5471 * composite.c (Fcomposition_get_gstring)
5472 (Fcompose_region_internal, Fcompose_string_internal)
5473 (Ffind_composition_internal): Doc fix.
5474 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5475 (syms_of_composite) <auto-composition-function>: Doc fix.
5476 (syms_of_composite) <composition-function-table>: Doc fix.
5477
54782008-09-25 Chong Yidong <cyd@stupidchicken.com>
5479
5480 * search.c (wordify): New argument for lax word-ends.
5481 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5482
54832008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5484
5485 * lisp.h (is_daemon): Declare.
5486 * dispnew.c (init_display): Do not try to initialize the terminal
5487 when running as a daemon.
5488
54892008-09-22 Chong Yidong <cyd@stupidchicken.com>
5490
5491 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5492 x_display_pixel_height.
5493
54942008-09-22 Martin Rudalics <rudalics@gmx.at>
5495
5496 * undo.c (record_point): Don't call Fundo_boundary for first
5497 change. (Bug#731)
5498
54992008-09-22 Juanma Barranquero <lekktu@gmail.com>
5500
5501 * emacs.c (Fdaemonp): Doc fix.
5502
55032008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5504
5505 * emacs.c (main): Place #ifdef in the proper place.
5506
55072008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5508
5509 * emacs.c (standard_args): Add --daemon.
5510 (main): Disconnect from the terminal when --daemon is passed.
5511 (is_daemon): New variable.
5512 (Fdaemonp): New function.
5513 (syms_of_emacs): Defsubr it.
5514
55152008-09-20 Chong Yidong <cyd@stupidchicken.com>
5516
5517 * xdisp.c (get_next_display_element): Handle string display
5518 correctly when checking for the end of a box run.
5519
55202008-09-20 Glenn Morris <rgm@gnu.org>
5521
5522 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5523 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5524 (Frename_file): Avoid copying to trash if a rename involves
5525 a delete. (Bug#964).
5526
55272008-09-20 Eli Zaretskii <eliz@gnu.org>
5528
5529 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5530 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5531 frames as well as termcap frames.
5532 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5533 get_named_tty.
5534
55352008-09-19 Eli Zaretskii <eliz@gnu.org>
5536
5537 * process.c (procfs_system_process_attributes): Fix cmdline in
5538 case /proc/PID/cmdline is empty.
5539
5540 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5541 x_display_pixel_height.
5542
55432008-09-19 Juanma Barranquero <lekktu@gmail.com>
5544
5545 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5546
5547 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5548 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5549
55502008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5551
5552 * dispextern.h (struct it): Move line_wrap away from the middle of
5553 bitfields. Move voffset in struct iterator_stack_entry after the
5554 bitfields. Move tab_width near after another short.
5555
55562008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5557
5558 * frame.h (struct frame): Move alpha from the middle of bitfields.
5559
5560 * window.h (struct window): Move frozen_window_start_p after the
5561 rest of the bitfields to reduce padding.
5562
55632008-09-18 Chong Yidong <cyd@stupidchicken.com>
5564
5565 * xterm.h (x_display_info): Remove `height' and `width' members.
5566
5567 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5568
5569 * w32term.h (w32_display_info): Remove `height', `width',
5570 `height_in', and `width_in' members.
5571
b8ff72fa
SM
5572 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5573 New functions.
aac0c6e3
MR
5574 (x_calc_absolute_position): Use them.
5575 (x_term_init): Omit removed `height' and `width' members.
5576
b8ff72fa
SM
5577 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5578 New functions.
aac0c6e3
MR
5579 (w32_read_socket, x_calc_absolute_position): Use them.
5580 (w32_initialize_display_info, w32_term_init): Omit removed members
5581 of w32_display_info.
5582
b8ff72fa
SM
5583 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5584 New functions.
5585 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5586
b8ff72fa
SM
5587 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5588 New functions.
aac0c6e3
MR
5589 (x_calc_absolute_position): Use them.
5590 (x_term_init): Omit removed `height' and `width' members.
5591
5592 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5593 (compute_tip_xy):
5594 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5595 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5596 x_display_pixel_width.
5597
55982008-09-18 Kenichi Handa <handa@m17n.org>
5599
5600 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5601 (composition_compute_stop_pos): Fix handling of static composition.
5602 (Fcomposition_get_gstring): Check FROM and TO at first.
5603
56042008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5605
46e722a9 5606 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5607 mixup (YAILOM).
5608
56092008-09-17 Chong Yidong <cyd@stupidchicken.com>
5610
5611 * indent.c (Fvertical_motion): Use position reported by iterator
5612 instead of PT for determining screen motion (bug#943).
5613
56142008-09-17 Romain Francoise <romain@orebokech.com>
5615
5616 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5617
56182008-09-17 Kenichi Handa <handa@m17n.org>
5619
5620 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5621
5622 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5623 if necessary.
5624
56252008-09-16 Kenichi Handa <handa@m17n.org>
5626
5627 * coding.c (make_conversion_work_buffer): Avoid calling
5628 Fget_buffer_create if it is not necessary.
5629
56302008-09-15 Martin Rudalics <rudalics@gmx.at>
5631
5632 * window.c (Fselect_window): Don't update window_select_count and
5633 use_time when norecord is not nil.
5634
56352008-09-14 Kenichi Handa <handa@m17n.org>
5636
5637 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5638 specpdl_ptr.
5639
56402008-09-12 Kenichi Handa <handa@m17n.org>
5641
5642 * indent.c (scan_for_column): Don't handle automatic composition
5643 if the current buffer is not associated with a window.
5644
5645 * composite.c (composition_reseat_it): If the current buffer is
5646 not associated with a window, ignore the automatic composition.
5647 (find_automatic_composition): Likewise.
5648
56492008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5650
5651 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5652 (Fgpm_mouse_stop): Use it.
5653 * termhooks.h (close_gpm): Declare.
5654 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5655 connection if Gpm_GetEvent fails.
5656
5657 * window.c (set_window_buffer): Always preserve current-buffer.
5658
56592008-09-12 Glenn Morris <rgm@gnu.org>
5660
5661 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5662
56632008-09-11 Glenn Morris <rgm@gnu.org>
5664
5665 * charset.c (charset-map-path): Doc fix.
5666
56672008-09-10 Kenichi Handa <handa@m17n.org>
5668
5669 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5670
5671 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5672 compose a grapheme cluster with the preceding base glyph.
5673
5674 * composite.c (composition_compute_stop_pos): Fix previous change.
5675 Reset cmp_it->id to -1 at first.
5676
56772008-09-10 Glenn Morris <rgm@gnu.org>
5678
5679 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5680
56812008-09-09 Chong Yidong <cyd@stupidchicken.com>
5682
5683 * keyboard.c (read_key_sequence): Reapply translation maps when
5684 switching keyboards.
5685
56862008-09-09 Kenichi Handa <handa@m17n.org>
5687
5688 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5689 characters.
5690
5691 * composite.c (FORWARD_CHAR): Fix calculation
5692 of (POSITION).pos_byte.
5693 (composition_compute_stop_pos): Limit the search of composition to
5694 at most 500 characters ahead. If we reach the limit or find a
5695 newline, set cmp_it->ch to -2 and return 0.
5696 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5697
56982008-09-08 Kenichi Handa <handa@m17n.org>
5699
5700 * indent.c (Fvertical_motion): Be sure to set
5701 it_overshoot_expected if it.cmp_it.id is non-negative.
5702
57032008-09-07 Andreas Schwab <schwab@suse.de>
5704
5705 * callproc.c (Fcall_process): Don't hold references to string data
5706 across garbage collection. Move initialisation of new_argv down
5707 to avoid compiler bug.
5708
57092008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5710
5711 * process.c (Fsystem_process_attributes): Doc fix.
5712
57132008-09-07 Chong Yidong <cyd@stupidchicken.com>
5714
5715 * callproc.c (Fcall_process): Canonicalize current directory name.
5716
5717 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5718 iterator advances to the next line if the current line ends in a
5719 continued tab.
5720
57212008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5722
5723 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5724 member to point to cmp_from.
5725
5726 * xdisp.c: Doc fix for references to gidx data member.
5727
57282008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5729
5730 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5731
57322008-09-07 Kenichi Handa <handa@m17n.org>
5733
5734 * composite.c (FORWARD_CHAR): Check STOP after
5735 incrementing (POSITION).pos.
5736
57372008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5738
5739 * process.c (Fsystem_process_attributes): Doc fix.
5740
57412008-09-06 Chong Yidong <cyd@stupidchicken.com>
5742
5743 * keyboard.c (Ftop_level): Doc fix.
5744
57452008-09-06 Eli Zaretskii <eliz@gnu.org>
5746
5747 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5748 minibuffer, don't let lower part of menu invade the echo area.
5749
5750 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5751 "char *q" to access menu text and advance through it. Revert the
5752 change that displayed ">" instead of ASCII character 0x10.
5753
57542008-09-05 Eli Zaretskii <eliz@gnu.org>
5755
5756 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5757 toggle boxes and radio buttons on MS-DOS as well.
5758
57592008-09-05 Kenichi Handa <handa@m17n.org>
5760
5761 * composite.c (autocmp_chars): Check lookback count.
5762 (composition_compute_stop_pos): Set cmp_it->lookback.
5763 (composition_reseat_it): Check lookback count.
5764 (struct position_record): New struct.
5765 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5766 (find_automatic_composition): New function.
5767 (composition_adjust_point): Use find_automatic_composition.
5768
5769 * dispextern.h (struct composition_it): New member lookback.
5770
57712008-09-02 Chong Yidong <cyd@stupidchicken.com>
5772
5773 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5774 if moving by a single line.
5775
57762008-09-02 Andreas Schwab <schwab@suse.de>
5777
5778 * xterm.c (x_delete_display): Fix merge error.
5779
5780 * fileio.c (Fexpand_file_name): Remove unused variables.
5781
57822008-09-02 Eli Zaretskii <eliz@gnu.org>
5783
5784 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5785 storage on all platforms, not just on DOS_NT.
5786
57872008-09-02 Jason Rumney <jasonr@gnu.org>
5788
b8ff72fa
SM
5789 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5790 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5791
57922008-09-01 Chong Yidong <cyd@stupidchicken.com>
5793
5794 * xfaces.c (Finternal_set_alternative_font_family_alist)
5795 (Finternal_set_alternative_font_registry_alist): Properly copy
5796 entire alist structure.
5797
57982008-09-01 Kenichi Handa <handa@m17n.org>
5799
d66c0241 5800 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5801 representative chars of the script is a vector.
d66c0241
JB
5802 (ftfont_list): Handle the case where the representative chars of
5803 the script is a vector.
aac0c6e3
MR
5804
5805 * character.c (syms_of_character): Docstring of
5806 script-representative-chars fixed.
5807
58082008-08-31 Eli Zaretskii <eliz@gnu.org>
5809
5810 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5811 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5812 the menu. Allocate larger buffer for `text', to account for
5813 possible ^C characters.
5814
58152008-08-31 Martin Rudalics <rudalics@gmx.at>
5816
5817 * xdisp.c (prepare_menu_bars): Don't call
5818 Vwindow_size_change_functions with arg Qt.
5819
58202008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5821
5822 * font.h (font_range):
5823 * fileio.c (report_file_error):
46e722a9
SM
5824 * composite.c (composition_update_it): Yet another int/Lisp_Object
5825 mixup (YAILOM).
aac0c6e3
MR
5826
58272008-08-30 Glenn Morris <rgm@gnu.org>
5828
5829 * data.c (Fmake_variable_frame_local): Doc fix.
5830
5831 * frame.c (Fmodify_frame_parameters): Doc fix.
5832
58332008-08-30 Eli Zaretskii <eliz@gnu.org>
5834
5835 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5836 needed by GetTokenInformation.
5837 (w32_system_process_attributes): Check return values of all system
5838 APIs.
5839
5840 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5841 only when the state changes.
5842 (IT_update_begin, IT_update_end): Add termscript trace.
5843
5844 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5845 clipboard is unavailable. Set dst to NULL if it doesn't point to
5846 malloc'ed data.
5847 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5848 passing random values to xfree.
5849
5850 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5851 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5852
58532008-08-29 Jason Rumney <jasonr@gnu.org>
5854
5855 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5856
58572008-08-29 Eli Zaretskii <eliz@gnu.org>
5858
5859 * composite.c (fill_gstring_body): Avoid compiler warnings.
5860
5861 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5862 LGLYPH_SET_CODE to avoid compiler warnings.
5863
2ae37cf0 5864 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5865
5866 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5867
5868 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5869 LGLYPH_SET_CODE.
5870
58712008-08-29 Kenichi Handa <handa@m17n.org>
5872
5873 * fileio.c (report_file_error): Don't downcase the first character
5874 of errstring if it is still unibyte.
5875
58762008-08-29 Kenichi Handa <handa@m17n.org>
5877
5878 These changes are to re-implement the automatic composition so
5879 that it doesn't use text properties.
5880
5881 * Makefile.in (ftfont.o): Depend on composite.h.
5882 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5883
5884 * character.h (Vunicode_category_table): Extern it.
5885
5886 * character.c (Vunicode_category_table): New variable.
5887 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5888
5889 * chartab.c (optimize_sub_char_table): Perform more greedy
5890 optimization.
5891
b8ff72fa
SM
5892 * composite.h (enum composition_method):
5893 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5894 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5895 (Vcomposition_function_table): Extern it.
5896 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5897 (composition_gstring_put_cache, composition_gstring_from_id)
5898 (composition_gstring_p, composition_gstring_width)
5899 (composition_compute_stop_pos, composition_reseat_it)
5900 (composition_update_it, composition_adjust_point): Extern them.
5901 (Fcomposition_get_gstring): EXFUN it.
5902
d66c0241 5903 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5904 (Vcomposition_function_table)
5905 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5906 (gstring_hash_table, gstring_work, gstring_work_headers):
5907 New variables.
aac0c6e3
MR
5908 (gstring_lookup_cache, composition_gstring_put_cache)
5909 (composition_gstring_from_id, composition_gstring_p)
5910 (composition_gstring_width, fill_gstring_header)
5911 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5912 (composition_reseat_it, composition_update_it)
b8ff72fa 5913 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5914 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5915 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5916 Defsubr compostion_get_gstring.
5917
5918 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5919 cmp_id.
5920 (struct glyph_string): Delete the member gidx. New members
5921 cmp_id, cmp_from, and cmp_to.
5922 (enum it_method): Delete GET_FROM_COMPOSITION.
5923 (struct composition_it): New struct.
5924 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5925 Delete c, len, cmp_id, cmp_len in u.comp.
5926
5927 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5928 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5929 (enum lglyph_indices): Likewise.
b8ff72fa 5930 (font_range): Adjust extern.
aac0c6e3
MR
5931 (font_fill_lglyph_metrics): Extern it.
5932
5933 * font.c (QCf): New variable.
5934 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5935 (font_prepare_composition): Delete this function.
5936 (font_range): Type and arguments changed.
5937 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5938 (font_fill_lglyph_metrics): New function.
b8ff72fa 5939 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5940 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5941 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5942 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5943
5944 * fontset.h (font_for_char): Extern it.
5945
5946 * fontset.c (font_for_char): New function.
5947
5948 * ftfont.c: Include composite.h.
5949 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5950 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5951
5952 * indent.c: Include composite.h and dispextern.h.
5953 (check_composition): Delete this function.
5954 (scan_for_column): Handle composition by
5955 composition_compute_stop_pos, composition_reseat_it, and
5956 composition_update_it.
5957 (compute_motion): Likewise.
5958 (Fvertical_motion): Fix checking of composition.
5959
5960 * keyboard.c (adjust_point_for_property): Check composition by
5961 composition_adjust_point.
5962
b8ff72fa 5963 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5964 struct glyph_string.
5965
b8ff72fa
SM
5966 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5967 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5968 struct glyph.
5969 (produce_composite_glyph): Likewise.
5970
b8ff72fa
SM
5971 * w32term.c (x_draw_composite_glyph_string_foreground):
5972 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5973 (x_draw_glyph_string): Likewise.
5974
5975 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5976 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5977
5978 * xdisp.c: Include font.h.
5979 (it_props): Delete the entry for Qauto_composed.
5980 (init_iterator): Initialize it->cmp_it.id to -1.
5981 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5982 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5983 (handle_auto_composed_prop): Delete it.
5984 (handle_composition_prop): Handle only static composition.
5985 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5986 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5987 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5988 (pop_it): Likewise.
5989 (get_next_element): Delete next_element_from_composition.
5990 (CHAR_COMPOSED_P): New macro.
5991 (get_next_display_element): For automatic composition, get a face
5992 from the font in the glyph-string.
5993 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5994 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5995 (next_element_from_string): Check if the character at the current
5996 position is composed by CHAR_COMPOSED_P.
5997 (next_element_from_buffer): Likewise.
d66c0241
JB
5998 (next_element_from_composition): Adjust for the change of struct it.
5999 Update it->cmp_it.
b8ff72fa
SM
6000 (dump_glyph): Adjust for the change of struct glyph.
6001 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
6002 it and struct glyph. Don't handle automatic composition here.
6003 (fill_gstring_glyph_string): New function.
6004 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 6005 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
6006 (BUILD_GSTRING_GLYPH_STRING): New macro.
6007 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
6008 automatic composition.
b8ff72fa 6009 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 6010 struct glyph.
b8ff72fa 6011 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 6012
b8ff72fa 6013 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
6014 the change of struct glyph_string.
6015 (x_draw_glyph_string): Likewise.
6016
60172008-08-29 Glenn Morris <rgm@gnu.org>
6018
6019 * buffer.c (word-wrap): Doc fix.
6020 * xdisp.c (truncate-partial-width-windows): Doc fix.
6021 Increase default to 50.
6022
60232008-08-29 Chong Yidong <cyd@stupidchicken.com>
6024
6025 * xdisp.c (update_tool_bar_unwind): New function.
6026 (update_tool_bar): Temporarily set selected frame before building
6027 tool-bar items.
6028
60292008-08-28 Michael Albinus <michael.albinus@gmx.de>
6030
6031 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
6032 snprintf, respectively.
6033 (xd_append_arg): Convert strings with Fstring_make_unibyte.
6034
60352008-08-28 Chong Yidong <cyd@stupidchicken.com>
6036
6037 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
6038 LDFLAGS to GNUstep CC invocation.
6039
60402008-08-27 Chong Yidong <cyd@stupidchicken.com>
6041
6042 * indent.c (Fvertical_motion): Revert last change. Handle the
6043 general case where we are moving forward, and PT spans multiple
6044 screen lines.
6045
6046 * eval.c (find_handler_clause): Temporarily increase
6047 max-lisp-eval-depth while printing the backtrace buffer, to
6048 guarantee that help-mode code can run.
6049
60502008-08-27 Eli Zaretskii <eliz@gnu.org>
6051
6052 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6053 colors under -rv.
6054 (IT_set_frame_parameters): Don't swap foreground and background
6055 colors if `(reverse . t)' is present in the frame properties.
6056 (internal_terminal_init): Call init_frame_faces only for the
6057 initial frame.
6058
60592008-08-27 Andreas Schwab <schwab@suse.de>
6060
6061 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6062
60632008-08-27 Andreas Schwab <schwab@suse.de>
6064
6065 * search.c (search_buffer): Set char_base to zero only at the end.
6066
60672008-08-27 Kenichi Handa <handa@m17n.org>
6068
b8ff72fa 6069 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6070
60712008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6072
6073 * xterm.c (x_term_init): Temporarily hide the partially
6074 initialized terminal while calling vendor-specific-keysyms.
6075
60762008-08-26 Eli Zaretskii <eliz@gnu.org>
6077
6078 * msdos.c (internal_terminal_init): Most initializations done only
6079 once, especially initial_screen_colors[] and termscript open.
6080
60812008-08-26 Chong Yidong <cyd@stupidchicken.com>
6082
6083 * eval.c (Fcondition_case): Doc fix.
6084
6085 * widgetprv.h (EmacsFramePart): Change font member to the new font
6086 struct.
6087
6088 * widget.c: Include character.h and font.h for XSETFONT.
6089 (setup_frame_gcs): Compute X font id from font struct, just once.
6090
60912008-08-26 Eli Zaretskii <eliz@gnu.org>
6092
6093 * term.c (get_named_tty): Fix last change.
6094
60952008-08-26 Chong Yidong <cyd@stupidchicken.com>
6096
6097 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6098 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6099
61002008-08-25 Eli Zaretskii <eliz@gnu.org>
6101
6102 * frame.c (do_switch_frame): Mark previously displayed frame as
6103 obscured for FRAME_MSDOS_P frames as well.
6104
61052008-08-24 Eli Zaretskii <eliz@gnu.org>
6106
6107 * frame.c (make_terminal_frame): Initialize f->terminal,
6108 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6109 Set the top frame to newly created frame.
6110 (Fmake_terminal_frame): Reuse the_only_display_info.
6111
6112 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6113 estimating available memory.
6114
b97439ce 61152008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6116
6117 * nsterm.m (ns_draw_window_cursor): Don't call
6118 NSDisableScreenUpdates and NSEnableScreenUpdates on
6119 non-NS_IMPL_COCOA systems.
6120
61212008-08-23 Andreas Schwab <schwab@suse.de>
6122
6123 * process.c (procfs_system_process_attributes): Fix use of
6124 uninitialized variables.
6125
61262008-08-23 Eli Zaretskii <eliz@gnu.org>
6127
6128 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6129
6130 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6131 calling tty-set-up-initial-frame-faces.
6132
b8ff72fa
SM
6133 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6134 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6135
6136 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6137 addition to output_termcap.
6138
6139 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6140
6141 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6142 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6143 highlight.
6144
6145 * process.c [!subprocesses]: Define QCname.
6146 (syms_of_process): Intern and staticpro it.
6147
6148 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6149 Adjust for changes in encoding/decoding routines.
6150 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6151 encode_coding and decode_coding.
6152
b8ff72fa 6153 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6154
6155 * dosfns.c: Include frame.h before termhooks.h.
6156 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6157 variable termscript.
6158
6159 * s/msdos.h (USER_FULL_NAME): Define.
6160 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6161
6162 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6163 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6164 pw->pw_gecos.
6165
6166 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6167 SELECTED_FRAME as additional (1st) argument.
6168 (tty_read_avail_input): Handle output_msdos_raw in
6169 addition to output_termcap.
6170
6171 * msdos.c: Include frame.h before termhooks.h.
6172 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6173 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6174 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6175 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6176 (IT_set_terminal_modes, IT_reset_terminal_modes)
6177 (IT_set_frame_parameters): Use tty->termscript instead of a global
6178 variable termscript.
6179 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6180 global variable terminal_coding. Don't refer to
6181 Vnonascii_translation_table.
6182 (internal_terminal_init): Set Vwindow_system in current_kboard.
6183 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6184 Announce date and time of session start, if termscript is open.
6185 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6186 term.c:init_tty). Open termscript only of not already open.
6187 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6188 here instead of dos_ttraw. Don't initialize display if this is an
6189 initial tty. Don't set FRAME_FONT.
6190 (Vwindow_system_version): Bump to 23.
6191 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6192 is available, set up mouse_position_hook.
6193 (dos_ttraw, IT_set_terminal_modes): If called with initial
6194 terminal, do nothing.
6195 (IT_set_frame_parameters): Handle the Qtty_type frame
6196 parameter by calling internal_terminal_init.
6197 (dos_set_window_size, show_mouse_face)
6198 (clear_mouse_face, IT_note_mode_line_highlight)
6199 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6200 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6201 (initialize_msdos_display): New function.
6202 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6203 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6204 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6205 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6206 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6207 (request_sigio, unrequest_sigio): Don't define, now defined on
6208 sysdep.c.
6209 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6210
6211 * term.c [MSDOS]: Include msdos.h.
6212 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6213 conditional to DOS_NT. Allow only one call to this function in a
6214 session. Don't allocate a new struct tty_display_info; instead,
6215 reuse the_only_display_info. Call get_tty_size to get screen
6216 dimensions. Call init_baud_rate to set bad_rate.
6217 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6218 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6219 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6220 (get_tty_terminal, get_named_tty, Ftty_type)
6221 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6222 output_termcap.
b8ff72fa
SM
6223 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6224 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6225 only when subprocesses are supported.
aac0c6e3
MR
6226
6227 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6228 f->output_data.x.
6229 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6230 terminal devices.
6231
5582fbc7 6232 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6233 x_output.
6234 (FRAME_FONT): Use output_data.tty.
6235 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6236 (struct x_display_info): Rename from display_info. Update all users in
6237 msdos.c.
aac0c6e3 6238 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6239 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6240 (dos_ttraw): Update prototype.
6241
6242 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6243 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6244
62452008-08-23 Jason Rumney <jasonr@gnu.org>
6246
6247 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6248 (fn_TIFFSetDirectory): New library function used.
6249 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6250 (tiff_load): Use :index to select among multiple images. Set count
6251 property when multiple images exist.
6252 (gif_format): Use :index, not :image.
6253
62542008-08-23 Chong Yidong <cyd@stupidchicken.com>
6255
6256 * xdisp.c (try_scrolling): Check INT_MAX instead of
6257 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6258 to obtain INT_MAX.
6259
62602008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6261
6262 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6263
62642008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6265
6266 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6267 GNUstep library location.
6268
62692008-08-21 Chong Yidong <cyd@stupidchicken.com>
6270
6271 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6272 before using it.
6273
6274 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6275
62762008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6277
6278 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6279 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6280 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6281 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6282 (EmacsApp-cursor_blink_handler): Remove declaration.
6283 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6284 match 01 Feb 2008 changes in xterm.c.
6285 (ns_read_socket): Add cast to avoid warning.
6286 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6287 GNUstep.
6288
62892008-08-20 Chong Yidong <cyd@stupidchicken.com>
6290
6291 * xselect.c (x_get_foreign_selection): Return nil if desired
6292 selection could not be obtained, instead of signalling an error.
6293
62942008-08-20 David Reitter <david.reitter@gmail.com>
6295
6296 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6297 * nsterm.m: Remove ns-specific code for cursor blinking.
6298 (ns_draw_window_cursor): Clear cursor properly rather than
6299 redrawing the area. Respect width of bar cursors.
6300 These changes enable the use of generic blink-cursor-mode and
6301 generic cursor types in NS and support smooth cursor movements (do
6302 not blink off after command).
6303 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6304 Nextstep, too.
6305
63062008-08-19 Kenichi Handa <handa@m17n.org>
6307
6308 * font.c (Vfont_log_deferred): New variable.
6309 (font_add_log): Check Vfont_log_deferred.
6310 (font_deferred_log): New function.
6311
6312 * font.h (font_deferred_log): Extern it.
6313
6314 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6315 for sorting.
6316 (face_for_char): Use deferred log.
6317
63182008-08-18 Kenichi Handa <handa@m17n.org>
6319
6320 * fontset.c (face_for_char): Add font log.
6321
6322 * font.c (font_add_log): Add the font properties :script, :lang,
6323 and :otf in the log.
6324
63252008-08-17 Chong Yidong <cyd@stupidchicken.com>
6326
6327 * xdisp.c: Remove dead code.
6328 (handle_invisible_prop, next_overlay_string): Defer call to
6329 setup_for_ellipsis.
6330 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6331
63322008-08-15 Chong Yidong <cyd@stupidchicken.com>
6333
6334 * xfaces.c (lookup_derived_face): Properly handle possible zero
6335 return value of get_lface_attributes.
6336 (merge_faces): Don't tell lookup_derived_face to signal an error
6337 if face is not found.
6338
6339 * dired.c (Fdirectory_files): Doc fix.
6340
6341 * process.c (make_process): Initialize kill_without_query struct
6342 member.
6343
63442008-08-15 Eli Zaretskii <eliz@gnu.org>
6345
6346 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6347 Alternative calculation of totphys for Visual Studio 6.
6348
6349 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6350
6351 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6352 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6353 All users changed.
6354 (stat): Only root directory passed to GetDriveType. Allow RAM
6355 disk as well as local fixed disk when w32-get-true-file-attributes
6356 is set to `local'.
6357 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6358 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6359 (w32_cached_id, w32_add_to_cache): New functions.
6360 (get_name_and_id): Look account names in the cache before calling
6361 lookup_account_sid.
6362 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6363 New initialization flags.
6364 (globals_of_w32): Initialize them to zero.
6365 (w32_system_process_attributes): Use w32_cached_id and
6366 w32_add_to_cache.
6367
63682008-08-14 Lawrence Mitchell <wence@gmx.li>
6369
6370 * lread.c (Fread_char, Fread_char_exclusive): If no character
6371 event is read before timeout is reached, return nil, rather than
6372 converting to a number.
6373
63742008-08-14 Chong Yidong <cyd@stupidchicken.com>
6375
6376 * fns.c (use_dialog_box): Doc fix.
6377
6378 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6379 on OS X.
6380
63812008-08-13 Chong Yidong <cyd@stupidchicken.com>
6382
6383 * frame.c (Qns_parse_geometry): New var.
6384 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6385
63862008-08-11 Chong Yidong <cyd@stupidchicken.com>
6387
6388 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6389 space character in calculating tabs.
6390
63912008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6392
6393 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6394
63952008-08-10 Glenn Morris <rgm@gnu.org>
6396
6397 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6398 silence gcc "limited range of data type" warnings in some
6399 make_fixnum_or_float calls.
6400
64012008-08-09 Eli Zaretskii <eliz@gnu.org>
6402
6403 * w32.c (w32_system_process_attributes): If the process does not
6404 exist, return nil.
6405
6406 * w32.c: Include thelp32.h, psapi.h and coding.h.
6407 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6408 declarations.
6409 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6410 (Process32Next_Proc): New typedefs.
6411 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6412 (g_b_init_process32_next, g_b_init_open_thread_token)
6413 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6414 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6415 (g_b_init_get_process_working_set_size)
6416 (g_b_init_global_memory_status_ex): New static variables.
6417 (globals_of_w32): Initialize them.
6418 (create_toolhelp32_snapshot, process32_first, process32_next)
6419 (open_thread_token, impersonate_self, revert_to_self)
6420 (get_process_memory_info, get_process_working_set_size)
6421 (global_memory_status, global_memory_status_ex): New wrapper
6422 functions.
6423 (w32_list_system_processes, w32_system_process_attributes)
6424 (enable_privilege, restore_privilege, ltime, process_times):
6425 New functions.
6426 (convert_time_raw): New function.
6427 (convert_time): Remove conversion of FILETIME into time in 100
6428 nsec units, call convert_time_raw instead.
6429
6430 * process.h (w32_list_system_processes, w32_system_process_attributes):
6431 Add prototypes.
6432 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6433 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6434 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6435 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6436
6437 * process.c (Fsystem_process_attributes): Doc fix.
6438
64392008-08-08 Chong Yidong <cyd@stupidchicken.com>
6440
6441 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6442 a continued multi-char glyph; if so, advance to the actual glyph.
6443
64442008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6445
6446 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6447
6448 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6449 (.m.o): Use it.
6450 * config.in: Regenerate.
6451
64522008-08-07 Chong Yidong <cyd@stupidchicken.com>
6453
6454 * xdisp.c (redisplay_window): Revert last change.
6455 (try_window): Check bottom scroll margin too.
6456
64572008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6458
6459 * config.in: Regenerate.
6460
6461 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6462 -list-load-path-shadows'.
6463 (nsgui.h): Reduce number of things depending on it.
6464
64652008-08-06 Chong Yidong <cyd@stupidchicken.com>
6466
6467 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6468 instead of window-end which does the wrong thing at eob.
6469 (try_cursor_movement): Minor optimization.
6470 (redisplay_window): If scroll margin is defined, don't assume
6471 window doesn't need scrolling.
6472
64732008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6474
6475 * config.in: Regenerate.
6476
6477 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6478 (mostlyclean): Don't delete *.d under NS.
6479
6480 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6481
64822008-08-06 Kenichi Handa <handa@m17n.org>
6483
6484 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6485
64862008-08-06 Andreas Schwab <schwab@suse.de>
6487
6488 * config.in: Regenerate.
6489
64902008-08-05 Chong Yidong <cyd@stupidchicken.com>
6491
6492 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6493 forcing a window start.
6494
6495 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6496 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6497
64982008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6499
6500 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6501 argument.
6502
65032008-08-05 Juanma Barranquero <lekktu@gmail.com>
6504
6505 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6506 <scroll-down-aggressively, before-change-functions>:
6507 <after-change-functions>: Reflow docstrings.
6508
65092008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6510 Ken Raeburn <raeburn@gnu.org>
6511
6512 Dock menu customization, based on a patch by Ken Raeburn, plus some
6513 other fixes.
6514 * nsmenu.m (dockMenu): New variable.
6515 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6516
6517 * nsterm.h (dockMenu): Declare.
6518
6519 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6520 (ns_term_init): Initialize dockMenu.
6521 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6522 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6523 left.
6524
6525 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6526
65272008-08-04 Chong Yidong <cyd@stupidchicken.com>
6528
6529 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6530
6531 * config.in: Regenerate.
6532
65332008-08-04 Seiji Zenitani <zenitani@mac.com>
6534
6535 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6536
65372008-08-04 Chong Yidong <cyd@stupidchicken.com>
6538
6539 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6540
65412008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6542
6543 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6544
6545 * keyboard.h: Comment an #endif.
6546
6547 * lisp.h (have_menus_p): Adjust comment.
6548
6549 * menu.c (find_and_return_menu_selection): Fix comparison with
6550 client_data.
6551
6552 * nsmenu.m (popup_activated_flag): New variable.
6553 (popup_activated): New function.
6554 (menu-or-popup-active-p): New exported lisp definition.
6555 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6556 when popup done.
6557 (ns_popup_dialog): Set popup_activated_flag.
6558
6559 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6560 version for GNUstep (handled by conditional typedef in nsterm.m).
6561 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6562 in rgb.txt).
6563
6564 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6565
6566 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6567
6568 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6569
6570 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6571 shortcircuit if popup_activated like GTK and X toolkit.
6572
6573 * m/inter386.h: Change DARWIN to DARWIN_OS.
6574
6575 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6576 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6577 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6578 comment on NO_SOCK_SIGIO.
6579
65802008-08-03 Chong Yidong <cyd@stupidchicken.com>
6581
6582 * nsterm.m (windowDidResize): Remove stopModal call.
6583
65842008-08-03 Andreas Schwab <schwab@suse.de>
6585
6586 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6587 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6588
65892008-08-02 Chong Yidong <cyd@stupidchicken.com>
6590
6591 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6592 Don't use uninitialized pointer variable when using getrlimit.
6593
65942008-08-02 Jason Rumney <jasonr@gnu.org>
6595
6596 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6597
65982008-08-02 Eli Zaretskii <eliz@gnu.org>
6599
6600 * alloc.c (NSTATICS): Bump to 0x640.
6601
6602 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6603
6604 * lisp.h: Add prototype for directory_files_internal.
6605
6606 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6607 New functions.
6608 (syms_of_process): Defsubr them. Add initializations for various
6609 Q* symbols used in procfs_system_process_attributes.
6610 (procfs_list_system_processes, procfs_system_process_attributes)
6611 [HAVE_PROCFS]: New functions.
6612 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6613 (procfs_get_total_memory): New functions.
6614
66152008-08-01 Juanma Barranquero <lekktu@gmail.com>
6616
6617 * xfaces.c (Fx_load_color_file): Fix previous change;
6618 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6619
66202008-08-01 Michael Albinus <michael.albinus@gmx.de>
6621
6622 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6623
66242008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6625
6626 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6627
66282008-08-01 Chong Yidong <cyd@stupidchicken.com>
6629
6630 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6631
6632 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6633 define NSApplicationDelegateReplySuccess.
6634 (EmacsView -converstationIdentifier): Use long instead of
6635 NSInteger for GNUstep, since it doesn't have NSInteger.
6636
6637 * xmenu.c: Revert last change.
6638
6639 * keyboard.h: Fix last change.
6640
66412008-08-01 Juanma Barranquero <lekktu@gmail.com>
6642
6643 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6644 on Windows.
6645
66462008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6647
6648 Warning clearing and clean-up in NS port.
6649 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6650 Add prototypes.
6651 * nsgui.h (FACE_DEFAULT): Remove, unused.
6652 (XGCValues): Change colors to unsigned long.
6653 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6654 nsterm.m.
6655 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6656 (ns_list_fonts): Remove, unused.
6657 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6658 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6659 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6660 (nsfont_draw): Compare face colors to 0, not nil.
6661 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6662 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6663 (-addSubmenuWithTitle:): Use NSMenuItem class.
6664 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6665 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6666 (ns_clip_to_row): Make gc arg a BOOL.
6667 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6668 ns_clip_to_row() call.
6669 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6670 used). Cast FRAME_FONT assignments.
6671 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6672 (ns_string_to_lispmod): Change arg to const char.
6673 (ns_term_init): Use NSMenuItem class.
6674 (EmacsApp -openFile:): Move to different section of file.
6675 (EmacsApp -application:openFiles:): Don't return a value, call
6676 -replyToOpenOrPrint:.
6677 (EmacsView -keyDown:): Fix up cast.
6678 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6679 (EmacsView -menuDown:): Cast tag in call to
6680 find_and_call_menu_selection().
6681 (ns_list_fonts): Remove, unused.
6682 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6683 (ns_fontname_to_xlfd): Make static.
6684 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6685 Remove prototypes (now in keyboard.h).
6686 (next_menubar_widget_id): Remove, unused.
6687 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6688 Remove prototypes (now in keyboard.h).
6689 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6690
66912008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6692
6693 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6694 (floatfns.o): Depend on syssignal.h.
6695 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6696
6697 * systty.h: Fix previous change that removed BSD_TERMIOS.
6698 Add comments to #ifdefs.
6699
67002008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6701
6702 * w32fns.c (w32-load-color-file): Remove.
6703 (x-open-connection): Use renamed Fx_load_color_file.
6704 * xfaces.c (x-load-color-file): Add.
6705 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6706 Emacs.clr.
6707 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6708
67092008-07-31 Michael Albinus <michael.albinus@gmx.de>
6710
6711 * dbusbind.c (Fdbus_call_method_asynchronously)
6712 (Fdbus_method_error_internal): New defuns.
6713 (xd_read_message): Handle also reply messages.
6714 (Vdbus_registered_functions_table): Extend docstring.
6715
67162008-07-31 Juanma Barranquero <lekktu@gmail.com>
6717
6718 * keyboard.c (gobble_input): Fix previous change.
6719
67202008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6721
6722 * bitmaps/README:
6723 * xfns.c:
6724 * termcap.c:
6725 * term.c:
6726 * syswait.h:
6727 * systty.h:
6728 * systime.h:
6729 * syssignal.h:
6730 * sysdep.c:
6731 * process.h:
6732 * process.c:
6733 * print.c:
6734 * ndir.h:
6735 * lread.c:
6736 * keyboard.c:
6737 * getpagesize.h:
6738 * floatfns.c:
6739 * fileio.c:
6740 * emacs.c:
6741 * doc.c:
6742 * dispnew.c:
6743 * dired.c:
6744 * data.c:
6745 * callproc.c:
6746 * buffer.c:
6747 * README:
6748 * Makefile.in:
6749 * s/template.h:
6750 * s/msdos.h:
6751 * m/vax.h: Remove VMS support.
6752 * s/vms.h:
6753 * vlimit.h:
6754 * uaf.h:
6755 * temacs.opt:
6756 * param.h:
6757 * ioctl.h: Remove file.
6758
67592008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6760
6761 * s/ms-w32.h (MULTI_KBOARD): Remove.
6762 * xterm.c:
6763 * xselect.c:
6764 * xfns.c:
6765 * window.c:
6766 * w32term.c:
6767 * w32fns.c:
6768 * terminal.c:
6769 * termhooks.h:
6770 * term.c:
6771 * sysdep.c:
6772 * keyboard.h:
6773 * keyboard.c:
6774 * frame.h:
6775 * frame.c:
6776 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6777 * config.in: Regenerate.
6778
67792008-07-30 Jason Rumney <jasonr@gnu.org>
6780
6781 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6782
6783 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6784 (w32font_open_internal): Get unicode version of textmetrics.
6785 Don't enable or disable glyph indices here.
6786 (w32font_open): Disable use of glyph indices.
6787
6788 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6789
67902008-07-30 Chong Yidong <cyd@stupidchicken.com>
6791
6792 * minibuf.c (Vread_buffer_function): Doc fix.
6793
67942008-07-30 John Paul Wallington <jpw@pobox.com>
6795
6796 * minibuf.c (read_buffer_completion_ignore_case): New var.
6797 (Fread_buffer): Use it.
6798
67992008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6800
6801 * systty.h (sensemode): Remove empty #if. Remove reference to
6802 BSD_TERMIOS, unused.
6803
6804 * sysdep.c: Remove reference to DGUX.
6805 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6806
6807 * config.in: Regenerate.
6808
68092008-07-30 Jason Rumney <jasonr@gnu.org>
6810
6811 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6812
68132008-07-29 Jason Rumney <jasonr@gnu.org>
6814
6815 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6816 is populated.
6817 (uniscribe_encode_char): Always use uniscribe.
6818 Avoid using context if cache is populated.
6819
68202008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6821
6822 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6823 open menu.
6824
6825 * gtkutil.c (menu_nav_ended): Remove.
6826 (create_menus): Remove signal connect for menu_nav_ended.
6827
68282008-07-28 Chong Yidong <cyd@stupidchicken.com>
6829
6830 * xdisp.c (redisplay_window): Check return value of
6831 compute_window_start_on_continuation_line before forcing a window
6832 start.
6833
68342008-07-28 Jason Rumney <jasonr@gnu.org>
6835
6836 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6837
6838 * w32term.c (w32_enable_unicode_output, cleartype_active):
6839 Remove obsolete display options.
6840 (x_draw_glyph_string_background): Don't use old cleartype_active
6841 workaround.
6842 (w32_initialize): Remove cleartype_active initialization.
6843 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6844
68452008-07-28 Andreas Schwab <schwab@suse.de>
6846
6847 * lisp.h (init_weak_hash_tables, syms_of_font)
6848 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6849 (remove_hash_entry): Don't declare.
6850 * eval.c (maybe_call_debugger): Make static and move before use.
6851 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6852 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6853 * xterm.h (x_set_frame_alpha): Declare.
6854
68552008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6856
6857 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6858 (create_menus): Connect selection-done to menu_nav_ended.
6859
68602008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6861
6862 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6863 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6864 parameter with read of 'alpha' one.
6865 (Qns_frame_parameter): Remove.
5582fbc7 6866 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6867 (next-selection-coding-system, Vselection_coding_system)
6868 (Vnext_selection_coding_system): Drop.
6869
68702008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6871
6872 * nsfns.m (do-applescript, do_applescript): Rename to
6873 ns-do-applescript, ns_do_applescript, and move within file.
6874
68752008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6876
6877 Remove support for Mac Carbon.
6878 * mactoolbox.c:
6879 * macterm.h:
6880 * macterm.c:
6881 * macselect.c:
6882 * macmenu.c:
6883 * macgui.h:
6884 * macfns.c:
6885 * mac.c: Remove file.
6886 * s/darwin.h:
6887 * m/intel386.h:
6888 * xfaces.c:
6889 * xdisp.c:
6890 * window.c:
6891 * tparam.c:
6892 * termhooks.h:
6893 * termcap.c:
6894 * term.c:
6895 * syssignal.h:
6896 * sysselect.h:
6897 * sysdep.c:
6898 * process.c:
6899 * lread.c:
6900 * lisp.h:
6901 * keyboard.c:
6902 * image.c:
6903 * fringe.c:
6904 * frame.h:
6905 * frame.c:
6906 * fontset.c:
6907 * font.h:
6908 * font.c:
6909 * fns.c:
6910 * fileio.c:
6911 * emacs.c:
6912 * dispnew.c:
6913 * dispextern.h:
6914 * config.in:
6915 * atimer.c:
2ae37cf0 6916 * Makefile.in: Remove code for Carbon.
aac0c6e3 6917
f0131492 69182008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6919
6920 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6921
69222008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6923
6924 * macterm.h (kCGBitmapByteOrder32Host): New define for
6925 non-universal SDKs.
6926
6927 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6928 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6929
6930 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6931 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6932
69332008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6934
6935 * w32inevt.c: Include dispextern.h.
6936
69372008-07-26 Andreas Schwab <schwab@suse.de>
6938
6939 * print.c (print_object): Fix off-by-one in last change.
6940
69412008-07-25 Juanma Barranquero <lekktu@gmail.com>
6942
6943 * term.c (syms_of_term): Don't initialize default_orig_pair,
6944 default_set_foreground and default_set_background on Windows.
6945
69462008-07-25 Jason Rumney <jasonr@gnu.org>
6947
6948 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6949 ScriptItemize. Clean up return value checking. Remove unused
6950 variables.
6951 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6952 shaping engine.
6953
6954 * w32font.c (w32font_has_char): Handle the case where we can't
6955 determine the script for a character.
6956
69572008-07-25 Chong Yidong <cyd@stupidchicken.com>
6958
6959 * term.c (syms_of_term): Initialize default_orig_pair,
6960 default_set_foreground, and default_set_background.
6961
6962 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6963 clash (bug#86).
6964 (getloadavg): Callers changed.
6965
6966 * image.c (svg_load_image): Fix last change.
6967 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6968 image size is valid. Use g_object_unref instead of deprecated
6969 rsvg_handle_free to free rsvg handle.
6970 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6971
69722008-07-25 Jason Rumney <jasonr@gnu.org>
6973
6974 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6975 surrogates before looking up glyph index.
6976 (w32font_text_extents): Encode as surrogates if falling back to
6977 functions that need UTF-16 wide chars.
6978
6979 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6980 BMP as surrogates before looking up glyph index.
6981
69822008-07-25 Chong Yidong <cyd@stupidchicken.com>
6983
6984 * image.c (svg_load_image): Check for failure in return value of
6985 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6986
69872008-07-25 Jason Rumney <jasonr@gnu.org>
6988
6989 * w32font.c (Fx_select_font): Reverse sense of second arg.
6990
69912008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6992
6993 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6994 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6995
6996 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6997 (PURESIZE): Use it.
6998
69992008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
7000
7001 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
7002 * m/alpha.h (TEXT_END):
7003 * m/ibmrs6000.h (TEXT_END):
7004 * m/macppc.h (TEXT_END):
7005 * s/darwin.h (TEXT_END):
7006 * s/msdos.h (TEXT_END): Remove, unused.
7007 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
7008 * s/cygwin.h: Remove comment.
7009
7010 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
7011 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
7012 * m/intel386.h (DOT_GLOBAL_START):
7013 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
7014 (USG): Remove, file not used on USG platforms.
7015
7016 * Makefile.in (HAVE_X11): Remove empty #else.
7017
70182008-07-24 Andreas Schwab <schwab@suse.de>
7019
7020 * fileio.c (Finsert_file_contents): Properly adjust undo list
7021 after format conversion.
7022
70232008-07-24 Jan Djärv <jan.h.d@swipnet.se>
7024
7025 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
7026 (menu_nav_ended): Remove.
7027 (create_menus): Remove signal connect for menu_nav_ended.
7028 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
7029 create_menus.
7030 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
7031
70322008-07-23 Jason Rumney <jasonr@gnu.org>
7033
7034 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
7035 with opened font.
7036 (w32font_open): Set font type to gdi.
7037
7038 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
7039
70402008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7041
7042 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7043 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7044 defines it.
7045 * unexec.c (ADDR_CORRECT): Define unconditionally.
7046
7047 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7048
7049 * unexec.c: Remove code depending on !COFF and USG, the file is
7050 not used for such systems.
7051
7052 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7053 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7054 (LD_SWITCH_SYSTEM_1): Remove, update users.
7055
7056 * s/darwin.h (DATA_END):
7057 * m/intel386.h (DATA_END):
7058 * m/ibmrs6000.h (DATA_END):
7059 * m/alpha.h (DATA_END): Remove, unused.
7060
7061 * config.in: Regenerate.
7062 * s/ms-w32.h (subprocesses): Define unconditionally.
7063 * s/template.h (subprocesses): Update comment.
7064 * s/vms.h (subprocesses):
7065 * s/usg5-4.h (subprocesses):
7066 * s/hpux10-20.h (subprocesses):
7067 * s/gnu-linux.h (subprocesses):
7068 * s/cygwin.h (subprocesses):
7069 * s/bsd-common.h (subprocesses):
7070 * s/aix4-2.h (subprocesses):
7071 * s/darwin.h (subprocesses): Do not define, defined by default now.
7072
7073 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7074 Remove all references.
7075 (temacs): Add GNUstep specific ld flags.
7076
7077 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7078 similarly to what X does.
7079
70802008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7081
7082 * nsfns.m (x-list-fonts): Remove.
7083 (syms_of_nsfns): Drop the x-list-fonts declaration.
7084 * nsterm.m: Get rid of remaining "//" comments.
7085
70862008-07-22 Chong Yidong <cyd@stupidchicken.com>
7087
7088 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7089
7090 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7091 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7092 (Fns_own_selection_internal, Fx_disown_selection_internal)
7093 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7094
7095 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7096 ... */' style of docstrings. Doc fixes.
7097
70982008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7099
7100 * terminfo.c (UP, BC, PC): Undo previous change.
7101
7102 * nsfns.m: Rename ns prefixed functions/variables to the
7103 corresponding x versions. Update references.
7104
71052008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7106
7107 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7108
71092008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7110
7111 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7112 Remove forwarding functions.
7113 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7114 non-static.
7115 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7116 non-static.
7117 (ns_frame_parm_handlers): Use the new names.
7118 (syms_of_nsfns): Move to the end of file.
7119
7120 * nsterm.m (syms_of_nsterm): Move to the end of file.
7121
7122 * dispnew.c (init_display): Remove code for X10.
7123
71242008-07-22 Jason Rumney <jasonr@gnu.org>
7125
7126 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7127 bare drive.
7128
71292008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7130
7131 * nsterm.m (syms_of_nsterm): Remove debugging println.
7132
71332008-07-22 David Reitter <david.reitter@gmail.com>
7134
7135 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7136 Carbon implementation of the same functionality: execute arbitrary
7137 AppleScript code.
7138
71392008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7140
7141 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7142 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7143 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7144 (Fx_display_mm_height, Fx_display_mm_width)
7145 (Fx_display_backing_store, Fx_display_visual_class)
7146 (Fx_display_save_under, Fx_open_connection)
7147 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7148 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7149 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7150 (Fx_display_pixel_width, Fx_display_pixel_height)
7151 (Fx_display_usable_bounds, Fx_display_planes)
7152 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7153 ... */' style of docstrings.
7154
71552008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7156
7157 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7158 on this platform.
7159 (mips):
7160 * m/iris4d.h (mips): Do not define.
7161 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7162
7163 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7164
7165 * image.c:
7166 * nsfns.m:
7167 * nsselect.m:
7168 * nsterm.h:
7169 * nsterm.m: Rename ns prefixed functions/variables to the
7170 corresponding x versions. Update references.
7171
7172 * m/ibms390x.h (NO_REMAP): Do not undefine.
7173
7174 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7175
71762008-07-21 Chong Yidong <cyd@stupidchicken.com>
7177
7178 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7179 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7180 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7181 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7182 (Fns_display_mm_height, Fns_display_mm_width)
7183 (Fns_display_backing_store, Fns_display_visual_class)
7184 (Fns_display_save_under, Fns_open_connection)
7185 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7186 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7187 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7188 (Fns_display_pixel_width, Fns_display_pixel_height)
7189 (Fns_display_usable_bounds, Fx_display_planes)
7190 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7191
71922008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7193
7194 * print.c (print_object): Check print_depth before searching for
7195 circularities.
7196
71972008-07-21 Michael Albinus <michael.albinus@gmx.de>
7198
7199 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7200 only sprintf.
7201
72022008-07-21 Kenichi Handa <handa@m17n.org>
7203
7204 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7205
72062008-07-20 Andreas Schwab <schwab@suse.de>
7207
7208 * syntax.c (find_start_pos, find_start_value)
7209 (find_start_value_byte, find_start_begv, find_defun_start)
7210 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7211
72122008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7213
7214 * s/sol2-3.h: Insert contents of s/sol2.h.
7215 (LD_SWITCH_SYSTEM): Remove redundant definition.
7216 * s/sol2.h: Remove, unused.
7217
72182008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7219
7220 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7221
72222008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7223
7224 * Makefile.in (ns_appdir): Fix typo in find command.
7225
72262008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7227
7228 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7229
7230 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7231 added not supported anymore.
7232
7233 * s/usg5-4-2.h (LIBS_SYSTEM):
7234 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7235
7236 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7237 * s/lynxos.h (GETPGRP_NO_ARG):
7238 * s/hpux10-20.h (NO_SIOCTL_H):
7239 * s/gnu.h (GETPGRP_NO_ARG):
7240 * s/gnu-linux.h (NO_SIOCTL_H):
7241 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7242 * s/cygwin.h (GETPGRP_NO_ARG):
7243 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7244 (C_DEBUG_SWITCH): Remove duplicate definition.
7245
7246 * m/ibms390.h: Remove boilerplate comments.
7247
7248 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7249
7250 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7251 (wait_reading_process_output): Remove code for SunOS, platform not
7252 supported anymore. Use SOLARIS2 instead of sun.
7253
72542008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7255
7256 * font.c (font_open_by_name): Under NS, default lface height to zero.
7257 (font_open_for_lface): Under NS, set size based on frame fontsize.
7258 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7259 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7260
72612008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7262
7263 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7264 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7265 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7266 YES/NO.
7267 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7268 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7269 * Makefile.in (clean): Clear out build destination dir.
7270
72712008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7272
7273 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7274 xterm, xselect.
7275 * lisp.h: Remove declaration of hash_remove.
7276 * nsgui.h: Remove redefinitions of hash_remove.
7277 * fns.c (hash_remove): Rename to hash_remove_from_table.
7278
72792008-07-19 Seiji Zenitani <zenitani@mac.com>
7280
7281 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7282 strdup() the family UTF8String before modifying it.
7283
72842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7285
7286 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7287 NS_FACE_BACKGROUND with 0 instead of nil.
7288 * nsfont.m (nsfont_draw): Same.
7289
72902008-07-19 Chong Yidong <cyd@stupidchicken.com>
7291
7292 * nsfns.m (ns_set_background_color): Fix crash.
7293
72942008-07-18 Chong Yidong <cyd@stupidchicken.com>
7295
7296 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7297
72982008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7299
7300 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7301
73022008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7303
7304 * gtkutil.c: Include <config.h> instead of "config.h".
7305
7306 * lisp.h (Foverlay_buffer): Add EXFUN.
7307
7308 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7309 child process to complete child_setup. Undo 2005-09-21 change.
7310
7311 * s/darwin.h: Mention setsid after vfork.
7312
73132008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7314
7315 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7316 Depend on macgui.h.
7317
7318 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7319 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7320
7321 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7322 and f19.
7323 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7324
7325 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7326 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7327 Remove enumerators.
7328
7329 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7330 Check if FACE_FROM_ID returns NULL.
7331
73322008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7333
7334 * w32inevt.c (change_frame_size): Remove extern declaration.
7335 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7336 change_frame_size.
7337
73382008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7339
7340 * getloadavg.c: Revert last change (2008-07-15).
7341
73422008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7343
7344 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7345 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7346 from configure.
7347
73482008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7349
7350 * s/sol2.h:
7351 * s/sol2-4.h: Reorganize conditionals.
7352
7353 * ecrt0.c: Remove code depending on m68000, not used anymore.
7354
7355 * fns.c (hash_remove): Make static.
7356 * lisp.h (hash_remove): Don't prototype.
7357
7358 * m/ibmrs6000.h:
7359 * m/ibms390x.h:
7360 * m/macppc.h: Remove boilerplate comments.
7361
7362 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7363 Solaris, which does not need them.
7364
7365 * m/vax.h: Remove comments about unsupported systems.
7366
7367 * s/darwin.h: Reorganize ifdefs.
7368
73692008-07-17 Andreas Schwab <schwab@suse.de>
7370
7371 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7372
73732008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7374
7375 Use SDATA. Follow coding convention of placing operators at
7376 beginning of next line rather than end of previous line, and placing
7377 spaces around infix operators.
7378
7379 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7380 in case it was defined already.
7381 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7382 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7383 ns_default.
7384 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7385 Lisp_Objects.
7386 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7387 (ns_defined_color, ns_color_to_lisp): Declare.
7388 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7389 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7390 it's accepted even with USE_LISP_UNION_TYPE.
7391 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7392 (update_frame_tool_bar): Remove apparently obsolete tests for
7393 non-integerness of f->tool_bar_lines.
7394 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7395 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7396 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7397 (nsfont_open): Don't confuse NULL for Qnil.
7398 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7399 * menu.h (find_and_call_menu_selection):
7400 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7401 (find_and_return_menu_selection): Always return something.
7402 * frame.h: Include dispextern.h for Display_Info.
7403 (display_x_get_resource): Declare.
7404
74052008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7406
7407 * syntax.c: Remove stdio.h include accidentally introduced in
7408 Emacs.app commit.
7409 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7410 NS_IMPL_COCOA.
7411 * keyboard.c (handle_async_input, input_available_signal): Remove
7412 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7413
74142008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7415
7416 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7417 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7418 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7419 Use SDATA.
7420
7421 * keymap.c: Remove all NS-specific code.
7422 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7423 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7424 where_is_preferred_modifier, return a different value depending on how
7425 preferred is the binding.
7426 (where_is_internal): Adjust accordingly.
7427 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7428 Adjust to new preferred_sequence_p.
7429 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7430 * keyboard.c (parse_solitary_modifier): Not static any more.
7431 * keyboard.h (parse_solitary_modifier): Declare.
7432
74332008-07-16 Andreas Schwab <schwab@suse.de>
7434
7435 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7436 of easymenu.
7437
74382008-07-16 Chong Yidong <cyd@stupidchicken.com>
7439
7440 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7441 that we don't move off the line.
7442
74432008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7444
7445 * keyboard.c (Qsuper): Remove.
7446 (parse_menu_item): Don't call where_is_internal specially for NS.
7447
74482008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7449
7450 * s/gnu-linux.h: Remove boilerplate comments.
7451
7452 * m/alpha.h (__ELF__): Consolidate conditions.
7453
7454 * m/m68k.h (linux): Use GNU_LINUX instead.
7455 Remove boilerplate comments.
7456
7457 * m/intel386.h: Undo refactoring from previous change.
7458 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7459 too, remove dead code.
7460 (linux): Use GNU_LINUX instead.
7461
74622008-07-16 Jason Rumney <jasonr@gnu.org>
7463
7464 * w32gui.h: Repeat 26 June changes lost by last change.
7465
74662008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7467
7468 * systty.h: Remove code for Aix on 386, unsupported platform.
7469
7470 * s/ms-w32.h: Remove boilerplate comments.
7471 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7472
7473 * s/gnu-linux.h (TERM): Remove support.
7474 (HAVE_SYSVIPC): Remove, unused.
7475 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7476 for this system.
7477
7478 * process.c: Remove support for IRIS, unused.
7479 Remove support for TERM, not relevant anymore.
7480
7481 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7482 used with the definition.
7483
7484 * s/aix4-2.h (static): Do not undef.
7485
7486 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7487 only used on Aix.
7488 (HAVE_SYSVIPC): Remove, unused.
7489
7490 * m/hp800.h (CANNOT_DUMP): Do not undef.
7491
7492 * m/alpha.h: Fix comment.
7493
7494 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7495 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7496 used by this configuration.
7497 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7498 * unexec.c: Remove code depending on HPUX and
7499 USG_SHARED_LIBRARIES, not used with this file. Remove code
7500 depending on IRIS, unused. Remove if 0-ed code.
7501
7502 * s/template.h: Remove comments about static.
7503
7504 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7505 Remove if 0-ed code.
7506 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7507 were the same as the default.
7508 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7509 Remove boilerplate comments.
7510 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7511 (HAVE_SYSVIPC): Remove, unused.
7512 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7513
7514 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7515 Remove boilerplate comments.
7516 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7517 Remove boilerplate comments.
7518 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7519 Remove boilerplate comments.
7520 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7521
7522 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7523 USG systems which do not use DATA_SEG_BITS.
7524 Refactor code. Remove boilerplate comments.
7525
7526 * m/ibms390.h:
7527 * m/m68k.h:
7528 * s/bsd-common.h:
7529 * s/cygwin.h:
7530 * s/darwin.h:
7531 * s/freebsd.h:
7532 * s/gnu.h:
7533 * s/msdos.h: Remove boilerplate comments.
7534
7535 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7536 do not use this file.
aac0c6e3
MR
7537 (IRIS_4D): Remove, unused.
7538
7539 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7540 do not use this file.
aac0c6e3
MR
7541 (SIGN_EXTEND_CHAR):
7542 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7543 * unexmips.c: Remove file, unused.
7544
7545 * editfns.c (Fuser_full_name): Replace the only use of
7546 USER_FULL_NAME with its value.
7547 * config.in: Regenerate.
7548
75492008-07-16 David Reitter <david.reitter@gmail.com>
7550
7551 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7552 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7553
75542008-07-16 Glenn Morris <rgm@gnu.org>
7555
7556 * emacs.c (system-type): Doc fix.
7557
75582008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7559
7560 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7561 If the cache doesn't work, let's fix it, rather than work around it.
7562
75632008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7564
7565 * Makefile.in: Correct additions for nsfont.o in last commit.
7566 * nsfont.m: New file (forgot last commit).
7567
75682008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7569
7570 * callproc.c (set_initial_environment): Initialize
7571 Vprocess_environment under CANNOT_DUMP (fixes crash when
7572 batch-compiling for bootstrap).
7573
75742008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7575 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7576
7577 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7578 fix crash due to different init order.
7579
75802008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7581
7582 Changes and additions for NeXTstep windowing system (Cocoa and
7583 GNUstep) support.
7584
7585 * Makefile.in:
7586 * config.in: Support defines and build commands for NS port.
7587 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7588 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7589 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7590 windowing.
7591 (struct face): Add synth_ital field.
7592 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7593 (init_display): Initialize Vinitial_window_system to "ns" when so
7594 compiled.
7595 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7596 (display_arg): Use under NS.
7597 (main): Under NS, allocate autorelease pool and handle command line
7598 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7599 (standard_args): Add NS-specific args.
7600 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7601 * font.c (DEFAULT_ENCODING): New variable.
7602 (font_find_for_lface): Use it.
7603 (syms_of_font): Load syms_of_nsfont under NS.
7604 * font.h: Declare nsfont_driver when compiled under NS.
7605 * fontset.c: When compiling under NS, include nsterm.h.
7606 (fontset_from_font): Autoconstruct fontset under NS.
7607 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7608 symbol, document and use it.
7609 (do_switch_frame): When for_deletion under Cocoa, add
7610 Fraise_frame(Qnil).
7611 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7612 (x_get_arg): Allow "yes" and "no" as boolean values.
7613 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7614 Qright under Cocoa.
7615 (focus-follows-mouse): Default to 0 under NS.
7616 * frame.h (enum output_method): Add output_ns.
7617 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7618 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7619 (FRAME_WINDOW_P): NS-specific definition.
7620 * fringe.c (max_used_fringe_bitmap): Make public.
7621 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7622 (getloadavg): Use NeXT code under descendant OS's.
7623 * image.c (includes and header section, x_create_bitmap_from_data)
7624 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7625 (image_background_transparent, x_clear_image_1)
7626 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7627 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7628 (x_to_xcolors, x_from_xcolors, x_disable_image)
7629 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7630 other GUIs, including XPM support using code originally written for
7631 Carbon GUI.
7632 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7633 using NS API.
7634 (image_ascent): Use font metrics macros instead of direct struct field
7635 access.
7636 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7637 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7638 Also, handle NS as GTK for menu bar purposes.
7639 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7640 toolkit where they differ.
7641 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7642 use cachelist, still needed under NS.
7643 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7644 (struct widget_value): Define it here for menu.c.
7645 * keymap.c (includes): Include modifier internals.
7646 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7647 NS.
7648 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7649 support for preferring sequences using certain modifiers, specified by
7650 the FIRSTONLY argument.
7651 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7652 under NS GNUstep implementation.
7653 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7654 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7655 * menu.c: Include nsterm.h under NS.
7656 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7657 (free_menubar_widget_tree_value, update_submenu_strings)
7658 (find_and_call_menu_selection): Treat NS as X and NT.
7659 (find_and_return_menu_selection): New function, used for popup menus.
7660 * nsgui.h:
7661 * nsterm.h:
7662 * nsfns.m:
7663 * nsimage.m:
7664 * nsmenu.m:
7665 * nsselect.m:
7666 * nsterm.m: New files.
7667 * process.c (wait_reading_process_output): Under NS, call ns_select()
7668 instead of plain select().
7669 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7670 beginning of buffer.
7671 * sysselect.h (init_process): Rename when compiling under Cocoa to
7672 avoid name conflict.
7673 * termhooks.h (display_info): Add ns_display_info to union.
7674 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7675 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7676 COCOA environment.
7677 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7678 unexec() signature. (Note, this will dump, but the resulting file
7679 crashes; unexosx is used instead; keeping around for reference and
7680 possible aid in getting dump working under GNUstep.)
7681 * w32gui.h (button_type, widget_value): Remove definitions (now in
7682 keyboard.h).
7683 * window.c: Include nsterm.h when compiling under NS.
7684 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7685 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7686 other GUI windowing systems.
7687 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7688 GTK.
7689 (x_consider_frame_title): Under NS, set icon type and frame
7690 modified-state indicator; use ns_set_name_as_filename() when using
7691 formatted title.
7692 (update_window_cursor): Make public when compiling under NS.
7693 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7694 (hourglass_atimer, Vhourglass_delay
7695 * xfaces.c (header section, init_frame_faces, clear_font_table)
7696 (defined_color, unload_color, x_face_list_fonts)
7697 (prepare_face_for_display): Add NS support parallel to other GUIs.
7698 Emulate GCs like other non-X GUIs.
7699 (split_font_name): Don't lowercase font name under NS.
7700 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7701 under NS.
7702 * s/darwin.h: Add support for compilation under NS.
7703
77042008-07-15 Jason Rumney <jasonr@gnu.org>
7705
7706 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7707 (w32_show_hourglass): Rename from show_hourglass.
7708 (w32_hide_hourglass): Rename from hide_hourglass.
7709 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7710 (Vhourglass_delay): Declare extern.
7711 (hourglass_started): Remove.
7712
7713 * xdisp.c (Vhourglass_delay): Remove static.
7714 (hourglass_started, start_hourglass, cancel_hourglass):
7715 Don't include these versions on WINDOWSNT.
7716
77172008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7718
7719 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7720 variables (formerly in xfns.c).
7721 (show_hourglass, hide_hourglass): New prototypes (same).
7722 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7723 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7724 in xfns.c).
7725 (syms_of_xdisp): Declare/initialize display-hourglass,
7726 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7727 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7728 formerly in xfns.c.
7729 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7730 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7731 (start_hourglass, cancel_hourglass): Remove.
7732 (show_hourglass, hide_hourglass): Remove prototypes and static
7733 modifiers.
7734 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7735 hourglass_atimer, hourglass_shown_p declaration/initialization.
7736 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7737 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7738 (start_hourglass, cancel_hourglass): Remove.
7739 (show_hourglass, hide_hourglass): Remove prototypes and static
7740 modifiers.
7741 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7742 hourglass_atimer, hourglass_shown_p declaration/initialization.
7743 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7744 (DEFAULT_HOURGLASS_DELAY): Remove.
7745 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7746 hourglass_shown_p declaration/initialization.
7747
77482008-07-14 Jason Rumney <jasonr@gnu.org>
7749
7750 * w32fns.c (w32_get_arg): Remove wrapper function.
7751 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7752 directly.
7753 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7754
77552008-07-14 Kenichi Handa <handa@m17n.org>
7756
7757 * xfont.c (xfont_open): Add workaround for X's bug.
7758
77592008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7760
7761 * fontset.c: Include <stdio.h> unconditionally.
7762
77632008-07-13 Michael Albinus <michael.albinus@gmx.de>
7764
7765 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7766 for filtering.
7767
77682008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7769
7770 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7771
7772 * m/macppc.h:
7773 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7774
7775 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7776 (SPECIAL_EMACS_INT):
7777 * m/ia64.h (SPECIAL_EMACS_INT):
7778 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7779 * s/gnu.h (NLIST_STRUCT):
7780 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7781 * s/gnu-linux.h (LINUX):
7782 * s/msdos.h (HAVE_FACES):
7783 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7784
7785 * systty.h:
7786 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7787 anymore.
7788
77892008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7790
7791 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7792 always defined as int.
7793
7794 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7795 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7796 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7797 * s/freebsd.h (HAVE_WAIT_HEADER):
7798 * s/bsd-common.h (HAVE_UNION_WAIT):
7799 * s/aix4-2.h (HAVE_WAIT_HEADER):
7800 * m/mips.h (HAVE_UNION_WAIT):
7801 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7802 (COFF, static): Do not define, they are undefined later in the file.
7803
7804 * process.c (update_status): Don't use a union.
7805 (status_convert):
7806 (sigchld_handler): Use int instead of WAITTYPE.
7807
78082008-07-12 Chong Yidong <cyd@stupidchicken.com>
7809
7810 * indent.c (Fvertical_motion): Restore hscroll before moving to
7811 goal column.
7812
78132008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7814
7815 * lisp.h: Remove left over code.
7816
78172008-07-11 Andreas Schwab <schwab@suse.de>
7818
7819 * lisp.h: Fix logic in last change.
7820
7821 * menu.h: New file.
7822 * menu.c: Include it.
7823 * xmenu.c: Likewise.
7824 * Makefile.in: Update dependencies.
7825
78262008-07-11 Kenichi Handa <handa@m17n.org>
7827
7828 * fontset.c (fontset_from_font): Cancel the previous change.
7829
78302008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7831
7832 * lisp.h:
7833 * w32heap.c:
7834 * emacs.c:
7835 * alloc.c: Replace all references of NO_UNION_TYPE with
7836 USE_LISP_UNION_TYPE.
7837
7838 * m/xtensa.h (NO_UNION_TYPE):
7839 * m/vax.h (NO_UNION_TYPE):
7840 * m/template.h (NO_UNION_TYPE):
7841 * m/sparc.h (NO_UNION_TYPE):
7842 * m/mips.h (NO_UNION_TYPE):
7843 * m/macppc.h (NO_UNION_TYPE):
7844 * m/m68k.h (NO_UNION_TYPE):
7845 * m/iris4d.h (NO_UNION_TYPE):
7846 * m/intel386.h (NO_UNION_TYPE):
7847 * m/ibms390x.h (NO_UNION_TYPE):
7848 * m/ibms390.h (NO_UNION_TYPE):
7849 * m/ibmrs6000.h (NO_UNION_TYPE):
7850 * m/ia64.h (NO_UNION_TYPE):
7851 * m/hp800.h (NO_UNION_TYPE):
7852 * m/arm.h (NO_UNION_TYPE):
7853 * m/amdx86-64.h (NO_UNION_TYPE):
7854 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7855 defining it the same.
7856
78572008-07-10 Chong Yidong <cyd@stupidchicken.com>
7858
7859 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7860
78612008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7862
7863 * fileio.c:
7864 * sysdep.c
7865 * systty.h:
7866 * m/ibmrs6000.h:
7867 * m/iris4d.h:
7868 * s/aix4-2.h:
7869 * s/freebsd.h:
7870 * s/gnu-linux.h:
7871 * s/hpux10-20.h:
7872 * s/hpux11.h:
7873 * s/netbsd.h:
7874 * s/sol2-3.h:
7875 * s/sol2-4.h:
7876 * s/sol2.h:
7877 * s/usg5-4.h:
7878 * s/vms.h: Remove references to unused variables.
7879
78802008-07-10 Andreas Schwab <schwab@suse.de>
7881
7882 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7883 pattern before matching the generic family.
7884
78852008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7886
7887 * unexec.c:
7888 * s/vms.h:
7889 * s/usg5-4-2.h:
7890 * s/sol2-5.h:
7891 * s/freebsd.h:
7892 * s/darwin.h: Remove dead code.
7893
7894 * m/template.h:
7895 * m/sparc.h:
7896 * m/mips.h:
7897 * m/m68k.h:
7898 * m/iris4d.h:
7899 * m/intel386.h:
7900 * m/ibms390x.h:
7901 * m/ibms390.h:
7902 * m/ia64.h:
7903 * m/hp800.h:
7904 * m/arm.h:
7905 * m/amdx86-64.h: Remove dead code and references to unused
7906 and compiler defined symbols.
7907
7908 * unexmips.c:
7909 * unexelf.c: Remove references to desupported systems.
7910
7911 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7912
7913 * m/powermac.h: Remove boilerplate comments.
7914 (NO_REMAP): Remove unused definition.
7915
7916 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7917 define them.
7918
79192008-07-10 Kenichi Handa <handa@m17n.org>
7920
7921 * xfont.c (xfont_open): Log the reason of failure.
7922
79232008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7924
7925 * fontset.c (fontset_get_font_group):
7926 * font.c (font_check_otf): Specify argument types.
7927
79282008-07-09 Kenichi Handa <handa@m17n.org>
7929
7930 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7931 non-ASCII char is found.
7932
7933 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7934 (reorder_font_vector): Change the arg preferred_family to font.
7935 Prefer the spec matching with font.
7936 (fontset_get_font_group): New function.
7937 (fontset_find_font): Change the format of an element of a realized
7938 fontset. Use fontset_get_font_group.
7939 (fontset_font): Try the current fontset, the default fontset, the
7940 fallbacks of the current fontset, and the fallbacks of the default
7941 fontset in this order.
7942 (face_for_char): Delete the shortcut to use the current font.
7943 (fontset_from_font): Don't set fonts for Latin in the fontset.
7944
7945 * font.h (font_make_object, font_match_p): Adjust prototypes.
7946
7947 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7948
7949 * font.c (font_make_object): New arg entity and pixelsize.
7950 (font_check_otf_features, font_check_otf): New functions.
7951 (font_match_p): Check :lang, :script, and :otf properties.
7952
7953 * xfont.c (xfont_open): Adjust it for the change of
7954 font_make_object.
7955 (xfont_text_extents): Fix initial setting of metrics.
7956
7957 * ftfont.c (struct ftfont_info): New member index, delete member
7958 fc_charset_idx. Make the member order compatible with struct
7959 xftfont_info.
7960 (fc_charset_table): Change charset names to registry names.
7961 (ftfont_pattern_entity): Delete the args registry and
7962 fc_charset_idx. Change the value of :font-entity property
7963 to (FONTNAME . INDEX). Always set :registry property to
7964 `iso10646-1'.
7965 (struct ftfont_cache_data): New struct.
7966 (ftfont_lookup_cache): New arg for_face.
7967 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7968 (ftfont_driver): Set the member otf_capability.
7969 (ftfont_get_charset): Adjust it for the change of
7970 fc_charset_table.
7971 (OTF_TAG_SYM): New macro.
7972 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7973 for the change of fc_charset_table.
7974 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7975 ftfont_pattern_entity. Add FC_INDEX to objset.
7976 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7977 and ftfont_pattern_entity.
7978 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7979 font_make_object, struct ftfont_info.
7980 (ftfont_has_char): Use ftfont_get_fc_charset.
7981 (ftfont_otf_features, ftfont_otf_capability): New functions.
7982 (ftfont_shape): Use ftfont_get_otf.
7983 (ftfont_text_extents): Fix initial setting of metrics.
7984
7985 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7986 member order compatible with struct ftfont_info.
7987 (xftfont_open): Add FC_CHARSET to the pattern. Set
7988 xftfont_info->ft_size. Don't unlock the face. Check BDF
7989 properties if appropriate.
7990 (xftfont_close): Unlock the face.
7991 (xftfont_anchor_point, xftfont_shape): Deleted.
7992 (syms_of_xftfont): Don't set members anchor_point and shape of
7993 xftfont_driver.
7994
7995 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7996 font_make_object.
7997
7998 * w32font.c (w32font_open): Adjust it for the change of
7999 font_make_object.
8000 (w32font_open_internal): Don't set properties of font_object here.
8001
80022008-07-08 Chong Yidong <cyd@stupidchicken.com>
8003
8004 * macfns.c (x_create_tip_frame):
8005 * w32fns.c (x_create_tip_frame):
8006 * xfns.c (x_create_tip_frame): Pass parameter argument to
8007 face-set-after-frame-default.
8008
8009 * xfaces.c (Finternal_merge_in_global_face): Save merged
8010 attributes for the default face back into the face vector.
8011
80122008-07-08 Andreas Schwab <schwab@suse.de>
8013
8014 * fontset.h: Declare fontset_from_font. Don't declare
8015 new_fontset_from_font and fontset_from_font_name.
8016 * xterm.c: Include "fontset.h".
8017 * Makefile.in (xterm.o): Update dependencies.
8018
80192008-07-08 Glenn Morris <rgm@gnu.org>
8020
8021 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
8022 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
8023
80242008-07-07 Chong Yidong <cyd@stupidchicken.com>
8025
8026 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
8027 (x_set_frame_parameters): Don't bind it.
8028
80292008-07-07 Juanma Barranquero <lekktu@gmail.com>
8030
8031 * w32fns.c (map_w32_filename): Declare extern.
8032
80332008-07-07 Jason Rumney <jasonr@gnu.org>
8034
8035 * w32term.c (WS_EX_LAYERED): Define if not already.
8036
80372008-07-06 Chong Yidong <cyd@stupidchicken.com>
8038
8039 * xfaces.c (set_font_frame_param): Don't try to set the font
8040 parameter if it is still unspecified in the lface.
8041
80422008-07-05 Chong Yidong <cyd@stupidchicken.com>
8043
8044 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8045 face if it didn't already exist.
8046
8047 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8048
80492008-07-05 Andreas Schwab <schwab@suse.de>
8050
8051 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8052
80532008-07-05 Chong Yidong <cyd@stupidchicken.com>
8054
8055 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8056 word-wrapping.
8057 (IT_DISPLAYING_WHITESPACE): New macro.
8058 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8059 when word-wrapping. Simplify word-wrapping logic. Use correct
8060 pixel positions when saving copies of the iterator.
8061 (display_line): Use proper wrap point if the last character on a
8062 line was preceded by whitespace.
8063
80642008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8065
8066 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8067
80682008-07-04 Kenichi Handa <handa@m17n.org>
8069
8070 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8071
8072 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8073
80742008-07-02 Jason Rumney <jasonr@gnu.org>
8075
8076 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8077 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8078
8079 * xdisp.c (next_element_from_display_vector): Move assignment out
8080 of if statement.
8081
80822008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8083
8084 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8085
8086 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8087 (syms_of_fileio): Initialize and export them.
8088 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8089
8090 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8091 (Fsystem_move_file_to_trash): New function.
8092 (syms_of_w32fns): Export it to lisp.
8093
80942008-07-01 Jason Rumney <jasonr@gnu.org>
8095
8096 * w32font.c (w32font_text_extents): Don't count overhang as part
8097 of width.
8098
80992008-06-30 Miles Bader <miles@gnu.org>
8100
8101 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8102 Add `avoid_cursor_p' field.
8103
8104 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8105 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8106 (append_glyph, append_composite_glyph, produce_image_glyph)
8107 (append_stretch_glyph): Initialize avoid_cursor_p.
8108 (get_it_property): Rename from `get_line_height_property'.
8109 (x_produce_glyphs): Use get_it_property.
8110 (handle_line_prefix, push_display_prop): New functions.
8111 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8112 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8113 New variables.
8114 (syms_of_xdisp): Initialize them.
8115
81162008-06-30 Kenichi Handa <handa@m17n.org>
8117
8118 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8119 XftDefaultSubstitute (they are called in XftFontMatch).
8120 (xftfont_open): Fix args to ftfont_font_format.
8121
8122 * ftfont.c (fc_charset_table): New member lang.
8123 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8124 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8125 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8126 (ftfont_open): Fix args to ftfont_font_format.
8127 (ftfont_font_format): New arg filename.
8128
81292008-06-30 Chong Yidong <cyd@stupidchicken.com>
8130
8131 * xfaces.c (Finternal_merge_in_global_face): If default face was
8132 modified, realize it again. Update the font face attribute.
8133
81342008-06-29 Jason Rumney <jasonr@gnu.org>
8135
8136 * w32term.c (x_set_frame_alpha): Fix logic.
8137
81382008-06-29 Kenichi Handa <handa@m17n.org>
8139
8140 * fontset.c (Finternal_char_font): Return font-object instead of
8141 font-name.
8142
8143 * composite.c (get_composition_id): Fix the width calculation for TAB.
8144
81452008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8146
8147 * indent.c (Fvertical_motion): Properly handle float column arg.
8148
81492008-06-28 Jason Rumney <jasonr@gnu.org>
8150
8151 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8152 (pfnSetLayeredWindowAttributes): New function pointer.
8153 (w32_initialize): Initialize it when supported.
8154 (x_set_frame_alpha): New function.
8155
8156 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8157 (w32_frame_parm_handlers): Set alpha handler.
8158
8159 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8160
81612008-06-27 Jason Rumney <jasonr@gnu.org>
8162
8163 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8164 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8165 (w32_to_x_charset, x_to_w32_charset)
8166 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8167 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8168 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8169 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8170 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8171 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8172 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8173 (Qw32_charset_unicode): Remove.
8174 (syms_of_w32fns): Update for above changes.
8175
8176 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8177 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8178 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8179 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8180 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8181 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8182 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8183 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8184 (syms_of_w32font): Update for above changes.
8185
81862008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8187
8188 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8189 removed #if.
8190 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8191
81922008-06-26 Juanma Barranquero <lekktu@gmail.com>
8193 Eli Zaretskii <eliz@gnu.org>
8194
8195 * makefile.w32-in (LOCAL_FLAGS):
8196 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8197
8198 * sysdep.c (_spawnlp, _getpid):
8199 Declare with explicit _cdecl instead of _CRTAPI1.
8200
8201 * editfns.c (Fget_internal_run_time):
8202 Check for WINDOWSNT with #ifdef, not #if.
8203
82042008-06-26 Jason Rumney <jasonr@gnu.org>
8205
8206 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8207
8208 * w32term.c (x_draw_glyph_string_foreground)
8209 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8210 Use FONT_HANDLE macro.
8211 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8212
8213 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8214 (uniscribe_encode_char): Use FONT_HANDLE macro.
8215
8216 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8217 (w32font_text_extents): Use precast w32_font.
8218 (w32font_close): Free cached metrics.
8219 (w32font_open_internal): Allocate space for name on stack.
8220
82212008-06-26 Chong Yidong <cyd@stupidchicken.com>
8222
8223 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8224
82252008-06-26 Jason Rumney <jasonr@gnu.org>
8226
8227 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8228 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8229
82302008-06-26 Juanma Barranquero <lekktu@gmail.com>
8231
8232 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8233
82342008-06-26 Jason Rumney <jasonr@gnu.org>
8235
8236 * w32bdf.c, w32bdf.h: Remove obsolete files.
8237
8238 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8239
8240 * w32gui.h: Don't include w32bdf.h.
8241 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8242 Remove obsolete font support.
8243
8244 * w32font.h (struct w32font_info): Remove compat_w32_font.
8245 Add hfont member.
8246 (FONT_COMPAT): Remove obsolete macro.
8247
8248 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8249 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8250 (w32font_open_internal): Remove compat code. Set new hfont member.
8251 (Fx_select_font): Use new hfont member.
8252
8253 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8254 (uniscribe_encode_char): Use new hfont member.
8255
8256 * w32term.c (x_draw_glyph_string_foreground)
8257 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8258 (x_draw_glyph_string): Use metrics in w32font_info.
8259
82602008-06-26 Kenichi Handa <handa@m17n.org>
8261
8262 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8263
82642008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8265
8266 * unexnext.c:
8267 * m/ews4800.h:
8268 * m/hp9000s300.h:
8269 * m/ibm370aix.h:
8270 * m/mips-siemens.h:
8271 * m/ncr386.h:
8272 * m/next.h:
8273 * m/pmax.h:
8274 * m/powerpcle.h:
8275 * m/tandem-s2.h:
8276 * s/386bsd.h:
8277 * s/bsd386.h:
8278 * s/bsd4-1.h:
8279 * s/bsd4-2.h:
8280 * s/bsdos2-1.h:
8281 * s/bsdos2.h:
8282 * s/bsdos3.h:
8283 * s/bsdos4.h:
8284 * s/nextstep.h:
8285 * s/ultrix4-3.h:
8286 * s/usg5-0.h:
8287 * s/usg5-2-2.h:
8288 * s/usg5-2.h:
8289 * s/usg5-4-3.h:
8290 * s/ux4800.h:
8291 * s/uxpds.h:
8292 * s/uxpv.h: Remove support for obsolete systems.
8293 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8294 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8295 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8296 Remove, insert contents in s/aix4-2.h.
8297 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8298 * s/bsd4-3.h: Rename to ...
8299 * s/bsd-common.h: ... this.
8300 * data.c:
8301 * doc.c:
8302 * ecrt0.c:
8303 * emacs.c:
8304 * fileio.c:
8305 * floatfns.c:
8306 * keyboard.c:
8307 * mem-limits.h:
8308 * print.c:
8309 * process.c:
8310 * sysdep.c:
8311 * syssignal.h:
8312 * systty.h:
8313 * syswait.h:
8314 * term.c:
8315 * unexec.c:
8316 * unexelf.c:
8317 * unexhp9k800.c:
8318 * m/hp800.h:
8319 * m/ibmrs6000.h:
8320 * m/mips.h:
8321 * m/vax.h:
8322 * s/darwin.h:
8323 * s/freebsd.h:
8324 * s/gnu.h:
8325 * s/ms-w32.h:
8326 * s/msdos.h:
8327 * s/netbsd.h:
8328 * s/template.h: Remove references to obsolete variables.
8329
8330 * Makefile.in: Add dependencies for all unexec files.
8331 (admindir): Remove unused variable.
8332 (UNEXEC_SRC): Remove references.
8333
83342008-06-25 Chong Yidong <cyd@stupidchicken.com>
8335
8336 * xfns.c (x_default_font_parameter): If Xft is available, first
8337 try Monospace-12 for the default font.
8338
83392008-06-25 Jason Rumney <jasonr@gnu.org>
8340
8341 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8342
83432008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8344
8345 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8346
8347 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8348
83492008-06-25 Juanma Barranquero <lekktu@gmail.com>
8350
8351 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8352 <scroll-conservatively>: Fix typo in docstring.
8353
8354 * xselect.c (Fx_send_client_event): Doc fix.
8355
83562008-06-25 Kenichi Handa <handa@m17n.org>
8357
8358 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8359
8360 * font.c (font_parse_fcname): Remove unused variables.
8361 (font_sort_entites): Delete the arg SPEC. Caller changed.
8362 Fix for the case of ! best_only.
8363 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8364
8365 * lisp.h (Fstring_to_unibyte): EXFUN it.
8366
8367 * character.h (str_to_unibyte): Extern it.
8368
8369 * character.c (str_to_unibyte): New function.
8370
8371 * fns.c (Fstring_to_unibyte): New function.
8372 (syms_of_fns): Defsubr it.
8373
83742008-06-24 Kenichi Handa <handa@m17n.org>
8375
8376 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8377 DPI too.
8378 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8379
83802008-06-24 Andreas Schwab <schwab@suse.de>
8381
8382 * Makefile.in (${lispsource}loaddefs.el): Rename from
8383 ../lisp/loaddefs.el.
8384 (bootstrap-clean): Do what distclean does but don't remove
8385 Makefile.
8386 (distclean): Depend on bootstrap-clean and remove Makefile.
8387
83882008-06-24 Chong Yidong <cyd@stupidchicken.com>
8389
8390 * buffer.h (struct buffer): New member word_wrap.
8391
8392 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8393 word-wrap.
8394 (init_buffer_once): Initialize them.
8395
8396 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8397 line_wrap enum possessing three possible values.
8398
8399 * termopts.h: Replace truncate_partial_width_windows with
8400 Vtruncate_partial_width_windows.
8401
8402 * dispnew.c (direct_output_for_insert): Avoid direct output when
8403 inserting a space with word wrap on.
8404
8405 * indent.c (compute_motion): Obey integer values of
8406 truncate-partial-width-windows.
8407
8408 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8409 replacing truncate_partial_width_windows.
8410 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8411 truncate only if the window width is below that integer.
8412 (start_display, resize_mini_window, produce_stretch_glyph)
8413 (display_string, move_it_in_display_line_to): Use line_wrap.
8414 (back_to_previous_visible_line_start, reseat_1): Reset
8415 string_from_display_prop_p.
8416 (display_line): Extend default face to end of line when wrapping.
8417
84182008-06-24 Kim F. Storm <storm@cua.dk>
8419
8420 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8421 to wrap continued lines at word boundaries.
8422
84232008-06-24 Jason Rumney <jasonr@gnu.org>
8424
8425 * font.c (Ffont_face_attributes): Multiply pixel size before point
8426 conversion to avoid multiplying rounding error.
8427
84282008-06-23 Jason Rumney <jasonr@gnu.org>
8429
8430 * w32term.c (x_draw_glyph_string_background)
8431 (x_draw_glyph_string): Remove old bdf font code.
8432
8433 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8434
84352008-06-22 Kenichi Handa <handa@m17n.org>
8436
8437 * font.c (font_find_for_lface): Try the adstyle specified in
8438 the property of LFACE_FONT of LFACE (if any).
8439
84402008-06-21 Seiji Zenitani <zenitani@mac.com>
8441 Ryo Yoshitake <ryo@shiftmode.net>
8442
8443 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8444
84452008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8446
8447 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8448 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8449 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8450 (witness-emacs): Remove.
8451 (lisp, shortlisp): Move loaddefs.el earlier.
8452 (mostlyclean): Forget about witness-emacs.
8453
84542008-06-22 Glenn Morris <rgm@gnu.org>
8455
8456 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8457 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8458
84592008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8460
8461 * Makefile.in (PRECOMP): Remove.
8462 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8463 (witness-emacs): Run `compile-first'.
8464 (.el.elc): Use the new compile-onefile target.
8465
84662008-06-21 Kenichi Handa <handa@m17n.org>
8467
8468 * xftfont.c (xftfont_open): Handle QCembolden only when
8469 FC_EMBOLDEN is defined.
8470
84712008-06-21 Andreas Schwab <schwab@suse.de>
8472
8473 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8474 (.el.elc): Likewise.
8475
84762008-06-21 Miles Bader <miles@gnu.org>
8477
8478 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8479 build dir, not the lisp source dir.
8480
84812008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8482
8483 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8484 (bootstrapclean): Remove.
8485 (.el.elc): New rule.
8486 (PRECOMP): New var.
8487 (../lisp/subdirs.el): Remove.
8488 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8489 (witness-emacs): New target.
8490 (mostlyclean): Remove witness-emacs as well.
8491 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8492 Add witness-emacs dependency.
8493
84942008-06-20 Chong Yidong <cyd@stupidchicken.com>
8495
8496 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8497 defined by the font.
8498
84992008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8500
8501 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8502 (bootstrap-clean): New target that keeps TAGS around.
8503 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8504 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8505
85062008-06-20 Jason Rumney <jasonr@gnu.org>
8507
8508 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8509 Remove obsolete font code.
8510
8511 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8512 to determine language support.
8513
85142008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8515
8516 * sysdep.c (cfsetspeed): New fun extracted from the code.
8517 (cfmakeraw): Move before first use.
8518
85192008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8520
8521 * sysdep.c (cfmakeraw): Provide fallback implementation.
8522 (serial_configure): Provide fallback implementation of cfsetspeed.
8523
85242008-06-20 Kenichi Handa <handa@m17n.org>
8525
8526 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8527 the pattern.
8528
8529 * fontset.c (fontset_from_font): Copy font_spec before changing
8530 the elements.
8531
8532 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8533
85342008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8535
8536 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8537 for explicit `font' parameters.
8538
8539 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8540
85412008-06-19 Kenichi Handa <handa@m17n.org>
8542
8543 * frame.c: Include <ctype.h>.
8544 (x_set_font_backend): Allow spacing characters in the X resource
8545 for FontBackend.
8546
85472008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8548
8549 * w32fns.c, xfns.c (Qfont_param): New var.
8550 (syms_of_w32fns): Initialize it.
8551 (x_default_font_parameter): Record explicit `font' into
8552 `font-parameter'.
8553
85542008-06-18 Kenichi Handa <handa@m17n.org>
8555
8556 * font.c (font_parse_xlfd): Fix previous change.
8557 (font_parse_fcname): Don't use :fc-unknown-spec.
8558 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8559 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8560 (font_add_log): Prepend the driver name to the resulting fonts.
8561
8562 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8563 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8564 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8565
8566 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8567 (QCembolden): New variables.
8568 (syms_of_xftfont): DEFSYM them.
8569 (xftfont_open): Call XftFontMatch. Don't trust the result of
8570 XftTextExtents8 if the pixel_size is less than 5.
8571
85722008-06-18 Andreas Schwab <schwab@suse.de>
8573
8574 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8575 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8576
85772008-06-18 Jason Rumney <jasonr@gnu.org>
8578
8579 * w32font.c (w32font_list, w32font_match): Add logging.
8580
8581 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8582
85832008-06-17 Chong Yidong <cyd@stupidchicken.com>
8584
8585 * font.c (font_parse_fcname): Store divider characters for
8586 unknown-spec list. For known key symbols, intern using correct
8587 symbol name.
8588
85892008-06-17 Kenichi Handa <handa@m17n.org>
8590
8591 * xfaces.c (realize_default_face): If the frame is not on window
8592 system, set the fontset of face to nil.
8593
85942008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8595
8596 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8597
85982008-06-16 Juanma Barranquero <lekktu@gmail.com>
8599
8600 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8601 (build_font_name_from_vector): Delete externs.
8602
8603 * xfaces.c (struct font_name): Don't declare.
8604
86052008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8606
8607 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8608
86092008-06-16 Chong Yidong <cyd@stupidchicken.com>
8610
8611 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8612
86132008-06-16 Juanma Barranquero <lekktu@gmail.com>
8614
8615 * font.c (Ffont_spec): Fix usage in docstring.
8616 (Ffont_face_attributes): Doc fix.
8617
86182008-06-16 Andreas Schwab <schwab@suse.de>
8619
8620 * font.c (Ffont_face_attributes): Fix definition.
8621
86222008-06-16 Jason Rumney <jasonr@gnu.org>
8623
8624 * font.h (font_style_symbolic_from_value): Remove.
8625
8626 * font.c (font_style_symbolic_from_value): Remove.
8627 (font_style_symbolic): Revert to pre 2008-06-13 version.
8628
8629 * w32font.c (w32_to_fc_weight): New function.
8630 (w32font_full_name, logfont_to_fcname): Use it.
8631
86322008-06-16 Kenichi Handa <handa@m17n.org>
8633
8634 * font.c (font_check_object): Delete it.
8635 (font_clear_cache): Check if a font-object is alive.
8636 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8637 font-object to nil.
8638 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8639 (font_at): Don't call font_check_object.
8640 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8641
86422008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8643
8644 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8645
86462008-06-16 Chong Yidong <cyd@stupidchicken.com>
8647
8648 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8649
86502008-06-15 Chong Yidong <cyd@stupidchicken.com>
8651
8652 * font.c (font_parse_fcname): Only one decimal point.
8653 (font_unparse_fcname): Handle data in family and foundry indices
8654 as symbols, not strings.
8655 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8656
8657 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8658
8659 * font.h (font_unparse_gtkname): Add prototype.
8660
86612008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8662
8663 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8664
86652008-06-15 Andreas Schwab <schwab@suse.de>
8666
8667 * font.c (font_update_drivers): Fix crash when no drivers match.
8668
86692008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8670
8671 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8672 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8673
86742008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8675
8676 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8677
86782008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8679
8680 * process.c (Fserial_process_configure, Fprocess_send_eof):
8681 Use EQ to compare Lisp_Objects.
8682
86832008-06-13 Jason Rumney <jasonr@gnu.org>
8684
8685 * w32fns.c (Fw32_select_font): Remove old font API function.
8686
8687 * w32font.c (logfont_to_fcname): New function.
8688 (Fx_select_font): New font dialog function compatible with
8689 GTK/fontconfig version.
8690
8691 * font.c (font_style_symbolic_from_value): New function.
8692 (font_style_symbolic): Use it.
8693
8694 * font.h (font_style_symbolic_from_value): Declare new function.
8695
86962008-06-13 Juanma Barranquero <lekktu@gmail.com>
8697
8698 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8699 <font-width-table>: Fix typos in docstrings.
8700
87012008-06-13 Daniel Engeler <engeler@gmail.com>
8702
8703 These changes add serial port access.
8704 * process.c: Add HAVE_SERIAL.
8705 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8706 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8707 (list_processes_1, select_wrapper, Fstop_process)
8708 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8709 (status_notify): Modify to handle serial processes.
8710 [HAVE_SERIAL] (Fserial_process_configure)
8711 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8712 New functions.
8713 * process.h (struct Lisp_Process): Add `type'.
8714 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8715 New functions.
8716 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8717 serial ports.
b71ac3dd 8718 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8719 * w32.h: Add FILE_SERIAL.
8720 (struct _child_process): Add ovl_read, ovl_write.
8721
87222008-06-13 Kenichi Handa <handa@m17n.org>
8723
8724 * dispextern.h (enum lface_attribute_index): New member
8725 LFACE_FOUNDRY_INDEX.
8726
8727 * font.c (font_score): Delete arg alternate_families. Check only
8728 weight, slant, width, and size. Ignore the difference of alias
8729 style symbols.
8730 (font_sort_entites): Adjust for the above change. Reflect the
8731 order of font-driver to scores.
8732 (font_list_entities): Don't check alternate_familes here.
8733 (font_clear_prop): Handle foundry.
8734 (font_update_lface): Don't parse "foundry-family" form here.
8735 Handle FONT_FOUNDRY_INDEX.
8736 (font_find_for_lface): Likewise. Handle alternate families here.
8737 If registry is nil, try iso8859-1 and ascii-0.
8738 (font_open_for_lface): Pay attention to size in ENTITY.
8739 (font_open_by_name): Simplify by calling font_load_for_lface.
8740 (free_font_driver_list): Delete it.
8741 (font_update_drivers): Preserve the order of backends.
8742 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8743 of font_score and font_sort_entites.
8744 (font_update_sort_order): Likewise.
8745
8746 * xfaces.c (LFACE_FOUNDRY): New macro.
8747 (check_lface_attrs): Check foundry.
8748 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8749 (merge_face_vectors): Check foundry.
8750 (merge_face_ref): Likewise.
8751 (Finternal_set_lisp_face_attribute): Likewise.
8752 (x_update_menu_appearance): Likewise.
8753 (Finternal_get_lisp_face_attribute): Likewise.
8754 (lface_hash): Likewise.
8755 (lface_same_font_attributes_p): Likewise.
8756 (x_supports_face_attributes_p): Likewise.
8757 (tty_supports_face_attributes_p): Likewise.
8758 (Finternal_set_alternative_font_family_alist): Intern strings.
8759 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8760 (realize_default_face): Set LFACE_FOUNDRY (lface).
8761
8762 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8763 font-driver at first.
8764
8765 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8766
87672008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8768
8769 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8770
87712008-06-12 Jim Meyering <meyering@redhat.com>
8772
8773 Make unexec_free handle NULL the same way free does.
8774 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8775
87762008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8777
8778 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8779 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8780 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8781 (WEAK_ALIAS): Simplify.
8782 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8783 when searching a unibyte buffer.
8784
87852008-06-12 Chong Yidong <cyd@stupidchicken.com>
8786
8787 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8788
87892008-06-12 Juanma Barranquero <lekktu@gmail.com>
8790
8791 * w32font.c: Include ctype.h.
8792
87932008-06-11 Jason Rumney <jasonr@gnu.org>
8794
8795 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8796 misreported as space.
8797 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8798 as aliases for registry iso10646-1.
8799
88002008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8801
8802 * buffer.c (clone_per_buffer_values): Skip `name'.
8803
88042008-06-11 Chong Yidong <cyd@stupidchicken.com>
8805
8806 * font.c (font_parse_fcname): Fix last change; accept decimal
8807 points in font size.
8808
88092008-06-10 Jason Rumney <jasonr@gnu.org>
8810
8811 * w32uniscribe.c (add_opentype_font_name_to_list):
8812 Skip non unicode fonts.
8813
88142008-06-10 Chong Yidong <cyd@stupidchicken.com>
8815
8816 * xfns.c (Fx_font_dialog): New function.
8817
8818 * gtkutil.c (xg_dialog_response_cb): Rename from
8819 xg_file_response_callback.
8820 (pop_down_dialog): Rename from pop_down_file_dialog.
8821 (xg_get_file_name): Callers changed.
8822 (xg_get_font_name): New function.
8823
8824 * gtkutil.h (xg_get_font_name): Insert prototype.
8825
88262008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8827
8828 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8829 x_underline_minimum_display_offset.
8830 (syms_of_xdisp): Declare it here rather than in xterm.c.
8831 * dispextern.h (underline_minimum_offset): Declare it.
8832 * w32term.c (x_draw_glyph_string): Use it.
8833 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8834 (syms_of_xterm): Don't declare it any more.
8835 (x_draw_glyph_string): Adjust to the new name.
8836
88372008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8838
8839 * xterm.c (x_underline_minimum_display_offset): New var.
8840 (x_draw_glyph_string): Use it.
8841 (syms_of_xterm): Declare it.
8842
88432008-06-10 Chong Yidong <cyd@stupidchicken.com>
8844
8845 * font.c (font_parse_fcname): Accept GTK-style font names too.
8846
88472008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8848
8849 * dired.c (file_name_completion): Don't return t if the match is exact
8850 but with different capitalization.
8851 * minibuf.c (Ftry_completion): Simplify.
8852
8853 * window.c (Vwindow_point_insertion_type): New var.
8854 (set_window_buffer): Use it.
8855 (syms_of_window): Init and export it to Lisp.
8856
88572008-06-10 Kenichi Handa <handa@m17n.org>
8858
8859 * font.h (font_intern_prop): Prototype adjusted.
8860
8861 * font.c (font_intern_prop): New arg force_symbol.
8862 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8863 Adjust for the change of font_intern_prop.
8864
8865 * ftfont.c (ftfont_pattern_entity):
8866 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8867 (w32_registry):
8868 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8869 the change of font_intern_prop.
8870
88712008-06-09 Juanma Barranquero <lekktu@gmail.com>
8872
8873 * w32menu.c (digest_single_submenu): Declare extern.
8874
88752008-06-09 Jason Rumney <jasonr@gnu.org>
8876
8877 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8878
8879 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8880 (parse_single_submenu): Remove.
8881 (digest_single_submenu): Remove.
8882 (syms_of_w32menu): Don't initialise variables that have moved
8883 to menu.c.
8884 (set_frame_menubar): Sync with version in xmenu.c.
8885 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8886
8887 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8888 Make static again.
8889
88902008-06-09 Jason Rumney <jasonr@gnu.org>
8891
8892 Changes to w32 files related to the move of common menu code
8893 to menu.c on 2008-06-08 by Chong Yidong.
8894
8895 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8896 defs to w32gui.h.
8897 (single_keymap_panes, push_menu_item, push_menu_pane):
8898 Make globally visible.
8899
8900 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8901 (local_free, malloc_widget_value, free_widget_value)
8902 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8903 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8904 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8905 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8906 (menu_items, menu_items_allocated, menu_items_used)
8907 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8908 (init_menu_items, finish_menu_items, discard_menu_items)
8909 (grow_menu_items, push_submenu_start, push_submenu_end)
8910 (push_left_right_boundary, push_menu_pane, push_menu_item)
8911 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8912 (free_menubar_widget_tree_value, parse_single_submenu)
8913 (update_submenu_strings): Remove functions.
8914 (xmalloc_widget_value): Remove and declare extern.
8915
8916 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8917 (OBJ1): Build it.
8918
8919 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8920 (local_heap, local_alloc, local_free, malloc_widget_value)
8921 (free_widget_value): Define here.
8922
89232008-06-09 Kenichi Handa <handa@m17n.org>
8924
8925 * font.h (Qascii_0): Extern it.
8926
8927 * font.c (Qascii_0): New variable.
8928 (syms_of_font): DEFSYM it.
8929 (font_open_by_name): If the registry "iso8859-1" fails, try also
8930 "ascii-0".
8931
8932 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8933
89342008-06-08 Kenichi Handa <handa@m17n.org>
8935
8936 * .gdbinit (xfont): New command.
8937
89382008-06-08 Andreas Schwab <schwab@suse.de>
8939
8940 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8941 * Makefile.in (menu.o): Update dependencies.
8942
8943 * Makefile.in (obj): Always add menu.o.
8944 * emacs.c (main): Always call syms_of_menu.
8945 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8946
89472008-06-08 Chong Yidong <cyd@stupidchicken.com>
8948
8949 * Makefile.in: Compile menu.c.
8950
8951 * lisp.h: Declare syms_of_menu.
8952
8953 * emacs.c (main): Call syms_of_menu.
8954
8955 * keyboard.h: Relocate platform-independent menu definitions from
8956 xmenu.c.
8957
8958 * menu.c: New file. Relocate platform-independent menu
8959 definitions from xmenu.c. Suggested by Adrian Robert.
8960
8961 * xmenu.c: Remove platform-independent menu definitions.
8962 (menu_items menu_items_inuse, menu_items_allocated)
8963 (menu_items_used, menu_items_n_panes)
8964 (menu_items_submenu_depth): Move to keyboard.h.
8965 (init_menu_items, finish_menu_items, unuse_menu_items)
8966 (discard_menu_items, restore_menu_items, save_menu_items)
8967 (grow_menu_items, push_submenu_start, push_submenu_end)
8968 (push_left_right_boundary, push_menu_pane, push_menu_item)
8969 (keymap_panes, single_keymap_panes, single_menu_item)
8970 (list_of_panes, list_of_items, find_and_call_menu_selection)
8971 (xmalloc_widget_value, free_menubar_widget_value_tree)
8972 (parse_single_submenu, digest_single_submenu)
8973 (update_submenu_strings): Move to menu.c.
8974
89752008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8976
8977 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8978
89792008-06-06 Miles Bader <miles@gnu.org>
8980
8981 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8982 face, not frame default.
8983
89842008-06-05 Martin Rudalics <rudalics@gmx.at>
8985
8986 * window.c (pop_up_windows, pop_up_frames)
8987 (display_buffer_reuse_frames, Vpop_up_frame_function)
8988 (Vdisplay_buffer_function, Veven_window_heights)
8989 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8990 (Vspecial_display_function, Vsame_window_buffer_names)
8991 (Vsame_window_regexps, split_height_threshold)
8992 (Vsplit_window_preferred_function): Move those vars to window.el.
8993 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8994 (Fdisplay_buffer): Move those functions to window.el.
8995 (syms_of_window): Remove corresponding declarations.
8996 (display_buffer): New function.
8997 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8998 * dispnew.c (Flast_nonminibuf_frame): New function.
8999 * buffer.c (Fpop_to_buffer): Move to window.el.
9000
90012008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9002
9003 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
9004
90052008-06-05 Kenichi Handa <handa@m17n.org>
9006
9007 * coding.c (detect_coding): Fix previous change.
9008 (detect_coding_system): Likewise.
9009
90102008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9011
9012 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
9013
9014 * keymap.c (Vminibuffer_local_filename_must_match_map):
9015 Rename from Vminibuffer_local_must_match_filename_map.
9016 (syms_of_keymap):
9017 * minibuf.c (Fcompleting_read): Adjust accordingly.
9018 * commands.h: Rename declaration as well.
9019
90202008-06-05 Kenichi Handa <handa@m17n.org>
9021
9022 * font.c (Ffont_spec): Don't use font_parse_family_registry for
9023 family name.
9024 (Ffont_put): Likewise.
9025
9026 * fontset.c (fontset_find_font): Call font_open_for_lface with the
9027 current font-spec.
9028
9029 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
9030 is unspecified.
9031
9032 * xfaces.c (realize_x_face): If the font-related face attributes
9033 are the same as those of default face, realize a new fontset from
9034 default->fontset.
9035 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
9036
90372008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
9038
9039 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
9040 (move_it_in_display_line): New wrapper.
9041
9042 * window.c (window_scroll_pixel_based_preserve_x)
9043 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9044 (window_scroll_pixel_based, window_scroll_line_based):
9045 Use them to preserve column positions.
9046 (syms_of_window): Initialize them.
9047
9048 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9049 (HPOS . VPOS) pair.
9050
9051 * dispextern.h (move_it_in_display_line): Declare.
9052
90532008-06-05 Juanma Barranquero <lekktu@gmail.com>
9054
9055 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9056 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9057 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9058
90592008-06-04 Juanma Barranquero <lekktu@gmail.com>
9060
9061 * window.c (Fset_window_parameter): Doc fix.
9062 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9063
90642008-06-04 Joakim Verona <joakim@verona.se>
9065
9066 * window.h (struct window): Add new member window_parameters.
9067
9068 * window.c (Fwindow_parameters, Fwindow_parameter)
9069 (Fset_window_parameter): New defuns.
9070 (syms_of_window): Defsubr the new defuns.
9071 (make_window): Initialize window_parameters to nil.
9072
90732008-06-04 John Paul Wallington <jpw@pobox.com>
9074
9075 * eval.c (Fdefmacro): Doc fix.
9076
90772008-06-04 Kenichi Handa <handa@m17n.org>
9078
9079 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9080 Be sure to call setup_coding_system when we find a proper coding system.
9081 (detect_coding_system): Fix handling of coding->head_ascii.
9082
90832008-06-03 Andreas Schwab <schwab@suse.de>
9084
9085 * font.c (font_prop_validate_spacing): Fix last change.
9086
90872008-06-03 Kenichi Handa <handa@m17n.org>
9088
9089 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9090 (font_parse_fcname): Fix handling of unknown key.
9091
9092 * xfont.c (xfont_list): Try an alias.
9093
9094 * charset.c (char_charset): Return NULL if the arg charset_list is
9095 specified and C doesn't belong to any of them.
9096
90972008-06-02 Chip Coldwell <coldwell@redhat.com>
9098
9099 * font.c (font_pixel_size): Don't take cdr of an integer.
9100
91012008-06-02 Jim Meyering <meyering@redhat.com>
9102
9103 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9104 * alloc.c (xfree): Return right away for a NULL arg.
9105 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9106 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9107 * mac.c (create_apple_event_from_event_ref): Likewise.
9108 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9109 Likewise.
9110 * doprnt.c (doprnt1): Likewise.
9111 * frame.c (frame): Likewise.
9112 * keyboard.c (wipe_kboard): Likewise.
9113 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9114 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9115 * term.c (tty_default_color_capabilities, maybe_fatal)
9116 (delete_tty): Likewise.
9117 * w16select.c (string): Likewise.
9118 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9119 * w32bdf.c (w32_free_bdf_font): Likewise.
9120 * w32fns.c (w32_unload_font): Likewise.
9121 * w32font.c (w32font_close): Likewise.
9122 * window.c (size_window): Likewise.
9123 * xselect.c (receive_incremental_selection): Likewise.
9124 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9125 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9126 * w32.c (stat): Likewise.
9127
9128 Remove useless if-before-free tests.
9129 * editfns.c (Fset_time_zone_rule): Likewise.
9130 * lread.c (nosuffix): Likewise.
9131 * ralloc.c (get_bloc): Likewise.
9132 * regex.c (reg_free): Likewise.
9133 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9134 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9135 * xsmfns.c (smc_save_yourself_CB): Likewise.
9136
91372008-06-02 Kenichi Handa <handa@m17n.org>
9138
9139 * font.c (font_find_for_lface): Handle float font size.
9140 (font_open_for_lface): Likewise.
9141
9142 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9143 comparing the properties.
9144
91452008-06-01 Jason Rumney <jasonr@gnu.org>
9146
9147 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9148 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9149 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9150 Don't add empty script list.
9151 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9152
91532008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9154
9155 * Makefile.in (dot, dotdot): Remove, update users.
9156 ".." has been used elsewhere in the file for a long time.
9157 (LIBXT_STATIC): Remove conditional based on unused variable.
9158
91592008-06-01 Miles Bader <miles@gnu.org>
9160
9161 * xfaces.c (Vface_remapping_alist): New variable.
9162 (syms_of_xfaces): Initialize it.
9163 (enum named_merge_point_kind): New type.
9164 (struct named_merge_point): Add `named_merge_point_kind' field.
9165 (push_named_merge_point): Make cycle detection respect different
9166 named-merge-point kinds.
9167 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9168 Remove face-name alias resolution.
9169 (lface_from_face_name): New definition using
9170 `lface_from_face_name_no_resolve'.
9171 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9172 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9173 (get_lface_attributes): New definition that layers face-remapping on
9174 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9175 (lookup_basic_face): New function.
9176 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9177 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9178 `get_lface_attributes'.
9179 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9180 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9181 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9182
9183 * xdisp.c (init_iterator): Pass base_face_id through
9184 `lookup_basic_face' when we actually use it as a face-id.
9185 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9186 DEFAULT_FACE_ID.
9187
9188 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9189 lookup the initial face-id.
9190
9191 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9192
91932008-06-01 Juanma Barranquero <lekktu@gmail.com>
9194
9195 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9196 (Fremove_text_properties): Fix typos in docstrings.
9197
91982008-05-31 Kenichi Handa <handa@m17n.org>
9199
9200 * font.c (font_list_entities): Fix the car part of data to be
9201 stored in the cache.
9202
9203 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9204
92052008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9206
9207 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9208 Add a `test' argument so another predicate than `equal' can be used.
9209 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9210 (map_char_table): Remove unused vars `c' and `i'.
9211 * lisp.h (Foptimize_char_table): Adjust declaration.
9212 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9213
92142008-05-30 Kenichi Handa <handa@m17n.org>
9215
9216 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9217 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9218 defined.
9219
92202008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9221
9222 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9223 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9224 frame-local settings for the same variable.
9225
92262008-05-30 Kenichi Handa <handa@m17n.org>
9227
9228 * fontset.c (Ffont_info): Move to font.c.
9229 (syms_of_fontset): Delete defsubr of Sfont_info.
9230
9231 * font.c (font_style_to_value, font_score): Delete casting of the
9232 args to xstcasecmp.
9233 (register_font_driver): Increment num_font_drivers only when
9234 registering the driver globally.
9235 (Ffont_info): Move from fontset.c. Handle a font object too.
9236 (syms_of_font): Defsubr Sfont_info.
9237
92382008-05-29 Kenichi Handa <handa@m17n.org>
9239
9240 * coding.h (enum define_coding_utf8_arg_index): New enum.
9241 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9242 coding_attr_utf_bom.
9243 (enum utf_bom_type): Rename from utf_16_bom_type.
9244 (struct utf_16_spec): Adjust for the above change.
9245 (struct coding_system): Add utf_8_bom in `spec' union.
9246
9247 * coding.c (CODING_UTF_8_BOM): New macro.
9248 (enum coding_category): Delete coding_category_utf_8, add
9249 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9250 coding_category_utf_8_sig.
9251 (CATEGORY_MASK_UTF_8): Delete it.
9252 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9253 (CATEGORY_MASK_UTF_8_SIG): New macros.
9254 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9255 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9256 CATEGORY_MASK_UTF_8_SIG.
9257 (CATEGORY_MASK_UTF_8): New macro.
9258 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9259 (detect_coding_utf_8): Check BOM.
9260 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9261 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9262 (encode_coding_utf_16): Likewise.
9263 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9264 (detect_coding, detect_coding_system): Handle utf-8-auto.
9265 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9266 (syms_of_coding): Fix setting up of Vcoding_category_table.
9267
92682008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9269
9270 * process.c (Faccept_process_output): If `millisec' is non-nil,
9271 `seconds' default to 0.
9272 (wait_reading_process_output): Also return non-nil if we read output
9273 from a non-running process.
9274
92752008-05-29 Jason Rumney <jasonr@gnu.org>
9276
9277 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9278 `raster' specified.
9279 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9280 in the uniscribe backend, but disallow any font that has no
9281 unicode subrange support.
9282
92832008-05-29 Juanma Barranquero <lekktu@gmail.com>
9284
9285 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9286 Fix typos in docstrings.
9287
92882008-05-29 Kenichi Handa <handa@m17n.org>
9289
9290 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9291 (Fx_family_fonts): Set frame correctly.
9292
92932008-05-28 Jason Rumney <jasonr@gnu.org>
9294
9295 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9296
92972008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9298
9299 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9300 calling build_annotations.
9301
93022008-05-28 Juanma Barranquero <lekktu@gmail.com>
9303
9304 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9305 (Fencode_coding_string):
9306 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9307 <latin-extra-code-table>: Fix typos in docstrings.
9308 (syms_of_coding) <coding-system-alist>: Doc fix.
9309 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9310
93112008-05-28 Kenichi Handa <handa@m17n.org>
9312
9313 * fontset.c (Ffont_info): Don't call font_close_object.
9314
9315 * font.c (font_parse_family_registry): Use Ffont_put to validate
9316 foundry and family.
9317 (font_delete_unmatched): Don't check spacing.
9318 (font_list_entities): Add spacing to the spec to list fonts.
9319
9320 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9321 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9322
9323 * coding.c (encode_coding_raw_text): Fix previous change.
9324 (encode_coding_object): When the dst_object is a buffer and is
9325 different from src_object, move gap to PT.
9326
93272008-05-27 Chong Yidong <cyd@stupidchicken.com>
9328
9329 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9330
93312008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9332
9333 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9334 all branches. Compute it differently.
9335
9336 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9337
93382008-05-27 Juanma Barranquero <lekktu@gmail.com>
9339
9340 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9341 into "else if () ... else ...".
9342
93432008-05-27 Jason Rumney <jasonr@gnu.org>
9344
9345 * w32font.c (w32font_open_internal): Determine if glyph indices
9346 are likely to work here.
9347
93482008-05-27 Chong Yidong <cyd@stupidchicken.com>
9349
9350 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9351 draw overlap glyphs with appropriate highlighting.
9352
93532008-05-27 Kenichi Handa <handa@m17n.org>
9354
9355 * xfont.c (xfont_open): Fix calculation of font->average_width.
9356
93572008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9358
9359 * casefiddle.c (casify_object): Try to guess better whether the
9360 argument is a byte or a char.
9361
93622008-05-26 Andreas Schwab <schwab@suse.de>
9363
9364 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9365 Always send multiples of format size.
9366
9367 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9368
93692008-05-26 Jason Rumney <jasonr@gnu.org>
9370
9371 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9372 (compute_metrics): Don't set failure if we just cleared the cache.
9373 (w32_weight_table): Remove unused variable.
9374 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9375 backwards compatibility.
9376
93772008-05-25 Kenichi Handa <handa@m17n.org>
9378
9379 * w32term.c (x_draw_glyph_string):
9380 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9381
9382 * xfaces.c: Delete unused function prototypes.
9383 (xstrlwr, font_frame): Delete them.
9384 (clear_face_cache): Delete unused variable.
9385
9386 * xftfont.c (xftfont_open): Delete unused variable.
9387 If underline_thickness is not 1, adjust underline_position.
9388
9389 * ftxfont.c (ftxfont_open): Delete unused variable.
9390
9391 * fontset.c (face_for_char): Optimize for the case of no charset
9392 property.
9393
9394 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9395 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9396 (otf_open, font_otf_capability, generate_otf_features)
9397 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9398 Comment out by surrounding "#if 0" and "#endif" for the moment.
9399 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9400 (syms_of_font): Codes for accessing above commented out.
9401
94022008-05-24 Eli Zaretskii <eliz@gnu.org>
9403
9404 * w32proc.c: Include dispextern.h.
9405
9406 * w32.c: Include dispextern.h.
9407
94082008-05-23 Juanma Barranquero <lekktu@gmail.com>
9409
9410 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9411 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9412 Fix typos in docstrings.
9413
94142008-05-23 Jason Rumney <jasonr@gnu.org>
9415
9416 * xsmfns.c: Remove includes that are already included by config.h.
9417
94182008-05-23 Kenichi Handa <handa@m17n.org>
9419
9420 * charset.c (Qemacs, charset_emacs): New variables.
9421 (char_charset): Fix for non-Unicode characters.
9422 (syms_of_charset): Define charset_emacs.
9423
9424 * w32term.c (x_draw_glyph_string): Be sure to update
9425 s->underline_thickness and s->underline_position. Be sure to draw
9426 underline within the current line area.
9427
9428 * xterm.c (x_draw_glyph_string): Be sure to update
9429 s->underline_thickness and s->underline_position. Be sure to draw
9430 underline within the current line area.
9431
9432 * fontset.c: Delete unused variables and add casting for char *
9433 throughout the file.
9434 (fontset_font): Try the fallback fonts of the current fontset
9435 before consulting the default fontset.
9436
9437 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9438
9439 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9440
94412008-05-22 Jason Rumney <jasonr@gnu.org>
9442
9443 * font.c: Don't include strings.h.
9444
9445 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9446
9447 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9448 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9449 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9450 to call xstrcasecmp.
9451
9452 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9453
9454 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9455
9456 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9457
9458 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9459
94602008-05-22 Kenichi Handa <handa@m17n.org>
9461
9462 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9463
9464 * font.c (font_prop_validate_style): Adjust for the format
9465 change of font_style_table.
9466
9467 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9468 two args.
9469
9470 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9471 two args.
9472
94732008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9474
9475 * minibuf.c (keys_of_minibuf): Delete.
9476 * lisp.h (keys_of_minibuf): Delete.
9477 * emacs.c (main): Don't call keys_of_minibuf.
9478
94792008-05-22 Kenichi Handa <handa@m17n.org>
9480
9481 * ftfont.c (ftfont_resolve_generic_family): Rename from
9482 ftfont_list_generic_family. Return a single family for each
9483 generic family.
9484 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9485 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9486 Call font_add_log.
9487 (ftfont_match): Call font_add_log.
9488
9489 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9490 (FONT_DEBUG): Define it.
9491 (font_add_log): Extern it.
9492 (font_assert): Rename from xassert.
9493
9494 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9495 (xfont_list_family): Call font_add_log.
9496 (xfont_match): Likewise.
9497 (memq_no_quit): Delete.
9498
9499 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9500 call of Ffont_xlfd_name.
9501
9502 * xfaces.c (struct table_entry, slant_table, weight_table)
9503 (swidth_table): Move to font.c.
9504
9505 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9506 xassert are changed to font_assert. Delete many unused variables.
9507 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9508 New variables.
9509 (struct table_entry): Move from xfaces.c and modified.
9510 (weight_table, slant_table, width_table): Move from xfaces.c and
9511 contents adjusted for the change of struct table_entry.
9512 (font_style_to_value, font_style_symbolic): Adjust for the
9513 format change of font_style_table.
9514 (font_parse_family_registry): Don't overwrite existing foundry and
9515 family of font_spec.
9516 (font_score): Fix calculation of diff for sizes.
9517 (font_sort_entites): Call font_add_log.
9518 (font_delete_unmatched): Return a newly created list.
9519 (font_list_entities): Fix previous change. Call font_add_log.
9520 (font_matching_entity, font_open_entity, font_close_entity):
9521 Call font_add_log.
9522 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9523 (Finternal_set_font_style_table): Delete.
9524 (BUILD_STYLE_TABLE): New macro.
9525 (build_style_table): New function.
9526 (Vfont_log, font_log_env_checked): New variables.
9527 (font_add_log): New function.
9528 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9529 Declare Lisp variables "font-weight-table", "font-slant-table",
9530 "font-width-table", and "font-log". Initialize font_style_table.
9531
95322008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9533
9534 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9535
95362008-05-21 Seiji Zenitani <zenitani@mac.com>
9537 Ryo Yoshitake <ryo@shiftmode.net>
9538
9539 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9540 (Vframe_alpha_lower_limit): New variable.
9541 (x_set_alpha): New function.
9542
9543 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9544
9545 * xfns.c (x-create-frame, Qalpha):
9546 Initialize the frame parameter `alpha'.
9547 * xterm.c (OPAQUE, OPACITY): New.
9548 (x_set_frame_alpha): New function.
9549 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9550
9551 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9552 * w32fns.c (w32_frame_parm_handlers): Likewise.
9553
95542008-05-20 Jason Rumney <jasonr@gnu.org>
9555
9556 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9557 truetype fonts to opentype list.
9558
95592008-05-20 Juanma Barranquero <lekktu@gmail.com>
9560
9561 * fontset.c (Ffontset_info): Doc fix.
9562 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9563 <ignore-relative-composition>: Fix typos in docstrings.
9564
9565 * font.c (syms-of-font) <font-encoding-alist>:
9566 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9567 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9568 (Ffont_otf_alternates): Doc fixes.
9569
95702008-05-20 Kenichi Handa <handa@m17n.org>
9571
9572 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9573 font.h through out the file.
9574 (FONT_DRIVERS): Rename from FONTOBJ.
9575 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9576 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9577
9578 * emacs.c (main): Call syms_of_font unconditionally.
9579
9580 * font.h (find_font_encoding): Extern it.
9581
9582 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9583 fontset.c.
9584 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9585 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9586 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9587 only when HAVE_WINDOW_SYSTEM is defined.
9588 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9589 when HAVE_WINDOW_SYSTEM is defined.
9590
9591 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9592 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9593
9594 * xfaces.c: Include font.h unconditionally.
9595 (merge_face_ref, merge_face_vectors)
9596 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9597
95982008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9599
9600 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9601 indirect_variable.
9602 * eval.c (lisp_indirect_variable): New fun.
9603 (Fuser_variable_p): Use it.
9604
96052008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9606
9607 * lisp.h (indirect_variable):
9608 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9609 Use Lisp_Symbol pointers rather than Lisp_Object.
9610 Adjust callers.
9611 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9612 To this end, change calling-convention.
9613
9614 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9615 if some non-hidden buffers are selected by string&pred.
9616
96172008-05-19 Chong Yidong <cyd@stupidchicken.com>
9618
9619 * process.c (wait_reading_process_output): Always check status
9620 when in batch mode.
9621
96222008-05-19 Kenichi Handa <handa@m17n.org>
9623
9624 * font.c (font_list_entities): Fix handling of cache.
9625 (font_matching_entity): Likewise.
9626
9627 * ftfont.c (cs_iso8859_1): Delete.
9628 (ft_face_cache): New variable.
9629 (struct ftfont_info): New member fc_charset_idx.
9630 (ftfont_build_basic_charsets): Delete.
9631 (fc_charset_table): New variable.
9632 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9633 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9634 Callers changed.
9635 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9636 (ftfont_spec_pattern): New argument fc_charset_idx.
9637 Check registry more rigidly. Change callers.
9638 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9639 change of :font-entity property of the font.
9640
9641 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9642 property of the font.
9643
96442008-05-18 Juanma Barranquero <lekktu@gmail.com>
9645
9646 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9647 (Funencodable_char_position, Fcheck_coding_systems_region)
9648 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9649 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9650 (Ffind_operation_coding_system, Fset_coding_system_priority)
9651 (Fcoding_system_eol_type): Doc fixes.
9652
96532008-05-17 Glenn Morris <rgm@gnu.org>
9654
9655 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9656
96572008-05-16 Eli Zaretskii <eliz@gnu.org>
9658
9659 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9660 and st_gid.
9661
9662 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9663 HAVE_WINDOW_SYSTEM is not defined.
9664
9665 * xfaces.c (merge_face_ref, merge_face_vectors)
9666 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9667 HAVE_WINDOW_SYSTEM is defined.
9668 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9669
96702008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9671
9672 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9673
96742008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9675
9676 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9677
96782008-05-15 Kenichi Handa <handa@m17n.org>
9679
9680 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9681 preference.
9682
96832008-05-15 Glenn Morris <rgm@gnu.org>
9684
9685 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9686
96872008-05-15 Chong Yidong <cyd@stupidchicken.com>
9688
9689 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9690 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9691
9692 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9693
96942008-05-15 Kenichi Handa <handa@m17n.org>
9695
9696 * ftfont.c (ftfont_list): Downcase family name to check generic
9697 families.
9698
9699 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9700 font-spec for QCfont value.
9701
9702 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9703 buffer. Check the return value of it.
9704
97052008-05-14 Jason Rumney <jasonr@gnu.org>
9706
9707 * w32term.c (w32_get_glyph_overhangs): Remove.
9708 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9709
97102008-05-14 Kenichi Handa <handa@m17n.org>
9711
9712 * font.c (font_prop_validate): Make nil a valid value.
9713 (font_clear_cache): Check if the cached vector of entities is nil
9714 or not.
9715
97162008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9717
9718 * emacs.c (main_thread): Conditionalize on
9719 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9720 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9721
9722 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9723 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9724 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9725
97262008-05-14 Kenichi Handa <handa@m17n.org>
9727
9728 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9729 has no corresponding coding system.
9730
97312008-05-14 Jason Rumney <jasonr@gnu.org>
9732
9733 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9734
9735 * w32font.h (w32font_open_internal): Update declaration.
9736
9737 * w32font.c (w32font_open_internal): Change last argument from
9738 w32font_info struct to font object. Fill in font object from
9739 font_entity. Get Outline metrics if possible. Use them to
9740 calculate underline position and thickness. Use xlfd name as name
9741 property. Don't set codepage.
9742 (w32font_open): Pass font_object to w32font_open_internal. Don't
9743 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9744 (w32font_draw): Use s->font.
9745 (clear_cached_metrics): Don't clear non-existent blocks.
9746
9747 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9748 font was not found.
9749 (x_draw_glyph_string): Use underline position and thickness from font.
9750
9751 * w32uniscribe.c (uniscribe_open): Pass font_object to
9752 w32font_open_internal.
9753
97542008-05-14 Kenichi Handa <handa@m17n.org>
9755
9756 These changes are to delete all legacy font-handling codes, and
9757 make Emacs use only font-backends.
9758
9759 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9760 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9761
9762 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9763
9764 * charset.h (Vcharset_non_preferred_head)
9765 (Vcurrent_iso639_language): Extern them.
9766
9767 * charset.c (Vcharset_non_preferred_head): New variable.
9768 (Vcurrent_iso639_language): New variable.
9769 (syms_of_charset): Declare it as a Lisp variable.
9770 (char_charset): Don't check non preferred charsets. As a last
9771 resort, return charset_unicode.
9772 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9773
9774 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9775 conditionals. Don't check enable_font_backend. Delete all codes
9776 used only when USE_FONT_BACKEND is not defined.
9777
9778 * dispextern.h (struct glyph_string): Change type of `font' to
9779 `struct font *'.
9780 (struct glyph_string): New member underline_position and
9781 underline_thickness.
9782 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9783 (struct face): Change type of `font' to `struct font *'. Remove
9784 members `font_name', `font_info_id'.
9785 (per_char_metric, encode_char): Delete externs.
9786 (calc_pixel_width_or_height): Adjust the prototype.
9787
9788 * emacs.c (enable_font_backend): Delete extern.
9789 (main): Don't set enable_font_backend. Don't check the command
9790 line argument "-disable-font-backend".
9791
9792 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9793 (enum font_property_index): New members FONT_DPI_INDEX,
9794 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9795 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9796 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9797 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9798 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9799 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9800 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9801 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9802 (struct font_spec, struct font_entity): New structs.
9803 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9804 (struct font): Many members from old "struct font_info" moved to
9805 here. Members font and entity deleted.
9806 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9807 the new font-related objects.
9808 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9809 (CHECK_FONT_GET_OBJECT): Likewise.
9810 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9811 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9812 (struct font_driver): New members case_sensitive anc check. Type
9813 of the member list and open changed.
9814 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9815 (font_symbolic_width, font_find_object, font_get_spec)
9816 (font_set_lface_from_name): Delete extern.
9817 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9818
9819 * font.c: Include <strings.h>.
9820 (enable_font_backend): Delete it.
9821 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9822 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9823 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9824 (null_string): Delete it.
9825 (null_vector): Make it static.
9826 (font_family_alist): Delete it.
9827 (Qnormal): Extern it.
9828 (QCextra, QClanguage): Delete it.
9829 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9830 (font_make_spec, font_make_entity, font_make_object)
9831 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9832 the string. Callers changed.
9833 (font_pixel_size): Adjusted for the format change of font-related
9834 objects.
9835 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9836 (font_style_to_value, font_style_symbolic): New function.
9837 (build_font_family_alist): Delete it.
9838 (font_registry_charsets): Use Fassoc_string instead of
9839 assq_no_quit.
9840 (font_prop_validate_symbol): Don't return null_string.
9841 (font_prop_validate_style): Adjusted for the change of
9842 style-related values in a font vector.
9843 (font_property_table): Delete entries for QClanguage and
9844 QCantialias, add entries for QCavgwidth.
9845 (get_font_prop_index): Delete the 2nd argument FROM.
9846 (font_prop_validate): Arguments changed.
9847 (font_put_extra): Adjusted for the change of font-related objects.
9848 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9849 (font_parse_fcname, font_unparse_fcname)
9850 (font_prepare_composition): Likewise.
9851 (font_parse_family_registry): Renamed from font_merge_old_spec.
9852 (otf_open): Delete the 1st arg entity.
9853 (font_otf_capability): Adjusted for the above change.
9854 (font_score): New arg alternate_families. Adjusted for the change
9855 of font-related objects.
9856 (font_sort_entites): New arg best_only.
9857 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9858 Delete them.
9859 (font_match_p): Check alternate families.
9860 (font_find_object): Delete it.
9861 (font_check_object): New function.
9862 (font_clear_cache): Adjusted for the change of font-related objects.
9863 (font_delete_unmatched): New arg.
9864 (font_list_entities): Call font_driver->list with a spec that
9865 doesn't specify style-related properties.
9866 (font_matching_entity): Arguments changed. Caller changed.
9867 (font_open_entity): Adjusted for the change of font-related objects.
9868 (font_close_object, font_has_char, font_encode_char)
9869 (font_get_name, font_get_spec): Likewise.
9870 (font_spec_from_name, font_clear_prop, font_update_lface):
9871 New functions.
9872 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9873 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9874 (font_at): Adjusted for the change of font-related objects.
9875 (font_range): New function.
9876 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9877 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9878 (Fcopy_font_spec, Fmerge_font_spec): New function.
9879 (Ffont_family_list): Renamed from list-families.
9880 (Finternal_set_font_style_table): Arguments changed.
9881 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9882 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9883 change of font-related objects.
9884 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9885
9886 * fontset.h (struct font_info): Delete it. Most members go to
9887 struct font.
9888 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9889 (enum FONT_SPEC_INDEX): Delete it.
9890 (font_info, list_fonts_func, load_font_func, query_font_func)
9891 (set_frame_fontset_func, find_ccl_program_func)
9892 (get_font_repertory_func, new_fontset_from_font_name): Delete
9893 externs.
9894 (fontset_from_font_name): Extern it.
9895 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9896 (FONT_INFO_FROM_FACE): Deleted.
9897 (face_for_font): Adjust prototype.
9898
9899 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9900 conditionals. Don't check enable_font_backend. Delete all codes
9901 used only when USE_FONT_BACKEND is not defined.
9902 (get_font_info_func, list_font_func, load_font_func)
9903 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9904 (get_font_repertory_func): Delete them.
9905 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9906 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9907 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9908 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9909 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9910 (fontset_compare_rfontdef): New function.
9911 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9912 rfont-defs by qsort. Adjusted for the change of font-group vector.
9913 (load_font_get_repertory): Deleted.
9914 (fontset_find_font): Use new macros to ref/set elements of
9915 font-def and rfont-def.
9916 (fontset_font): Fix the timing of remembering that no font for C.
9917 (free_face_fontset): Do nothing if the face has no fontset.
9918 (face_suitable_for_char_p): Use new macros to ref/set elements of
9919 rfont-def.
9920 (face_for_char): Likewise. Call face_for_char with font_object.
9921 (fs_load_font): Delete. Delete #pragma surrounding it.
9922 (fs_query_fontset): Use strcasecmp instead of strcmp.
9923 (generate_ascii_font_name): Adjusted for the format change of
9924 font-spec.
9925 (Fset_fontset_font): Likewise. Use new macros to set elements of
9926 font-def.
9927 (Fnew_fontset): Use font_unparse_xlfd to generate
9928 FONTSET_ASCII (fontset).
9929 (new_fontset_from_font_name): Deleted.
9930 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9931 a fontset is already created for the font. FIx updating of
9932 Vfontset_alias_alist.
9933 (fontset_ascii_font): Deleted.
9934 (Ffont_info): Adjusted for the format change of font-spec.
9935 (Finternal_char_font): Likewise.
9936 (Ffontset_info): Likewise.
9937 (syms_of_fontset): Don't check load_font_func.
9938
9939 * fns.c (internal_equal): Handle PREV_FONT.
9940
9941 * frame.h: Delete USE_FONT_BACKEND conditional.
9942
9943 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9944 conditionals. Don't check enable_font_backend. Delete all codes
9945 used only when USE_FONT_BACKEND is not defined.
9946 (x_set_font): Call x_new_font, not x_new_fontset2.
9947 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9948 already set for the frame.
9949
9950 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9951 a font-entity by font_make_entity. Use font_intern_prop instead
9952 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9953 font property. If a font is scalable, set avgwidth property to 0.
9954 Set font-entity property by font_put_extra.
9955 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9956 (ffont_driver): Adjusted for the change of struct font_driver.
9957 (ftfont_spec_pattern): New function.
9958 (ftfont_list): Return a list, not vector.
9959 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9960 (ftfont_list_family): Don't downcase names.
9961 (ftfont_free_entity): Deleted.
9962 (ftfont_open): Return a font-object. Adjusted for the change of
9963 struct font. Get underline_thickness and underline_position from
9964 font property. Don't update dpyinfo->smallest_font_height and
9965 dpyinfo->smallest_char_width.
9966 (ftfont_close): Don't free `struct font'.
9967 (ftfont_has_char): Adjusted for the format change of font-entity.
9968 (ftfont_encode_char, ftfont_text_extents): Likewise.
9969
9970 * ftxfont.c (ftxfont_list): Return a list, not vector.
9971 (ftxfont_open): Return a font-object. Adjusted for the change of
9972 struct font. Get underline_thickness and underline_position from
9973 font property. Don't update dpyinfo->smallest_font_height and
9974 dpyinfo->smallest_char_width.
9975 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9976 (ftxfont_draw): Adjusted for the change of struct font.
9977
9978 * image.c (image_ascent): Don't include "charset.h". Include
9979 "character.h" and "font.h".
9980
9981 * lisp.h (enum pvec_type): New member PREV_FONT.
9982 (Fassoc_string): EXFUN it.
9983
9984 * print.c: Include font.h.
9985 (print_object): Handle font-related objects.
9986
9987 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9988 conditionals. Don't check enable_font_backend. Delete all codes
9989 used only when USE_FONT_BACKEND is not defined.
9990 (handle_auto_composed_prop): Do nothing if it->f is not on a
9991 window system. Check how many following characters can be
9992 displayed by the same font.
9993 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9994 'struct font *'.
9995 (get_char_face_and_encoding): Assign the whole encoding task to
9996 the `encode-char' method of a font driver.
9997 (fill_composite_glyph_string): Adjusted for the change of `struct
9998 face' and `struct glyph_string'.
9999 (fill_glyph_string): Likewise.
10000 (get_per_char_metric): Arguments changed.
10001 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
10002 and `struct glyph_string'.
10003 (produce_stretch_glyph, calc_line_height_property)
10004 (x_produce_glyphs): Likewise.
10005
10006 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
10007 conditionals. Don't check enable_font_backend. Delete all codes
10008 used only when USE_FONT_BACKEND is not defined. Use
10009 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
10010 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
10011 (Qp): Extern them.
10012 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
10013 Deleted.
10014 (struct font_name): Deleted.
10015 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
10016 (compare_fonts_by_sort_order): New function.
10017 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
10018 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
10019 Deleted.
10020 (Fx_family_fonts): Use font_list_entities, and sort fonts by
10021 compare_fonts_by_sort_order.
10022 (Fx_font_family_list): Call Ffont_family_list.
10023 (face_numeric_value, face_numeric_weight, face_numeric_slant)
10024 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
10025 (face_symbolic_slant, face_symbolic_swidth)
10026 (split_font_name_into_vector, build_font_name_from_vector)
10027 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
10028 (font_rescale_ratio, split_font_name, build_font_name)
10029 (free_font_names, sort_fonts, x_face_list_fonts)
10030 (face_font_available_p, sorted_font_list, cmp_font_names)
10031 (font_list_1, concat_font_list, font_list, remove_duplicates):
10032 Deleted.
10033 (Fx_list_fonts): Use Ffont_list.
10034 (LFACE_AVGWIDTH): Deleted.
10035 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
10036 by FONTP.
10037 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
10038 (set_lface_from_font_name): Delete it.
10039 (set_lface_from_font): Renamed from
10040 set_lface_from_font_and_fontset. Caller changed. Don't set
10041 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10042 for face.
10043 (merge_face_vectors): Copy font-spec if necessary.
10044 Clear properties of the font-spec if necessary.
10045 (merge_face_ref): Clear properties of the font-spec if necessary.
10046 (Finternal_set_lisp_face_attribute): Likewise.
10047 (set_font_frame_param): Use font_load_for_lface to load a
10048 font-object, and call Fmodify_frame_parameters with it.
10049 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10050 font name by Ffont_xlfd_name.
10051 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10052 QCslant, and QCwidth.
10053 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10054 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10055 Compare fonts by EQ.
10056 (lookup_non_ascii_face): Deleted.
10057 (face_for_font): The 2nd argument changed.
10058 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10059 Check atomic font properties by case insensitive.
10060 (realize_non_ascii_face): Set face->overstrike correctly.
10061 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10062 (dump_realized_face): Get font name from
10063 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10064
10065 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10066 conditionals. Don't check enable_font_backend. Delete all codes
10067 used only when USE_FONT_BACKEND is not defined.
10068 (xic_create_xfontset): Original code deleted and renamed from
10069 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10070 (x_make_gc): Don't set GCFont in GCs.
10071 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10072 opened by "fixed".
10073 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10074 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10075 get_font_repertory_func.
10076
10077 * xfont.c: Include <stdlib.h> and "ccl.h".
10078 (struct xfont_info): New structure.
10079 (xfont_query_font): Deleted.
10080 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10081 moved from xterm.c.
10082 (xfont_driver): Adjusted for the change of struct font_driver.
10083 (compare_font_names): New function.
10084 (xfont_list_pattern): Sort font names case insensitively. Make
10085 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10086 (xfont_list): Return a list, not vector.
10087 (xfont_match): If the font doesn't have QCname property, generate
10088 a name from the other font properties.
10089 (xfont_open): Return a font-object. Adjusted for the change of
10090 struct font. Get underline_thickness and underline_position from
10091 font property. Don't update dpyinfo->smallest_font_height and
10092 dpyinfo->smallest_char_width.
10093 (xfont_close): Don't free struct font.
10094 (xfont_prepare_face): Adjusted for the change of struct font.
10095 (xfont_done_face): Deleted.
10096 (xfont_has_char): Adjusted for the change of struct font.
10097 (xfont_encode_char, xfont_draw): Likewise.
10098 (xfont_check): New function.
10099
10100 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10101 callback function.
10102 (xftfont_match): Adjusted for the format change of font-entity.
10103 (xftfont_open): Adjusted for the format change of font-entity and
10104 font-object. Adjusted for the change of struct font. Return a
10105 font-object. Don't update dpyinfo->smallest_font_height and
10106 dpyinfo->smallest_char_width.
10107 (xftfont_close): Block input while calling XftFontClose.
10108 (xftfont_prepare_face): Don't block input while calling
10109 xftfont_get_colors. Adjusted for the change of struct font.
10110 (xftfont_shape): Return value of error case fixed.
10111
10112 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10113
10114 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10115 conditionals.
10116 (FONT_WIDTH): Return (f)->max_width.
10117 (struct x_display_info): Delete member `font'.
10118 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10119 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10120 (struct x_output): Change type of `font' to `struct font *'.
10121
10122 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10123 conditionals. Don't check enable_font_backend. Delete all codes
10124 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10125 (x_per_char_metric, x_encode_char): Deleted.
10126 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10127 (x_compute_glyph_string_overhangs): Adjusted for the change of
10128 `struct face'.
10129 (x_draw_glyph_string_foreground)
10130 (x_draw_composite_glyph_string_foreground): Likewise.
10131 (x_draw_glyph_string): Likewise. Use font->underline_position and
10132 font->underline_thickness.
10133 (x_new_font): Renamed from x_new_fontset2.
10134 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10135 (x_check_font): Call `check' method of a font driver.
10136 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10137 (x_query_font, x_get_font_repertory): Deleted.
10138 (x_find_ccl_program): Renamed and moved to xfont.c.
10139 (x_redisplay_interface): Adjusted for the change of `struct
10140 redisplay_interface'.
10141
10142 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10143 conditionals. Don't check enable_font_backend. Delete all codes
10144 used only when USE_FONT_BACKEND is not defined. Surround non-used
10145 code by "#ifdef OLD_FONT" and "endif".
10146 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10147
10148 * w32font.h (struct w32font_info): New member.
10149 (FONT_COMPAT): New macro.
10150 (w32font_open_internal): Prototype adjusted.
10151
10152 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10153 OLD_FONT" and "endif".
10154
10155 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10156 conditionals. Don't check enable_font_backend. Delete all codes
10157 used only when USE_FONT_BACKEND is not defined.
10158 (w32font_open): Return a font-object. Make a font-object by
10159 font_make_object. Adjusted for the change of struct w32font_info.
10160 (w32font_close): Don't free struct font. Adjusted for the change
10161 of struct w32font_info.
10162 (w32font_encode_char, w32font_text_extents, w32font_draw):
10163 Adjusted for the change of struct w32font_info.
10164 (w32font_draw): Likewise.
10165 (w32font_list_internal): Return a list, not vector.
10166 (w32font_open_internal): Change the 4th arg to font-object.
10167 Adjusted for the change of struct w32font_info and font-object format.
10168 (add_font_name_to_list): Don't downcase names.
10169 (w32_enumfont_pattern_entity): Make a font-entity by
10170 font_make_entity. Adjusted for the format change of font-entity.
10171 Use FONT_SET_STYLE to set a style-related font property. If a
10172 font is scalable, set avgwidth property to 0. Set font-entity
10173 property by font_put_extra.
10174 (font_matches_spec): Adjusted for the format change of font-entity.
10175 (w32_weight_table, w32_decode_weight): New variables.
10176 (w32_encode_weight): New function.
10177 (fill_in_logfont): Adjusted for the format change of font-spec.
10178 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10179 weight value.
10180 (w32font_driver): Adjusted for the change of struct font_driver.
10181
10182 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10183 conditionals. Don't check enable_font_backend. Surround non-used
10184 code by "#ifdef OLD_FONT" and "endif".
10185 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10186 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10187
10188 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10189 conditionals. Don't check enable_font_backend. Delete all codes
10190 used only when USE_FONT_BACKEND is not defined. Surround non-used
10191 code by "#ifdef OLD_FONT" and "endif".
10192
10193 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10194 (uniscribe_open): Return value changed to font-object.
10195 Adjusted for the format change of font-object.
10196 (uniscribe_otf_capability): Adjusted for the change of struct font.
10197 (add_opentype_font_name_to_list): Don't downcase names.
10198 (uniscribe_font_driver): Adjusted for the change of struct
10199 font_driver.
10200
102012008-05-13 Chong Yidong <cyd@stupidchicken.com>
10202
10203 * dispnew.c (update_frame_1): Check if tty output is still valid
10204 before flushing it.
10205
102062008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10207
10208 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10209 to Gtk+ menus.
10210
102112008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10212
10213 * dired.c (file_name_completion): Tweak the code so as to always do it
10214 in a single pass. Tighten the scope of some variables.
10215
10216 * dired.c (Qdefault_directory): New var.
10217 (file_name_completion): Use it instead of Fexpand_file_name.
10218 (syms_of_dired): Initialize it.
10219
102202008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10221
10222 * fileio.c (double_dollars): Remove dead code.
10223
102242008-05-10 Eli Zaretskii <eliz@gnu.org>
10225
10226 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10227 Mention w32-get-true-file-attributes in doc string.
10228
10229 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10230
102312008-05-09 Glenn Morris <rgm@gnu.org>
10232
10233 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10234 2008-04-23.
10235
102362008-05-09 Eli Zaretskii <eliz@gnu.org>
10237
10238 Support for reporting owner and group of each file on MS-Windows:
10239 * dired.c (stat_uname, stat_gname): New functions, with special
10240 implementation for w32.
10241 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10242
10243 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10244 (dflt_group_name): New static variable.
10245 (dflt_group): Rename from the_group.
10246 (init_user_info): Init dflt_group fields. Get user's group name
10247 from LookupAccountSid.
10248 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10249 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10250 New initialization states.
10251 (globals_of_w32): Initialize them to zero. Initialize the default
10252 group name to "None".
10253 (GetFileSecurity_Name): New global var, the name of the function
10254 to call for GetFileSecurity.
10255 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10256 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10257 (get_file_security, get_security_descriptor_owner)
10258 (get_security_descriptor_group, is_valid_sid)
10259 (get_file_security_desc, get_rid, get_name_and_id)
10260 (get_file_owner_and_group): New functions.
10261 (stat): Use get_file_security_desc and get_file_owner_and_group to
10262 report the owner and primary group of each file. Don't ignore the
10263 high 32 bits of file's size, now that st_size is 64-bit wide.
10264 Fix test when to get true file attributes.
10265 (init_user_info): Use get_rid instead of equivalent inline code.
10266 (fstat): Don't ignore the high 32 bits of file's size.
10267
102682008-05-09 Chong Yidong <cyd@stupidchicken.com>
10269
10270 * image.c (png_load): Use correct bit-depth for setting background
10271 color.
10272
102732008-05-08 Eli Zaretskii <eliz@gnu.org>
10274
10275 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10276 epa-hook.elc.
10277
102782008-05-08 Juanma Barranquero <lekktu@gmail.com>
10279
10280 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10281
102822008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10283
10284 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10285 because the original parameters are in pure storage now.
10286 (mac_window): Remove unused params. Update callers.
10287
102882008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10289
10290 * lread.c (substitute_object_recurse): Use lower-level primitives.
10291 Don't signal errors when traversing sub-char-tables.
10292 Don't loop over all the possible characters when traversing char-tables.
10293
10294 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10295 just like we do in print.c.
10296
102972008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10298
10299 * minibuf.c (Ftry_completion): Remove code left over from when we used
10300 scmp instead of Fcompare_strings.
10301
103022008-05-04 Juanma Barranquero <lekktu@gmail.com>
10303
10304 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10305
103062008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10307
10308 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10309 Create bitmap context in native byte order.
10310
10311 * macterm.c (XDrawLine)
10312 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10313 context in native byte order.
10314
103152008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10316
10317 * config.in: Regenerate.
10318
10319 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10320 New definitions for Image I/O support.
10321 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10322 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10323 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10324 (mac_data_provider_release_data, image_load_image_io)
10325 [USE_MAC_IMAGE_IO]: New functions.
10326 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10327 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10328 (init_image_func_pointer) [MAC_OSX]: Remove function.
10329 (image_load_quartz2d) [MAC_OSX]: Check availability of
10330 CGImageCreateWithPNGDataProvider at compile time.
10331 Use lowercase `false' for boolean constant.
10332 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10333 Use image_load_image_io.
10334 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10335 Don't check MyCGImageCreateWithPNGDataProvider.
10336 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10337 Don't call init_image_func_pointer.
10338
10339 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10340
10341 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10342 Make variable non-static.
10343 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10344 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10345
10346 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10347 (RED_FROM_ULONG): Mask off higher bits.
10348 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10349
10350 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10351 Include AvailabilityMacros.h.
10352 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10353 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10354
103552008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10356
10357 * chartab.c (Fset_char_table_range): If range is t, really set all
10358 chars to that value.
10359
103602008-05-03 Eli Zaretskii <eliz@gnu.org>
10361
10362 * dired.c (Ffile_attributes): Don't allow the device number become
10363 negative.
10364
103652008-05-02 Daiki Ueno <ueno@unixuser.org>
10366
10367 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10368
103692008-05-02 Juri Linkov <juri@jurta.org>
10370
10371 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10372 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10373 DEFAULT argument as a list of default values in docstrings.
10374
103752008-05-01 Chong Yidong <cyd@stupidchicken.com>
10376
10377 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10378
103792008-05-01 Martin Rudalics <rudalics@gmx.at>
10380
10381 * dispnew.c (change_frame_size_1): Preserve small windows when
10382 shrinking frames by calling set_window_height|width with third
10383 arg 2.
10384
10385 * window.h (struct window): Replace field too_small_ok by field
10386 resize_proportionally.
10387
10388 * window.c (make_window): Initialize resize_proportionally.
10389 (enlarge_window): Temporarily set resize_proportionally to make
10390 sure that shrink_windows does scale the window proportionally.
10391 (shrink_windows): When window has resize_proportionally set try
10392 to shrink it proportionally by stealing from other windows.
10393 (struct saved_window, Fset_window_configuration)
10394 (compare_window_configurations): Handle resize_proportionally.
10395 (WINDOW_TOTAL_SIZE): New macro.
10396 (window_min_size, shrink_windows, size_window): Use it.
10397 (check_min_window_sizes): Remove. Invalid values of
10398 window-min-height|width are handled by window_min_size_2 now.
10399 (size_window, Fsplit_window, enlarge_window)
10400 (adjust_window_trailing_edge, grow_mini_window): Don't call
10401 check_min_window_sizes.
10402 (window_min_size_2, window_min_size_1, window_min_size):
10403 New argument safe_p for retrieving "safe" minimum sizes.
10404 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10405 (adjust_window_trailing_edge, grow_mini_window):
10406 Adjust arguments of window_min_size... functions.
10407 (shrink_windows): Argument min_size removed. New argument
10408 safe_p allows shrinking windows to their safe minimum sizes.
10409 Calculate minimum size and decide whether a window shall be
10410 deleted for each window individually.
10411 (size_window): When nodelete_p equals 2, tell shrink_windows to
10412 delete windows only if their new minimum size is no more safe.
10413 (shrink_window_lowest_first): Call window_min_size_1 to make
10414 sure to preserve modeline of bottom-most window when resizing
10415 the minibuffer.
10416 (Fset_window_configuration, Fcurrent_window_configuration)
10417 (compare_window_configurations): Do not handle
10418 window-min-height|width any more.
10419 (syms_of_window): Clarify window-min-height|width doc-strings.
10420
104212008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10422
10423 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10424 some more. Copy some of the code from Ftry_completions.
10425 Remove special case code that dates back to initial revision when the
10426 slash was only added when necessary and that can't trigger nowadays.
10427
104282008-04-27 Kenichi Handa <handa@m17n.org>
10429
10430 * font.c (font_prop_validate): Signal `error' instead of `font'.
10431
104322008-04-29 Jason Rumney <jasonr@gnu.org>
10433
10434 * w32fns.c (Fw32_battery_status): New defun.
10435 (syms_of_w32fns): Defsubr it.
10436
104372008-04-28 Andreas Schwab <schwab@suse.de>
10438
10439 * dired.c (file_name_completion): Fix another mixing of encoded
10440 and decoded names.
10441
104422008-04-28 Juanma Barranquero <lekktu@gmail.com>
10443
10444 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10445
104462008-04-27 Juanma Barranquero <lekktu@gmail.com>
10447
10448 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10449
104502008-04-27 Andreas Schwab <schwab@suse.de>
10451
10452 * dired.c (file_name_completion): Fix inappropriate mixing of
10453 encoded and decoded names.
10454
10455 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10456
10457 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10458
104592008-04-26 Eli Zaretskii <eliz@gnu.org>
10460
10461 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10462 2008-03-31, it's not needed anymore with `struct stat' definition
10463 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10464 for the same reasons.
10465
104662008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10467
10468 * m/sparc.h: Additional redefinitions for GNU/Linux.
10469
104702008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10471
10472 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10473 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10474 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10475 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10476 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10477 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10478 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10479 Likewise.
10480
10481 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10482 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10483 (mac_ax_number_of_characters): Add externs.
10484 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10485 [USE_MAC_TSM]: Likewise.
10486 (mac_handle_text_input_event) [MAC_OSX]:
10487 Handle kEventTextInputOffsetToPos for no active input area case.
10488 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10489 (mac_handle_document_access_event)
10490 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10491 (install_application_handler) [MAC_OSX]: Register handlers for
10492 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10493 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10494 Register mac_handle_document_access_event.
10495
10496 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10497 Make functions non-static.
10498
104992008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10500
10501 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10502 (read_file_name_completion_ignore_case, insert_default_directory)
10503 (Qdefault_directory): Move to minibuffer.el.
10504 (Fread_file_name): Call the new `read-file-name' instead.
10505
105062008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10507
10508 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10509 Make function non-static.
10510 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10511 Remove function.
10512 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10513 Move to mactoolbox.c.
10514 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10515
10516 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10517 (mac_rect_make): New macro.
10518
10519 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10520 instead of float.
10521 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10522 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10523 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10524 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10525 CGRectMake.
10526 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10527 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10528 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10529 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10530 instead of WindowRef in argument type.
10531 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10532 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10533 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10534 instead of DISPLAY. All uses changed.
10535 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10536 (x_calc_absolute_position): Simplify so as not to use
10537 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10538
10539 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10540 instead of WindowRef in argument type.
10541 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10542 [TARGET_API_MAC_CARBON]: Remove externs.
10543 (create_apple_event, mac_event_parameters_to_lisp)
10544 [TARGET_API_MAC_CARBON]: Add externs.
10545
10546 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10547 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10548 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10549 is clicked.
10550 (x_activate_menubar): Remove extern for saved_menu_event_location.
10551 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10552 Move from mac.c.
10553
105542008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10555
10556 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10557 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10558
105592008-04-23 Jason Rumney <jasonr@gnu.org>
10560
10561 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10562 attributes only for local files.
10563
10564 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10565 default to Qlocal.
10566
105672008-04-22 Juri Linkov <juri@jurta.org>
10568
10569 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10570 read-buffer-to-switch instead of using the letter "B".
10571
105722008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10573
10574 * fileio.c (Qdefault_directory): New variable.
10575 (Fread_file_name): Use it to pass `dir' to the completion functions.
10576
105772008-04-20 Chong Yidong <cyd@stupidchicken.com>
10578
10579 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10580
105812008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10582
10583 * keyboard.c (Vpre_help_message): Remove.
10584 (show_help_echo): Remove default C code.
10585
10586 * dired.c (directory_files_internal, file_name_completion):
10587 Only call ENCODE_FILE if the string is indeed decoded.
10588
105892008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10590
10591 * Makefile.in (TOOLKIT_DEFINES): Remove.
10592 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10593
105942008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10595
10596 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10597 (mactoolbox.o): New target.
10598
10599 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10600 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10601
10602 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10603 Use mac_set_frame_window_background instead of XSetWindowBackground.
10604 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10605 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10606 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10607 instead of SetWindowTitleWithCFString.
10608 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10609 Move function to mactoolbox.c.
10610 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10611 Use mac_set_window_modified instead of SetWindowModified.
10612 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10613 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10614 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10615 FrontNonFloatingWindow. Use mac_activate_window instead of
10616 ActivateWindow. Use mac_active_non_floating_window instead of
10617 ActiveNonFloatingWindow.
10618 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10619 Use mac_show_hourglass and mac_hide_hourglass.
10620 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10621 instead of GetGlobalMouse.
10622 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10623 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10624 Use mac_bring_window_to_front instead of BringToFront.
10625 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10626 mactoolbox.c.
10627 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10628 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10629 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10630 mactoolbox.c.
10631
10632 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10633 (XtPointer): Move typedef from macmenu.c.
10634 (enum button_type): Move enum from macmenu.c.
10635 (widget_value): Move typedef from macmenu.c.
10636 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10637 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10638 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10639 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10640 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10641 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10642 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10643 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10644 (Selection): Move typedef from macselect.c.
10645 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10646 macterm.c.
10647 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10648 (mac_is_window_collapsed, mac_bring_window_to_front)
10649 (mac_send_window_behind, mac_hide_window, mac_show_window)
10650 (mac_collapse_window, mac_front_non_floating_window)
10651 (mac_active_non_floating_window, mac_activate_window)
10652 (mac_move_window_structure, mac_move_window, mac_size_window)
10653 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10654
10655 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10656 (enum mac_menu_kind): Move enum to mactoolbox.c.
10657 (min_menu_id): Move variable to mactoolbox.c.
10658 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10659 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10660 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10661 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10662 [TARGET_API_MAC_CARBON]: Likewise.
10663 (XtPointer): Move typedef to macgui.h.
10664 (enum button_type): Move enum to macgui.h.
10665 (widget_value): Move typedef to macgui.h.
10666 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10667 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10668 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10669 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10670 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10671 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10672 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10673 (popup_activated_flag): Make variable non-static.
10674 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10675 (add_menu_item, fill_menu, dispose_menus):
10676 Move functions to mactoolbox.c.
10677 (restore_show_help_function, menu_target_item_handler)
10678 (install_menu_target_item_handler, mac_handle_dialog_event)
10679 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10680 [TARGET_API_MAC_CARBON]: Likewise.
10681 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10682 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10683 (find_and_call_menu_selection, name_is_separator): Make function
10684 non-static.
10685 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10686 to mactoolbox.c.
10687 (set_frame_menubar): Don't call install_menu_quit_handler.
10688 (menu_item_selection): New variable.
10689 (mac_menu_show): Use create_and_show_popup_menu.
10690 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10691 selection but set variable menu_item_selection. All uses changed.
10692 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10693 Call install_menu_quit_handler. Move to mactoolbox.c.
10694
10695 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10696 (Selection): Move typedef to macgui.h.
10697 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10698 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10699 Make variables non-static.
10700 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10701 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10702 Make functions non-static.
10703 (Vmac_service_selection) [MAC_OSX]: Likewise.
10704 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10705 (mac_valid_selection_target_p, mac_clear_selection)
10706 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10707 (mac_put_selection_value, mac_selection_has_target_p)
10708 (mac_get_selection_value, mac_get_selection_target_list)
10709 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10710 Move functions to mactoolbox.c.
10711 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10712 Likewise.
10713 (copy_scrap_flavor_data, mac_handle_service_event)
10714 (install_service_handler) [MAC_OSX]: Likewise.
10715 (syms_of_macselect) <Vmac_dnd_known_types>:
10716 Use mac_dnd_default_known_types.
10717
10718 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10719 Move to mactoolbox.c.
10720 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10721 (Fx_selection_owner_p): Add EXFUN.
10722 (install_window_handler, remove_window_handler, XSetWindowBackground):
10723 Remove externs.
10724 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10725 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10726 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10727 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10728 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10729 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10730 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10731 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10732 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10733 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10734 (mac_valid_selection_target_p, mac_clear_selection)
10735 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10736 (mac_put_selection_value, mac_selection_has_target_p)
10737 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10738 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10739 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10740 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10741 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10742 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10743 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10744 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10745 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10746
10747 * mactoolbox.c: New file.
10748
107492008-04-18 Jason Rumney <jasonr@gnu.org>
10750
10751 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10752
107532008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10754
10755 * character.c (Fmultibyte_char_to_unibyte):
10756 Return latin1 chars unchanged.
10757
10758 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10759 relocated if it points to `name'.
10760
107612008-04-17 Kenichi Handa <handa@m17n.org>
10762
10763 * data.c (Faset): Allow setting a multibyte character in an
10764 ASCII-only unibyte string.
10765
10766 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10767
107682008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10769
10770 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10771 done in config.h.
10772
107732008-04-16 Juanma Barranquero <lekktu@gmail.com>
10774
10775 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10776 (Fchar_direction): Add usage in the docstring.
10777
107782008-04-15 Chong Yidong <cyd@stupidchicken.com>
10779
10780 * keyboard.c (read_key_sequence): Remove always-true checks.
10781
107822008-04-14 Jason Rumney <jasonr@gnu.org>
10783
10784 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10785 compatibility struct, for better underline positioning.
10786
107872008-04-13 David Hansen <david.hansen@gmx.net>
10788
10789 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10790 string.
10791
107922008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10793
10794 * m/hp800.h (XUINT, XSET): Remove.
10795
107962008-04-12 Juanma Barranquero <lekktu@gmail.com>
10797
10798 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10799 previous change.
10800
108012008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10802
10803 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10804 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10805
108062008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10807
10808 * keymap.h (map_keymap_canonical): Declare.
10809 * xmenu.c (single_keymap_panes): Use it.
10810
108112008-04-11 Glenn Morris <rgm@gnu.org>
10812
10813 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10814 set the target's value to that of the alias.
10815
108162008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10817
10818 * term.c (set_tty_color_mode): Left over typo.
10819
108202008-04-10 Michael Albinus <michael.albinus@gmx.de>
10821
10822 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10823 only after check for file name handler functions. Signal, when
10824 native functionality is not supported.
10825 (syms_of_fileio): Declare it unconditionally.
10826
108272008-04-10 Jason Rumney <jasonr@gnu.org>
10828
10829 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10830 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10831
10832 * w32.c (logon_network_drive): Also logon to remote drives that
10833 are mapped to drive letters.
10834
108352008-04-10 Glenn Morris <rgm@gnu.org>
10836
10837 * xdisp.c (truncate-partial-width-windows): Doc fix.
10838
108392008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10840
10841 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10842 Move functions to minibuffer.el.
10843 (syms_of_fileio): Don't declare them.
10844
108452008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10846
10847 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10848 (syms_of_minibuf): Remove its initialization.
10849
10850 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10851
108522008-04-09 Juanma Barranquero <lekktu@gmail.com>
10853
10854 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10855
108562008-04-09 Jason Rumney <jasonr@gnu.org>
10857
10858 * makefile.w32-in (distclean): Delete makefile too.
10859 (maintainer-clean): New target.
10860
10861 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10862
10863 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10864 for new font backend and composite cases.
10865
108662008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10867
10868 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10869 Most of the code moved to run_timers.
10870 (do_pending_atimers): Call run_timers.
10871 (run_timers): New function.
10872
10873 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10874 run atimers.
10875
10876 * process.c (wait_reading_process_output): The same as above.
10877
108782008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10879
10880 * minibuf.c (last_exact_completion): Remove variable.
10881 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10882 (complete_and_exit_1, complete_and_exit_2)
10883 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10884 (Fdisplay_completion_list, display_completion_list_1)
10885 (Fminibuffer_completion_help, Fself_insert_and_exit)
10886 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10887 minibuffer.el.
10888 (syms_of_minibuf): Remove corresponding initializations.
10889
10890 * keyboard.c (Qdeactivate_mark): New var.
10891 (command_loop_1): Use it to call `deactivate-mark'.
10892 (syms_of_keyboard): Initialize it.
10893
10894 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10895 to another frame.
10896 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10897 Don't call set_tty_color_mode.
10898 (store_frame_param): Reset previous_frame rather than call
10899 set_tty_color_mode.
10900 * term.c (set_tty_color_mode): Rewrite.
10901 * dispextern.h (set_tty_color_mode): New type.
10902 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10903
109042008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10905
10906 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10907 for generic chars, which do not exist any more in emacs-unicode.
10908
109092008-04-08 Michael Albinus <michael.albinus@gmx.de>
10910
10911 * coding.c (detect_coding_emacs_mule)
10912 (Ffind_operation_coding_system): Fix typo.
10913
109142008-04-08 Jason Rumney <jasonr@gnu.org>
10915
10916 * w32uniscribe.c (SNAME): Extract only symbol name.
10917
10918 * w32font.h (struct w32_metric_cache): New struct.
10919 (w32font_info): Use it.
10920 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10921 (CACHE_BLOCKSIZE): New constants.
10922
10923 * w32font.c (Qja, Qko, Qzh): New symbols.
10924 (syms_of_w32font): Initialise them.
10925 (font_matches_spec): Use them to filter by language.
10926 (recompute_cached_metrics): Remove function.
10927 (compute_metrics, clear_cached_metrics): New functions.
10928 (w32font_encode_char): Use them to manage metric cache.
10929 (w32font_text_extents): Cache metrics for all glyphs on demand.
10930 Delay converting glyph indices to WORD until needed.
10931 (w32font_open_internal): Initialize metric cache to empty.
10932 (registry_to_w32_charset): Charset should always be a symbol.
10933 (fill_in_logfont, list_all_matching_fonts): Family should
10934 always be a symbol.
10935
109362008-04-06 Jason Rumney <jasonr@gnu.org>
10937
10938 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10939 Give up if glyph indices not supported. Use uniscribe obtained
10940 ABC widths for individual metrics. Map glyph clusters back to
10941 characters using fClusterStart flag. Return number of glyphs
10942 produced, not chars processed.
10943 (uniscribe_shape): Map char at FROM to current glyph.
10944
109452008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10946
10947 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10948 Use SetMenuItemHierarchicalMenu.
10949
109502008-04-05 Jason Rumney <jasonr@gnu.org>
10951
10952 * image.c (pbm_load): Allow color values up to 65535.
10953 Throw an error if max_color_idx is outside the supported range.
10954 Report an error when image size is invalid.
10955 Read two bytes at a time when raw images have max_color_idx above 255.
10956
109572008-04-05 Eli Zaretskii <eliz@gnu.org>
10958
10959 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10960 cFileName a file name that includes `?' characters, use the 8+3
10961 alias in cAlternateFileName instead.
10962
109632008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10964
10965 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10966 append "CCL: Quitted" when the CCL program is quitted.
10967 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10968
10969 * ccl.h (struct ccl_program): New member quit_silently.
10970
109712008-04-05 Chong Yidong <cyd@stupidchicken.com>
10972
10973 * search.c (compile_pattern_1): Treat non-nil and non-string of
10974 search-spaces-regexp as nil.
10975
10976 * minibuf.c (Fassoc_string): Tweak docstring.
10977
109782008-04-05 Eli Zaretskii <eliz@gnu.org>
10979
10980 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10981 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10982 2008-03-14 to force inode be positive.
10983
10984 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10985 _S_* ones, since we now use our own sys/stat.h.
10986 (stat, fstat): Don't mangle the inode number.
10987 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10988
109892008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10990
10991 * frame.h (struct frame): Give one more bit to `visible' since we use
10992 values larger than 1 to indicate obscured frames on ttys.
10993
10994 * keymap.c (Qkeymap_canonicalize): New var.
10995 (Fmap_keymap_internal): New fun.
10996 (describe_map): Use keymap-canonicalize.
10997
10998 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10999 (Fundo_boundary): Set them.
11000 (syms_of_undo): Initialize them.
11001 (record_point): Use them instead of last_point_position*.
11002 (last_undo_buffer): Change type.
11003
110042008-04-04 Jason Rumney <jasonr@gnu.org>
11005
11006 * w32font.c (w32font_text_extents): Use font's ascent and descent.
11007 (recompute_cached_metrics): Don't set ascent and descent per char.
11008
11009 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
11010 (uniscribe_check_otf): Add GC protection before consing.
11011 Rearrange loop for counting features.
11012
110132008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
11014
11015 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
11016 buffer with byte-size of source buffer.
11017
110182008-04-03 Chong Yidong <cyd@stupidchicken.com>
11019
11020 * callint.c (Fcall_interactively): Handle temporary region even
11021 when shift-select-mode is off.
11022
110232008-04-03 Jason Rumney <jasonr@gnu.org>
11024
11025 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
11026
110272008-04-03 Kenichi Handa <handa@m17n.org>
11028
11029 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
11030 (CATEGORY_MASK_UTF_16): Likewise.
11031 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
11032 binary file.
11033 (detect_coding): Add null-byte detection for a binary file.
11034 (detect_coding_system): Likewise.
11035
110362008-04-03 Jason Rumney <jasonr@gnu.org>
11037
11038 * w32uniscribe.c: New file.
11039
11040 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11041
11042 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11043
11044 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11045 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11046 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11047 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11048 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11049 (Qphonetic): New symbols.
11050 (syms_of_w32font): Initialize them.
11051 (font_supported_scripts): Use them.
11052 (w32font_list_family): List all charsets.
11053 (w32font_text_extents, recompute_cached_metrics): Fix metric
11054 calculations.
11055 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11056 Give opentype fonts their own format.
11057 (font_matches_spec): New arguments backend and logfont.
11058 Handle :otf spec for uniscribe backend.
11059 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11060 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11061
11062 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11063 font backend.
11064 (globals_of_w32fns): Initialize uniscribe font backend.
11065
11066 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11067 dependencies.
11068 (w32uniscribe.$(O)): New file to build.
11069 (FONT_OBJ): Include w32uniscribe.$(O).
11070 (LIBS): Add uniscribe libraries.
11071
11072 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11073
110742008-04-02 Chong Yidong <cyd@stupidchicken.com>
11075
11076 * callint.c (Vshift_select_mode): New var.
11077 (Finteractive): Document new ^ spec.
11078 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11079 is present.
11080
11081 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11082 (command_loop_1): Avoid running the direct display versions of
11083 forward-char and backward-char if shift-selection may occur.
11084 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11085 shift-translation takes place.
11086
11087 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11088 avoid clobbering by define-minor-mode.
11089
11090 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11091 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11092
11093 * syntax.c (Fforward_word): Add ^ interactive spec.
11094
11095 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11096 (Fscroll_right): Add ^ interactive spec.
11097
110982008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11099
11100 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11101
11102 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11103
11104 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11105
111062008-03-31 Juri Linkov <juri@jurta.org>
11107
11108 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11109
111102008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11111
11112 * gtkutil.c (xg_set_geometry): Fix indentation.
11113 (xg_resize_outer_widget): Remove.
11114 (x_wm_size_hint_off): Fix indentation.
11115 (xg_frame_set_char_size): Call flush_and_sync after
11116 gtk_window_resize.
11117 (x_wm_set_size_hint): Pass NULL as geometry window to
11118 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11119 Add menu bar and tool bar height to base height.
11120 (xg_update_frame_menubar, free_frame_menubar)
11121 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11122 (update_frame_tool_bar, free_frame_tool_bar):
11123 Change xg_resize_outer_widget to xg_frame_set_char_size.
11124
111252008-03-30 Michael Albinus <michael.albinus@gmx.de>
11126
11127 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11128 (Fdbus_call_method): New parameter TIMEOUT.
11129 (dbus-send-signal): Optimize UNGCPRO call.
11130
111312008-03-29 Juri Linkov <juri@jurta.org>
11132
11133 * window.c (Fdisplay_buffer): Move call to
11134 Vsplit_window_preferred_function out of conditions that check
11135 if window is eligible for vertical splitting.
11136 When Vsplit_window_preferred_function is non-nil, call it and use
11137 its non-nil return value as window. Otherwise, continue doing
11138 vertical splitting using Fsplit_window with arg horflag=nil.
11139 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11140 default value from `split-window' to nil.
11141
111422008-03-29 Juri Linkov <juri@jurta.org>
11143
11144 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11145 for interactive code letters 'b' and 'B'.
11146
111472008-03-29 Eli Zaretskii <eliz@gnu.org>
11148
11149 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11150 multibyte string.
11151
111522008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11153
11154 * keyboard.c (pending_funcalls): New var.
11155 (timer_check): Run it.
11156 (syms_of_keyboard): Initialize it.
11157 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11158 (Vdelete_terminal_functions): New vars.
11159 (syms_of_terminal): Initialize them.
11160 (Fdelete_terminal): Run delete-terminal-functions.
11161 * xdisp.c (safe_eval): Rewrite.
11162 (safe_call2): New fun.
11163 * frame.c (Qdelete_frame_functions): New var.
11164 (syms_of_frame): Initialize it.
11165 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11166 * lisp.h (safe_call2, pending_funcalls): Declare.
11167
111682008-03-28 Andreas Schwab <schwab@suse.de>
11169
11170 * indent.c (Fmove_to_column): Move declaration before statements.
11171
111722008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11173
11174 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11175 (struct frame): Use bit fields for boolean vars.
11176
11177 * process.c (server_accept_connection): Simplify naming.
11178 (emacs_get_tty_pgrp): Use SDATA.
11179
11180 * coding.c (decode_coding_object): Fix last change.
11181
111822008-03-27 Jason Rumney <jasonr@gnu.org>
11183
11184 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11185
111862008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11187
11188 * charset.c (Fdefine_charset_internal): Change the way of
11189 registering charsets in Vcharset_order_list.
11190 (syms_of_charset): Make the charset `eight-bit' supplementary.
11191
111922008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11193
11194 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11195 operations, to avoid having the difference between pointers
11196 overflow.
11197
111982008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11199
11200 * indent.c (check_display_width): New fun.
11201 (scan_for_column): Use it.
11202
11203 * data.c (syms_of_data): Mark most-positive-fixnum and
11204 most-negative-fixnum as constants.
11205
11206 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11207
11208 * indent.c (scan_for_column): Extract from current_column_1.
11209 Merge with the same code from Fmove_to_column.
11210 (current_column_1, Fmove_to_column): Use it.
11211
112122008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11213
11214 * keymap.c (map_keymap_internal): New fun.
11215 (map_keymap): Use it.
11216 (Fmap_keymap_internal): New fun.
11217 (Fmap_keymap): Remove left-out test from before make_save_value.
11218
11219 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11220
11221 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11222 Use XCAR/XCDR.
11223
11224 * process.h (struct Lisp_Process): Remove filter_multibyte.
11225 * process.c (QCfilter_multibyte): Remove.
11226 (setup_process_coding_systems): Don't use filter_multibyte.
11227 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11228 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11229 (Fset_process_filter_multibyte): Change the coding-system to
11230 approximate the previous behavior.
11231 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11232 coding-system.
11233
11234 * coding.c (decode_coding_object): When not decoding into a buffer,
11235 obey the coding system's preference of (uni|multi)byte.
11236
112372008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11238
11239 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11240 every char is changed and has a different byte-length.
11241 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11242 Fix int -> EMACS_INT.
11243
112442008-03-23 David Hansen <david.hansen@gmx.net>
11245
11246 * dbusbind.c (xd_read_message): Remove extra copying of message
11247 strings. Check for NULL `interface' or `member'.
11248
112492008-03-22 Eli Zaretskii <eliz@gnu.org>
11250
11251 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11252 cFileName a file name that includes `?' characters, use the 8+3
11253 alias in cAlternateFileName instead.
11254
112552008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11256
11257 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11258
112592008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11260
11261 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11262 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11263 work on current_buffer only instead (that was already the case
11264 for some of the code anyway).
11265 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11266 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11267 (SET_PT, SET_PT_BOTH): Adjust.
11268 * intervals.h (set_point, temp_set_point, set_point_both)
11269 (temp_set_point_both): Remove redundant declarations.
11270
112712008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11272
11273 * fileio.c (Finsert_file_contents):
11274 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11275 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11276 when buffer != current_buffer anyway.
11277
112782008-03-20 Andreas Schwab <schwab@suse.de>
11279
11280 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11281 as default.
11282
112832008-03-19 Jason Rumney <jasonr@gnu.org>
11284
11285 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11286 (syms_of_w32fns): Initialize them.
11287 (HOURGLASS_ID): New constant.
11288 (x_window_to_frame): Don't check hourglass_window.
11289 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11290 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11291 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11292 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11293 Only change the cursor if hourglass is not active.
11294 (Fx_create_frame): Initialize frame's current_cursor.
11295 (hourglass_atimer): Remove.
11296 (hourglass_started): New function.
11297 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11298 (show_hourglass): Adapt to w32, changing argument to frame.
11299
11300 * w32term.h (struct w32_output): Remove hourglass_window.
11301 Add current_cursor.
11302
11303 * eval.c (call_debugger, Fsignal):
11304 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11305 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11306 (Fexecute_extended_command, cancel_hourglass_unwind):
11307 * minibuf.c (read_minibuf):
11308 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11309
113102008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11311
11312 * window.c (run_funs): New fun.
11313 (run_window_configuration_change_hook): Use it to run the buffer-local
11314 and the global part of the hook.
11315
11316 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11317 (unwind_format_mode_line): Restore selected window.
11318 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11319
113202008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11321
11322 * editfns.c (Fchar_equal): Check they are valid characters.
11323
11324 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11325
113262008-03-17 Andreas Schwab <schwab@suse.de>
11327
11328 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11329 against a charset.
11330
11331 * lisp.h (Fbuffer_list): Declare.
11332
113332008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11334
aac0c6e3
MR
11335 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11336 handlebox_widget is != 0.
11337
113382008-03-16 Juri Linkov <juri@jurta.org>
11339
11340 * callint.c (Fcall_interactively): For interactive code letters
11341 'b' and 'B' put the buffer list into the list of default "future"
11342 values of the minibuffer.
11343
113442008-03-16 Andreas Schwab <schwab@suse.de>
11345
11346 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11347 modifiers.
11348
11349 * regex.c (re_match_2_internal): Correct matching of a charset
11350 against latin-1 characters.
11351
113522008-03-16 Kenichi Handa <handa@m17n.org>
11353
11354 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11355 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11356 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11357 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11358 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11359 CHAR_STRING_ADVANCE.
11360 (produce_chars): Fix for the case that the source and the
11361 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11362 instead of CHAR_STRING_ADVANCE.
11363 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11364 STRING_CHAR_ADVANCE.
11365
113662008-03-15 Andreas Schwab <schwab@suse.de>
11367
11368 * regex.c (re_match_2_internal): Correct matching of eight bit
11369 characters in unibyte strings.
11370
113712008-03-15 Martin Rudalics <rudalics@gmx.at>
11372
11373 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11374 at end of range when it coincides with the end of the buffer.
11375
113762008-03-14 Eli Zaretskii <eliz@gnu.org>
11377
11378 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11379
11380 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11381
113822008-03-14 Jason Rumney <jasonr@gnu.org>
11383
11384 * editfns.c (initial_tz): New variable.
11385 (syms_of_editfns): Initialize it.
11386 (Fset_time_zone_rule): Set it when first called.
11387 Use it when TZSTRING is nil.
11388
11389 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11390 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11391 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11392 (globals_of_w32fns): Initialize them.
11393 (compute_tip_xy): Use them to position tooltips.
11394
113952008-03-14 Glenn Morris <rgm@gnu.org>
11396
11397 * emacs.c (main): Revert previous change.
11398 (standard_args): Revert -internal-script back to -scriptload,
11399 and remove the long-option form.
11400
114012008-03-13 Glenn Morris <rgm@gnu.org>
11402
11403 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11404 Remove option -enable-font-backend.
11405
114062008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11407
11408 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11409
114102008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11411
11412 * xterm.c (x_connection_closed): For GTK: If this is the last
11413 terminal just exit without closing the display.
11414
114152008-03-11 Jason Rumney <jasonr@gnu.org>
11416
11417 * w32font.c (w32font_full_name): Use floor to round.
11418
f0131492 114192008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11420
11421 * sound.c (alsa_configure): Declare vol at beginning of block.
11422
11423 * fontset.c (Ffontset_info): Remove extra semicolon.
11424
114252008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11426
11427 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11428 size of resulting string.
11429
114302008-03-10 Jason Rumney <jasonr@gnu.org>
11431
11432 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11433
114342008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11435
11436 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11437 Don't pretend as if characters with display property haven't been
11438 consumed for string-replacing-string case.
11439
114402008-03-08 Kim F. Storm <storm@cua.dk>
11441
11442 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11443 (get_next_display_element, next_element_from_string)
11444 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11445
114462008-03-08 Andreas Schwab <schwab@suse.de>
11447
11448 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11449
114502008-03-06 Jason Rumney <jasonr@gnu.org>
11451
11452 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11453 when charset not specified. Only translate ANSI to unicode when
11454 font_type is truetype.
11455 (w32font_coverage_ok): New function.
11456 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11457
114582008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11459
11460 * lread.c (Fread_char): Resolve modifiers.
11461 (Fread_char_exclusive): Likewise.
11462
11463 * character.c (char_resolve_modifier_mask): New function.
11464 (char_string): Use char_resolve_modifier_mask.
11465 (Fchar_resolve_modifiers): New function.
11466 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11467 function.
11468
114692008-03-04 Jason Rumney <jasonr@gnu.org>
11470
11471 * makefile.w32-in: Always include w32font.c in the build.
11472 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11473
114742008-03-04 Andreas Schwab <schwab@suse.de>
11475
11476 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11477 (versionclean): Likewise.
11478
114792008-03-04 Juanma Barranquero <lekktu@gmail.com>
11480
11481 * .cvsignore: Add oo.
11482
114832008-03-03 Andreas Schwab <schwab@suse.de>
11484
11485 * coding.c (decode_coding_object): Inhibit gap shrinking while
11486 decoding in place.
11487
114882008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11489
11490 * w32term.c: Remove unused include "gnu.h".
11491 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11492
11493 * gnu.h: Rename to ...
11494 * emacs-icon.h: ... this.
11495 * xterm.c: Use emacs-icon.h instead of gnu.h.
11496 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11497
114982008-03-03 Juanma Barranquero <lekktu@gmail.com>
11499
11500 * w32font.c: Include math.h.
11501
115022008-03-03 Jason Rumney <jasonr@gnu.org>
11503
11504 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11505 Compute options separately.
11506 (w32font_open_internal): Set glyph_idx before caching metrics.
11507
11508 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11509 Define if system headers don't.
11510 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11511 (w32font_encode_char): Don't declare here.
11512
11513 * w32font.c (Quniscribe, QCformat): New symbols.
11514 (syms_of_w32font): Define them.
11515 (w32font_has_char): Indicate uncertainty.
11516 (w32font_encode_char): Encode as glyph point. Make static.
11517 (recompute_cached_metrics): New function.
11518 (w32font_open_internal): Use it. Set font to use glyph points
11519 initially. Set format based on type of font.
11520 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11521 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11522 on it. Set format based on information available here.
11523 (add_font_entity_to_list): Identify backend based on opentype_only.
11524
115252008-03-02 Andreas Schwab <schwab@suse.de>
11526
11527 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11528
11529 * coding.c (decode_coding_big5, produce_chars):
11530 Fix typos in last change.
11531
115322008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11533
11534 * gnu.h: New icon.
11535
115362008-03-02 Kenichi Handa <handa@m17n.org>
11537
11538 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11539 `dos', don't decode '\r' if that is the last in the source.
11540 (decode_coding_utf_16, decode_coding_emacs_mule)
11541 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11542 (decode_coding_raw_text, decode_coding_charset): Likewise.
11543 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11544
115452008-03-01 Jason Rumney <jasonr@gnu.org>
11546
11547 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11548
115492008-03-01 Kim F. Storm <storm@cua.dk>
11550
11551 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11552
115532008-03-01 Jason Rumney <jasonr@gnu.org>
11554
11555 * w32font.c (w32font_full_name): New function.
11556 (w32font_open_internal): Use it.
11557
115582008-03-01 Kim F. Storm <storm@cua.dk>
11559
11560 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11561
115622008-03-01 Jason Rumney <jasonr@gnu.org>
11563
11564 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11565
115662008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11567
11568 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11569 xg_frame_resized when the event is for the edit widget.
11570
11571 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11572
11573 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11574 set_char_size.
11575 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11576 operations on widgets here. Just set frame size if needed.
11577 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11578 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11579 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11580 the whole frame.
11581 (xg_create_tool_bar): Move attachment of the tool bar to
11582 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11583 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11584
115852008-03-01 Jason Rumney <jasonr@gnu.org>
11586
11587 * w32fns.c (w32_msg_pump): Disable debug code.
11588
115892008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11590
11591 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11592
115932008-02-29 Chong Yidong <cyd@stupidchicken.com>
11594
11595 * xdisp.c (next_overlay_string): Don't set
11596 overlay_strings_at_end_processed_p if we're currently reading from
11597 a display string.
11598
115992008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11600
11601 * xdisp.c (get_overlay_strings_1): Fix typo.
11602
116032008-02-29 Chong Yidong <cyd@stupidchicken.com>
11604
11605 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11606
116072008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11608
11609 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11610
11611 * xdisp.c (display_mode_element): Cancel the previous change.
11612 (decode_mode_spec): Likewise.
11613 (handle_auto_composed_prop): Don't make composition if it->string
11614 is a string.
11615
116162008-02-27 Kim F. Storm <storm@cua.dk>
11617
11618 * lisp.h (GLYPH): Change type from int to struct with separate char
11619 and face_id members.
11620 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11621 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11622 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11623 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11624 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11625 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11626 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11627 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11628 handle new Lisp glyph code encoding, either an integer or a cons.
11629
11630 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11631 (GLYPH_ALIAS): Delete.
11632 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11633 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11634 (GLYPH_FROM_CHAR): Replace macro by ...
11635 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11636
11637 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11638 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11639 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11640 (GLYPH_INVALID_P): New macro.
11641 (spec_glyph_lookup_face): Update prototype.
11642
11643 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11644 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11645 new glyph code encoding.
11646 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11647 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11648
11649 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11650 Adapt to new glyph type and new glyph code encoding.
11651
11652 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11653
11654 * indent.c (current_column, current_column_1, Fmove_to_column)
11655 (compute_motion): Adapt to new glyph code encoding.
11656
11657 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11658
116592008-02-27 Chong Yidong <cyd@stupidchicken.com>
11660
11661 * process.c (wait_reading_process_output): Check for window
11662 changes caused by timers.
11663 Suggested by Johan Bockgård.
11664
116652008-02-27 Glenn Morris <rgm@gnu.org>
11666
11667 * emacs.c (USAGE1): Add `--disable-font-backend'.
11668
116692008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11670
11671 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11672 is made to the buffer.
11673
116742008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11675
11676 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11677 (face_at_string_position):
11678 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11679 (face_at_string_position):
11680 * xdisp.c (display_string, next_overlay_change):
11681 * buffer.h (overlays_at):
11682 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11683 Update callers.
11684
116852008-02-26 Chong Yidong <cyd@stupidchicken.com>
11686
11687 * editfns.c (Fformat): Doc fix.
11688
116892008-02-26 Juanma Barranquero <lekktu@gmail.com>
11690
11691 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11692 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11693 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11694
116952008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11696
11697 * buffer.c (Fbuffer_swap_text): New function.
11698 (syms_of_buffer): Defsubr it.
11699
117002008-02-25 Chong Yidong <cyd@stupidchicken.com>
11701
11702 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11703
117042008-02-25 Jason Rumney <jasonr@gnu.org>
11705
11706 * w32font.c (w32font_draw): Draw one character at a time when padding.
11707
117082008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11709
11710 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11711 Handle a nil arg. Use run_window_configuration_change_hook.
11712 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11713 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11714 Use run_window_configuration_change_hook.
11715
117162008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11717
11718 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11719 1-pixel width.
11720
117212008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11722
11723 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11724 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11725 if the glyph in the font is zero pixel with.
11726
11727 * dispextern.h (struct glyph_string): New member padding_p.
11728
11729 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11730
11731 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11732
11733 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11734
11735 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11736
11737 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11738
117392008-02-25 Jason Rumney <jasonr@gnu.org>
11740
11741 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11742
117432008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11744
11745 Allow fine-grained image-cache flushing.
11746 * dispextern.h (struct image): Add `dependencies' field.
11747 (clear_image_caches): Change arg to Lisp_Object.
11748 * image.c (make_image): Initialize `dependencies' field.
11749 (clear_image_cache): Change arg to allow fine-grained flushing.
11750 Perform the flush even if image-cache-eviction-delay is nil.
11751 (clear_image_caches): Change arg to Lisp_Object.
11752 (Fclear_image_cache): Expand meaning of the argument.
11753 (mark_image): Mark `dependencies' field.
11754 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11755 (lface_hash): Use XHASH rather than XFASTINT.
11756 (face_at_buffer_position): Fix int -> EMACS_INT position.
11757 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11758 (select_frame_for_redisplay): Remove code duplication.
11759 (redisplay_internal): Adapt arg to call to clear_image_caches.
11760
117612008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11762
11763 * s/vms4-0.h:
11764 * s/vms4-2.h:
11765 * s/vms4-4.h:
11766 * s/vms5-5.h: Remove, unused.
11767
11768 * s/irix5-2.h:
11769 * s/irix6-0.h:
11770 * s/riscos5.h:
11771 * s/mach-bsd4-3.h:
11772 * m/mips4.h: Remove files for obsolete systems.
11773
11774 * Makefile.in:
11775 * filelock.c:
11776 * unexmips.c:
11777 * m/hp9000s300.h:
11778 * m/iris4d.h:
11779 * s/aix3-1.h:
11780 * s/hpux.h:
11781 * s/msdos.h:
11782 * s/usg5-0.h:
11783 * s/usg5-2-2.h:
11784 * s/usg5-2.h:
11785 * s/usg5-3.h: Remove references to obsolete variables.
11786
11787 * s/irix5-0.h: Remove, move all the contents ...
11788 * s/irix6-5.h: ... here. Simplify.
11789 * config.in: Regenerate.
11790
117912008-02-24 Jason Rumney <jasonr@gnu.org>
11792
11793 * w32term.c (x_draw_glyph_string_background): Clear the background
11794 manually when cleartype is in use.
11795 (x_draw_glyph_string_foreground): Draw text transparently when
11796 cleartype is in use.
11797
11798 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11799 a font into it unless we have to.
11800
118012008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11802
11803 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11804 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11805
aac0c6e3
MR
118062008-02-18 Jason Rumney <jasonr@gnu.org>
11807
11808 * w32fns.c (Fw32_shell_execute): Encode parameters.
11809
118102008-02-09 Eli Zaretskii <eliz@gnu.org>
11811
11812 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11813
118142008-02-05 Juanma Barranquero <lekktu@gmail.com>
11815
11816 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11817
118182008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11819
11820 * xterm.c (x_set_offset): Don't change the gravity if
11821 CHANGE_GRAVITY is -1.
11822
118232008-02-23 Chong Yidong <cyd@stupidchicken.com>
11824
11825 * fileio.c (auto_save_error_occurred): New var.
11826 (auto_save_error): Set it.
11827 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11828 error occurred.
11829
118302008-02-23 Eli Zaretskii <eliz@gnu.org>
11831
11832 * w32.c (globals_of_w32): Add initializations for
11833 g_b_init_get_sid_sub_authority and
11834 g_b_init_get_sid_sub_authority_count.
11835
118362008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11837
11838 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11839 (font_parse_xlfd): Use them for sanity check.
11840 (Finternal_set_font_style_table): Make sure the table is bijective.
11841
11842 Consolidate the image_cache to the terminal struct.
11843 * termhooks.h (P_): Remove redundant def.
11844 (struct terminal): New field `image_cache'.
11845 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11846 of FRAME_X_IMAGE_CACHE.
11847 * xterm.h (struct x_display_info): Remove image_cache field.
11848 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11849 * w32term.h (struct w32_display_info): Remove image_cache field.
11850 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11851 * macterm.h (struct mac_display_info): Remove image_cache field.
11852 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11853 * xterm.c (x_term_init):
11854 * w32term.c (w32_term_init):
11855 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11856 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11857 Remove declarations.
11858 (clear_image_caches, mark_image_cache): New declarations.
11859 * xfaces.c (clear_face_cache):
11860 * xdisp.c (redisplay_internal): Use clear_image_caches.
11861 * image.c (clear_image_cache): Don't check that a frame is on
11862 a window-system before checking if it shares the same cache.
11863 (clear_image_caches): New function.
11864 (Fclear_image_cache): Use it.
11865 (mark_image): Move from allo.c.
11866 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11867 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11868 (mark_object): Don't call mark_image_cache for frames.
11869 (mark_terminals): Call mark_image_cache.
11870
11871 * lisp.h (Fdelete_terminal): Declare.
11872
11873 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11874 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11875 wrong_type_argument.
11876
118772008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11878
11879 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11880 malayalam.el, and tamil.el. Add sinhala.el.
11881
118822008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11883
11884 * xterm.c (x_connection_closed): Consolidate identical tests.
11885 (x_delete_terminal): Don't crash if called via x_connection_closed.
11886
118872008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11888
11889 * xdisp.c (decode_mode_spec): New arg string.
11890 (display_mode_element): Adjust for the above change.
11891
118922008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11893
11894 * callint.c (Fcall_interactively): Use AREF.
11895
118962008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11897
11898 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11899
119002008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11901
11902 * xfns.c (Fx_show_tip): Set string to " " if empty.
11903
119042008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11905
11906 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11907 with Qt.
11908
119092008-02-17 Kenichi Handa <handa@m17n.org>
11910
11911 * ftfont.c (ftfont_shape): Return Lispy number.
11912
11913 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11914 for GCs.
11915 (Finternal_set_font_selection_order): Call font_update_sort_order
11916 only when enable_font_backend is set.
11917 (realize_x_face): Set face->font_info to that of default face only
11918 when enable_font_backend is set.
11919
11920 * xdisp.c (handle_composition_prop): Set it->c to the fist
11921 character of the composed region.
11922 (fill_composite_glyph_string): Set base_face->font_info to
11923 s->font_info. Get a face for ascii from base_face->ascii_face.
11924 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11925 with a face already decided.
11926 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11927 non-negative.
11928 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11929 call font_prepare_composition unconditionally.
11930
11931 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11932
11933 * xterm.h (struct x_display_info): New member font.
11934
11935 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11936 (x_set_mouse_face_gc, x_new_font): Likewise.
11937 (x_term_init): Setup display_info->font.
11938 (x_delete_terminal): Free display_info->font.
11939
11940 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11941
11942 * ftxfont.c (ftxfont_default_fid): Delete it.
11943 (ftxfont_open): Set xfont->fid to 0.
11944 (ftxfont_end_for_frame): Clear data specific to the frame and the
11945 font-driver.
11946
11947 * xftfont.c (xftfont_default_fid): Delete it.
11948 (xftfont_open): Set xfont->fid to 0.
11949
11950 * fontset.c (FONTSET_OBJLIST): New macro.
11951 (fontset_find_font): Update font-object list of the fontset.
11952 (free_realized_fontset): New function.
11953 (free_face_fontset): Call free_realized_fontset.
11954 (Ffont_info): Call font_close_object only when enable_font_backend
11955 is set.
11956
11957 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11958 [HAVE_NTGUI]: Include w32term.h.
11959 [MAC_OS]: Include macterm.ch.
11960 (font_otf_ValueRecord): Use make_number.
11961 (font_finish_cache): Fix handling of reference count.
11962 (font_clear_cache): Update num_fonts.
11963 (font_open_entity): Update smallest_char_width and
11964 smallest_font_height of the frame.
11965 (font_close_object): Update num_fonts.
11966 (Fclear_font_cache): Fix finding the target cache data.
11967
119682008-02-16 Glenn Morris <rgm@gnu.org>
11969
11970 * fontset.c (Finternal_char_font): Fix compilation warning.
11971
119722008-02-16 Eli Zaretskii <eliz@gnu.org>
11973
11974 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11975 instead of char arrays. Enlarge the size of array passed to
11976 get_token_information.
11977
11978 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11979 warnings.
11980
119812008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11982
11983 * .gdbinit: Don't set `args', it breaks gdb --args.
11984
119852008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11986
11987 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11988 within a narrowed buffer.
11989
119902008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11991
11992 * coding.c (decode_coding_object, encode_coding_object):
11993 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11994
119952008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11996
11997 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11998 hardcoding 1.
11999 (detect_coding_system):
12000 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
12001 (string_char_to_byte, string_byte_to_char, insert_from_gap):
12002 * insdel.c (insert_from_gap):
12003 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
12004 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
12005 (string_to_multibyte):
12006 * character.c (chars_in_text, multibyte_chars_in_text):
12007 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
12008
12009 * character.h (FETCH_STRING_CHAR_ADVANCE)
12010 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
12011 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
12012 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
12013
12014 * casefiddle.c (casify_region): Only call after-change and composition
12015 functions on the part of the region that was changed.
12016
12017 * keyboard.c (read_avail_input):
12018 * frame.c (Fdelete_frame): Call Fdelete_terminal.
12019
120202008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12021
12022 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
12023 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
12024
120252008-02-11 Juanma Barranquero <lekktu@gmail.com>
12026
12027 * w32menu.c (push_submenu_start, push_submenu_end)
12028 (push_left_right_boundary, push_menu_pane, push_menu_item):
12029 * keyboard.c (read_key_sequence): Don't pass args with side effects
12030 to AREF, it fails when compiling with -DENABLE_CHECKING.
12031
120322008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
12033
12034 * Makefile.in (${lispsource}international/charprop.el):
12035 Delete this target.
12036
12037 * search.c (boyer_moore): Fix incorrect synching of the trunk and
12038 emacs-unicode-2.
12039
120402008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12041
12042 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12043
120442008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12045
12046 * frame.c (Qnoelisp): New symbol.
12047 (syms_of_frame): Initialize it.
12048 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12049 harmless Elisp code, from a strong `force' from x_connection_closed.
12050 * frame.h (Qnoelisp): Declare.
12051 * xterm.c (x_connection_closed): Pass `noelisp'.
12052
12053 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12054 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12055 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12056 rather than `int' for the type of `type'.
12057
120582008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12059
12060 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12061
12062 * Makefile.in (GNUC): Remove support for gcc-1.x.
12063
120642008-02-10 Richard Stallman <rms@gnu.org>
12065
12066 * lisp.h (ASET): Use AREF, not ASLOT.
12067
120682008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12069
12070 * lisp.h (ASET): Check bounds.
12071
120722008-02-10 Glenn Morris <rgm@gnu.org>
12073
12074 * buffer.c (mode-name): Doc fix.
12075
120762008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12077
12078 * Makefile.in:
12079 * emacs.c:
12080 * gmalloc.c:
12081 * keyboard.c:
12082 * lisp.h:
12083 * m/ibm370aix.h:
12084 * process.c:
12085 * regex.c:
12086 * s/hpux.h:
12087 * sysdep.c:
12088 * sysselect.h:
12089 * systty.h:
12090 * unexec.c:
12091 * w32term.c:
12092 * xsmfns.c:
12093 * xterm.c: Remove code that deals with obsolete variables.
12094
12095 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12096
12097 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12098 nothing else needs it anymore.
12099
121002008-02-09 Eli Zaretskii <eliz@gnu.org>
12101
12102 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12103 instead of unibyte_char_to_multibyte.
12104
121052008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12106
12107 * s/gnu-linux.h: Remove commented out code.
12108
12109 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12110
12111 * Makefile.in: Update what RMS says about using autoconf.
12112 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12113 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12114 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12115 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12116
121172008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12118
12119 * keymap.c (Fkey_description): Move side effect outside of macro call.
12120
12121 * xfaces.c (Finternal_make_lisp_face):
12122 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12123
12124 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12125 (syms_of_fontset): Use ASET.
12126
12127 * fns.c (concat): Move side effect outside of macro call.
12128 (hash_clear): Use ASET.
12129
121302008-02-08 Richard Stallman <rms@gnu.org>
12131
12132 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12133 If FORCE, and frame has a surrogate minibuffer for another frame,
12134 delete the other frame first.
12135
121362008-02-07 Timo Savola <timo.savola@iki.fi>
12137
12138 * xterm.c (x_detect_focus_change): Handle embed client message.
12139 (handle_one_xevent): Ditto.
12140 (handle_one_xevent): If embedded and we get a button press/release,
12141 request focus.
12142 (xembed_set_info, xembed_send_message): New functions.
12143 (x_make_frame_visible): Call xembed_set_info if embedded.
12144 (x_make_frame_invisible): Call xembed_set_info if embedded.
12145 (x_term_init): Initialize Xatom_XEMBED.
12146 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12147 (x_iconify_frame): Ditto.
12148
12149 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12150 (enum xembed_info, enum xembed_message, enum xembed_focus)
12151 (enum xembed_modifier, enum xembed_accelerator): New.
12152 (xembed_set_info, xembed_send_message): Declare.
12153 (FRAME_X_EMBEDDED_P): New.
12154
12155 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12156 gtk_plug_new.
12157
12158 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12159 window ID of a frame.
12160 (x_window): Reparent frame if embedded.
12161 (Fx_create_frame): Don't set border width if embedded.
12162
12163 * emacs.c (USAGE3): Add --parent-id.
12164 (standard_args): Ditto.
12165
121662008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12167
12168 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12169
121702008-02-07 Jim Meyering <meyering@redhat.com>
12171
12172 Use "do...while (0)", not "if (1)...else" in macro definitions.
12173 The latter provokes a warning from gcc about the empty else, when
12174 followed by ";". Also, without that trailing semicolon, it would
12175 silently swallow up any following statement.
12176 * syntax.h (SETUP_SYNTAX_TABLE)
12177 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12178 * buffer.h (DECODE_POSITION): Likewise.
12179 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12180 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12181 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12182 (FETCH_CHAR_ADVANCE): Likewise.
12183 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12184
121852008-02-07 Jim Meyering <meyering@redhat.com>
12186
12187 * lread.c [lint]: Don't include <sys/inode.h>.
12188
121892008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12190
12191 * xselect.c (x_handle_dnd_message):
12192 * xmenu.c (digest_single_submenu, xmenu_show):
12193 * xdisp.c (with_echo_area_buffer_unwind_data)
12194 (format_mode_line_unwind_data, unwind_format_mode_line)
12195 (display_menu_bar):
12196 * eval.c (Ffetch_bytecode):
12197 * doc.c (store_function_docstring):
12198 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12199 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12200 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12201
122022008-02-07 Kenichi Handa <handa@m17n.org>
12203
12204 * ftxfont.c (ftxfont_open): Don't set
12205 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12206
12207 * ftfont.c (ftfont_open): Fix previous change.
12208
122092008-02-06 Jason Rumney <jasonr@gnu.org>
12210
12211 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12212 Use cached metrics for ASCII characters.
12213 (w32font_open_internal): Don't set font's owning_frame.
12214 Cache metrics for ASCII characters.
12215
12216 * w32font.h (struct w32font_info): Add ascii_metrics.
12217 Remove owning_frame.
12218
122192008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12220
12221 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12222 to negative value.
12223
12224 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12225
12226 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12227
12228 * charset.c (syms_of_charset): Set QCtest and Qeq.
12229
122302008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12231
12232 * process.c (Fstart_process):
12233 * callproc.c (Fcall_process): Handle the case where
12234 Funhandled_file_name_directory returns nil.
12235
12236 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12237 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12238 * font.c (check_gstring): Use them and AREF to access the vector before
12239 we know it's really a gstring.
12240 (Ffont_shape_text): Fix typo.
46e722a9 12241 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12242
12243 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12244 Declare.
12245
12246 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12247
122482008-02-05 Jason Rumney <jasonr@gnu.org>
12249
12250 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12251 Set smallest_font_height and smallest_char_width in display info.
12252
122532008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12254
12255 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12256
122572008-02-05 Miles Bader <miles@gnu.org>
12258
12259 * xfaces.c (get_lface_attributes, merge_named_face)
12260 (lookup_named_face, lookup_derived_face, realize_named_face):
12261 Revert 2008-02-01 change by cyd@stupidchicken.com.
12262
122632008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12264
12265 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12266 fallback fonts.
12267 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12268
122692008-02-04 Jason Rumney <jasonr@gnu.org>
12270
12271 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12272 set full_name.
12273 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12274
122752008-02-03 Jason Rumney <jasonr@gnu.org>
12276
12277 * makefile.w32-in (OBJ1): Include font.o here.
12278 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12279
122802008-02-02 Jason Rumney <jasonr@gnu.org>
12281
12282 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12283
122842008-02-01 Jason Rumney <jasonr@gnu.org>
12285
12286 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12287
12288 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12289
122902008-02-01 Andreas Schwab <schwab@suse.de>
12291
12292 * Makefile.in (shortlisp, lisp): Update for rename of
12293 ../lisp/language/myanmar.el.
12294
122952008-02-01 Chong Yidong <cyd@stupidchicken.com>
12296
12297 * xfaces.c (get_lface_attributes): Delete function.
12298 (merge_named_face, lookup_named_face, lookup_derived_face)
12299 (realize_named_face): Call lface_from_face_name directly, and use
12300 the fact that merge_face_vectors does not alter its FROM argument.
12301
123022008-02-01 Jason Rumney <jasonr@gnu.org>
12303
12304 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12305 input in the default locale. Handle non-Unicode multibyte input.
12306
123072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12308
12309 * fontset.c (reorder_font_vector): Exclude nil elements from the
12310 font group. Don't try multiple fonts.
12311 (fontset_font): Adjust for the above change.
12312 (Finternal_char_font): Return nil if the found font doesn't
12313 contain the character ch.
12314
12315 * Makefile.in (lisp, shortlisp): Add cham.el.
12316
123172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12318
12319 * font.h (FONTP): Make it return 1 also for a font-object.
12320
12321 * .gdbinit (xfontset): New function.
12322
12323 * font.c (font_find_for_lface): Check if the character C is
12324 supported or not only for the first font.
12325
12326 * fontset.c (reorder_font_vector): Fix typo.
12327 (fontset_find_font): Don't add a font-spec specifying a script.
12328 Use 0 (not Qt) for the indication of empty font-group. Change the
12329 format of RFONT-DEF. Return Qt if no font in the font-group
12330 support the character.
12331 (fontset_font): Adjust for the above change. If no font was
12332 found the character, remember that.
12333 (face_for_char): Adjust for the change of RFONT-DEF.
12334 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12335 no font for the target.
12336 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12337
123382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12339
12340 * font.c (font_load_for_face): Handle the case that the font in
12341 face->lface is a string.
12342
123432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12344
12345 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12346
123472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12348
12349 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12350 Fix previous change. If the frame is not on a window system,
12351 signal an error.
12352
123532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12354
12355 * coding.c (decode_coding_object, encode_coding_object): Adjust
12356 marker positions after conversion.
12357
12358 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12359
123602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12361
12362 * font.c (font_find_for_lface): Fix the handling of the return
12363 value of font_has_char.
12364 (Ffont_shape_text): Fix previous change.
12365
12366 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12367 (fontset_ref_and_range): Delete it.
12368 (fontset_find_font): Call char_table_ref_and_range instead of
12369 FONTSET_REF_AND_RANGE.
12370 (make_fontset): Don't setup font groups of Latin here.
12371 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12372 (new_fontset_from_font): Make the specified font the default for
12373 all Latin characters.
12374
123752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12376
12377 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12378 is on a window system before accessing the fontset of the frame.
12379
123802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12381
12382 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12383
12384 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12385 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12386
12387 * font.c (Ffont_shape_text): If the font driver doesn't have a
12388 shaper function, make zero-width glyphs to have at least one-pixel
12389 width. Fix setting of `to' field of glyphs.
12390
123912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12392
12393 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12394 glyphs.
12395
12396 * font.h (struct font_driver): Improve docstring of member `shape'.
12397
123982008-02-01 Kenichi Handa <handa@m17n.org>
12399
12400 * composite.c (syms_of_composite): Fix docstring of
12401 auto-composition-function.
12402
12403 * font.h (LGLYPH_SIZE): New macro.
12404
12405 * font.c (Ffont_fill_gstring): Stop filling when a character not
12406 supported by the font is found.
12407 (Ffont_shape_text): When a shape callback function returns nil,
12408 try at most two more times with larger gstring.
12409 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12410
12411 * xdisp.c (handle_auto_composed_prop): Change the argument to
12412 auto-composition-function.
12413
12414 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12415 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12416 Lispy glyph and store it in the lgstring.
12417
12418 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12419
12420 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12421
124222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12423
12424 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12425
12426 * fontset.c (Vfont_encoding_charset_alist): New variable.
12427 (syms_of_fontset): DEFVAR it.
12428 (reorder_font_vector, fontset_find_font): Optimize for the case of
12429 no need of reordering.
12430 (face_for_char): Map the charset property by
12431 Vfont_encoding_charset_alist.
12432
124332008-02-01 Jason Rumney <jasonr@gnu.org>
12434
12435 * w32font.c (logfonts_match): Don't check adstyle here.
12436 (font_matches_spec): Check here against physical font instead.
12437 (add_font_entity_to_list): Avoid some substitutions.
12438
12439 * font.c (font_parse_fcname): Default weight and slant to normal.
12440 (font_score): Prefer normal fonts if weight or slant unspecified.
12441 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12442 match freetype scores.
12443
124442008-02-01 Jason Rumney <jasonr@gnu.org>
12445
12446 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12447 font, as it may have been deleted.
12448 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12449 most common hyphenless variation.
12450 (logfonts_match): Check generic family.
12451 (font_matches_spec): Don't check generic family here.
12452 (fill_in_logfont): Set generic family based on adstyle.
12453
12454 * w32font.h (w32font_get_cache): Update declaration.
12455
124562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12457
12458 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12459
12460 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12461 If none of the new drivers are available, call font_update_drivers
12462 with the old drivers.
12463
12464 * w32font.c (w32font_get_cache): Adjust the argument type.
12465
12466 * xfont.c (xfont_get_cache): Adjust the argument type.
12467
12468 * font.h (struct font_driver): Change argument type of get_cache.
12469
12470 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12471
12472 * font.c (Ffont_get): Fix arguments to Fassoc.
12473 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12474 (font_clear_cache): New function.
12475 (font_list_entities, font_matching_entity): Use font_get_cache.
12476 (font_update_drivers): Call font_clear_cache when finishing a driver.
12477
12478 * fontset.c (fontset_find_font): Fix previous change.
12479
124802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12481
12482 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12483 dpyinfo->font_table.
12484 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12485 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12486
12487 * font.c (font_at): Handle the case that the arg C is negative.
12488 Handle the unibyte case.
12489 (Ffont_at): Call font_at with the arg C -1.
12490
12491 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12492 the position here, and call font_at with the arg C -1.
12493 Don't check the range of the existing composition at the point.
12494
124952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12496
12497 * fontset.c (fontset_add): New args charset_id and family.
12498 Change caller.
12499 (load_font_get_repertory, fontset_find_font): Assume that
12500 font_spec is always a font-spec object.
12501 (Fset_fontset_font): Always store a font-spec object in a fontset.
12502
12503 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12504 instead of get_property_and_range.
12505
125062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12507
12508 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12509 (xftfont_open): Don't keep locking face.
12510 (xftfont_close): Don't unlock face.
12511 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12512
12513 * fontset.c (fontset_find_font): Don't prefer a font of
12514 supplementary charset.
12515
125162008-02-01 Kenichi Handa <handa@m17n.org>
12517
12518 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12519 script, langsys_tag to langsys, new member script.
12520 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12521 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12522 listing to the script specified in that property. Fix arg to
12523 OTF_check_features.
12524
125252008-02-01 Jason Rumney <jasonr@gnu.org>
12526
12527 * w32font.h: New file.
12528
12529 * w32font.c: Include it.
12530 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12531 (w32font_open): Set owning_frame.
12532 (w32font_text_extents): Use owning_frame.
12533 (struct font_callback_data): Add opentype_only field.
12534 (add_font_entity_to_list): Use it to filter fonts.
12535 Don't check against full name.
12536 (w32font_list_internal): New function.
12537 (w32font_list): Use it.
12538 (w32font_match_internal): New function.
12539 (w32font_match): Use it.
12540 (w32font_open_internal): New function.
12541 (w32font_open): Use it.
12542 (w32font_get_cache, w32font_close, w32font_has_char)
12543 (w32font_encode_char, w32font_text_extents, w32font_draw):
12544 Make non-static.
12545
12546 * makefile.w32-in (w32font.o): Depend on w32font.h.
12547
125482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12549
12550 * charset.c (Fdefine_charset_internal): Record a supplementary
12551 charset at the tail of Vcharset_order_list.
12552
12553 * font.c (Ffont_shape_text): Fix the return value.
12554
12555 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12556
12557 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12558
125592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12560
12561 * ftfont.c (struct OpenTypeSpec): New struct.
12562 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12563 (ftfont_get_open_type_spec): New function.
12564 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12565
12566 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12567
125682008-02-01 Jason Rumney <jasonr@gnu.org>
12569
12570 * w32font.c (add_font_entity_to_list): Compare only the beginning
12571 of full name.
12572
125732008-02-01 Kenichi Handa <handa@m17n.org>
12574
12575 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12576 Never return HANDLED_RECOMPUTE_PROPS.
12577
125782008-02-01 Kenichi Handa <handa@m17n.org>
12579
12580 * font.c (font_gstring_produce): Delete it.
12581
12582 * composite.h (COMPOSITION_METHOD):
12583 Handle COMPOSITION_WITH_GLYPH_STRING.
12584
125852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12586
12587 * xfont.c (Qx): Delete.
12588 (syms_of_xfont): Don't initialize Qx.
12589
12590 * composite.h (enum composition_method):
12591 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12592
125932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12594
12595 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12596 (choose_face_font): Accept new form of font-spec.
12597
12598 * frame.h (font_driver_list): Declare it unconditionally.
12599 (struct frame): Define members font_driver_list and font_data_list
12600 unconditionally.
12601
12602 * fontset.c: Include "font.h" unconditionally.
12603 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12604 (Fset_fontset_font): Accept a font-spec object.
12605
12606 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12607 PIXEL_SIZE part a wild card.
12608
12609 * dispextern.h (struct glyph_string): Define members clip and
12610 num_clips unconditionally.
12611 (struct face): Define members font_info and extra unconditionally.
12612
12613 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12614 ftfont_info only when HAVE_LIBOTF is defined.
12615
126162008-02-01 Andreas Schwab <schwab@suse.de>
12617
12618 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12619 and end.
12620
126212008-02-01 Jason Rumney <jasonr@gnu.org>
12622
12623 * w32font.c (w32font_driver): Add new fields.
12624
126252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12626
12627 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12628 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12629 (LIBES): Add @M17N_FLT_CFLAGS@.
12630
12631 * composite.c (compose_text): Don't treat the new style
12632 composition specially.
12633
12634 * emacs.c (main): Call syms_of_font unconditionally.
12635
12636 * font.h (FONT_ENTITY_NOT_LOADABLE)
12637 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12638 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12639 (struct font_driver): New member shape.
12640 (font_registry_charsets): Extern it.
12641 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12642 (font_otf_capability, font_drive_otf): Delete their externs.
12643
12644 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12645 (font_charset_alist, font_registry_charsets): Move from xfont.c
12646 and rename.
12647 (font_prop_validate_otf): New function.
12648 (font_property_table): Register it for QCotf.
12649 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12650 (font_drive_otf): Delete.
12651 (font_prepare_composition): New arg F. Adjust for the change of
12652 lispy gstring.
12653 (font_find_for_lface): New arg C.
12654 (font_load_for_face): Adjust for the change of font_find_for_lface.
12655 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12656 lispy gstring.
12657 (Ffont_shape_text): New function.
12658 (Fopen_font): If the font size is not given, use 12-pixel.
12659 (Ffont_at): New arg STRING.
12660 (syms_of_font): Initalize font_charset_alist.
12661 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12662 conditionally.
12663
12664 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12665 fonts of the same font-spec. Change the format of RFONT-DEF.
12666 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12667 Adjust for the change of RFONT-DEF.
12668 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12669
12670 * ftfont.h: New file.
12671
12672 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12673 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12674 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12675 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12676 font_otf_capability and font_drive_otf, set ftfont_shape.
12677 (ftfont_list): Adjust for the change of :otf property value.
12678 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12679 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12680 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12681 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12682 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12683 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12684
12685 * w32term.c (x_draw_composite_glyph_string_foreground):
12686 Adjust for the change of lispy gstring.
12687
12688 * xdisp.c (handle_composition_prop): Adjust for the change of
12689 lispy gstring. Call a function for auto-composition with the
12690 third arg it->window.
12691 (fill_composite_glyph_string): Adjust for the change of lispy string.
12692 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12693
12694 * xfaces.c (set_font_frame_param): Adjust for the change of
12695 font_find_for_lface.
12696
12697 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12698 (xfont_registry_charsets): Likewise. Change caller.
12699 (syms_of_xfont): Don't handle x_font_charset_alist.
12700
12701 * xftfont.c: Include "ftfont.h".
12702 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12703 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12704 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12705 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12706 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12707 Set xftfont_driver.shape to xftfont_shape.
12708
12709 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12710 the change of lispy gstring.
12711
127122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12713
12714 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12715
127162008-02-01 Jason Rumney <jasonr@gnu.org>
12717
12718 * w32font.c (w32font_draw): Fill background manually.
12719
127202008-02-01 Jason Rumney <jasonr@gnu.org>
12721
12722 * font.c (Qfontp): Remove unused symbol.
12723 (QCantialias): New symbol.
12724 (syms_of_font): Define it.
12725 (font_property_table): Set a validator for QCantialias.
12726
12727 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12728 Define if not already.
12729 (QCfamily): Share with xfaces.c.
12730 (Qstandard, Qsubpixel, Qnatural): New symbols.
12731 (syms_of_w32font): Define them. Don't define QCfamily here.
12732 (w32_antialias_type, lispy_antialias_type): New functions.
12733 (w32_enumfont_pattern_entity): New arg requested_font.
12734 Set antialias parameter if non-default was requested.
12735 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12736
127372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12738
12739 * lread.c (read1): Undo the previous change.
12740
127412008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12742
12743 * frame.c (Fdelete_frame): Call font_update_drivers only when
12744 USE_FONT_BACKEND is defined.
12745
127462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12747
12748 * font.h (struct font_bitmap): New member bits_per_pixel.
12749 (struct font_driver): New members start_for_frame and end_for_frame.
12750 (struct font_data_list): New struct.
12751 (font_put_frame_data, font_get_frame_data): Extern them.
12752
12753 * frame.h (struct frame): New member font_data_list.
12754
12755 * font.c (font_update_drivers): Call driver->start_for_frame and
12756 driver->end_for_frame at proper timings.
12757 (font_put_frame_data, font_get_frame_data): New functions.
12758 (Ffont_spec): Add usage in the docstring.
12759
12760 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12761 (Fdelete_frame): Call font_update_drivers.
12762
12763 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12764 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12765 (xftfont_get_xft_draw): New function.
12766 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12767 (xftfont_end_for_frame): New function.
12768 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12769
12770 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12771 Change argument. Cache GCs in the per-frame data.
12772 (struct ftxfont_frame_data): New struct.
12773 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12774 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12775 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12776 (ftxfont_end_for_frame): New function.
12777 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12778
12779 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12780
127812008-02-01 Kenichi Handa <handa@m17n.org>
12782
12783 * xselect.c (Vselection_coding_system)
12784 (Vnext_selection_coding_system): Delete them.
12785 (syms_of_xselect): Don't declare selection-coding-system and
12786 next-selection-coding-system. They are declared in select.el.
12787
127882008-02-01 Jason Rumney <jasonr@gnu.org>
12789
12790 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12791
12792 * w32fns.c: Include imm.h.
12793 (get_composition_string_fn, get_ime_context_fn): New optional
12794 system functions.
12795 (globals_of_w32fns): Load them from imm32.dll.
12796 (ignore_ime_char): New flag.
12797 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12798 WM_IME_ENDCOMPOSITION messages.
12799
12800 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12801 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12802
128032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12804
12805 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12806 (READCHAR_REPORT_MULTIBYTE): New macro.
12807 (readchar): New 2nd arg MULTIBYTE.
12808 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12809 Make symbol's name multibyte according to the multibyteness of the
12810 source.
12811
128122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12813
12814 * xfaces.c (face_for_overlay_string): Call lookup_face with
12815 correct arguments (fix of synching with the trunk).
12816
128172008-02-01 Kenichi Handa <handa@m17n.org>
12818
12819 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12820 (font_prop_validate_non_neg, font_prop_validate_spacing):
12821 Delete argument prop_index.
12822 (font_property_table): Change arguments to validater. Change Callers.
12823 (font_lispy_object): Delete.
12824 (font_at): Use font_find_object instead fo font_lispy_object.
12825
128262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12827
12828 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12829 and file names.
12830
128312008-02-01 Jason Rumney <jasonr@gnu.org>
12832
12833 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12834 (font_matches_spec): Remove debug output.
12835 (add_font_entity_to_list): Avoid using substituted fonts.
12836
128372008-02-01 Jason Rumney <jasonr@gnu.org>
12838
12839 * doc.c (Fsnarf_documentation):
12840 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12841
128422008-02-01 Miles Bader <miles@gnu.org>
12843
12844 * dispextern.h (struct glyph_row): Only define "clip" field if
12845 HAVE_WINDOW_SYSTEM is defined.
12846
128472008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12848
12849 Fix up multi-tty merge.
12850
12851 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12852 and indentation.
12853
12854 * xfaces.c (free_realized_face, clear_face_gcs):
12855 Include font_done_for_face in the input_blocked section, just in case.
12856
12857 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12858 (get_char_face_and_encoding): Undo last change and remove the *other*
12859 duplicate definition (i.e. keep the one that's better scoped and that
12860 includes code for the font-backend).
12861
12862 * terminal.c (create_terminal): Default keyboard_coding to
12863 `no-conversion' and terminal_coding to `undecided'.
12864
12865 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12866
12867 * fontset.c (free_realized_fontsets): Check that the table entry does
12868 contain a fontset before trying to compare it to `base'.
12869
12870 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12871 syms_of_charset, and syms_of_coding earlier because init_window_once
12872 now needs Vcoding_system_hash_table to be setup.
12873
12874 * coding.h (default_buffer_file_coding): Remove.
12875
12876 * coding.c (default_buffer_file_coding): Remove.
12877 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12878 than ->symbol, and use the terminal-local coding system.
12879 (syms_of_coding): Don't setup the coding-systems that are not
12880 terminal-local.
12881 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12882
12883 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12884 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12885
12886 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12887 in chartab.c and were re-added here by mistake.
12888 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12889
12890 * doc.c (Fsnarf_documentation):
12891 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12892 src to etc.
12893
12894 * ChangeLog.10: Add mistakenly removed entry.
12895
128962008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12897
12898 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12899
129002008-02-01 Miles Bader <miles@gnu.org>
12901
12902 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12903 Add extra args to FACE_FOR_CHAR.
12904
129052008-02-01 Kenichi Handa <handa@m17n.org>
12906
12907 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12908 in sequence.
12909
12910 * chartab.c (map_sub_char_table, map_char_table): If the range
12911 contains just one character, call the function with that character
12912 even if the depth is not 3.
12913
129142008-02-01 Jason Rumney <jasonr@gnu.org>
12915
12916 * w32font.c (w32font_text_extents): Calculate metrics for the
12917 whole string.
12918
129192008-02-01 Jason Rumney <jasonr@gnu.org>
12920
12921 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12922
129232008-02-01 Jason Rumney <jasonr@gnu.org>
12924
12925 * w32term.c (x_set_glyph_string_clipping): Use
12926 get_glyph_string_clip_rects.
12927 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12928 Adjust for the change of struct glyph_string.
12929
12930 * w32font.c (w32font_draw): Do clipping here.
12931
129322008-02-01 Kenichi Handa <handa@m17n.org>
12933
12934 * xftfont.c (xftfont_draw): Adjust for the change of struct
12935 glyph_string.
12936
12937 * xterm.c (x_set_glyph_string_clipping): Use
12938 get_glyph_string_clip_rects.
12939 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12940 Adjust for the change of struct glyph_string.
12941
12942 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12943 the resulting clip(s}.
12944 (expose_overlaps): Add arg r. Change callers. Set it to
12945 row->clip temporarily.
12946 (expose_window): Redraw rows overlapping the exposed area.
12947
12948 * dispextern.h (struct glyph_row): New member clip.
12949 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12950 clip_height, new member clip, and num_clips.
12951
129522008-02-01 Kenichi Handa <handa@m17n.org>
12953
12954 * data.c (Fchar_or_string_p): Fix docstring.
12955
129562008-02-01 Kenichi Handa <handa@m17n.org>
12957
12958 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12959 create a temporary XftDraw object.
12960
129612008-02-01 Kenichi Handa <handa@m17n.org>
12962
12963 * font.c (Ffontp): Fix docstring.
12964
12965 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12966 strong evidence of ISO-2022.
12967
129682008-02-01 Kenichi Handa <handa@m17n.org>
12969
12970 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12971 SYNTAX_ENTRY_FOLLOW_PARENT.
12972
129732008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12974
12975 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12976 its type.
12977 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12978 Update to the new type of weak_hash_tables and next_weak.
12979
12980 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12981 a plain C pointer to Lisp_Hash_Table.
12982
12983 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12984 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12985 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12986 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12987 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12988 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12989 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12990 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12991 (GC_EQ): Remove since they've been identical to their non-GC_
12992 alter-egos ever since the markbit was eradicated.
12993
12994 * alloc.c:
12995 * buffer.c:
12996 * buffer.h:
12997 * data.c:
12998 * fileio.c:
12999 * filelock.c:
13000 * fns.c:
13001 * frame.h:
13002 * lisp.h:
13003 * macterm.c:
13004 * print.c:
13005 * process.c:
13006 * w32fns.c:
13007 * w32menu.c:
13008 * w32term.c:
13009 * xfns.c:
13010 * xmenu.c:
13011 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
13012
130132008-02-01 Kenichi Handa <handa@m17n.org>
13014
13015 * chartab.c (map_sub_char_table): Make it work for the top-level
13016 char-table. Fix handling of parent char-table.
13017 (map_char_table): Adjust for the above change.
13018
130192008-02-01 Jason Rumney <jasonr@gnu.org>
13020
13021 * w32font.c (Qgdi): Rename from Qw32.
13022
130232008-02-01 Jason Rumney <jasonr@gnu.org>
13024
13025 * w32bdf.c (get_quoted_string): Make function static.
13026
130272008-02-01 Kenichi Handa <handa@m17n.org>
13028
13029 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
13030 bigger ascent and descent than those of the font, use them as
13031 font's ascent and descent.
13032
130332008-02-01 Kenichi Handa <handa@m17n.org>
13034
13035 * Makefile.in (${lispsource}international/charprop.el): Move this
13036 target within "#ifdef HAVE_UNIDATA" and "#endif".
13037
130382008-02-01 Kenichi Handa <handa@m17n.org>
13039
13040 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13041 (shortlisp): Add ../lisp/language/tai-viet.el.
13042
130432008-02-01 Ulrich Mueller <ulm@gentoo.org>
13044
13045 * Makefile.in (${lispsource}international/charprop.el): Depend on
13046 temacs${EXEEXT}.
13047
130482008-02-01 Jason Rumney <jasonr@gnu.org>
13049
13050 * w32font.c (w32font_close): Delete the GDI font object.
13051
13052 * w32menu.c: Include character.h.
13053
13054 * w32proc.c: Likewise.
13055
13056 * w32select.c: Likewise.
13057
13058 * makefile.w32-in (w32proc.o): Depend on character.h.
13059
130602008-02-01 Jason Rumney <jasonr@gnu.org>
13061
13062 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13063
13064 * w32menu.c (syms_of_w32menu): Likewise.
13065
13066 * w32proc.c (syms_of_ntproc): Likewise.
13067
13068 * w32select.c (syms_of_w32select): Likewise.
13069
13070 * w32term.c (syms_of_w32term): Likewise.
13071
130722008-02-01 Jason Rumney <jasonr@gnu.org>
13073
13074 * w32font.c (w32font_draw): Delete brush after using it.
13075
130762008-02-01 Jason Rumney <jasonr@gnu.org>
13077
13078 * w32font.c (w32font_open): Don't set font_idx.
13079 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13080 to font settings.
13081 (w32font_draw): Fill background explicitly.
13082
130832008-02-01 Jason Rumney <jasonr@gnu.org>
13084
13085 * w32term.c (w32_initialize): Don't call w32font_initialize.
13086
13087 * w32font.c (w32font_info): Remove subranges.
13088 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13089 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13090 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13091 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13092 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13093 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13094 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13095 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13096 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13097 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13098 New symbols.
13099 (font_callback_data): New struct.
13100 (w32font_list, w32font_match): Use it.
13101 (w32font_open): Don't populate subranges.
13102 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13103 (w32font_encode_char): Always return unicode code-point as-is.
13104 (w32font_text_extents): Supply a transformation matrix to
13105 GetGlyphOutline. Never look up by glyph index. Avoid looping
13106 twice. Use unicode version of GetTexExtentPoint32 instead of
13107 glyph index version.
13108 (set_fonts_frame): Remove.
13109 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13110 set frame parameter. Use backward compatible fake foundries.
13111 Save generic family in extra slot under QCfamily. Make width slot
13112 constant. Save QCspacing value. Save list of scripts instead of
13113 binary subranges.
13114 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13115 (add_font_entity_to_list): Use font_callback_data struct. Filter
13116 unwanted fonts.
13117 (add_one_font_entity_to_list): Use font_callback_data struct.
13118 (w32_registry): Default to iso10646_1.
13119 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13120 string font registries. Don't fill in font name if it is a generic
13121 family name, fill family instead. Use spacing, family and script
13122 extra info to fill pitch, family and charset fields.
13123 (list_all_matching_fonts): Use font_callback_data struct.
13124 (unicode_range_for_char): Remove.
13125 (font_supported_scripts): New function.
13126 (w32font_initialize): Remove.
13127 (syms_of_w32font): Update which symbols are defined.
13128
131292008-02-01 Jason Rumney <jasonr@gnu.org>
13130
13131 * font.c (font_pixel_size): Reverse assq_no_quit args.
13132
13133 * w32term.h (FONT_WIDTH): Report max width, not average.
13134 (FONT_MAX_WIDTH): Remove.
13135 (FONT_AVG_WIDTH): New macro.
13136
13137 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13138 redefinition of FONT_WIDTH.
13139
13140 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13141 (w32_cache_char_metrics): Use FONT_WIDTH.
13142
13143 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13144
131452008-02-01 Jason Rumney <jasonr@gnu.org>
13146
13147 * w32font.c (w32font_open): Make lfHeight negative.
13148
13149 * w32fns.c (x_default_font_parameter): Use new style font name.
13150 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13151
131522008-02-01 Jason Rumney <jasonr@gnu.org>
13153
13154 * w32font.c (QCsubranges): New symbol.
13155 (w32font_open, w32font_has_char): Get subranges from subproperty
13156 of extra.
13157 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13158 (syms_of_w32font): Define :subranges symbol.
13159
13160 * font.c (font_put_extra): Expose externally.
13161
13162 * font.h (font_put_extra): Move declaration from font.c.
13163
13164 * font.c (Ffont_get): Use font driver to determine otf capability.
13165 (adjust_anchor): Check if driver defines anchor_point before using.
13166
13167 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13168 (w32font_draw): Use options.
13169 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13170 Fix detection of truetype fonts.
13171 (registry_to_w32_charset): Handle charsets other than iso8859-1
13172 expressed as lisp symbols.
13173 (w32_registry): Express charset as lisp symbol.
13174 (fill_in_logfont): Reverse pixel and point height logic.
13175 Don't set width here. Set quality to default.
13176
13177 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13178 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13179
13180 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13181 Remove redundant loop and allocation.
13182
13183 * makefile.w32-in (font.o, w32font.o): New objects.
13184 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13185 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13186
13187 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13188 STORE_XCHARB a valid l-value.
13189
13190 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13191 calculations for non-Truetype fonts.
13192 (x_draw_glyph_string): Sync with xterm.c.
13193 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13194 Remove redundant code.
13195 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13196
13197 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13198 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13199
13200 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13201 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13202
13203 * w32font.c: New file for w32 font backend.
13204
132052008-02-01 Kenichi Handa <handa@m17n.org>
13206
13207 * term.c: Don't include "buffer.h" twice.
13208
132092008-02-01 Kenichi Handa <handa@m17n.org>
13210
13211 * character.c (Funibyte_string): New function.
13212 (syms_of_character): Defsubr it.
13213
132142008-02-01 Jason Rumney <jasonr@gnu.org>
13215
13216 * w32term.c [USE_FONT_BACKEND]:
13217 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13218 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13219 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13220 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13221 (x_free_frame_resources): Sync with xterm.c.
13222
132232008-02-01 Andreas Schwab <schwab@suse.de>
13224
13225 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13226 char-table size.
13227
132282008-02-01 Kenichi Handa <handa@m17n.org>
13229
13230 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13231
132322008-02-01 Kenichi Handa <handa@m17n.org>
13233
13234 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13235 font_otf_gpos, add font_drive_otf.
13236
13237 * fontset.c (fontset_find_font): Pay attention to font size
13238 specified for a font.
13239 (reorder_font_vector): Check contents of font_def.
13240
13241 * font.c (struct otf_list): Delete it.
13242 (otf_list): Make it a lisp variable.
13243 (otf_open): Use lispy otf_list.
13244 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13245 (check_otf_features): New function.
13246 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13247 New functions.
13248 (font_drive_otf): New function merging font_otf_gsub and
13249 font_otf_gpos.
13250 (font_open_for_lface): New arg spec. Change argument order.
13251 (font_load_for_face): Adjust for the change of font_open_for_lface.
13252 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13253 Ffont_otf_gpos.
13254 (syms_of_font): Staticpro otf_list. Delete defsubr of
13255 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13256
13257 * xfaces.c (set_font_frame_param): Adjust for the change of
13258 font_open_for_lface.
13259
13260 * font.h (font_open_for_lface): Adjust prototype.
13261 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13262 member otf_drive.
13263 (font_otf_gsub, font_otf_gpos): Delete externs.
13264 (font_drive_otf): Extern it.
13265
132662008-02-01 Kenichi Handa <handa@m17n.org>
13267
13268 * font.c (font_at): If the window W is not on a window system,
13269 return Qnil.
13270
13271 * coding.c (produce_chars, encode_coding): Don't call
13272 insert_from_gap if no characters to produce.
13273
132742008-02-01 Kenichi Handa <handa@m17n.org>
13275
13276 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13277 Fclear_face_cache.
13278
13279 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13280
132812008-02-01 Miles Bader <miles@gnu.org>
13282
13283 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13284 Parse "--disable-font-backend" option.
13285 (standard_args): Add "--disable-font-backend" option.
13286
132872008-02-01 Kenichi Handa <handa@m17n.org>
13288
13289 * fontset.c (fontset_find_font): New function.
13290 (fontset_font): Use fontset_find_font.
13291 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13292 Register the specified font for all Latin characters.
13293 (new_fontset_from_font): Register the specified font for all Latin
13294 characters.
13295 (dump_fontset): For a realized fontset, include the base fontset
13296 name in the returned vector.
13297
132982008-02-01 Kenichi Handa <handa@m17n.org>
13299
13300 * character.h (CHAR_STRING): Cast C to unsigned on calling
13301 char_string.
13302
13303 * character.c (char_string): Type of arg C changed to unsigned.
13304 Signal an error if C is an invalid character code.
13305
13306 * editfns.c (general_insert_function, Fchar_to_string):
13307 Use CHARACTERP, not INTEGERP.
13308
133092008-02-01 Kenichi Handa <handa@m17n.org>
13310
13311 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13312 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13313
13314 * regex.c (analyse_first): Fix for multibyte characters in "case
13315 charset:" and "case categoryspec:".
13316
133172008-02-01 Andreas Schwab <schwab@suse.de>
13318
13319 * Makefile.in (LIBES): Move standard libraries to the end.
13320
133212008-02-01 Kenichi Handa <handa@m17n.org>
13322
13323 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13324 nonzero, don't shrink the buffer nextb.
13325
13326 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13327
13328 * coding.c (coding_alloc_by_making_gap): New arg offset.
13329 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13330 offset.
13331 (decode_coding_iso_2022): Update coding->safe_charsets.
13332 (decode_coding_gap): Temporarily set
13333 current_buffer->text->inhibit_shrinking to 1.
13334
133352008-02-01 Kenichi Handa <handa@m17n.org>
13336
13337 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13338 indexing into elements of s->cmp and s->char2b.
13339
133402008-02-01 Juanma Barranquero <lekktu@gmail.com>
13341
13342 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13343
133442008-02-01 Kenichi Handa <handa@m17n.org>
13345
13346 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13347 target_multibyte instead of multibyte.
13348 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13349 (bcmp_translate): Change the argument name from multibyte to
13350 target_multibyte.
13351
133522008-02-01 Kenichi Handa <handa@m17n.org>
13353
13354 These changes are to compile a regexp into a pattern that can be
13355 used both for multibyte and unibyte targets.
13356
13357 * Makefile.in (search.o): Depend on charset.h.
13358
13359 * character.c (multibyte_char_to_unibyte_safe): New function.
13360
13361 * search.c: Include "charset.h".
13362 (compile_pattern_1): Delete argument multibyte. Don't set
13363 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13364 (compile_pattern): Don't compare cp->buf.target_multibyte.
13365 Compare cp->buf.charset_unibyte.
13366 (compile_pattern): Set cp->buf.target_multibyte.
13367
13368 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13369
13370 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13371
13372 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13373 multibyte. Change callers.
13374 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13375 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13376 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13377 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13378 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13379 (regex_compile): Make the compiled pattern usable both for
13380 multibyte and unibyte targets.
13381 (analyse_first): Make the fastmap usable both for multibyte and
13382 unibyte targets.
13383 (TRANSLATE_VIA_MULTIBYTE): Delete.
13384 (re_match_2_internal): Pay attention to the case that the
13385 multibyteness of bufp and target may be different.
13386
133872008-02-01 Kenichi Handa <handa@m17n.org>
13388
13389 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13390 empty box occupy at least one column width.
13391
133922008-02-01 Miles Bader <miles@gnu.org>
13393
13394 * Makefile.in: Remove redundant HAVE_XFT clause.
13395
133962008-02-01 Kenichi Handa <handa@m17n.org>
13397
13398 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13399
134002008-02-01 Kenichi Handa <handa@m17n.org>
13401
13402 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13403 being nil.
13404
134052008-02-01 Kenichi Handa <handa@m17n.org>
13406
13407 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13408
134092008-02-01 Kenichi Handa <handa@m17n.org>
13410
13411 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13412
134132008-02-01 Kenichi Handa <handa@m17n.org>
13414
13415 * search.c (simple_search): Fix previous change.
13416
134172008-02-01 Kenichi Handa <handa@m17n.org>
13418
13419 * xftfont.c (ftfont_font_format): Extern declaration.
13420
13421 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13422
13423 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13424 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13425
13426 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13427 (ftfont_font_format): Fix previous change.
13428
13429 * font.h (Ffont_xlfd_name): EXFUN it.
13430
13431 * font.c (font_parse_xlfd): Fix the array size of `f'.
13432 (register_font_driver): Use EQ to compare driver->type.
13433
13434 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13435 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13436 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13437
134382008-02-01 Kenichi Handa <handa@m17n.org>
13439
13440 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13441 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13442
134432008-02-01 Kenichi Handa <handa@m17n.org>
13444
13445 * xfont.c (xfont_open): Set font->format.
13446
13447 * xftfont.c (xftfont_open): Set font->format.
13448
13449 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13450 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13451 (ftfont_open): Set font->format.
13452 (ftfont_font_format): New function.
13453
13454 * font.h (struct font): New member format.
13455
13456 * font.c (Qopentype): New variable.
13457 (syms_of_font): Defsym it.
13458 (Fquery_font): Change the format of the last element of the return
13459 value.
13460
134612008-02-01 Kenichi Handa <handa@m17n.org>
13462
13463 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13464 last resort.
13465
134662008-02-01 Kenichi Handa <handa@m17n.org>
13467
13468 * coding.c (detect_coding_charset): Fix detection of multi-byte
13469 charset.
13470
134712008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13472
13473 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13474
134752008-02-01 Kenichi Handa <handa@m17n.org>
13476
13477 * xdisp.c (get_next_display_element): Set it->face_id for the
13478 first component of a composition.
13479 (x_produce_glyphs): Check if the font is changed or not for composition.
13480
134812008-02-01 Kenichi Handa <handa@m17n.org>
13482
13483 * fontset.c (Qlatin): New variable.
13484 (syms_of_fontset): Define it as a lisp symbol.
13485 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13486
134872008-02-01 Kenichi Handa <handa@m17n.org>
13488
13489 * font.c (font_unparse_fcname): Pay attention to the case that
13490 some of font property is a null string.
13491
134922008-02-01 Kenichi Handa <handa@m17n.org>
13493
13494 * term.c: Include "composite.h".
13495 (encode_terminal_code): Output all components of composition.
13496 Check the size of encode_terminal_src.
13497 (produce_glyphs): For composition, call produce_composite_glyph.
13498 (append_composite_glyph, produce_composite_glyph): New functions.
13499
13500 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13501 is not found, get font_info from the current ascii face.
13502
135032008-02-01 Kenichi Handa <handa@m17n.org>
13504
13505 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13506 buffer-file-name to Qnil before calling insert_from_buffer.
13507
13508 * font.c (font_unparse_fcname): Pay attention to the case that
13509 foundry is a null string.
13510
135112008-02-01 Kenichi Handa <handa@m17n.org>
13512
13513 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13514
13515 * font.c (Qunicode_sip): New variable.
13516 (syms_of_font): Declare it as a Lisp symbol.
13517
13518 * font.h (Qunicode_sip): Extern it.
13519
135202008-02-01 Kenichi Handa <handa@m17n.org>
13521
13522 * composite.c (get_composition_id): Pay attention to TAB component.
13523
13524 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13525 TAB. Adjust for the change of s->char2b which always points to
13526 the first element of allocated memory.
13527
13528 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13529
13530 * xdisp.c (handle_composition_prop): Set it->c to the first
13531 non-TAB component.
13532 (fill_composite_glyph_string): Change argument.
13533 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13534 (x_produce_glyphs): Fix handling of left/right padding.
13535
135362008-02-01 Kenichi Handa <handa@m17n.org>
13537
13538 * coding.c (detect_coding_system): Fix for handling off
13539 inhibit_iso_escape_detection. Fix for the case that no coding
13540 system is defined for a specific coding category.
13541
135422008-02-01 Kenichi Handa <handa@m17n.org>
13543
13544 * font.c (font_matching_entity): Delete unused local var.
13545
13546 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13547 opening a font.
13548
13549 * fileio.c (Finsert_file_contents): On recovering a file, assume
13550 Unix-like eol.
13551 (choose_write_coding_system): On auto-saving a file, force
13552 Unix-like eol.
13553
13554 * coding.c (setup_coding_system): Fix setting of
13555 coding->common_flags based on eol_type.
13556 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13557 inherit from it.
13558
135592008-02-01 Kenichi Handa <handa@m17n.org>
13560
13561 * alloc.c (NSTATICS): Increas to 0x600.
13562
135632008-02-01 Kenichi Handa <handa@m17n.org>
13564
13565 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13566 (ftfont_list): Don't check :name property.
13567 (ftfont_match): New function.
13568 (ftfont_pattern_entity): If the pattern doesn't contain
13569 FC_SPACING, don't assume FC_MONO.
13570
13571 * font.h (struct font_driver): New member `match'.
13572 (font_update_drivers): Adjust prototype.
13573
13574 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13575 property of FONT.
13576 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13577 them unconditionally.
13578 (font_matching_entity): New function.
13579 (font_open_by_name): Try font_matching_entity if exact match is
13580 not found.
13581 (font_update_drivers): Delete the arg FONT. Return a list of
13582 actually used backends. Don't free faces, font caches here.
13583 Don't store data in frame parameters. Don't call x_set_font.
13584 (Ffont_spec): Store :name property as is.
13585 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13586 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13587 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13588 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13589 Call font->driver->otf_gsub instead of font_otf_gsub.
13590
13591 * frame.c (x_set_font_backend): Do more works that were done in
13592 font_update_drivers before.
13593
13594 * xfont.c (xfont_match): New function.
13595 (xfont_driver): Set xfont_driver.match to xfont_match.
13596 (xfont_draw): Set font in GC if necessary.
13597
13598 * ftxfont.c (ftxfont_match): New function.
13599 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13600
13601 * xftfont.c (xftfont_match): New function.
13602 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13603
136042008-02-01 Kenichi Handa <handa@m17n.org>
13605
13606 * font.h (struct font): New member scalable.
13607 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13608 (font_otf_gsub): Adjust prototype.
13609
13610 * font.c (font_otf_capability): Fix handling of the default langsys.
13611 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13612 Check the contents of SPEC.
13613 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13614 (check_gstring): New function.
13615 (REPLACEMENT_CHARACTER): New macro.
13616 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13617 glyph codes of GSTRING.
13618 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13619 (font_prepare_composition): Set cmp->glyph_len.
13620 (font_open_entity): Set font->scalable.
13621 (Ffont_get): Handle :otf property.
13622 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13623 functions.
13624 (Fquery_font): Use font->font.full_name.
13625 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13626 Sfont_otf_alternates.
13627
13628 * ftfont.c (ftfont_open): Set font->font.full_name and
13629 font->font.name properly. Fix calculation of font->font.height
13630 and font->min_width.
13631
13632 * ftxfont.c (ftxfont_create_gcs): New function.
13633 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13634 (ftxfont_draw_backgrond): Fix filling region.
13635 (ftxfont_default_fid): New function.
13636 (ftxfont_open): Set xfont->fid to the return value of
13637 ftxfont_default_fid.
13638 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13639 (ftxfont_done_face): Free only GCs that are created by
13640 ftxfont_create_gcs.
13641 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13642
13643 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13644 Clip to src->width, etc (not src->clip_XXX).
13645
13646 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13647 FontBackend frame parameter.
13648
136492008-02-01 Kenichi Handa <handa@m17n.org>
13650
13651 * font.h (struct font_driver_list): New member `on'.
13652 (Fclear_font_cache): EXFUN it.
13653 (font_update_drivers): Extern it.
13654
13655 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13656 (font_list_entities): Check driver_list->on.
13657 (register_font_driver): Initalize `on' member to 0.
13658 (font_update_drivers): New function.
13659 (Fclear_font_cache): Check driver_list->on.
13660
13661 * frame.h (Qfont_backend): Extern it.
13662 (x_set_font_backend): Extern it.
13663
13664 * frame.c (Qfont_backend): New variable.
13665 (frame_parms): New element for font-backend.
13666 (x_set_font_backend): New function.
13667
13668 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13669 FontBackend frame parameter.
13670 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13671 x_set_font_backend.
13672
13673 * xfont.c (xfont_list): Don't try listing by :name property if the
13674 name is not for XLFD.
13675
136762008-02-01 Kenichi Handa <handa@m17n.org>
13677
13678 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13679 (LGLYPH_SET_TO): New macros.
13680 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13681 element of G is vector or not.
13682 (font_at): Extern it.
13683
13684 * font.c: Include window.h.
13685 (font_lispy_object): New function.
13686 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13687 end of valid glyph.
13688 (font_close_object): Fix getting (struct font *).
13689 (font_at): New function.
13690 (Ffont_get): If FONT is a font-object, get entity from it.
13691 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13692 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13693 range check.
13694 (Ffont_at): New function.
13695 (syms_of_font): Defsubr Sfont_at.
13696
13697 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13698 before the entry for Qcomposition.
13699 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13700 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13701 the font in gstring.
13702 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13703 LGLYPH_FORM (g) to detect the end of valid glyph.
13704 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13705 we are composing with gstring.
13706
13707 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13708 Check if adjustment is vector or not.
13709
13710 * Makefile.in (font.o): Make it depends on window.h.
13711
137122008-02-01 Kenichi Handa <handa@m17n.org>
13713
13714 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13715 adjustment is vector or not.
13716
137172008-02-01 Miles Bader <miles@gnu.org>
13718
13719 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13720
137212008-02-01 Kenichi Handa <handa@m17n.org>
13722
13723 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13724 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13725 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13726
13727 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13728 (DEVICE_DELTA): Fix typo.
13729 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13730 LGLYPH format.
13731
13732 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13733 the change of LGLYPH format.
13734
137352008-02-01 Kenichi Handa <handa@m17n.org>
13736
13737 * ftfont.c (ftfont_list): Fix typo.
13738 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13739
137402008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13741
13742 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13743
13744 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13745 xftface_info is non-NULL.
13746
137472008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13748
13749 * ftfont.c (ftfont_list): Move misplaced #endif.
13750
137512008-02-01 Kenichi Handa <handa@m17n.org>
13752
13753 * ftfont.c (ftfont_list): Pay attention to the case that
13754 FC_CAPABILITY is not defined.
13755
137562008-02-01 Kenichi Handa <handa@m17n.org>
13757
13758 * xftfont.c (xftfont_open): Set charset related members to -1.
13759
13760 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13761 QCname.
13762 (ftfont_open): Set charset related members to -1.
13763
13764 * fontset.c (Votf_script_alist): New variable.
13765 (syms_of_fontset): Initialize it.
13766 (fontset_font): Delete unused variable.
13767
13768 * fontset.h (Votf_script_alist): Extern it.
13769
13770 * font.c (font_find_for_lface): Optimize code.
13771
13772 * font.h (font_close_object, font_merge_old_spec): Extern them.
13773
137742008-02-01 Kenichi Handa <handa@m17n.org>
13775
13776 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13777 (syms_of_font): Initialize them.
13778 (font_pixel_size): Allow float value in dpi.
13779 (font_prop_validate_type): Delete.
13780 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13781 Change caller.
13782 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13783 (font_prop_validate_extra): Delete.
13784 (font_prop_validate_spacing): New function.
13785 (font_property_table): Add elements for all known properties.
13786 (get_font_prop_index): Rename from check_font_prop_name. New
13787 argument FROM. Change caller.
13788 (font_prop_validate): Validate all known properties.
13789 (font_put_extra): Delete argument force. Change caller.
13790 (font_expand_wildcards): Make it static. Fix the way of shrinking
13791 the possible range.
13792 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13793 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13794 Change caller.
13795 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13796 (font_parse_fcname): Delete argument merge. Fix parsing of point
13797 size. Don't validate properties values here. Change caller.
13798 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13799 (font_open_by_name): Delete unused variable.
13800 (Ffont_spec): Likewise. Validate property values.
13801 (Ffont_match_p): New function.
13802
13803 * font.h (QCscalable): Extern it.
13804 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13805
13806 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13807
13808 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13809 (xfont_list_pattern): New function.
13810 (xfont_list): Use xfont_list_pattern.
13811
138122008-02-01 Kenichi Handa <handa@m17n.org>
13813
13814 * font.h (Flist_fonts): EXFUN it.
13815
138162008-02-01 Jason Rumney <jasonr@gnu.org>
13817
13818 * w32term.c (w32_initialize): Add back smoothing_type and
13819 smoothing_enabled definitions.
13820
138212008-02-01 Kenichi Handa <handa@m17n.org>
13822
13823 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13824 s->face->font on determining underline position.
13825
138262008-02-01 Kenichi Handa <handa@m17n.org>
13827
13828 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13829 (font_has_char): Accept font-object too.
13830 (font_find_for_lface): Try at first with a size specified in face.
13831
138322008-02-01 Kenichi Handa <handa@m17n.org>
13833
13834 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13835 font_open_by_name.
13836
138372008-02-01 Kenichi Handa <handa@m17n.org>
13838
13839 * font.h (QCspacing, QCdpi): Extern them.
13840 (enum font_spacing): New enum.
13841 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13842
13843 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13844 (QCspacing, QCdpi): New variables.
13845 (syms_of_font): Initialize them.
13846 (font_pixel_size): New function.
13847 (font_put_extra): New function.
13848 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13849 in FONT_EXTRA.
13850 (font_parse_fcname): Handle enumerated values (e.g. bold).
13851 Fix handling font size. Add QCname property that contains only
13852 unknown properties.
13853 (font_score): Change argument. Change caller. Pay attention to
13854 FONT_PIXEL_SIZE_QUANTUM.
13855 (font_sort_entites, font_list_entities, font_find_for_lface)
13856 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13857 (Ffont_spec): Add QCname property that contains only unknown properties.
13858
13859 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13860 include weight in listing pattern, instead check weight of each
13861 listed font. Don't include scalable in pattern. Pay attention to
13862 FONT_PIXEL_SIZE_QUANTUM.
13863
138642008-02-01 Kenichi Handa <handa@m17n.org>
13865
13866 * font.c (font_parse_fcname): Fix parsing of point-size.
13867 (font_unparse_fcname): Produce symbolic names for style properties.
13868 (font_list_entities): Handle float size correctly.
13869 (font_open_by_name): Prefer `normal' property values if the name
13870 doesn't specify them.
13871
13872 * fontset.c (Finternal_char_font): Use font_get_name, not
13873 Ffont_xlfd_name.
13874
13875 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13876 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13877 pattern. Don't force scalable.
13878
13879 * xftfont.c (xftfont_open): For generating a name, start from
13880 96-byte buffer.
13881
138822008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13883
13884 * frame.h (x_new_fontset2): Fix prototype.
13885
138862008-02-01 Kenichi Handa <handa@m17n.org>
13887
13888 * font.h (struct font_driver): Delete member parse_name.
13889 (font_match_p, font_get_spec, font_parse_fcname)
13890 (font_unparse_fcname): Extern them.
13891 (font_get_name): Adjust prototype.
13892
13893 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13894 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13895 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13896 unnecessary checks for weight, slant, and swidth.
13897 (font_parse_fcname): New function.
13898 (font_unparse_fcname): New function.
13899 (font_parse_name): New function.
13900 (font_match_p): New function.
13901 (font_get_name): Change return value to Lisp string.
13902 (font_get_spec): New function.
13903 (Qunspecified, Qignore_defface): Don't extern them.
13904 (font_find_for_lface): Assume that LFACE is fully specified.
13905 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13906 object, use it for FACE.
13907 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13908 driver->parse_name.
13909 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13910
13911 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13912 prototype.
13913
13914 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13915 argument F. Don't call Fnew_fontset. Instead, directly call
13916 make_fontset.
13917
13918 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13919
13920 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13921 of x_new_fontset2.
13922
13923 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13924 (Qsans__serif): New variables.
13925 (ftfont_generic_family_list): New variable.
13926 (syms_of_ftfont): Initialize the above variables.
13927 (ftfont_pattern_entity): Delete argument NAME.
13928 (ftfont_list_generic_family): New function.
13929 (ftfont_parse_name): Delete this function.
13930 (ftfont_list): Try generic family only when FcFontList found no font.
13931 (ftfont_list_family): Fix args to FcObjectSetBuild.
13932
13933 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13934 object in attrs[LFACE_FONT_INDEX].
13935 (set_lface_from_font_name): Cancel all changes for font-backend.
13936 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13937 function.
13938 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13939 font object in QCfont attribute.
13940 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13941 (realize_default_face) [USE_FONT_BACKEND]: Call
13942 set_lface_from_font_and_fontset.
13943
13944 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13945 "fixed", and signal error here if no suitable font was found.
13946
13947 * xfont.c (xfont_parse_name): Delete this function.
13948
13949 * xftfont.c (xftfont_open): Change coding style of error
13950 handling. Generate fontconfig's fontname pattern.
13951
13952 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13953 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13954
13955 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13956 Both args FONTSET and FONT_OBJECT must be existing ones.
13957
139582008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13959
13960 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13961
139622008-02-01 Kenichi Handa <handa@m17n.org>
13963
13964 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13965
13966 * font.h (struct font): Fix typo.
13967
13968 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13969 XLFD_XXX_INDEX.
13970 (enum xlfd_field_mask): New enum.
13971 (intern_font_field): Changed argument. Change caller. If digits
13972 are followed by non-digits, return a symbol.
13973 (font_expand_wildcards): New function.
13974 (font_parse_xlfd): Fix wildcard handling.
13975 (Ffont_spec): If :name is specified, reflect the info in the other
13976 properties.
13977
13978 * ftfont.c (ftfont_pattern_entity): Fix typo.
13979 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13980 locale.
13981
139822008-02-01 Kenichi Handa <handa@m17n.org>
13983
13984 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13985
13986 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13987 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13988 registry doesn't specify encoding part.
13989 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13990 (font_open_by_name): At first try parsing the name.
13991 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13992 as Lisp symbols.
13993
13994 * fontset.c (reorder_font_vector): Pay attention to the case that
13995 the 3rd element of font_def is nil.
13996 (fontset_font): For the default fontset, append one more fontset
13997 elements for a script-based font specification. Don't add script
13998 attribute on finding a font.
13999 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
14000 font name.
14001 (fontset_ascii_font): If a font can't be opened, return nil.
14002
14003 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
14004 (ftfont_pattern_entity): New function.
14005 (ftfont_get_cache): Assume that freetype_font_cache is already
14006 initialized.
14007 (ftfont_list): Handle the case that a file is specified in font
14008 name. Use ftfont_pattern_entity to generate entities.
14009 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
14010 (syms_of_ftfont): Initialize freetype_font_cache.
14011
14012 * xftfont.c (xftfont_open): Make the font name fontconfig's
14013 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
14014 (xftfont_close): Free font->font.name if not NULL.
14015
14016 * xfont.c (xfont_list): If script is specified for a font, return
14017 null_vector.
14018 (xfont_list_family): Declare argument type.
14019
14020 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
14021 name, set LFACE_FONT (lface) to nil.
14022
14023 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
14024 return Qnil.
14025
140262008-02-01 Kenichi Handa <handa@m17n.org>
14027
14028 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
14029 (standard_args): Add "-enable-font-backend".
14030
140312008-02-01 Kenichi Handa <handa@m17n.org>
14032
14033 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
14034 (struct xftdraw_list, xftdraw_list): Delete them.
14035 (register_xftdraw, check_xftdraw): Delete them.
14036 (xftfont_prepare_face): Don't call register_xftdraw.
14037 (xftfont_done_face): Don't call check_xftdraw.
14038 (xftfont_draw): Get background color only when with_background is
14039 nonzero.
14040
14041 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14042
140432008-02-01 Kenichi Handa <handa@m17n.org>
14044
14045 These changes are for the new font handling codes.
14046
14047 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14048 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14049 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14050 (FONTSRC, FONTOBJ): New variables.
14051 (obj): Add $(FONTOBJ).
14052 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14053 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14054 @LIBOTF_LIBS@.
14055 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14056 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14057
14058 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14059
14060 * character.h (Vscript_representative_chars): Extern it.
14061
14062 * character.c (Vscript_representative_chars): New variable.
14063 (syms_of_character): Declare it as a Lisp variable.
14064
14065 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14066 enable_font_backend is nonzero, accept the composition method
14067 COMPOSITION_WITH_GLYPH_STRING.
14068
14069 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14070 enumeration COMPOSITION_WITH_GLYPH_STRING.
14071
14072 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14073 members clip_x, clip_y, clip_width, and clip_height.
14074 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14075
14076 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14077 --enable-font-backend. Call syms_of_font.
14078
14079 * fns.c (assoc_no_quit): New function.
14080
14081 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14082 (face_for_font, new_fontset_from_font)
14083 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14084
14085 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14086 (fontset_font, fontset_ascii, face_for_char)
14087 (make_fontset_for_ascii_face, Ffont_info)
14088 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14089 is nonzero, use font-backend mechanism.
14090 (find_font_encoding): Make it non-static.
14091 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14092 New functions.
14093
14094 * frame.h (struct frame): New members resx and resy.
14095 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14096 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14097
14098 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14099 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14100
14101 * lisp.h (assoc_no_quit): Extern it.
14102
14103 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14104 Through out the file, use FONT_INFO_FROM_FACE instead of
14105 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14106 rif->per_char_metric.
14107 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14108 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14109 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14110 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14111 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14112 nonzero, use font-backend mechanism.
14113 (get_per_char_metric): New function.
14114
14115 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14116 (set_lface_from_font_name)
14117 (set_font_frame_param, free_realized_face)
14118 (prepare_face_for_display, clear_face_gcs)
14119 (Finternal_set_font_selection_order, realize_x_face)
14120 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14121 font-backend mechanism.
14122 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14123 (load_face_font) [USE_FONT_BACKEND]: Abort.
14124 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14125 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14126
14127 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14128 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14129 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14130 nonzero, register all available font drivers. Call
14131 x_default_font_parameter for deciding a font.
14132 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14133
14134 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14135 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14136 (x_set_glyph_string_clipping_exactly)
14137 (x_compute_glyph_string_overhangs)
14138 (x_draw_glyph_string_foreground)
14139 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14140 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14141 enable_font_backend is nonzero, use font-backend mechanism.
14142 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14143
141442008-02-01 Kenichi Handa <handa@m17n.org>
14145
14146 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14147 system_eol_type.
14148 (syms_of_coding): Initialize system_eol_type.
14149
14150 * process.c (Fset_process_coding_system): Inherit system's eol
14151 format if necessary.
14152
141532008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14154
14155 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14156
141572008-02-01 Kenichi Handa <handa@m17n.org>
14158
14159 * coding.c (decode_eol): Pay attention to buffer relocation in
14160 del_range_2.
14161 (decode_coding): Call decode_eol before restoring undo_list.
14162
141632008-02-01 Kenichi Handa <handa@m17n.org>
14164
14165 * charset.c (Fdefine_charset_internal): Fix setting of
14166 emacs_mule_bytes.
14167
141682008-02-01 Kenichi Handa <handa@m17n.org>
14169
14170 * keyboard.c (read_char): Check if C is a character or not before
14171 looking up Vkeyboard_translate_table.
14172
141732008-02-01 Kenichi Handa <handa@m17n.org>
14174
14175 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14176 condition to terminate the loop.
14177
141782008-02-01 Kenichi Handa <handa@m17n.org>
14179
14180 * coding.c (produce_composition): Compare charbuf[i] instead of
14181 args[i] against 0.
14182 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14183
141842008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14187 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14188 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14189 detect_coding.
14190 (emacs_mule_char): Handle old style (Emacs 20) component character
14191 of a composition.
14192 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14193 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14194 composition rule.
14195 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14196
141972008-02-01 Kenichi Handa <handa@m17n.org>
14198
14199 * coding.c (encode_coding_ccl): Allocate destination dynamically
14200 when necessary.
14201
142022008-02-01 Kenichi Handa <handa@m17n.org>
14203
14204 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14205 the loop. When quitted, show a proper error message.
14206
142072008-02-01 Kenichi Handa <handa@m17n.org>
14208
14209 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14210 src->clip_head and src->clip_tail temporarily instead of src->hl.
14211
14212 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14213 character sequence.
14214 (Fccl_execute_on_string): Use ASET, not XSET.
14215
142162008-02-01 Kenichi Handa <handa@m17n.org>
14217
14218 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14219
142202008-02-01 Kenichi Handa <handa@m17n.org>
14221
14222 * coding.c (decode_coding): Fix the condition of terminating the
14223 decoding loop.
14224
142252008-02-01 Kenichi Handa <handa@m17n.org>
14226
14227 * data.c (Faset): On setting a character bigger than 255 in a
14228 unibyte string, signal an error instead of make the string multibyte.
14229
142302008-02-01 Kenichi Handa <handa@m17n.org>
14231
14232 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14233 made by a mapping table.
14234
142352008-02-01 Kenichi Handa <handa@m17n.org>
14236
14237 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14238 not.
14239 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14240 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14241
14242 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14243 s->face is NULL or not.
14244
142452008-02-01 Kenichi Handa <handa@m17n.org>
14246
14247 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14248 (x_draw_glyph_string): Fix drawing of right_overhang and
14249 left_overhang around/on cursor.
14250
14251 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14252
142532008-02-01 Kenichi Handa <handa@m17n.org>
14254
14255 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14256
142572008-02-01 Kenichi Handa <handa@m17n.org>
14258
14259 * coding.c (Fdefine_coding_system_internal)
14260 (Fdefine_coding_system_alias): Avoid a duplicated element in
14261 Vcoding_system_alist.
14262
142632008-02-01 Kenichi Handa <handa@m17n.org>
14264
14265 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14266
14267 * coding.c (Qcoding_system_define_form): New variable.
14268 (syms_of_coding): Intern and staticpro it.
14269 (Fcoding_system_p): Check Qcoding_system_define_form.
14270 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14271
14272 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14273 Fcoding_system_p.
14274 (CHECK_CODING_SYSTEM): If ID is not available, call
14275 Fcheck_coding_system.
14276 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14277 Try also Fcheck_coding_system.
14278
142792008-02-01 Kenichi Handa <handa@m17n.org>
14280
14281 * coding.c (code_conversion_restore): GCPRO arg.
14282
142832008-02-01 Kenichi Handa <handa@m17n.org>
14284
14285 * character.c (lisp_string_width): Check multibyteness of STRING.
14286
142872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14288
14289 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14290 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14291 (decode_mac_font_name): Use decode_coding_c_string instead of
14292 decode_coding.
14293 (x_load_font): Initialize fontp->fontset to -1. Set
14294 fontp->encoding_type.
14295
142962008-02-01 Kenichi Handa <handa@m17n.org>
14297
14298 * search.c (search_buffer): Give up BM search on case-fold-search
14299 if one of a target character has a case-equivalence of different
14300 byte length even if that target charcter is an ASCII.
14301 (simple_search): Fix calculation of byte length of matched text.
14302 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14303
143042008-02-01 Kenichi Handa <handa@m17n.org>
14305
14306 * coding.c (decode_coding): Fix handling of invalid bytes.
14307
143082008-02-01 Kenichi Handa <handa@m17n.org>
14309
14310 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14311 Unicode characters.
14312
143132008-02-01 Kenichi Handa <handa@m17n.org>
14314
14315 * coding.c (encode_coding_object): If a pre-write-conversion
14316 function makes a new buffer, kill it.
14317
143182008-02-01 Kenichi Handa <handa@m17n.org>
14319
14320 * coding.c (QCascii_compatible_p): New variable.
14321 (syms_of_coding): Initialize it.
14322 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14323 calling string_char.
14324 (record_conversion_result): Add `default:' case.
14325 (coding_charset_list): Delete unused variable `coding_type'.
14326 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14327 property in the plist of the coding system.
14328 (Fcoding_system_put): Check QCascii_compatible_p.
14329
143302008-02-01 Miles Bader <miles@gnu.org>
14331
14332 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14333 removed calculation of frame `f', as it's now used.
14334
143352008-02-01 Kenichi Handa <handa@m17n.org>
14336
14337 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14338 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14339 (UNIDATA): New variable.
14340 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14341 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14342 $(RUN_TEMACS) unconditionally.
14343
143442008-02-01 Kenichi Handa <handa@m17n.org>
14345
14346 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14347 (admindir): New variable.
14348 ($(lispsource)international/charprop.el): New target.
14349
143502008-02-01 Miles Bader <miles@gnu.org>
14351
14352 * character.c (chars-in-region): Remove obsolete function.
14353 (syms_of_character): Remove its initialization.
14354
143552008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14356
14357 * w32select.c (validate_coding_system)
14358 (setup_windows_coding_system): New functions.
14359 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14360 setup_windows_coding_system.
14361 (setup_config, Fw32_get_clipboard_data): Use
14362 validate_coding_system.
14363 (Fx_selection_exists): Move call to setup_config to a place
14364 where signals are allowed.
14365
14366 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14367 (Fcheck_coding_system): Add declarations.
14368
143692008-02-01 Kenichi Handa <handa@m17n.org>
14370
14371 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14372
143732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14374
14375 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14376 string as the second argument for x_new_fontset.
14377
143782008-02-01 Kenichi Handa <handa@m17n.org>
14379
14380 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14381 (encode_coding_object): Use safe_call instead of call2.
14382
143832008-02-01 Kenichi Handa <handa@m17n.org>
14384
14385 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14386
14387 * Makefile.in (lisp): Include charprop.el.
14388
143892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14390
14391 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14392 Not sure if it's unnecessary.
14393
143942008-02-01 Steven Tamm <steventamm@mac.com>
14395
14396 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14397 some possibly unnecessary fontset checking code that crashed
14398 when creating a new frame.
14399
144002008-02-01 Kenichi Handa <handa@m17n.org>
14401
14402 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14403 lookup_face.
14404
14405 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14406
14407 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14408
144092008-02-01 Kenichi Handa <handa@m17n.org>
14410
14411 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14412 (coding_charset_list): New function.
14413
14414 * coding.h (coding_charset_list): Extern it.
14415
144162008-02-01 Kenichi Handa <handa@m17n.org>
14417
14418 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14419 concatenation of family and registry.
14420
144212008-02-01 Kenichi Handa <handa@m17n.org>
14422
14423 * character.h (BYTE8_STRING): Fix typo.
14424
14425 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14426 string to multibyte (sync to HEAD).
14427
14428 * casefiddle.c (casify_region): Handle changes in byte-length
14429 using replace_range_2 (sync to HEAD).
14430
144312008-02-01 Andreas Schwab <schwab@suse.de>
14432
14433 * chartab.c (map_char_table): GCPRO table and arg.
14434
144352008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14438 already at limit.
14439
144402008-02-01 Kenichi Handa <handa@m17n.org>
14441
14442 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14443 instead of fast_c_string_match_ignore_case.
14444 (find_font_encoding): Change argument to Lisp_Object. Use
14445 fast_string_match_ignore_case instead of
14446 fast_c_string_match_ignore_case. Change caller.
14447
144482008-02-01 Kenichi Handa <handa@m17n.org>
14449
14450 * xdisp.c (get_next_display_element): In unibyte case, decide to
14451 display in octal form by checking a character by
14452 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14453
14454 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14455
14456 * character.c (unibyte_has_multibyte_table): New variable.
14457
14458 * character.h (unibyte_has_multibyte_table): Extern it.
14459 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14460
144612008-02-01 Kenichi Handa <handa@m17n.org>
14462
14463 * coding.c (encode_coding_iso_2022): Fix handling of charset
14464 annotation.
14465
144662008-02-01 Kenichi Handa <handa@m17n.org>
14467
14468 * coding.c (setup_coding_system): If coding_system is nil, use
14469 Qundecided.
14470 (Fterminal_coding_system): Return nil if terminal coding system is
14471 `undecided'.
14472 (syms_of_coding): Define coding-system `undecided' here. Setup
14473 terminal_coding as `undecided'.
14474
144752008-02-01 Kenichi Handa <handa@m17n.org>
14476
14477 * xdisp.c (message_dolog, set_message_1): Call
14478 unibyte_char_to_multibyte with arg type int.
14479
14480 * lread.c (read1): Fix reading of a char-table.
14481
14482 * print.c (print_object): Include sub char-table in circularities
14483 detection.
14484
144852008-02-01 Kenichi Handa <handa@m17n.org>
14486
14487 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14488 Append the found sequences in car of ARGS instead of prepending.
14489
144902008-02-01 Kenichi Handa <handa@m17n.org>
14491
14492 * fileio.c (report_file_error): Make a unibyte string from
14493 strerror (errorno).
14494 (Fsubstitute_in_file_name): Fix the arg to
14495 unibyte_char_to_multibyte. It is evaluated twice.
14496
144972008-02-01 Kenichi Handa <handa@m17n.org>
14498
14499 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14500
145012008-02-01 Kenichi Handa <handa@m17n.org>
14502
14503 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14504 BOM is not found.
14505 (detect_coding, detect_coding_system): Optimization for ISO-2022
14506 when no 8-bit data is found.
14507
145082008-02-01 Jason Rumney <jasonr@gnu.org>
14509
14510 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14511
145122008-02-01 Kenichi Handa <handa@m17n.org>
14513
14514 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14515 CHARS.
14516
145172008-02-01 Steven Tamm <steventamm@mac.com>
14518
14519 * macterm.c (mac_encode_char): Add charset argument and update
14520 to use encoding_type.
14521 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14522 switch to pure fontset.
14523 (decode_mac_font_name): Temporarily remove decoding.
14524 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14525 (x_load_font): Temporarily remove encoding.
14526
145272008-02-01 Kenichi Handa <handa@m17n.org>
14528
14529 * xfaces.c (Fface_font): If frame is not on a window system,
14530 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14531 refer to face->font.
14532 (split_font_name_into_vector, build_font_name_from_vector)
14533 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14534 when HAVE_WINDOW_SYSTEM is defined.
14535
145362008-02-01 Kenichi Handa <handa@m17n.org>
14537
14538 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14539 (x_produce_glyphs): Fix setting of members of cmp in case
14540 cmp->glyph_len is zero.
14541
14542 * fontset.c (Fset_fontset_font): Fix docstring.
14543 (Ffontset_info): Make it backward compatible. New arg ALL.
14544
145452008-02-01 Kim F. Storm <storm@cua.dk>
14546
14547 * process.c (read_process_output): Grow decoding_buf when needed;
14548 this could cause a crash in allocate_string and compact_small_strings.
14549
145502008-02-01 Kenichi Handa <handa@m17n.org>
14551
14552 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14553
145542008-02-01 Kenichi Handa <handa@m17n.org>
14555
14556 * coding.c (setup_coding_system): Set coding->common_flags
14557 correctly for raw-text.
14558 (consume_chars): On encoding unibyte text by raw-text, don't check
14559 multibyte form.
14560 (encode_coding): On encoding by raw-text, never use translation tables.
14561
14562 * fileio.c (e_write): Short cut for the case of no encoding.
14563
145642008-02-01 Kenichi Handa <handa@m17n.org>
14565
14566 * coding.c (detect_coding, detect_coding_system): Delete unused
14567 variables.
14568
145692008-02-01 Kenichi Handa <handa@m17n.org>
14570
14571 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14572 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14573
145742008-02-01 Kenichi Handa <handa@m17n.org>
14575
14576 * coding.c (Ffind_coding_systems_region_internal): Include
14577 raw-text and no-conversion in the result.
14578
145792008-02-01 Kenichi Handa <handa@m17n.org>
14580
14581 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14582 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14583 FONT_DEF.
14584 (font_def_arg, add_arg, from_arg, to_arg): New args.
14585 (set_fontset_font): Change argument.
14586 (Fset_fontset_font): Fix for the case that TARGET is a script
14587 name and charset name.
14588 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14589
145902008-02-01 Kenichi Handa <handa@m17n.org>
14591
14592 * fontset.c (fontset_font): Rename from fontset_face. Change return
14593 value.
14594 (face_suitable_for_char_p, face_for_char): Adjust for the change
14595 of fontset_font.
14596 (make_fontset_for_ascii_face): Fix setting of the fontset element
14597 for ASCII.
14598 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14599 to get a font name.
14600 (Ffontset_info): Adjust for the change of fontset_font.
14601
14602 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14603
14604 * character.h (LEADING_CODE_LATIN_1_MIN)
14605 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14606
146072008-02-01 Kenichi Handa <handa@m17n.org>
14608
14609 * editfns.c (check_translation): New function.
14610 (Ftranslate_region_internal): Handle M:N mapping.
14611
146122008-02-01 Kenichi Handa <handa@m17n.org>
14613
14614 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14615
146162008-02-01 Kenichi Handa <handa@m17n.org>
14617
14618 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14619 goto invalid_code.
14620 (decode_coding_iso_2022): Fix handling of invalid designation.
14621
14622 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14623 after calling code_conversion_save.
14624
146252008-02-01 Kenichi Handa <handa@m17n.org>
14626
14627 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14628
14629 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14630
14631 * fontset.c: Include "intervals.h".
14632 (fontset_face): Fix comparing of Lisp_Objects.
14633 (free_face_fontset, new_fontset_from_font_name): Fix
14634 Lisp_Object/int mixup.
14635
14636 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14637
14638 * coding.c: Add many prototypes for static functions.
14639 (get_translation_table): Allow max_lookup to be NULL.
14640 (decode_coding, Ffind_coding_systems_region_internal)
14641 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14642 get_translation_table with max_lookup NULL.
14643
146442008-02-01 Kenichi Handa <handa@m17n.org>
14645
14646 * coding.c (get_translation_table): Declare it as Lisp_Object.
14647 (LOOKUP_TRANSLATION_TABLE): New macro.
14648 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14649 instead of CHAR_TABLE_REF.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14654 annotation data format.
14655 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14656 Change arguments FROM and TO to single argument NCHARS. Change caller.
14657 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14658 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14659 (decode_coding_ccl, decode_coding_charset): Pay attention to
14660 coding->charbuf_used.
14661 (get_translation): New function.
14662 (produce_chars): New arguments translation_table and last_block.
14663 Translate characters here. Return number of carryover chars.
14664 Change caller.
14665 (produce_composition): New argument pos. Change caller.
14666 Adjust for the change of annotation data format.
14667 (produce_charset, produce_annotation): Likewise.
14668 (decode_coding, encode_coding): Don't call translate_chars.
14669 (consume_chars): New arg translation_table. Change caller.
14670 (translate_chars): Delete.
14671 (syms_of_coding): Make translation-table's number of extra slots 2.
14672
146732008-02-01 Kenichi Handa <handa@m17n.org>
14674
14675 * search.c (simple_search): Fix setting this_pos_byte in backward
14676 search.
14677
14678 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14679 byte sequence.
14680 (detect_coding_ccl): Fix setting of the variable valids.
14681
146822008-02-01 Kenichi Handa <handa@m17n.org>
14683
14684 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14685
14686 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14687
14688 * editfns.c (Ftranslate_region_internal): Rename from
14689 Ftranslate_region. Accept a char-table in TABLE.
14690 (syms_of_editfns): Defsubr Stranslate_region_internal.
14691
14692 * xfaces.c (set_lface_from_font_name): If a font is specified for
14693 a frame, generate a fontset from the font.
14694 (build_scalable_font_name): If the scalable font is requested for
14695 a specific size, don't change that size.
14696 (try_font_list): Try a scalable font also in the case that a
14697 pattern string is specified.
14698
146992008-02-01 Kenichi Handa <handa@m17n.org>
14700
14701 * xfaces.c (Fface_font): New optional arg CHARACTER.
14702
147032008-02-01 Kenichi Handa <handa@m17n.org>
14704
14705 * charset.h (CHARSET_OFFSET): New macro.
14706
147072008-02-01 Kenichi Handa <handa@m17n.org>
14708
14709 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14710
14711 * fontset.c (fontset_face): Handle the case that repertory is a
14712 char-table.
14713 (find_font_encoding): Return nil for unknown encoding.
14714 (Fset_fontset_font): Ignore a font of unknown encoding.
14715
147162008-02-01 Kenichi Handa <handa@m17n.org>
14717
14718 * keymap.c (describe_vector): Handle default value of a char table.
14719
14720 * fontset.c (fontset_face): Handle fallback fonts correctly.
14721 (Ffontset_info): Return infomation about fallback fonts.
14722
147232008-02-01 Kenichi Handa <handa@m17n.org>
14724
14725 * fontset.c (FONTSET_DEFAULT): New macro.
14726 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14727 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14728 the case that it is nil.
14729 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14730 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14731
14732 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14733 subset or superset.
14734
147352008-02-01 Kenichi Handa <handa@m17n.org>
14736
14737 * emacs.c (main): Call init_charset after syms_of_XXX.
14738
14739 * charset.c (Vcharset_map_directory): Delete.
14740 (Vcharset_map_path): New variable.
14741 (load_charset_map_from_file): Use Vcharset_map_path instead.
14742 (init_charset): Initialize Vcharset_map_path.
14743 (syms_of_charset): Delete declaration of "charset-map-directory",
14744 add declaration of "charset-map-path".
14745
147462008-02-01 Kenichi Handa <handa@m17n.org>
14747
14748 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14749 ASCII only string.
14750
14751 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14752
14753 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14754 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14759
14760 * coding.c (QCmnemonic, QCdefalut_char)
14761 (QCdecode_translation_table, QCencode_translation_table)
14762 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14763 (get_translation_table): Return a list of translation tables if
14764 necessary.
14765 (decode_coding): Call get_translation_table with ENCODEP 0.
14766 (char_encodable_p): If translation_table is non-nil, always call
14767 translate_char.
14768 (Fdefine_coding_system_internal): Accept list of translation
14769 tables as :encode-translation-table and :decode-translation-table.
14770 (Fcoding_system_put): New function.
14771 (syms_of_coding): Declare new symbols. Defsubr
14772 Scoding_system_put.
14773 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14774 typically JISX0212.
14775
14776 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14777 when the charset is superset type.
14778
14779 * character.c (translate_char): Accept list of translation tables.
14780
147812008-02-01 Kenichi Handa <handa@m17n.org>
14782
14783 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14784 (CODING_ATTR_TRANS_TBL): New macro.
14785
14786 * coding.c (get_translation_table): New function.
14787 (translate_chars): Fix the bug of skipping annotation data.
14788 (decode_coding, encode_coding): Utilize get_translation_table.
14789 (char_encodable_p, Funencodable_char_position): Translate char if
14790 necessary.
14791 (Ffind_coding_systems_region_internal)
14792 (Fcheck_coding_systems_region): Setup translation table for encode
14793 in a coding system attribute vector in advance.
14794 (Fdefine_coding_system_internal): Allow a symbol as translation
14795 table. For shift-jis type coding system, allow 4th charset.
14796
147972008-02-01 Kenichi Handa <handa@m17n.org>
14798
14799 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14800
14801 * xdisp.c (get_next_display_element): Pass -1 as POS to
14802 FACE_FOR_CHAR if displaying a C-string.
14803
148042008-02-01 Kenichi Handa <handa@m17n.org>
14805
14806 * composite.c (get_composition_id): Handle xoff and yoff in a
14807 composition rule.
14808
14809 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14810 (struct composition): New member lbearing and rbearing.
14811
14812 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14813 (x_get_glyph_overhangs): Handle a composition glyph.
14814 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14815
14816 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14817 composition glyph.
14818
148192008-02-01 Kenichi Handa <handa@m17n.org>
14820
14821 * print.c: Include charset.h.
14822 (Vprint_charset_text_property): New variable.
14823 (Qdefault): Extern it.
14824 (PRINT_STRING_NON_CHARSET_FOUND)
14825 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14826 (print_check_string_result): New variable.
14827 (print_check_string_charset_prop): New function.
14828 (print_prune_charset_plist): New variable.
14829 (print_prune_string_charset): New function.
14830 (print_object): Call print_prune_string_charset if
14831 Vprint_charset_text_property is not t.
14832 (print_interval): Print nothing if interval->plist is nil.
14833 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14834 variable. Init and staticpro print_prune_charset_plist.
14835
148362008-02-01 Kenichi Handa <handa@m17n.org>
14837
14838 * fontset.c (new_fontset_from_font_name): Use the specified font
14839 for all characters in the new fontset.
14840
14841 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14842 OBJECT args.
14843
14844 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14845 OBJECT args for composition too.
14846
14847 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14848 OBJECT args.
14849
148502008-02-01 Kenichi Handa <handa@m17n.org>
14851
14852 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14853
14854 * fontset.c (reorder_font_vector): Adjust for the change of
14855 FONT_DEF format.
14856 (fontset_face): New arg id. Change caller.
14857 (face_for_char): New args pos and object.
14858 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14859 (fs_query_fontset): Check NAME by Fassoc too.
14860 (Fset_fontset_font): Allow non-XLFD font name.
14861 (Ffontset_info): Adjust for the change of FONT_DEF format.
14862
14863 * fontset.h (face_for_char): Adjust prototype.
14864
14865 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14866 (append_space, extend_face_to_end_of_line)
14867 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14868 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14869
14870 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14871 POS and OBJECT args.
14872
14873 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14874 POS and OBJECT args.
14875
148762008-02-01 Jason Rumney <jasonr@gnu.org>
14877
14878 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14879 of GlobalAlloc'ed memory.
14880
148812008-02-01 Kenichi Handa <handa@m17n.org>
14882
14883 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14884
14885 * charset.h (charset_table_used): Delete extern.
14886
14887 * charset.c (charset_table_used): Make it static.
14888 (map_charset_chars): Fix args to c_function with.
14889
14890 * chartab.c (map_sub_char_table_for_charset): Fix args to
14891 c_function with.
14892
14893 * coding.h (enum coding_result_code): Delete
14894 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14895
14896 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14897 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14898 (Vlast_code_conversion_error): New variables.
14899 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14900 (ONE_MORE_BYTE): Record error if any instead of signaling an
14901 error. If non-ASCII multibyte char is found, return the negative
14902 value of the code. All callers changed to check it.
14903 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14904 (record_conversion_result): New function. Change all codes setting
14905 coding->result to call this function.
14906 (detect_coding_utf_8, decode_coding_utf_8)
14907 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14908 Don't use the local variable incomplete.
14909 (emacs_mule_char): Change the second arg to `const'.
14910 (decode_coding): Fix of flushing out unprocessed data.
14911 (make_conversion_work_buffer): Fix making of a work buffer.
14912 (decode_coding_object): Return coding->dst_object.
14913
14914 * fontset.c (set_fontset_font): Fix args.
14915
14916 * lisp.h (CHARACTERBITS): Define as 22.
14917
14918 * process.c (send_process): Be sure to set coding->src_multibyte.
14919
14920 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14921
149222008-02-01 Kenichi Handa <handa@m17n.org>
14923
14924 * xdisp.c (handle_auto_composed_prop): Give limit to
14925 Fnext_single_char_property_change.
14926
149272008-02-01 Kenichi Handa <handa@m17n.org>
14928
14929 * composite.c (syms_of_composite): Don't make the composition hash
14930 table weak.
14931
14932 * fontset.c (Fset_fontset_font): Fix docstring.
14933
14934 * lisp.h (detect_coding_system): Adjust prototype.
14935
14936 * fileio.c (kill_workbuf_unwind): Delete this function.
14937 (Finsert_file_contents): Adjust the call of detect_coding_system.
14938 Get conversion_buffer by code_conversion_save. Use the macro
14939 CODING_MAY_REQUIRE_DECODING. After decoding, update
14940 coding_system.
14941
14942 * coding.h (make_conversion_work_buffer): Delete extern.
14943 (code_conversion_save): Extern it.
14944
14945 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14946 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14947 (decode_coding_utf_8): Don't do eol converion.
14948 (detect_coding_utf_16): Check coding->src_chars, not
14949 coding->src_bytes. Add heuristics for those that have no signature.
14950 (decode_coding_emacs_mule, decode_coding_iso_2022)
14951 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14952 Don't do eol converion.
14953 (adjust_coding_eol_type): Return a new coding system.
14954 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14955 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14956 each change.
14957 (decode_coding): Pay attention to undo_list. Do eol conversion for
14958 all types of coding-systems (if necessary).
14959 (Vcode_conversion_work_buf_list): Delete it.
14960 (Vcode_conversion_reused_workbuf): Rename from
14961 Vcode_conversion_reused_work_buf.
14962 (Vcode_conversion_workbuf_name): New variable.
14963 (reused_workbuf_in_use): New variable.
14964 (make_conversion_work_buffer): Delete the arg DEPTH.
14965 (code_conversion_restore): Change argument to cons.
14966 (code_conversion_save): Delete the argument BUFFER. Change callers.
14967 (detect_coding_system): New argument src_chars. Change callers.
14968 Fix for utf-16 detection.
14969 (init_coding_once): Don't use ISO_carriage_return.
14970 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14971 reused_workbuf_in_use.
14972
149732008-02-01 Kenichi Handa <handa@m17n.org>
14974
14975 * keymap.c (store_in_keymap): Pay attention to the case that idx
14976 is a cons specifying a character range.
14977
149782008-02-01 Kenichi Handa <handa@m17n.org>
14979
14980 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14981 HANDLED_RECOMPUTE_PROPS.
14982
14983 * coding.c (Fdefine_coding_system_internal): Fix checking of
14984 ascii compatibility.
14985
149862008-02-01 Kenichi Handa <handa@m17n.org>
14987
14988 * charset.c (find_charsets_in_text): Delete unused locale variable.
14989 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14990
14991 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14992 Resync charset_list to Vemacs_mule_charset_list.
14993
14994 * keymap.c (store_in_keymap): Pay attention to the case that idx
14995 is a cons specifying a character range.
14996
149972008-02-01 Kenichi Handa <handa@m17n.org>
14998
14999 * composite.c (update_compositions): Bind inhibit-read-only, etc
15000 to t before calling remove-list-of-text-properties.
15001
15002 * print.c (print_object): Always print ASCII chars as is.
15003
150042008-02-01 Kenichi Handa <handa@m17n.org>
15005
15006 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
15007
15008 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
15009 is a char table.
15010
150112008-02-01 Kenichi Handa <handa@m17n.org>
15012
15013 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
15014
150152008-02-01 Kenichi Handa <handa@m17n.org>
15016
15017 * xfaces.c (set_lface_from_font_name): Fix for the case that
15018 FONTNAME is not fontset name.
15019
150202008-02-01 Kenichi Handa <handa@m17n.org>
15021
15022 * fns.c (base64_encode_1): Fix previous change.
15023
150242008-02-01 Kenichi Handa <handa@m17n.org>
15025
15026 * fontset.c (set_fontset_font): New function.
15027 (Fset_fontset_font): If a font is specified for a charset, use
15028 map_charset_chars to store the font spec in a fontset.
15029
150302008-02-01 Kenichi Handa <handa@m17n.org>
15031
15032 * fontset.c (fontset_face): Create a fallback fontset on demand.
15033 (make_fontset): Don't create a fallback fontset here.
15034 (free_face_fontset): Free a fallback fontset (if any) too.
15035 (n_auto_fontsets): Delete this variable.
15036 (auto_fontset_alist): New variable.
15037 (new_fontset_from_font_name): Check auto_fontset_alist.
15038 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
15039 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
15040 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15041 Defsubr Sfontset_list_all.
15042
150432008-02-01 Kenichi Handa <handa@m17n.org>
15044
15045 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15046
150472008-02-01 Kenichi Handa <handa@m17n.org>
15048
15049 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15050
150512008-02-01 Kenichi Handa <handa@m17n.org>
15052
15053 * editfns.c (Fgoto_char): Fix docstring.
15054
150552008-02-01 Kenichi Handa <handa@m17n.org>
15056
15057 * insdel.c (insert_from_gap): Adjust intervals correctly.
15058
150592008-02-01 Jason Rumney <jasonr@gnu.org>
15060
15061 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15062 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15063 (w32_initialize): Try to load it.
15064 (x_get_font_repertory): Use it if available.
15065 (w32_encode_char): Add shortcut for unicode output.
15066
15067 * w32fns.c (w32_load_system_font): Default charset to -1.
15068 (x_to_w32_charset): Match all fonts for unicode.
15069 (w32_to_x_charset): New parameter matching. Don't return partial
15070 or wildcard charsets.
15071 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15072 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15073 (w32_to_x_font): Match charset to real charset.
15074 (enum_font_cb2): Always list unicode versions.
15075
15076 * makefile.w32-in (temacs): Increase EMHEAP.
15077
150782008-02-01 Jason Rumney <jasonr@gnu.org>
15079
15080 * w32term.c (w32_encode_char): New charset parameter.
15081 font_info.encoding becomes encoding_type.
15082 (x_get_font_repertory): New function. Warning: stub only!
15083 (x_new_font): Return quickly if font already set.
15084 (x_new_fontset): fontsetname parameter is Lisp_Object.
15085 Use new fs_query_fontset. Try new_fontset_from_font_name.
15086 Use fontset_name for return value.
15087
15088 * w32term.h: Declare x_get_font_repertory.
15089
15090 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15091 place of find_charset_in_text. Use encode_coding_object in place
15092 of encode_coding.
15093 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15094 decode_coding.
15095
15096 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15097 of x_new_fontset.
15098 (w32_load_system_font): Initialize charset as unicode.
15099 font_info.encoding becomes encoding_type.
15100 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15101 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15102 (syms_of_w32fns): Set get_font_repertory_func.
15103
15104 * w32console.c: Include character.h. Use terminal_encode_buffer
15105 from term.c.
15106 (write_glyphs): Use new version of encode_terminal_code. Use
15107 encode_coding_object in place of encode_coding.
15108
15109 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15110 encoding becomes encoding_type.
15111
15112 * term.c (terminal_encode_buffer): Make externally visible.
15113
15114 * makefile.w32-in: Add character.h dependancies.
15115 (character.o, chartab.o): New targets.
15116
151172008-02-01 Kenichi Handa <handa@m17n.org>
15118
15119 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15120 CODING_ID_EOL_TYPE.
15121
151222008-02-01 Andreas Schwab <schwab@suse.de>
15123
15124 * coding.c (produce_chars): Revert last change.
15125
151262008-02-01 Kenichi Handa <handa@m17n.org>
15127
15128 * charset.h (charset_unicode): Extern it.
15129
15130 * charset.c (string_xstring_p): Check by (C >= 0x100).
15131 (find_charsets_in_text): Change format of the arc CHARSETS. New
15132 arg MULTIBYTE.
15133 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15134 change of find_charsets_in_text.
15135 (Fsplit_char): Fix doc. Never return unknown.
15136
15137 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15138
15139 * coding.c (Fdefine_coding_system_alias): Update
15140 Vcoding_system_list.
15141
15142 * fontset.c (load_font_get_repertory): Pay attention to the case
15143 that ENCODING of a font is specified by a char-table.
15144
15145 * xterm.c (x_get_font_repertory): Handle the case that the
15146 encoding of font is other than Unicode.
15147
151482008-02-01 Kenichi Handa <handa@m17n.org>
15149
15150 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15151 if a character is encodable by the terminal coding system. If
15152 not, produces proper number of `?'s. Update
15153 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15154 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15155
151562008-02-01 Kenichi Handa <handa@m17n.org>
15157
15158 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15159 variables.
15160 (encode_terminal_code): Change argument. Encode multiple
15161 characters at once. Store the result of encoding in
15162 terminal_encode_buffer.
15163 (write_glyphs, insert_glyphs): Adjust for the change of
15164 encode_terminal_code.
15165 (term_init): Initialize terminal_encode_buffer and
15166 terminal_encode_buf_size.
15167
15168 * coding.c (consume_chars): If coding->src_object is nil, don't
15169 check annotation.
15170
151712008-02-01 Kenichi Handa <handa@m17n.org>
15172
15173 * character.c (char_string): Use ASCII_CHAR_P instead of
15174 SINGLE_BYTE_CHAR_P.
15175
151762008-02-01 Kenichi Handa <handa@m17n.org>
15177
15178 * xdisp.c (handle_auto_composed_prop): Check if the last
15179 characters of auto-composed region is newly composed with the
15180 following characters.
15181 (handle_composition_prop): Fix checking of point being inside
15182 composition.
15183
151842008-02-01 Kenichi Handa <handa@m17n.org>
15185
15186 * fns.c (concat): Don't change multibyteness of the result by
15187 concatenating an 8-bit character.
15188
15189 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15190 multibyteness of the result when newelt is an 8-bit character.
15191
151922008-02-01 Dave Love <fx@gnu.org>
15193
15194 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15195 EMACS_INT.
15196
15197 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15198
15199 * xfaces.c (face_numeric_value): Declare dim size_t.
15200 (Finternal_lisp_face_equal_p): Remove unused f.
15201
15202 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15203 (MATRIX_ROW): Remove unused vars.
15204 (draw_glyphs, x_insert_glyphs, fast_find_position)
15205 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15206 byte/char counts.
15207
15208 * regex.c (regex_compile): Remove unused var.
15209
15210 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15211
15212 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15213 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15214
15215 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15216
15217 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15218
15219 * fileio.c (Fwrite_region): Remove unused var.
15220
15221 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15222 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15223
15224 * composite.c (Fremove_list_of_text_properties): Declare.
15225
15226 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15227 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15228 (coding_inherit_eol_type): Remove unused attrs.
15229 (detect_coding): Cast arg of detect_eol.
15230
15231 * charset.c (syms_of_charset): Remove unused var p.
15232 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15233 byte/char counts.
15234
15235 * casetab.c (set_case_table): Remove unused var.
15236
15237 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15238 unused vars.
15239
152402008-02-01 Dave Love <fx@gnu.org>
15241
15242 * xterm.c (x_bitmap_mask): Declare.
15243
152442008-02-01 Dave Love <fx@gnu.org>
15245
15246 * xterm.c (x_term_init): Fix type error.
15247
15248 * lisp.h: Add Funibyte_char_to_multibyte.
15249
15250 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15251 (Fset_coding_system_priority): Doc fix.
15252
15253 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15254
15255 * indent.c (check_composition): Make start and end EMACS_INT.
15256
15257 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15258
15259 * xdisp.c (handle_composition_prop, check_point_in_composition):
15260 Make buffer positions EMACS_INT.
15261
15262 * composite.c (find_composition, run_composition_function)
15263 (update_compositions, Ffind_composition_internal): Make buffer
15264 positions EMACS_INT.
15265
15266 * composite.h (find_composition, update_compositions): Make
15267 position args EMACS_INT.
15268
15269 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15270
15271 * intervals.c (get_property_and_range):
15272 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15273
15274 * unexalpha.c: Don't include varargs.h.
15275
152762008-02-01 Dave Love <fx@gnu.org>
15277
15278 * coding.h (ENCODE_UTF_8): New.
15279
15280 * Makefile.in (gtkutil.o): Depend on coding.h.
15281
15282 * coding.c (Fset_coding_system_priority): Doc fix.
15283
152842008-02-01 Kenichi Handa <handa@m17n.org>
15285
15286 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15287 the case of auto saving.
15288
152892008-02-01 Andreas Schwab <schwab@suse.de>
15290
15291 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15292 `range' from GC.
15293
152942008-02-01 Kenichi Handa <handa@m17n.org>
15295
15296 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15297
152982008-02-01 Kenichi Handa <handa@m17n.org>
15299
15300 * fileio.c (choose_write_coding_system): Return a decided coding system.
15301 (Fwrite_region): Set Vlast_coding_system_used to the return value
15302 of choose_write_coding_system.
15303
153042008-02-01 Kenichi Handa <handa@m17n.org>
15305
15306 * charset.c (Fset_charset_priority): Pay attention to duplicated
15307 arguments.
15308
15309 * coding.c (QCcategory): New variable.
15310 (syms_of_coding): Defsym it. Set all elements of
15311 Vcoding_category_table and their symbol values.
15312 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15313 coding-category-XXX, and coding-category-list.
15314 (Fdefine_coding_system_internal): Add category in the plist.
15315
153162008-02-01 Kenichi Handa <handa@m17n.org>
15317
15318 * callproc.c (Fcall_process): Handle carryover correctly.
15319
15320 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15321 (raw_text_coding_system): Check NILP (coding_system).
15322 (coding_inherit_eol_type): Check NILP (coding_system) and
15323 NILP (parent).
15324 (consume_chars): Fix for the case of raw-text.
15325
15326 * process.c (read_process_output): Handle carryover correctly.
15327
153282008-02-01 Dave Love <fx@gnu.org>
15329
15330 * regex.c (re_search_2): Fix last change.
15331
153322008-02-01 Kenichi Handa <handa@m17n.org>
15333
15334 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15335 target_multibyte. Even in a unibyte case, return a converted
15336 multibyte char.
15337 (GET_CHAR_AFTER): New macro.
15338 (PATFETCH): Translate via multibyte char.
15339 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15340 (SETUP_MULTIBYTE_RANGE): New macro.
15341 (regex_compile): Setup compiled code so that its multibyteness
15342 matches that of a target. Fix the handling of "[X-YZ]" using
15343 SETUP_MULTIBYTE_RANGE.
15344 (analyse_first) <charset>: For filling fastmap for all multibyte
15345 characters, don't check by BASE_LEADING_CODE_P.
15346 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15347 the same as RE_MULTIBYTE_P (bufp) now.
15348 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15349 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15350 (TRANSLATE_VIA_MULTIBYTE): New macro.
15351 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15352 It is the same as RE_MULTIBYTE_P (bufp) now.
15353 <exactn>: Translate via multibyte.
15354 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15355 translate it.
15356 <charset, charset_not>: Fetch a character by
15357 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15358 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15359 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15360 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15361 by GET_CHAR_AFTER.
15362 (bcmp_translate): Likewise.
15363
15364 * search.c (compile_pattern): Check the member target_multibyte,
15365 not the member multibyte of buf.
15366
15367 * lread.c (read1): While reading a string, set force_singlebyte
15368 and force_multibyte correctly.
15369
15370 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15371 up of unibyte_to_multibyte_table.
15372
153732008-02-01 Kenichi Handa <handa@m17n.org>
15374
15375 * coding.c (setup_coding_system): If coding has
15376 post-read-conversion or pre-write-conversion, set
15377 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15378 respectively.
15379 (decode_coding_gap): Run post-read-conversion if any.
15380
15381 * fileio.c (Finsert_file_contents): Even if we read into a
15382 unibyte buffer, check if we must decode the result or not.
15383
153842008-02-01 Kenichi Handa <handa@m17n.org>
15385
15386 * coding.c (make_conversion_work_buffer): Change the work buffer
15387 name to the same one as that of Emacs 21.
15388
153892008-02-01 Kenichi Handa <handa@m17n.org>
15390
15391 * coding.h (make_conversion_work_buffer): Adjust prototype.
15392 (code_conversion_restore): Don't extern it.
15393
15394 * coding.c (detected_mask): Delete unused variable.
15395 (decode_coding_iso_2022): Pay attention to the byte sequence of
15396 CTEXT extended segment, and retain those bytes as is.
15397 (decode_coding_ccl): Delete unused variable `valids'.
15398 (setup_coding_system): Delete unused variable `category'.
15399 (consume_chars): Delete unused variable `category'. Make it work
15400 for non-multibyte case.
15401 (make_conversion_work_buffer): Change argument.
15402 (saved_coding): Delete unused variable.
15403 (code_conversion_restore): Don't check saved_coding->destination.
15404 (code_conversion_save): New function.
15405 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15406 instead of record_unwind_protect.
15407 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15408 (detect_coding_system): Delete unused variable `mask'.
15409 (Fdefine_coding_system_internal): Delete unused variable id.
15410
15411 * fileio.c (kill_workbuf_unwind): New function.
15412 (Finsert_file_contents): On replacing, call
15413 make_conversion_work_buffer with correct args, and call
15414 record_unwind_protect with the first arg kill_workbuf_unwind.
15415
15416 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15421 (fontset_add): Fix for the case that TO is less than TO1.
15422 (Ffontset_info): Don't use fallback fontset on checking the
15423 default fontset.
15424 (dump_fontset): New function for debugging.
15425
15426 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15427 coding_type is Qcharset.
15428
154292008-02-01 Kenichi Handa <handa@m17n.org>
15430
15431 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15432 (map_char_table): Don't inherit the value from the parent on
15433 initializing VAL. Adjust for the above change.
15434
154352008-02-01 Kenichi Handa <handa@m17n.org>
15436
15437 * coding.c (Qsignature, Qendian): Delete these variables.
15438 (syms_of_coding): Don't initialize them.
15439 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15440 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15441 detect_info->found.
15442 (decode_coding_utf_16): Don't detect BOM here.
15443 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15444 is NOT utf_16_without_bom.
15445 (setup_coding_system): For a coding system of type utf-16, check
15446 if the attribute :endian is Qbig or not (not nil or not), and set
15447 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15448 (detect_coding): If coding type is utf-16 and BOM detection is
15449 required, detect it.
15450 (Fdefine_coding_system_internal): For a coding system of type
15451 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15452
154532008-02-01 Kenichi Handa <handa@m17n.org>
15454
15455 * coding.c (coding_set_source): Fix for the case that the current
15456 buffer is different from coding->src_object.
15457 (decode_coding_object): Don't use the conversion work buffer if
15458 DST_OBJECT is a buffer.
15459
154602008-02-01 Dave Love <fx@gnu.org>
15461
15462 * lread.c (read_emacs_mule_char) [len==2]: Index
15463 emacs_mule_charset correctly.
15464
154652008-02-01 Dave Love <fx@gnu.org>
15466
15467 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15468 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15469 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15470 treated specially.)
15471 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15472 (detected_mask): Remove Big5 bits.
15473
154742008-02-01 Kenichi Handa <handa@m17n.org>
15475
15476 The following changes are to make the font rescaling facility
15477 compatible with Emacs 21.
15478
15479 * xfaces.c (Vface_font_rescale_alist): Rename from
15480 Vface_resizing_fonts.
15481 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15482 (font_rescale_ratio): Rename from font_resizing_ratio.
15483 (split_font_name): Set font->rescale_ratio.
15484 (better_font_p): Pay attention to font->rescale_ratio.
15485 (build_scalable_font_name): Likewise. Change RESX, and RESY
15486 fields.
15487 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15488
154892008-02-01 Kenichi Handa <handa@m17n.org>
15490
15491 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15492 (Qutf_16_le): Remove these variables.
15493 (syms_of_coding): Don't DEFSYM them.
15494 (decode_coding_utf_16): Fix handling of BOM.
15495 (encode_coding_utf_16): Fix handling of BOM.
15496
154972008-02-01 Kenichi Handa <handa@m17n.org>
15498
15499 * fileio.c (Finsert_file_contents): On replacing, before decoding
15500 the file into the work buffer, set point of the work buffer to the end.
15501
155022008-02-01 Dave Love <fx@gnu.org>
15503
15504 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15505
155062008-02-01 Dave Love <fx@gnu.org>
15507
15508 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15509 and fix C types.
15510
155112008-02-01 Kenichi Handa <handa@m17n.org>
15512
15513 * xdisp.c (SKIP_GLYPHS): New macro.
15514 (set_cursor_from_row): Pay attention to string display properties.
15515
15516 * category.c (copy_category_entry): Fix for the case that RANGE
15517 is an integer.
15518
15519 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15520
15521 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15522
155232008-02-01 Kenichi Handa <handa@m17n.org>
15524
15525 * charset.c (Fcharset_id_internal): New function.
15526 (syms_of_charset): Defsubr it.
15527
15528 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15529 with the last arg charset_list acquired from coding.
15530 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15531 the attribute coding_attr_ccl_valids.
15532
15533 * coding.h (enum define_coding_ccl_arg_index): Set the first
15534 member coding_arg_ccl_decoder to coding_arg_max.
15535
15536 * ccl.h (ccl_driver): Adjust prototype.
15537
15538 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15539 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15540 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15541 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15542 last arg Qnil.
15543
155442008-02-01 Kenichi Handa <handa@m17n.org>
15545
15546 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15547 call encode_char.
15548
15549 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15550
155512008-02-01 Dave Love <fx@gnu.org>
15552
15553 * composite.c (syms_of_composite): Make composition_hash_table weak.
15554
155552008-02-01 Kenichi Handa <handa@m17n.org>
15556
15557 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15558 (font_name_registry): Don't extern them.
15559 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15560
15561 * fontset.h (Qfontset): Don't extern it.
15562 (new_fontset_from_font_name): Extern it.
15563
15564 * fontset.c: Give 8 extra slots to fontset objects.
15565 (Qfontset_info): New variable.
15566 (syms_of_fontset): Defsym it.
15567 (FONTSET_FALLBACK): New macro.
15568 (fontset_face): Try also the default fontset.
15569 (make_fontset): Realize a fallback fontset from the default fontset.
15570 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15571 using split_font_name_into_vector and build_font_name_from_vector.
15572 (Fset_fontset_font): Access the elements of font_spec by enum
15573 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15574 name by using split_font_name_into_vector.
15575 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15576 generate a proper font name from the fontset name. Update
15577 Vfontset_alias_alist.
15578 (n_auto_fontsets): New variable.
15579 (new_fontset_from_font_name): New function.
15580 (Ffont_info): Store the information about fonts generated from the
15581 default fontset in the first extra slot of the returned char-table.
15582
15583 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15584 (font_name_registry): Delete function.
15585 (split_font_name_into_vector): New function.
15586 (build_font_name_from_vector): New function.
15587 (font_list): The argument REGISTRY is now a list of registry names.
15588 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15589 specifies an explicit font name, return the name as is. Make a
15590 list of registy names.
15591
15592 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15593 of x_new_fontset.
15594 (Fx_create_frame): Don't call x_new_fontset here. Just use
15595 x_list_fonts to check the existence of fonts.
15596
15597 * xterm.h (x_new_fontset): Adjust prototype.
15598
15599 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15600 string. Use new_fontset_from_font_name to create a fontset from a
15601 font name.
15602
156032008-02-01 Kenichi Handa <handa@m17n.org>
15604
15605 * syntax.c (Vfind_word_boundary_function_table): New name for
15606 Vnext_word_boundary_function_table.
15607 (find-word-boundary-function-table): New name for
15608 next-word-boundary-function-table.
15609
156102008-02-01 Dave Love <fx@gnu.org>
15611
15612 * Makefile.in: Fix some dependencies.
15613
15614 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15615 set it to nil before returning.
15616
15617 * composite.c (update_compositions): Fix type error.
15618
15619 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15620
156212008-02-01 Kenichi Handa <handa@m17n.org>
15622
15623 * xterm.c (x_new_font): Optimize for the case that the font is
15624 already set for the frame.
15625
156262008-02-01 Kenichi Handa <handa@m17n.org>
15627
15628 * chartab.c (char_table_ascii): Check if the char table contents
15629 is sub-char-table or not.
15630 (char_table_set, char_table_set_range): Fix argument to
15631 char_table_ascii.
15632
15633 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15634 (detect_coding_utf_8, detect_coding_utf_16)
15635 (detect_coding_emacs_mule, detect_coding_iso_2022)
15636 (detect_coding_sjis, detect_coding_big5)
15637 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15638 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15639 sequence is valid in this coding system. Change callers.
15640 (MAX_ANNOTATION_LENGTH): New macro.
15641 (ADD_ANNOTATION_DATA): New macro.
15642 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15643 ADD_ANNOTATION_DATA. Change the format of annotation data.
15644 (ADD_CHARSET_DATA): New macro.
15645 (emacs_mule_char): New argument ID. Change callers.
15646 (decode_coding_emacs_mule, decode_coding_iso_2022)
15647 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15648 Produce charset annotation data in coding->charbuf.
15649 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15650 to charset annotation data in coding->charbuf.
15651 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15652 coding->common_flags if the coding system is iso-2022 based and
15653 uses designation.
15654 (produce_composition): Adjust for the new annotation data format.
15655 (produce_charset): New function.
15656 (produce_annotation): Handle charset annotation.
15657 (handle_composition_annotation, handle_charset_annotation): New
15658 functions.
15659 (consume_chars): Handle charset annotation. Utilize the above two
15660 functions.
15661 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15662 buffer, get the deleted text as a string and set
15663 coding->src_object to that string.
15664 (detect_coding, detect_coding_system): Use the new struct
15665 coding_detection_info.
15666
15667 * coding.h (struct coding_detection_info): New structure.
15668 (struct coding_system): Adjust prototype of the member `detector'.
15669 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15670
156712008-02-01 Kenichi Handa <handa@m17n.org>
15672
15673 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15674
156752008-02-01 Dave Love <fx@gnu.org>
15676
15677 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15678 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15679 to new local and nullify apropos_accumulate before returning.
15680 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15681
156822008-02-01 Kenichi Handa <handa@m17n.org>
15683
15684 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15685 correctly.
e3eea1fc 15686
aac0c6e3
MR
156872008-02-01 Dave Love <fx@gnu.org>
15688
15689 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15690
156912008-02-01 Kenichi Handa <handa@m17n.org>
15692
15693 The following changes are to make character composition happen
15694 automatically on displaying.
15695
15696 * Makefile.in (lisp, shortlisp): Add composite.elc.
15697
15698 * composite.h (Qauto_composed, Vauto_composition_function)
15699 (Qauto_composition_function): Extern them.
15700
15701 * composite.c (Vcomposition_function_table)
15702 (Qcomposition_function_table): Delete variables.
15703 (Qauto_composed, Vauto_composition_function)
15704 (Qauto_composition_function): New variables.
15705 (run_composition_function): Don't call
15706 compose-chars-after-function.
15707 (update_compositions): Clear `auto-composed' text property.
15708 (compose_chars_in_text): Delete this function.
15709 (syms_of_composite): Staticpro Qauto_composed and
15710 Qauto_composition_function. Declare Vauto_composition_function as
15711 a Lisp variable.
15712
15713 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15714
15715 * xdisp.c (it_props): Add an entry for Qauto_composed.
15716 (handle_auto_composed_prop): New function.
15717
15718 * xselect.c (selection_data_to_lisp_data): Don't call
15719 compose_chars_in_text.
15720
157212008-02-01 Dave Love <fx@gnu.org>
15722
15723 * keyboard.c (read_char): Modify checking around use of
15724 Vkeyboard_translate_table.
15725
15726 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15727 and fix C types.
15728
157292008-02-01 Kenichi Handa <handa@m17n.org>
15730
15731 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15732 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15733 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15734 the case that the last byte is '\r' correctly.
15735 (decode_coding): Flush out the unprocessed data correctly.
15736 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15737
157382008-02-01 Dave Love <fx@gnu.org>
15739
15740 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15741 Add XK_ISO... case.
15742 (xaw_scroll_callback): Revert last change.
15743
157442008-02-01 Kenichi Handa <handa@m17n.org>
15745
15746 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15747
157482008-02-01 Kenichi Handa <handa@m17n.org>
15749
15750 * xfaces.c (Vface_resizing_fonts): New variable.
15751 (struct font_name): New member `resizing_ratio'.
15752 (font_resizing_ratio): New function.
15753 (split_font_name): Set font->resizing_ratio.
15754 (better_font_p): Pay attention to font->resizing_ratio.
15755 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15756 RESX, and RESY fields.
15757 (try_alternative_families): Try scalable fonts if
15758 Vscalable_fonts_allowed is not Qt.
15759 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15760
157612008-02-01 Dave Love <fx@gnu.org>
15762
15763 * xterm.c (xaw_scroll_callback): Cast correctly.
15764
157652008-02-01 Dave Love <fx@gnu.org>
15766
15767 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15768 (lispy_kana_keys): Comment out.
15769 (make_lispy_event) [XK_kana_A]: Comment out.
15770
15771 * xterm.c (xaw_scroll_callback): Cast call_data.
15772 (XTread_socket): Deal with ASCII keysyms.
15773 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15774
157752008-02-01 Dave Love <fx@gnu.org>
15776
15777 * xterm.c (Vx_keysym_table): New.
15778 (syms_of_xterm): Initialize it.
15779 (XTread_socket): Use it.
15780 From head: Eliminate incorrect optimization that tried to avoid
15781 decoding the output of X*LookupString.
15782 (x_get_font_repertory): Delete charset declaration.
15783
157842008-02-01 Kenichi Handa <handa@m17n.org>
15785
15786 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15787 return 0.
15788 (Fdefine_coding_system_internal): Setup
15789 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15790
157912008-02-01 Dave Love <fx@gnu.org>
15792
15793 * coding.c (Fcheck_coding_system): Doc fix.
15794
15795 * editfns.c (Finsert_byte): Return a proper value.
15796
157972008-02-01 Kenichi Handa <handa@m17n.org>
15798
15799 * coding.c (decode_coding): Fix args to translate_chars. Pay
15800 attention to Vstandard_translation_table_for_decode.
15801 (encode_coding): Fix args to translate_chars. Pay attention to
15802 Vstandard_translation_table_for_encode.
15803
15804 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15805 SINGLE_BYTE_CHAR_P.
15806
15807 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15808 not by SINGLE_BYTE_CHAR_P.
15809
15810 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15811 SINGLE_BYTE_CHAR_P.
15812
15813 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15814 SINGLE_BYTE_CHAR_P.
15815
15816 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15817 by SINGLE_BYTE_CHAR_P.
15818
15819 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15820 SINGLE_BYTE_CHAR_P.
15821
158222008-02-01 Dave Love <fx@gnu.org>
15823
15824 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15825
158262008-02-01 Dave Love <fx@gnu.org>
15827
15828 * fns.c (Flanginfo): Fix typo.
15829
15830 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15831
158322008-02-01 Kenichi Handa <handa@m17n.org>
15833
15834 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15835 (detect_coding_emacs_mule, detect_coding_iso_2022)
15836 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15837 incomplete byte sequence. Don't update *mask when correctly detected.
15838 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15839 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15840 (detect_coding, detect_coding_system): Adjust for the changes above.
15841
158422008-02-01 Kenichi Handa <handa@m17n.org>
15843
15844 * character.c (char_string): Rename from
15845 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15846 (string_char): Rename from string_char.
15847
15848 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15849 if C is greater than MAX_3_BYTE_CHAR.
15850 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15851 string_char instead of string_char_with_unification.
15852
158532008-02-01 Dave Love <fx@gnu.org>
15854
15855 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15856
158572008-02-01 Kenichi Handa <handa@m17n.org>
15858
15859 * keymap.c (push_key_description): Pay attention to force_multibyte.
15860
15861 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15862
158632008-02-01 Dave Love <fx@gnu.org>
15864
15865 * charset.c (define_charset_internal): Rename `supprementary'.
15866
15867 * Makefile.in (lisp, shortlisp): Remove latin-N.
15868
158692008-02-01 Dave Love <fx@gnu.org>
15870
15871 * xfns.c (x_window, x_window): Use use_xim.
15872
15873 * xterm.c (use_xim): Initialize.
15874 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15875 (x_term_init): Maybe set use_xim.
15876
15877 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15878
158792008-02-01 Kenichi Handa <handa@m17n.org>
15880
15881 * search.c (search_buffer): Fix case-fold-search of multibyte
15882 characters.
15883 (boyer_moore): Rename the last argument to char_high_bits.
15884
158852008-02-01 Kenichi Handa <handa@m17n.org>
15886
15887 * xdisp.c (display_string): Fix for the case of zero width glyph.
15888
15889 * xfns.c (x_set_font): Change the error message of the case that
15890 x_new_fontset returns Qt.
15891
15892 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15893 (Finternal_set_lisp_face_attribute): Use signal_error for the
15894 error of invalid fontset.
15895
15896 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15897 fontset, return Qt.
15898
158992008-02-01 Dave Love <fx@gnu.org>
15900
15901 * unexelf.c (unexec): Make .got handling not SGI-specific.
15902
15903 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15904
15905 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15906
15907 * keyboard.c (read_key_sequence): Fix type error.
15908
15909 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15910 type error.
15911
15912 * fontset.c (fontset_add): Return Lisp_Object.
15913
159142008-02-01 Dave Love <fx@gnu.org>
15915
15916 * charset.h (charset_ordered_list_tick): Declare extern.
15917
159182008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 The following changes (and some of 2008-02-01 changes of mine) are
15921 for handling syntax, category, and case conversion for unibyte
15922 characters by converting them to multibyte on the fly. With these
15923 changes, we don't have to setup syntax and case tables for unibyte
15924 characters in each language environment.
15925
15926 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15927 multibyte if necessary.
15928
15929 * bytecode.c (Fbyte_code): Likewise.
15930
15931 * character.h (LEADING_CODE_LATIN_1_MIN)
15932 (LEADING_CODE_LATIN_1_MAX): New macros.
15933 (unibyte_to_multibyte_table): Extern it.
15934 (unibyte_char_to_multibyte): New macro.
15935 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15936 (CHAR_LEADING_CODE): New macro.
15937 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15938
15939 * character.c (unibyte_to_multibyte_table): New variable.
15940 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15941 (multibyte_char_to_unibyte): If C is an eight-bit character,
15942 convert it to the corresponding byte value.
15943
15944 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15945 not 1, signals an error. Update the elements of
15946 unibyte_to_multibyte_table.
15947 (init_charset_once): Initialize unibyte_to_multibyte_table.
15948 (syms_of_charset): Define the charset `iso-8859-1'.
15949
15950 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15951 as is without converting it to unibyte. In a unibyte buffer,
15952 convert C to multibyte before checking the syntax.
15953
15954 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15955
15956 * minibuf.c (Fminibuffer_complete_word): Use the macro
15957 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15958
15959 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15960
15961 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15962 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15963 that is zero, convert an eight-bit char to multibyte.
15964 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15965 non-emacs case.
15966 (PATFETCH): Convert an eight-bit char to multibyte.
15967 (HANDLE_UNIBYTE_RANGE): New macro.
15968 (regex_compile): Setup the compiled pattern for multibyte chars
15969 even if the given regex string is unibyte. Use PATFETCH_RAW
15970 instead of PATFETCH in many places. To handle `charset'
15971 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15972 only for ASCII chars.
15973 (analyse_first) <exactn>: Simplify because the compiled pattern
15974 is multibyte.
15975 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15976 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15977 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15978 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15979 multibyte always 1.
15980 (re_search_2): In emacs, set the locale variable multibyte to 1,
15981 otherwise to 0. New local variable target_multibyte. Check it
15982 to decide the multibyteness of STR1 and STR2. If
15983 target_multibyte is zero, convert unibyte chars to multibyte
15984 before translating and checking fastmap.
15985 (TARGET_CHAR_AND_LENGTH): New macro.
15986 (re_match_2_internal): In emacs, set the locale variable multibyte
15987 to 1, otherwise to 0. New local variable target_multibyte. Check
15988 it to decide the multibyteness of STR1 and STR2. Use
15989 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15990 <charset, charset_not>: If multibyte is nonzero, check fastmap
15991 only for ASCII chars. Call bcmp_translate with
15992 target_multibyte, not with multibyte.
15993 <begline>: Declare the local variable C as `unsigned'.
15994 (bcmp_translate): Change the last arg name to target_multibyte.
15995
15996 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15997 the regexp pattern and the matching target. Set cp->buf.multibyte
15998 to the multibyteness of the regexp pattern. Set
15999 cp->but.target_multibyte to the multibyteness of the matching target.
16000 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
16001 FETCH_STRING_CHAR_ADVANCE.
16002 (Freplace_match): Convert unibyte chars to multibyte.
16003
16004 * syntax.c (char_quoted, back_comment, scan_words)
16005 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
16006 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
16007 unibyte chars to multibyte.
16008 (skip_chars): Delete the arg syntaxp, and move the code for
16009 handling syntaxes to skip_syntaxes. Change callers.
16010 Fix the case that the multibyteness of STRING and the current
16011 buffer doesn't match.
16012 (skip_syntaxes): New function.
16013 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
16014 SINGLE_BYTE_CHAR_P.
16015
160162008-02-01 Kenichi Handa <handa@m17n.org>
16017
16018 * xfaces.c (QCfontset): New variable.
16019 (LFACE_FONTSET): New macro.
16020 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
16021 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
16022 (Finternal_set_lisp_face_attribute)
16023 (Finternal_get_lisp_face_attribute): Handle QCfontset.
16024 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
16025 check also LFACE_FONTSET_INDEX.
16026 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
16027 attrs[LFACE_FONT_INDEX].
16028 (syms_of_xfaces): Intern and staticpro QCfontset.
16029
16030 * dispextern.h (enum lface_attribute_index): New member
16031 LFACE_FONTSET_INDEX.
16032
16033 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
16034
160352008-02-01 Kenichi Handa <handa@m17n.org>
16036
16037 * coding.c (coding_set_destination): Fix coding->destination for
16038 the case converting a region.
16039 (encode_coding_utf_8): Encode eight-bit chars as single byte.
16040 (encode_coding_object): Fix coding->dst_pos and
16041 coding->dst_pos_byte for the case converting a region.
16042
16043 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16044
16045 * character.h (BYTE8_STRING): New macro.
16046
16047 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16048
160492008-02-01 Kenichi Handa <handa@m17n.org>
16050
16051 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16052 characters by octal form.
16053
16054 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16055
16056 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16057 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16058 _fetch_multibyte_char_len.
16059 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16060
16061 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16062
16063 * casefiddle.c (casify_object): Simplify. Handle the case that
16064 the case conversion change the byte length.
16065 (casify_region): Likewise.
16066
16067 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16068
16069 * character.c (_fetch_multibyte_char_len): Delete this variable.
16070 (syms_of_character): Setup Vprintable_chars.
16071
16072 * editfns.c (Fchar_equal): Fix for the unibyte case.
16073 (Finsert_byte): New function.
16074 (syms_of_editfns): Defsubr it.
16075
16076 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16077 of direct code 0x3ffff.
16078
16079 * search.c (Freplace_match): Fix for the unibyte case.
16080
160812008-02-01 Kenichi Handa <handa@m17n.org>
16082
16083 * lread.c (safe_to_load_p): Fix the logic.
16084
16085 * syntax.c (scan_words): Don't treat characters belonging to
16086 different scripts as constituting a word.
16087
16088 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16089
16090 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16091
16092 * emacs.c (main): In the case of --unibyte, instead of aborting on
16093 finding non-empty buffer, make it unibyte.
16094
160952008-02-01 Kenichi Handa <handa@m17n.org>
16096
16097 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16098 to create a fontset.
16099
161002008-02-01 Dave Love <fx@gnu.org>
16101
16102 * character.c (Funibyte_char_to_multibyte): Doc fix.
16103
16104 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16105
161062008-02-01 Kenichi Handa <handa@m17n.org>
16107
16108 * fontset.c (fontset_add): Make the type `int'.
16109 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16110
16111 * character.c (unibyte_char_to_multibyte)
16112 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16113 charset_unibyte, not charset_primary.
16114
16115 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16116
16117 * charset.c (charset_unibyte): Rename from charset_primary.
16118 (Funibyte_charset): Rename from Fprimary_charset.
16119 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16120 (syms_of_charset): Adjust for the above changes.
16121
16122 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16123 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16124 it->multibyte_p is zero.
16125
16126 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16127 Delete extern.
16128
161292008-02-01 Kenichi Handa <handa@m17n.org>
16130
16131 * coding.c (Fdefine_coding_system_internal): Fix category setting
16132 for a coding system of type iso-2022.
16133
161342008-02-01 Kenichi Handa <handa@m17n.org>
16135
16136 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16137
161382008-02-01 Kenichi Handa <handa@m17n.org>
16139
16140 * syntax.c (Vnext_word_boundary_function_table): New variable.
16141 (next-word-boundary-function-table): Declare it as a Lisp variable
16142 in syms_of_syntax.
16143 (scan_words): Call functions in Vnext_word_boundary_function_table
16144 if any.
16145
16146 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16147
16148 * fontset.c (fs_load_font): If fontp->charset is not negative,
16149 return fontp without setting its members.
16150
161512008-02-01 Dave Love <fx@gnu.org>
16152
16153 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16154
16155 * m/sparc.h (HAVE_ALLOCA): Delete.
16156
16157 * s/irix6-5.h: Don't include strings.h.
16158 (bcopy, bzero, bcmp): Don't undef.
16159
16160 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16161
16162 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16163 (TIOCSIGSEND): Don't test IRIX6.
16164 (bcopy, bzero, bcmp): Define conditionally.
16165
161662008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * buffer.c (Qas, Qmake, Qto): New variables.
16169 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16170 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16171
16172 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16173 we are inserting a process output into a multibyte buffer.
16174
16175 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16176 multibyte_char_to_unibyte.
16177
16178 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16179 by the primary charset, make it eight-bit char.
16180 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16181
16182 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16183 (charset_8_bit__control, charset_8_bit_graphic)
16184 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16185 (define_charset_internal): New function.
16186 (syms_of_charset): Call define_charset_internal for pre-defined
16187 charsets.
16188
16189 * charset.h (charset_8_bit): Extern it.
16190
16191 * coding.c (make_conversion_work_buffer): Adjust for the change
16192 of Fset_buffer_multibyte.
16193 (encode_coding_raw_text): Increment p0 in the loop.
16194
16195 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16196
16197 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16198 for the change of Fset_buffer_multibyte.
16199
16200 * fns.c (Fstring_to_multibyte): New function.
16201 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16202
162032008-02-01 Dave Love <fx@gnu.org>
16204
16205 * xfns.c (x_put_x_image): Declare args.
16206
16207 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16208 (try_font_list): Declare an arg.
16209
16210 * xdisp.c (message2_nolog, set_message): Declare an arg.
16211
16212 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16213
16214 * syntax.c (scan_sexps_forward): Declare an arg.
16215
16216 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16217 Declare an arg.
16218
16219 * lisp.h (Fnew_fontset): Declare.
16220
16221 * keymap.c (push_key_description): Call CHARACTERP correctly.
16222
16223 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16224 (face_for_char): Delete unused vars.
16225 (Fset_fontset_font): Doc fix. Delete unused vars.
16226
16227 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16228
16229 * composite.c (update_compositions): Declare arg.
16230
16231 * cm.c (calccost, cmgoto): Declare args.
16232
16233 * charset.c: Remove `emacs' conditional. Doc fixes.
16234 (map_char_table_for_charset): Declare.
16235
16236 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16237
16238 * ccl.c: Remove `emacs' conditional.
16239
162402008-02-01 Kenichi Handa <handa@m17n.org>
16241
16242 The following changes are to allow specifying multiple font
16243 patterns for a character range (specified by script or charset).
16244
16245 * Makefile.in (abbrev.o): Depend on syntax.h.
16246 (xfaces.o): Depend on charset.h.
16247
16248 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16249 SINGLE_BYTE_CHAR_P.
16250
16251 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16252
16253 * character.h (Vchar_script_table): Extern it.
16254
16255 * character.c (Vscript_alist): Delete.
16256 (Vchar_script_table, Qchar_script_table): New variable.
16257 (syms_of_character): Declare Vchar_script_table as a lisp variable
16258 and initialize it.
16259
16260 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16261 have property char-table-extra-slots, make no extra slot.
16262
16263 * dispextern.h (struct face): Delete member `charset'.
16264 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16265 SINGLE_BYTE_CHAR_P.
16266 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16267 Add prototypes.
16268 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16269 (generate_ascii_font_name): Rename from generate_ascii_font.
16270
16271 * fontset.h (get_font_repertory_func): New prototype.
16272 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16273 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16274
16275 * fontset.c (Qprepend, Qappend): New variables.
16276 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16277 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16278 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16279 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16280 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16281 (load_font_get_repertory): New functions.
16282 (fontset_set): Delete.
16283 (fontset_face): New arg FACE. Return face ID, not face.
16284 Complete re-write to handle new fontset structure. Change caller.
16285 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16286 (face_for_char): Don't call lookup_face.
16287 (make_fontset_for_ascii_face): New arg FACE.
16288 (fs_load_font): New arg CHARSET_ID. Don't check
16289 Vfont_encoding_alist here.
16290 (find_font_encoding): New function.
16291 (list_fontsets): Use STRINGP, not ! NILP.
16292 (accumulate_script_ranges): New function.
16293 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16294 re-written to handle new fontset structure.
16295 (Ffontset_font): Return a copy of element.
16296 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16297 docstring of font-encoding-alist.
16298
16299 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16300 (Fset_fotset_font): Fix arguments to 5.
16301
16302 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16303
16304 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16305 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16306 (highlight_trailing_whitespace): Adjust for the change of
16307 lookup_named_face.
16308
16309 * xfaces.c: Include charset.h.
16310 (load_face_font): Delete argument C. Change caller.
16311 (generate_ascii_font_name): Rename from generate_ascii_font.
16312 (font_name_registry): New function.
16313 (cache_face): Store ascii faces before non-ascii faces in buckets.
16314 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16315 Lookup only ascii faces.
16316 (lookup_non_ascii_face): New function.
16317 (lookup_named_face): Delete argument C. Change caller.
16318 (lookup_derived_face): Delete argument C. Change caller.
16319 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16320 a string, just call font_list with it.
16321 (choose_face_font): Delete arguments FACE and C. New arg
16322 FONT_SPEC. Change caller.
16323 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16324 Change caller.
16325 (realize_non_ascii_face): New function.
16326 (realize_x_face): Call load_face_font here.
16327 (realize_tty_face): Delete argument C. Change caller.
16328 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16329 get a face ID.
16330 (dump_realized_face): Don't print charset of FACE.
16331
16332 * xfns.c (x_set_font): Always call x_new_fontset and
16333 store_frame_parameter.
16334 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16335 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16336
16337 * xterm.h (x_get_font_repertory): Extern it.
16338
16339 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16340 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16341 it->multibyte_p is zero.
16342 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16343 (x_new_fontset): If FONTSETNAME doesn't match any existing
16344 fontsets, create a new one.
16345 (x_get_font_repertory): New function.
16346
163472008-02-01 Kenichi Handa <handa@m17n.org>
16348
16349 * coding.c (Ffind_coding_systems_region_internal): Detect an
16350 ASCII only string correctly.
16351
16352 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16353 version is 0.
16354
163552008-02-01 Kenichi Handa <handa@m17n.org>
16356
16357 * lread.c: Include "coding.h".
16358 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16359 (load_each_byte, unread_char): New variables.
16360 (readchar_backlog): Delete.
16361 (readchar): Return a character unless load_each_byte is nonzero.
16362 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16363 cons. If unread_char is not -1, simply return it.
16364 (unreadchar): Handle the case that readcharfun is
16365 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16366 (read_multibyte): Delete.
16367 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16368 (read_emacs_mule_char): New functions.
16369 (Fload): Even if the file doesn't have the extension ".elc", if
16370 safe_to_load_p returns a positive version number, assume that the
16371 file contains bytecompiled code. If the version is less than 22,
16372 load the file while decoding multibyte sequences by emacs-mule.
16373 (readevalloop): Don't use readchar_backlog.
16374 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16375 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16376 (read_escape): Delete the arg BYTEREP.
16377 (read1): Set load_each_byte to 1 temporarily while handling
16378 #@NUMBER. Don't call read_multibyte.
16379 (read_vector): Call Fread with a cons. If readcharfun is
16380 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16381 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16382 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16383 and Qload_force_doc_strings.
16384
163852008-02-01 Kenichi Handa <handa@m17n.org>
16386
16387 * xdisp.c (face_before_or_after_it_pos): Call
16388 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16389
163902008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * character.h (TRAILING_CODE_P): New macro.
16393 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16394 (string_char_with_unification): Fix prototype.
16395 (Vscript_alist): Extern it.
16396
16397 * character.c (Vscript_alist): New variable.
16398 (string_char_with_unification, str_as_unibyte)
16399 (string_escape_byte8): Add `const' to local variables.
16400 (syms_of_character): Declare script-alist as a Lisp variable.
16401
16402 * charset.h (Vcharset_ordered_list): Extern it.
16403 (charset_ordered_list_tick): Extern it.
16404 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16405 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16406 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16407 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16408 (Funify_charset): Adjust for the change of Funify_charset.
16409
16410 * charset.c (charset_ordered_list_tick): New variable.
16411 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16412 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16413 deunify intead of unify a charset.
16414 (string_xstring_p): Add `const' to local variables.
16415 (find_charsets_in_text): Add `const' to arguments and local variables.
16416 (encode_char): Adjust for the change of Funify_charset. Fix
16417 detecting of invalid code.
16418 (Fset_charset_priority): Increment charset_ordered_list_tick.
16419 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16420 and TO_CODE.
16421
16422 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16423 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16424 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16425 (decode_coding_ccl, consume_chars)
16426 (Ffind_coding_systems_region_internal)
16427 (Fcheck_coding_systems_region): Add `const' to local variables.
16428
16429 * print.c (print_object): Use octal form for printing the
16430 contents of a bool vector.
16431
164322008-02-01 Dave Love <fx@gnu.org>
16433
16434 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16435 <version == 20>: Refuse to load.
16436
164372008-02-01 Dave Love <fx@gnu.org>
16438
16439 * fns.c: Move coding.h.
16440 (Qcodeset, Qdays, Qmonths): New.
16441 (concat): Use CHARACTERP instead of INTEGERP.
16442 (Flocale_codeset): Delete.
16443 (Flanginfo): New function.
16444 (syms_of_fns): Change accordingly.
16445
16446 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16447
164482008-02-01 Dave Love <fx@gnu.org>
16449
16450 * casetab.c (init_casetab_once, init_casetab_once): Fix
16451 CHAR_TABLE_SET call.
16452
16453 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16454
16455 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16456
16457 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16458 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16459 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16460
16461 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16462
16463 * coding.c (ENCODE_DESIGNATION, decode_eol)
16464 (make_conversion_work_buffer, code_conversion_restore)
16465 (Fdefine_coding_system_internal): Convert Lisp types.
16466 (code_conversion_restore): Use EQ, not ==.
16467 (Fencode_coding_string): Fix code_convert_string call.
16468
16469 * coding.h (code_convert_region): Fix prototype.
16470
16471 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16472
16473 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16474 (Ffontset_info): Convert Lisp types.
16475
16476 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16477
16478 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16479
16480 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16481
16482 * chartab.c: Include "...h", not <...h> in some cases.
16483
16484 * callproc.c (Fcall_process): Remove unused variables.
16485
164862008-02-01 Dave Love <fx@gnu.org>
16487
16488 * coding.c (Fset_coding_system_priority): Allow null arg list.
16489
164902008-02-01 Dave Love <fx@gnu.org>
16491
16492 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16493 (Fself_insert_and_exit): Use CHARACTERP.
16494
16495 * callproc.c (Fcall_process): Remove unused vars.
16496
16497 * xterm.c (XTread_socket): Add extra dead keysyms.
16498
16499 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16500
16501 * dispextern.h: Remove prototypes for redraw_frame,
16502 redraw_garbaged_frames.
16503
16504 * cmds.c (Fself_insert_command): Use CHARACTERP.
16505
16506 * chartab.c (make_sub_char_table): Remove unused var.
16507 (Fset_char_table_default, Fmap_char_table): Doc fix.
16508
16509 * keymap.c (access_keymap): Remove generic char code.
16510 (push_key_description): Use CHARACTERP.
16511
165122008-02-01 Dave Love <fx@gnu.org>
16513
16514 * charset.c: Doc fixes.
16515 (Funify_charset): Extra checking.
16516
165172008-02-01 Dave Love <fx@gnu.org>
16518
16519 * lread.c: Remove some unused variables.
16520 (safe_to_load_p): If safe, return the magic number version byte.
16521 (Fload): Maybe use load-with-code-conversion.
16522
165232008-02-01 Kenichi Handa <handa@m17n.org>
16524
16525 * category.c (Fmodify_category_entry): Don't modify the contents
16526 of category_set for characters out of the range. Avoid
16527 unnecessary modification.
16528
16529 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16530 Vchar_unify_table. The default value of the table is now nil.
16531
16532 * character.c (syms_of_character): Setup Vchar_width_table for
16533 eight-bit-control and raw-byte chars.
16534
16535 * charset.h (enum define_charset_arg_index): Delete
16536 charset_arg_parents and add charset_arg_subset and
16537 charset_arg_superset.
16538 (enum charset_attr_index): Delete charset_parents and add
16539 charset_subset and charset_superset.
16540 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16541 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16542 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16543 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16544 (CHARSET_SUPERSET): New macros.
16545 (charset_work): Extern it.
16546 (ENCODE_CHAR): Use charset_work.
16547 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16548 (map_charset_chars): Extern it.
16549
16550 * charset.c (load_charset_map): Set the default value of encoder
16551 and deunifier char-tables to nil.
16552 (map_charset_chars): Change argument. Change callers. Use
16553 map_char_table_for_charset instead of map_char_table.
16554 (Fmap_charset_chars): New optional args from_code and to_code.
16555 (Fdefine_charset_internal): Adjust for the change of
16556 `define-charset' (:parents -> :subset or :superset).
16557 (charset_work): New variable.
16558 (encode_char, syms_of_charset): Adjust for the change of
16559 Fdefine_charset_internal.
16560 (Ffind_charset_string): Setup the vector `charsets' correctly.
16561
16562 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16563 the previous change.
16564 (char_table_ref_and_range): Adjust for the above change.
16565 (map_sub_char_table_for_charset): New function.
16566 (map_char_table_for_charset): New function.
16567
16568 * keymap.c (describe_vector): Handle a char-table directly here.
16569 (describe_char_table): Delete.
16570
16571 * lisp.h (map_charset_chars): Delete.
16572
165732008-02-01 Dave Love <fx@gnu.org>
16574
16575 * fns.c (count_combining): Comment out (unused).
16576 (Flocale_codeset): New.
16577 (syms_of_fns): Defsubr it.
16578
16579 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16580 (size_t): Remove.
16581
165822008-02-01 Dave Love <fx@gnu.org>
16583
16584 * Makefile.in (chartab.o): Depend on charset.h.
16585
165862008-02-01 Kenichi Handa <handa@m17n.org>
16587
16588 * character.c (syms_of_character): Set the default value of
16589 Vprintable_chars to Qnil.
16590
165912008-02-01 Dave Love <fx@gnu.org>
16592
16593 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16594
165952008-02-01 Kenichi Handa <handa@m17n.org>
16596
16597 * charset.c (load_charset_map): Handle the case that from < to
16598 correctly.
16599
16600 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16601 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16602 Pay attention to raw-8-bit chars.
16603
166042008-02-01 Kenichi Handa <handa@m17n.org>
16605
16606 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16607 It is not bytecompiled now.
16608
16609 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16610 (charset_jisx0208): New variables.
16611 (Fdefine_charset_internal): Setup them if appropriate.
16612 (init_charset_once): Initialize them to -1.
16613
16614 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16615 (charset_jisx0208): Extern them.
16616
16617 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16618 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16619 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16620 (setup_iso_safe_charsets): Fix arguments to Fassq.
16621 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16622 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16623 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16624 (encode_coding_iso_2022): Change the 1st arg to
16625 ENCODE_ISO_CHARACTER to a variable.
16626
166272008-02-01 Kenichi Handa <handa@m17n.org>
16628
16629 * charset.h (enum define_charset_arg_index): New enums
16630 charset_arg_min_code and charset_arg_max_code.
16631 (struct charset): New member char_index_offset.
16632
16633 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16634 Take charset->char_index_offset into account.
16635 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16636 args[charset_arg_max_code]. Setup charset.char_index_offset.
16637 (syms_of_charset): Fix args to Fdefine_charset_internal.
16638
166392008-02-01 Dave Love <fx@gnu.org>
16640
16641 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16642
166432008-02-01 Dave Love <fx@gnu.org>
16644
16645 * coding.c: Doc fixes.
16646 (Fcoding_system_aliases): Fix return value.
16647 (Qmac): Remove (duplicated) definition.
16648
166492008-02-01 Dave Love <fx@gnu.org>
16650
362654a6
JB
16651 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16652 New functions.
aac0c6e3
MR
16653
16654 * character.c (Fstring): Doc fix.
16655
16656 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16657
362654a6 16658 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16659 (font-encoding-alist): Doc fix.
16660
166612008-02-01 Dave Love <fx@gnu.org>
16662
16663 * term.c (costs_set): Declare static, non-initialized for pcc.
16664 (encode_terminal_code): Remove unused var.
16665
16666 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16667 for K&R.
16668
16669 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16670
16671 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16672 (suffixes): Move out of make_subsidiaries for K&R.
16673
16674 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16675
16676 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16677
166782008-02-01 Dave Love <fx@gnu.org>
16679
16680 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16681
16682 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16683
166842008-02-01 Yong Lu <lyongu@asia-infonet.com>
16685
16686 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16687
16688 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16689
166902008-02-01 Kenichi Handa <handa@m17n.org>
16691
16692 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16693 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16694
166952008-02-01 Kenichi Handa <handa@m17n.org>
16696
16697 * coding.c (decode_coding_charset): Adjust for the change of
16698 Fdefine_coding_system_internal.
16699 (Fdefine_coding_system_internal): For a coding system of
16700 `charset' type, store a list of charset IDs in
16701 `charset_attr_charset_valids' element of coding attributes.
16702
167032008-02-01 Kenichi Handa <handa@m17n.org>
16704
16705 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16706 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16707 caller. Handle 2-byte and 3-byte charsets correctly.
16708 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16709 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16710 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16711 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16712 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16713 sequence.
16714 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16715 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16716 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16717 and alt&rule composition.
16718 (decode_coding_iso_2022): Handle composition correctly.
16719 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16720
16721 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16722 re-defining a charset. If the charset has :emacs-mule-id, setup
16723 emacs_mule_bytes.
16724 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16725
167262008-02-01 Kenichi Handa <handa@m17n.org>
16727
16728 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16729 (encode_coding_big5, encode_coding_charset): If coding requires safe
16730 encoding, produce a character specified by
16731 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16732
167332008-02-01 Dave Love <fx@gnu.org>
16734
16735 * xterm.c (XSetIMValues): Declare.
16736
16737 * process.c: Conditionally include sys/wait.h, pty.h.
16738
16739 * print.c (print_object): Fix print format for 64-bit systems.
16740
16741 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16742
16743 * buffer.c (emacs_strerror): Declare.
16744
16745 * fontset.c (Fclear_face_cache): Declare.
16746 (accumulate_font_info): Comment-out (unused).
16747 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16748 variables.
16749
16750 * character.h (string_escape_byte8): Declare.
16751
16752 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16753 unused vars.
16754 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16755 (Fmap_charset_chars): Doc fix.
16756
16757 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16758 (Fset_coding_system_priority, Fset_coding_system_priority)
16759 (Fdefine_coding_system_internal): Doc fix.
16760
167612008-02-01 Dave Love <fx@gnu.org>
16762
16763 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16764
167652008-02-01 Kenichi Handa <handa@m17n.org>
16766
16767 * character.c (string_escape_byte8): Make multibyte string with
16768 correct size.
16769
16770 * charset.c (Fmake_char): Delete unnecessary code.
16771
167722008-02-01 Kenichi Handa <handa@m17n.org>
16773
16774 * xfns.c (x_encode_text): Allocate coding.destination here, and
16775 call encode_coding_object with dst_object Qnil.
16776
16777 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16778 multibyte form correctly.
16779
16780 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16781 against Vfont_encoding_alist.
16782
16783 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16784 handling of charset list.
16785 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16786 (decode_coding_object): Move point to coding->dst_pos before
16787 calling post-read-conversion function.
16788 (encode_coding_object): Give correct arguments to
16789 pre-write-conversion. Ignore the return value of
16790 pre-write-conversion function. Pay attention to the case that
16791 pre-write-conversion changes the current buffer. If dst_object is
16792 Qt, even if coding->src_bytes is zero, allocate at least one byte
16793 to coding->destination.
16794
16795 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16796
16797 * charset.c (Fmake_char): Make it more backward compatible.
16798 (Fmap_charset_chars): Fix docstring.
16799
168002008-02-01 Dave Love <fx@gnu.org>
16801
16802 * coding.c: Doc fixes.
16803 (Fdefine_coding_system_alias): Use names, not symbols, in
16804 coding-system-alist.
16805
168062008-02-01 Kenichi Handa <handa@m17n.org>
16807
16808 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16809 of calling free_realized_face.
16810
168112008-02-01 Yong Lu <lyongu@asia-infonet.com>
16812
16813 * charset.c (read_hex): Don't treat SPC as a comment starter.
16814 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16815 (Fdecode_char): Fix typo.
16816
168172008-02-01 Kenichi Handa <handa@m17n.org>
16818
16819 * charset.h (struct charset): New member `code_space_mask'.
16820
16821 * coding.c (coding_set_source): Delete the local variable beg_byte.
16822 (encode_coding_charset, Fdefine_coding_system_internal):
16823 Delete the local variable charset.
16824 (Fdefine_coding_system_internal): Setup
16825 attrs[coding_attr_charset_valids] correctly.
16826
16827 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16828 member to check if CODE is valid or not.
16829 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16830 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16831 is within the range of charset->min_code and carset->max_code.
16832
168332008-02-01 Dave Love <fx@gnu.org>
16834
16835 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16836
16837 * dispextern.h (generate_ascii_font): Fix return type.
16838
16839 * xfaces.c (generate_ascii_font): Fix arg declaration.
16840
16841 * coding.c (coding_inherit_eol_type)
16842 (Fset_terminal_coding_system_internal)
16843 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16844
168452008-02-01 Kenichi Handa <handa@m17n.org>
16846
16847 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16848 multiple charsets correctly.
16849
168502008-02-01 Kenichi Handa <handa@m17n.org>
16851
16852 * search.c (boyer_moore): Fix handling of multibyte character
16853 translation.
16854
16855 * xdisp.c (display_mode_element): When the variable `elt' is
16856 changed, update `this' and `lisp_string'.
16857
168582008-02-01 Kenichi Handa <handa@m17n.org>
16859
16860 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16861
16862 * callproc.c (Fcall_process): Be sure to give the current buffer
16863 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16864
16865 * charset.c (struct charset_map_entries): New struct.
16866 (load_charset_map): Rename from parse_charset_map. New args
16867 entries and n_entries. Change caller.
16868 (load_charset_map_from_file): Rename from load_charset_map.
16869 Change caller. New arg control_flag. Call load_charset_map at
16870 the tail.
16871 (load_charset_map_from_vector): New function.
16872 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16873 (encode_char): If the charset is compact, change a character index
16874 to a code point.
16875
16876 * coding.c (coding_alloc_by_making_gap): Check the case that the
16877 source and destination are the same correctly.
16878 (decode_coding_raw_text): Set coding->consumed_char and
16879 coding->consumed to 0.
16880 (produce_chars): If coding->chars_at_source is nonzero, update
16881 coding->consumed_char and coding->consumed before calling
16882 alloc_destination.
16883 (Fdefine_coding_system_alias): Register ALIAS in
16884 Vcoding_system_alist.
16885 (syms_of_coding): Define `no-conversion' coding system at the tail.
16886
16887 * fileio.c (Finsert_file_contents): Set coding_system instead of
16888 val. If the current buffer is multibyte, always call
16889 decode_coding_gap.
16890
16891 * xfaces.c (try_font_list): Give higher priority to fontset's
16892 family than face's family.
16893
168942008-02-01 Kenichi Handa <handa@m17n.org>
16895
16896 * callproc.c (Fcall_process): Be sure to give the current buffer
16897 to decode_coding_c_string.
16898
16899 * xfaces.c (try_font_list): Give a family specified in a fontset
16900 higher priority than a family specified in a face.
16901
169022008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16905 Fix arguments to insert_from_buffer.
16906
16907 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16908
169092008-02-01 Kenichi Handa <handa@m17n.org>
16910
16911 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16912 (decode_coding_gap): Set coding->dst_multibyte correctly.
16913
169142008-02-01 Kenichi Handa <handa@m17n.org>
16915
16916 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16917 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16918 (encode_coding_utf_16): Substitute coding->default_char for
16919 non-Unicode characters.
16920 (decode_coding): Don't call record_insert here.
16921 (setup_coding_system): Initialize `surrogate' of
16922 coding->spec.utf_16 to 0.
16923 (EMIT_ONE_BYTE): Fix for multibyte case.
16924
16925 * insdel.c (insert_from_gap): Call record_insert.
16926
169272008-02-01 Kenichi Handa <handa@m17n.org>
16928
16929 * casefiddle.c (casify_region): Fix multibyte case.
16930
16931 * character.c (c_string_width): Add return type `int'.
16932 (char_string_with_unification): Delete arg ADVANCED.
16933
16934 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16935 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16936 (CHAR_STRING_ADVANCE): Make it do-while statement.
16937
16938 * chartab.c (sub_char_table_set_range): Optimize for the case
16939 DEPTH == 3. Add workaround code for a GCC optimization bug.
16940
16941 * charset.c (parse_charset_map): Remove an unused variable.
16942
16943 * coding.c: Delete unused variables.
16944
16945 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16946 earlier. If inserted is zero and the coding system doesn't
16947 require flushing, don't call decode_coding_gap.
16948
16949 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16950
169512008-02-01 Kenichi Handa <handa@m17n.org>
16952
16953 The following changes are for using Unicode as an internal
16954 character model, and use UTF-8 format for buffer/string
16955 representation.
16956
16957 * .gdbinit (xchartable): Adjust for the change of char table structure.
16958 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16959
16960 * Makefile.in (obj): Add character.o and chartab.o.
16961 (lisp, shortlisp): Remove utf-8.elc.
16962 (*.o): For many files, change dependency on charset.h to
16963 character.h, and add dependency on character.h.
16964 (character.o, chartab.o): New targets.
16965
16966 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16967 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16968 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16969 of "charset.h".
16970
16971 * dired.c, filelock.c: Include "character.h".
16972
16973 * alloc.c: Include "character.h" instead of "charset.h".
16974 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16975 (syms_of_alloc): Remove defsubr for Smake_char_table.
16976
16977 * buffer.c: Include "character.h" instead of "charset.h", don't
16978 include "coding.h".
16979 (Fset_buffer_multibyte): Adjust for UTF-8.
16980
16981 * buffer.h: EXFUN Fbuffer_live_p.
16982
16983 * callproc.c: Include "character.h" instead of "charset.h".
16984 (Fcall_process): Big change for the new code-conversion APIs.
16985
16986 * casetab.c: Include "character.h" instead of "charset.h".
16987 (set_canon, set_identity, shuffle): Adjust for the new
16988 map_char_table spec.
16989 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16990 accessing the char table structure.
16991
16992 * chartab.c: New file that implements char table.
16993
16994 * category.c: Include "character.h".
16995 (copy_category_entry): New function.
16996 (copy_category_table): Call map_char_table and copy_category_entry.
16997 (Fmake_category_table): Initialize all top-level slots.
16998 (char_category_set): New function.
16999 (modify_lower_category_set): Delete.
17000 (Fmodify_category_entry): Call char_table_ref_and_range.
17001
17002 * category.h (CATEGORY_SET): Just call char_category_set.
17003
17004 * ccl.c: Include "character.h".
17005 (Qccl, Qcclp): New variables.
17006 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
17007 it's less than 256.
17008 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
17009 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
17010 and DST type.
17011 (ccl_driver): Change types of argument, adjust code accordingly.
17012 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
17013 ccl_driver.
17014 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
17015
17016 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
17017 New members src_multibyte, dst_multibyte, consumed, and produced.
17018 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
17019 (CODING_SPEC_CCL_PROGRAM): New macro.
17020 (ccl_driver): Update prototype.
17021 (Qccl, Qcclp, Fccl_program_p): Extern them.
17022 (CHECK_CCL_PROGRAM): New macro.
17023
17024 * character.c, character.h, chartab.c: New files.
17025
17026 * charset.c: Mostly re-written. Move character and multibyte sequence
17027 handling codes to character.c.
17028
17029 * charset.h: Mostly re-written. Move character and multibyte sequence
17030 handling codes to character.h.
17031
17032 * coding.c, coding.h: Mostly re-written.
17033
17034 * composite.c: Include "character.h" instead of "charset.h".
17035 (CHAR_WIDTH): Move to character.h.
17036 (HASH_KEY, HASH_VALUE): Delete.
17037
17038 * composite.h (enum composition_method): Change order of enumeration
17039 symbols.
17040
17041 * data.c: Include "character.h" instead of "charset.h".
17042 (Faref): Call CHAR_TABLE_REF for a char table.
17043 (Faset): Call CHAR_TABLE_SET for a char table.
17044
17045 * dispextern.h (free_realized_face, check_face_attribytes)
17046 (generate_ascii_font): Extern them.
17047 (free_realized_multibyte_face): Delete extern.
17048
17049 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17050 table structure.
17051
17052 * editfns.c: Include "character.h" instead of "charset.h".
17053 (Fchar_to_string): Always call CHAR_STRING.
17054
17055 * emacs.c (main): Call init_charset_once, init_charset,
17056 syms_of_chartab, and syms_of_character.
17057
17058 * fileio.c: Include "character.h" instead of "charset.h".
17059 (Finsert_file_contents): Big change for the new code-conversion API.
17060 (choose_write_coding_system, Fwrite_region): Likewise.
17061 (build_annotations_2): Delete.
17062 (e_write): Big change for the new code-conversion API.
17063
17064 * fns.c: Include "character.h" instead of "charset.h".
17065 (copy_sub_char_table): Move to chartab.c.
17066 (Fcopy_sequence): Call copy_char_table for a char table.
17067 (concat): Delete codes calling count_multibyte.
17068 (string_char_to_byte, string_byte_to_char): Adjust for the new
17069 multibyte form.
17070 (internal_equal): Adjust for the change of char table structure.
17071 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17072 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17073 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17074 (char_table_translate, optimize_sub_char_table)
17075 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17076 chartab.c.
17077 (char_table_ref_and_index): Delete.
17078 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17079 (Fmd5): Call preferred_coding_system instead of accessing
17080 Vcoding_category_list. Adjust for the new code-conversion API.
17081 (syms_of_fns): Move defsubr for char table related functions to
17082 chartab.c.
17083
17084 * fontset.c: Mostly re-written.
17085
17086 * fontset.h (struct font_info): Change type of the member encoding_type.
17087 (enum FONT_SPEC_INDEX): New enum.
17088 (fontset_font_pattern, fs_load_font): Update prototype.
17089 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17090
17091 * indent.c: Include "character.h" instead of "charset.h".
17092 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17093
17094 * insdel.c: Include "character.h" instead of "charset.h".
17095 (copy_text): Don't refer to Vnonascii_translation_table.
17096 (insert_from_gap): New function.
17097
17098 * keyboard.c: Include "character.h" instead of "charset.h".
17099 (command_loop_1): Never call direct_output_forward_char before
17100 a non-ASCII character.
17101 (read_char): If Vkeyboard_translate_table is a char table, always
17102 translate a character.
17103
17104 * keymap.c: Include "character.h".
17105 (store_in_keymap): Handle the case that IDX is a cons.
17106 (Fdefine_key): Handle the case that KEY is a cons and the car part
17107 is also a cons (range).
17108 (push_key_description): Adjust for the new character code.
17109 (describe_vector): Call describe_char_table for a char table.
17110 (describe_char_table): New function.
17111
17112 * keymap.h (describe_char_table): Extern it.
17113
17114 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17115 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17116 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17117 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17118 Delete.
17119 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17120 structure.
17121 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17122 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17123 (CHARTAB_SIZE_BITS_3): New macros.
17124 (chartab_size): Extern it.
17125 (struct Lisp_Char_Table): Re-design.
17126 (struct Lisp_Sub_Char_Table): New structure.
17127 (HASH_KEY, HASH_VALUE): Move from fns.c.
17128 (CHARACTERBITS): Define as 22.
17129 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17130 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17131 (GC_SUB_CHAR_TABLE_P): New macro.
17132 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17133 (code_convert_string_norecord): Deleted extern.
17134 (init_character_once, syms_of_character, init_charset)
17135 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17136
17137 * lread.c: Include "character.h".
17138 (read_multibyte): New arg NBYTES.
17139 (read_escape): Change the meaning of returned *BYTEREP.
17140 (to_multibyte): Delete.
17141 (read1): Adjust the handling of char table and string.
17142
17143 * print.c: Include "character.h" instead of "charset.h".
17144 (print_string): Convert 8-bit raw bytes to octal form by
17145 string_escape_byte8.
17146 (print_object): Adjust for the new multibyte form. Print 8-bit
17147 raw bytes always in octal form. Handle sub char table correctly.
17148
17149 * process.c: Include "character.h" instead of "charset.h".
17150 (read_process_output, send_process): Adjust for the new
17151 code-conversion API.
17152
17153 * puresize.h (BASE_PURESIZE): Increase.
17154
17155 * regex.c: Include "character.h" instead of "charset.h".
17156 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17157 (regex_compile): Accept a range whose starting and ending
17158 character have different leading bytes.
17159 (analyse_first): Adjust for the above change.
17160
17161 * search.c: Include "character.h" instead of "charset.h".
17162 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17163 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17164
17165 * syntax.c: Include "character.h" instead of "charset.h".
17166 (syntax_parent_lookup): Delete.
17167 (Fmodify_syntax_entry): Accept a cons as CHAR.
17168 (skip_chars): Adjust for the new multibyte form.
17169 (init_syntax_once): Call char_table_set_range instead of directly
17170 accessing the structure of a char table.
17171
17172 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17173 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17174 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17175 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17176
17177 * term.c: Include "buffer.h" and "character.h".
17178 (encode_terminal_code, write_glyphs): Adjust for the new
17179 code-conversion API.
17180 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17181
17182 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17183
17184 * xdisp.c: Include "character.h".
17185 (get_next_display_element): Adjust for the new multibyte form.
17186 (disp_char_vector): Adjust for the new char table structure.
17187 (decode_mode_spec_coding): Adjust for the new structure of
17188 coding system.
17189 (decode_mode_spec): Adjust for the new code-conversion API.
17190
17191 * xfaces.c: Include "character.h" instead of "charset.h".
17192 (load_face_font): Adjust for the change of choose_face_font and
17193 FS_LOAD_FONT.
17194 (generate_ascii_font): New function.
17195 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17196 (set_font_frame_param): Adjust for the change of choose_face_font.
17197 (free_realized_face): Make it public.
17198 (free_realized_faces_for_fontset): Rename from
17199 free_realized_multibyte_face. Free also faces realized for ASCII.
17200 (choose_face_font): Change arguments. Adjust for the change of
17201 fontset_font_pattern and FS_LOAD_FONT.
17202
17203 * xfns.c: Include "character.h".
17204 (x_encode_text): Adjust for the new code-conversion API.
17205
17206 * xselect.c: Don't include "charset.h".
17207 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17208
17209 * xterm.c: Include "character.h".
17210 (x_encode_char): New argument CHARSET. Change caller.
17211 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17212 Call ENCODE_CHAR instead of SPLIT_CHAR.
17213 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17214 CHAR_WIDTH instead of CHARSET_WIDTH.
17215 (XTread_socket): Adjust for the new code-conversion API.
17216 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17217 (x_load_font): Adjust for the change of struct font.
17218
172192008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17220
17221 * xfaces.c (face_at_buffer_position): Remove unused vars.
17222
172232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17224
17225 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17226 Fix overflow checking.
17227
172282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17229
17230 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17231 Cancel previous change.
17232
172332008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17234
17235 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17236 ccl->eight_bit_control. Fix check for buffer overflow.
17237 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17238 (ccl_driver): Initialize extra_bytes to 0.
17239
172402008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17241
17242 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17243 return it ORed with ctrl_modifier.
17244
172452008-01-29 Miles Bader <miles@gnu.org>
17246
17247 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17248
172492008-01-28 Jason Rumney <jasonr@gnu.org>
17250
17251 * w32.c (stat): Don't double check for networked drive.
17252
172532008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17254
17255 * window.c (run_window_configuration_change_hook): New function.
17256 Code extracted from set_window_buffer. Set the selected frame.
17257 (set_window_buffer): Use it.
17258 * window.h (run_window_configuration_change_hook): Declare.
17259 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17260
17261 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17262
172632008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17264
17265 * Makefile.in: Remove references to unused macros.
17266
172672008-01-26 Eli Zaretskii <eliz@gnu.org>
17268
17269 * w32.c (g_b_init_get_sid_sub_authority)
17270 (g_b_init_get_sid_sub_authority_count): New static variables.
17271 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17272 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17273 (init_user_info): Use them to retrieve uid and gid.
17274 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17275 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17276 st_uid and st_gid of the file.
17277
172782008-01-26 Jason Rumney <jasonr@gnu.org>
17279
17280 * w32.c (logon_network_drive): New function.
17281 (stat): Use it.
17282
172832008-01-26 Chong Yidong <cyd@stupidchicken.com>
17284
17285 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17286 invisible text covered with an ellipsis.
17287
172882008-01-25 Richard Stallman <rms@gnu.org>
17289
17290 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17291 jump back to beginning. Move some other initializations after that.
17292 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17293 New variables.
17294 (syms_of_xdisp): Init them.
17295
17296 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17297
17298 * buffer.c (reset_buffer_local_variables):
17299 Implement `permanent-local-hook'.
17300 (Qpermanent_local_hook): New variable.
17301 (syms_of_buffer): Init and staticpro it.
17302
173032008-01-25 Michael Albinus <michael.albinus@gmx.de>
17304
17305 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17306
173072008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17308
17309 * fns.c (Fclrhash): Return TABLE.
17310
173112008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17312
17313 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17314 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17315 is set even without positional changes.
17316 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17317
17318 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17319
173202008-01-23 Jason Rumney <jasonr@gnu.org>
17321
17322 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17323
17324 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17325 the unicode range available in MULE by locale-coding-system.
17326 Improve dbcs lead byte detection. Set event timestamp and modifiers
17327 earlier.
17328
173292008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17330
17331 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17332 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17333 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17334 when used on child processes.
17335
173362008-01-21 Michael Albinus <michael.albinus@gmx.de>
17337
17338 * dbusbind.c (Fdbus_method_return_internal): Rename from
17339 Fdbus_method_return.
17340 (Fdbus_unregister_object): Move to dbus.el.
17341 (Fdbus_call_method, Fdbus_method_return_internal)
17342 (Fdbus_send_signal): Improve debug messages.
17343
173442008-01-20 Martin Rudalics <rudalics@gmx.at>
17345
17346 * undo.c (undo_inhibit_record_point): New variable.
17347 (syms_of_undo): Initialize it.
17348 (record_point): Don't record point when undo_inhibit_record_point
17349 is set.
17350
173512008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17352
17353 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17354
17355 * xdisp.c (Qauto_hscroll_mode): New var.
17356 (syms_of_xdisp): Initialize it.
17357 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17358 window's buffer.
17359 (hscroll_windows): Don't check automatic_hscrolling_p here.
17360
17361 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17362 vscroll if we're setting window-buffer to the value it already has.
17363
173642008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17365
17366 * m/intel386.h: Remove references to XENIX.
17367
173682008-01-17 Andreas Schwab <schwab@suse.de>
17369
17370 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17371 instead of HAVE_X86_64_LIB64_DIR.
17372 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17373
173742008-01-17 Glenn Morris <rgm@gnu.org>
17375
17376 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17377 to HAVE_X86_64_LIB64_DIR.
17378
173792008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17380
17381 * s/irix3-3.h:
17382 * s/irix4-0.h:
17383 * s/386-ix.h:
17384 * s/domain.h:
17385 * s/hpux9-x11r4.h:
17386 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17387
17388 * sysdep.c: Remove code containing references to symbols defined
17389 by unsupported systems.
17390
173912008-01-16 Glenn Morris <rgm@gnu.org>
17392
17393 * coding.c (select-safe-coding-system-function): Doc fix.
17394
173952008-01-15 Glenn Morris <rgm@gnu.org>
17396
17397 * config.in: Revert 2008-01-13 change: this is a generated file.
17398
173992008-01-13 Tom Tromey <tromey@redhat.com>
17400
17401 * lisp.h: Fix typo.
17402
174032008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17404
17405 * m/sequent-ptx.h:
17406 * m/sequent.h:
17407 * s/ptx.h:
17408 * s/ptx4-2.h:
17409 * s/ptx4.h: Remove files for systems no longer supported.
17410
17411 * callproc.c (Fcall_process): Fix previous change.
17412
174132008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17414
17415 * unexsunos4.c: Remove file, system not supported anymore.
17416
17417 * m/mips.h:
17418 * m/intel386.h:
17419 * callproc.c:
17420 * config.in:
17421 * ecrt0.c:
17422 * emacs.c:
17423 * fileio.c:
17424 * frame.c:
17425 * getpagesize.h:
17426 * keyboard.c:
17427 * lread.c:
17428 * process.c:
17429 * puresize.h:
17430 * sysdep.c:
17431 * systty.h:
17432 * syswait.h:
17433 * unexec.c:
17434 * xdisp.c:
17435 * alloc.c: Remove code containing references to symbols defined by
17436 unsupported systems.
17437
174382008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17439
17440 * coding.c (detect_coding_mask): Fix previous change.
17441
174422008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17443
17444 * coding.c (detect_coding_iso2022): New arg
17445 latin_extra_code_state. Allow Latin extra codes only
17446 when *latin_extra_code_state is nonzero.
17447 (detect_coding_mask): If there is a NULL byte, detect the encoding
17448 as UTF-16 or binary. If Latin extra codes exist, detect the
17449 encoding as ISO-2022 only when there's no other proper encoding is
17450 found.
17451
174522008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17453
17454 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17455 #ifdef MAC_OS.
17456
174572008-01-08 Richard Stallman <rms@gnu.org>
17458
17459 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17460
174612008-01-06 Nick Roberts <nickrob@snap.net.nz>
17462
17463 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17464 menu bar in parentheses.
17465
174662008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17467
17468 * m/7300.h:
17469 * m/acorn.h:
17470 * m/alliant-2800.h:
17471 * m/alliant.h:
17472 * m/alliant1.h:
17473 * m/alliant4.h:
17474 * m/altos.h:
17475 * m/amdahl.h:
17476 * m/apollo.h:
17477 * m/att3b.h:
17478 * m/aviion-intel.h:
17479 * m/aviion.h:
17480 * m/celerity.h:
17481 * m/clipper.h:
17482 * m/cnvrgnt.h:
17483 * m/convex.h:
17484 * m/cydra5.h:
17485 * m/delta88k.h:
17486 * m/dpx2.h:
17487 * m/dual.h:
17488 * m/elxsi.h:
17489 * m/f301.h:
17490 * m/gould-np1.h:
17491 * m/gould.h:
17492 * m/i860.h:
17493 * m/ibmps2-aix.h:
17494 * m/ibmrt-aix.h:
17495 * m/ibmrt.h:
17496 * m/irist.h:
17497 * m/is386.h:
17498 * m/isi-ov.h:
17499 * m/mega68.h:
17500 * m/mg1.h:
17501 * m/news-r6.h:
17502 * m/news-risc.h:
17503 * m/news.h:
17504 * m/nh3000.h:
17505 * m/nh4000.h:
17506 * m/ns16000.h:
17507 * m/ns32000.h:
17508 * m/nu.h:
17509 * m/orion.h:
17510 * m/orion105.h:
17511 * m/paragon.h:
17512 * m/pfa50.h:
17513 * m/plexus.h:
17514 * m/pyramid.h:
17515 * m/pyrmips.h:
17516 * m/sh3el.h:
17517 * m/sps7.h:
17518 * m/sr2k.h:
17519 * m/stride.h:
17520 * m/sun1.h:
17521 * m/sun2.h:
17522 * m/sun3-68881.h:
17523 * m/sun3-fpa.h:
17524 * m/sun3-soft.h:
17525 * m/sun3.h:
17526 * m/sun386.h:
17527 * m/symmetry.h:
17528 * m/tad68k.h:
17529 * m/tahoe.h:
17530 * m/targon31.h:
17531 * m/tek4300.h:
17532 * m/tekxd88.h:
17533 * m/tower32.h:
17534 * m/tower32v3.h:
17535 * m/ustation.h:
17536 * m/wicat.h:
17537 * m/xps100.h:
17538 * s/cxux.h:
17539 * s/cxux7.h:
17540 * s/dgux.h:
17541 * s/dgux4.h:
17542 * s/dgux5-4-3.h:
17543 * s/dgux5-4r2.h:
17544 * s/esix.h:
17545 * s/esix5r4.h:
17546 * s/hiuxmpp.h:
17547 * s/hiuxwe2.h:
17548 * s/iris3-5.h:
17549 * s/iris3-6.h:
17550 * s/isc2-2.h:
17551 * s/isc3-0.h:
17552 * s/isc4-0.h:
17553 * s/isc4-1.h:
17554 * s/newsos5.h:
17555 * s/newsos6.h:
17556 * s/osf1.h:
17557 * s/osf5-0.h:
17558 * s/riscix1-1.h:
17559 * s/riscix12.h:
17560 * s/sco4.h:
17561 * s/sco5.h:
17562 * s/sunos4-0.h:
17563 * s/sunos4-1.h:
17564 * s/sunos413.h:
17565 * s/sunos4shr.h:
17566 * s/umax.h:
17567 * s/unipl5-2.h:
17568 * s/xenix.h:
17569 * cxux-crt0.s:
17570 * unexapollo.c:
17571 * unexconvex.c:
17572 * unexenix.c:
17573 * unexsni.c: Remove files for systems no longer supported.
17574
17575 * m/intel386.h: Remove references to unsupported systems.
17576
17577 * w32.c (get_emacs_configuration): Remove reference to i860.
17578
17579 * sysdep.c: Remove dead code.
17580
175812008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17582
17583 * s/rtu.h:
17584 * m/masscomp.h: Remove files. Platform is obsolete.
17585
175862008-01-04 Michael Albinus <michael.albinus@gmx.de>
17587
17588 * dbusbind.c (Fdbus_method_return): New function.
17589 (xd_read_message): Add the serial number to the event.
17590 (Fdbus_register_method): Activate the function.
17591
175922008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17593
17594 * keyboard.c (read_key_sequence): Fix typo.
17595
175962008-01-03 Michael Albinus <michael.albinus@gmx.de>
17597
17598 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17599 (xd_signature, xd_append_arg): Handle element type detection for
17600 empty arrays.
17601 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17602 SDATA () calls; this must be solved more general.
17603 (Fdbus_register_signal): Use SBYTES instead of strlen.
17604
176052008-01-03 Magnus Henoch <magnus@zemdatav>
17606
17607 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17608 unsigned int for byte values (necessary for big-endian platform).
17609 (Fdbus_call_method): Handle the case of no returned arguments.
17610
176112007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17612
17613 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17614
176152007-12-31 Magnus Henoch <mange@freemail.hu>
17616
17617 * dbusbind.c (xd_signature): Signature of variant is just "v".
17618
176192007-12-30 Michael Albinus <michael.albinus@gmx.de>
17620
17621 * dbusbind.c: Fix several errors and compiler warnings.
17622 Reported by Tom Tromey <tromey@redhat.com>.
17623 (XD_ERROR, XD_DEBUG_MESSAGE)
17624 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17625 (xd_append_arg): Part for basic D-Bus types rewritten.
17626 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17627 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17628 appropriate.
17629 (xd_read_message): Return Qnil. Don't signal an error; it is not
17630 useful during event reading.
17631 (Fdbus_register_signal): Signal an error if the check for
17632 FUNCTIONP fails.
17633 (Fdbus_register_method): New function. The implementation is not
17634 complete, the call of the function signals an error therefore.
17635 (Fdbus_unregister_object): New function, renamed from
17636 Fdbus_unregister_signal. The initial check signals an error, if
17637 the object is not well formed.
17638
176392007-12-30 Richard Stallman <rms@gnu.org>
17640
17641 * textprop.c (get_char_property_and_overlay):
17642 Signal error if POSITION is out of range in a buffer.
17643
176442007-12-29 Martin Rudalics <rudalics@gmx.at>
17645
17646 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17647 because the original parameters are in pure storage now.
17648
176492007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17650
17651 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17652
176532007-12-22 Eli Zaretskii <eliz@gnu.org>
17654
17655 * callint.c (syms_of_callint) <command-history>: Add reference to
17656 history-length in the doc string.
17657
176582007-12-17 Jason Rumney <jasonr@gnu.org>
17659
17660 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17661 before passing as wParam.
17662
176632007-12-22 Michael Albinus <michael.albinus@gmx.de>
17664
17665 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17666 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17667 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17668 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17669 as number.
17670 (Fdbus_call_method): Fix docstring.
17671
176722007-12-21 Michael Albinus <michael.albinus@gmx.de>
17673
17674 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17675 New macros.
17676 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17677 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17678 Simplify.
17679 (xd_signature): New function.
17680 (xd_append_arg): Compute also signatures. Major rewrite.
17681 (xd_retrieve_arg): Make debug messages friendly.
17682 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17683 Check for signatures of arguments.
17684
176852007-12-19 Michael Albinus <michael.albinus@gmx.de>
17686
17687 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17688 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17689 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17690 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17691 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17692 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17693 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17694 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17695 (xd_retrieve_value): Remove. Functionality included in ...
17696 (xd_append_arg): New function.
17697 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17698
176992007-12-16 Michael Albinus <michael.albinus@gmx.de>
17700
17701 * dbusbind.c (top): Include <stdio.h>.
17702 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17703 dbus_message_new_method_call and dbus_message_new_signal.
17704 (Fdbus_register_signal): Rename unique_name to uname.
17705 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17706 non-existing unique name. Fix typos in matching rule. Return an
17707 object which is useful in Fdbus_unregister_signal.
17708 (Fdbus_unregister_signal): Reimplementation, in order to remove
17709 only the corresponding entry.
17710 (Vdbus_registered_functions_table): Change the order of entries.
17711 Apply these changes in xd_read_message and Fdbus_register_signal.
17712
177132007-12-16 Andreas Schwab <schwab@suse.de>
17714
17715 * fileio.c (Finsert_file_contents): Fix overflow check to not
17716 depend on undefined integer overflow.
17717
177182007-12-14 Jason Rumney <jasonr@gnu.org>
17719
17720 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17721 for characters above 127.
17722
177232007-12-13 Jason Rumney <jasonr@gnu.org>
17724
17725 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17726 before dereferencing array.
17727 (lookup_vk_code): Remove zero comparison.
17728
177292007-12-14 Michael Albinus <michael.albinus@gmx.de>
17730
17731 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17732 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17733 Use `unsigned int' instead of `uint'.
17734 (xd_read_message, Fdbus_register_signal): Split expressions into
17735 multiple lines before operators "&&" and "||", according to the
17736 GNU Coding Standards.
17737
177382007-12-14 Eli Zaretskii <eliz@gnu.org>
17739
17740 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17741
177422007-12-12 Juri Linkov <juri@jurta.org>
17743
17744 * buffer.c (Frename_buffer): In interactive spec replace
17745 `read-buffer' with `read-string' that uses `buffer-name-history'
17746 as history, and the current buffer's name as default.
17747
177482007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17749
17750 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17751 manipulating the backtrace manually.
17752 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17753 (struct backtrace, backtrace_list): Remove.
17754 (command_loop_1): Remove dead var `no_direct'.
17755
17756 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17757 preserve non-built-in buffer-local variables.
17758 (Fkill_all_local_variables): Don't re-create&re-set permanent
17759 buffer-local variables.
17760
177612007-12-09 Juri Linkov <juri@jurta.org>
17762
17763 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17764 Lisp code that uses `read-buffer' with current buffer as default.
17765
177662007-12-08 Michael Albinus <michael.albinus@gmx.de>
17767
17768 * dbusbind.c (xd_read_message): Generate an event for every
17769 registered handler. There might be several handlers registered
17770 for the same signal.
17771 (Fdbus_register_signal): Don't overwrite a registration for the
17772 same signal. Add a new registration if handlers are different.
17773 (Vdbus_registered_functions_table): Rework doc string.
17774
177752007-12-07 Michael Albinus <michael.albinus@gmx.de>
17776
17777 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17778 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17779 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17780 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17781 Unify argument lists.
17782 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17783 arguments and hash table keys. Use unique name for service.
17784 (Fdbus_unregister_signal): Remove checks.
17785 (Vdbus_registered_functions_table): Fix doc string.
17786
177872007-12-05 Magnus Henoch <mange@freemail.hu>
17788
17789 * process.c (make_process): Initialize pty_flag to 0.
17790
177912007-12-05 Jason Rumney <jasonr@gnu.org>
17792
17793 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17794 specified XBMs.
17795
177962007-12-05 Richard Stallman <rms@gnu.org>
17797
17798 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17799
178002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17801
17802 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17803 New variable.
17804 (mac_try_close_socket) [MAC_OSX]: New function.
17805 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17806 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17807
17808 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17809 Use mac_try_close_socket.
17810
178112007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17812
17813 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17814 reloc_base.
17815 (copy_dysymtab): Compute relocation base here.
17816 (rebase_reloc_address) [__ppc64__]: New function.
17817 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17818 changed.
17819
178202007-12-05 Jason Rumney <jasonr@gnu.org>
17821
17822 * w32proc.c (sys_spawnve): Quote args with wildcards.
17823
178242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17825
17826 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17827 __objc_* sections.
17828 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17829
178302007-12-05 Michael Albinus <michael.albinus@gmx.de>
17831
17832 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17833 Move check for Vdbus_registered_functions_table to
17834 xd_read_queued_messages.
17835 (xd_read_queued_messages): Protect xd_read_message calls by
17836 internal_condition_case_1.
17837
178382007-12-04 Michael Albinus <michael.albinus@gmx.de>
17839
17840 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17841 Qdbus_system_bus and Qdbus_session_bus, respectively.
17842 (Vdbus_intern_symbols): Remove.
17843 (Vdbus_registered_functions_table): New hash table.
17844 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17845 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17846 Rewrite in order to manage registered functions by hash table
17847 Vdbus_registered_functions_table.
17848
178492007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17850
17851 * xterm.c: Update URL to Window Manager Specification in comment.
17852
178532007-12-02 Michael Albinus <michael.albinus@gmx.de>
17854
17855 * config.in (HAVE_DBUS): Add.
17856
17857 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17858 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17859 (obj): Add $(DBUS_OBJ).
17860 (LIBES): Add $(DBUS_LIBS).
17861 (dbusbind.o): New target.
17862
17863 * dbusbind.c: New file.
17864
17865 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17866
17867 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17868 (Qdbus_event): New Lisp symbol.
17869 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17870 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17871 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17872
17873 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17874
178752007-12-01 Richard Stallman <rms@gnu.org>
17876
17877 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17878
178792007-11-30 Jason Rumney <jasonr@gnu.org>
17880
17881 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17882 (w32con_reset_terminal_modes): Clear screen buffer.
17883 (w32_face_attributes): Don't use color indexes that are out of range.
17884 Only reverse the default colors.
17885
17886 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17887 WINDOWSNT.
17888
17889 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17890
178912007-11-29 Jason Rumney <jasonr@gnu.org>
17892
17893 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17894 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17895 if the terminal colors are initialized.
17896 (unspecified_fg, unspecified_bg): Remove unused declarations.
17897
178982007-11-29 Andreas Schwab <schwab@suse.de>
17899
17900 * keyboard.c (apply_modifiers): Fix typo.
17901
179022007-11-29 Richard Stallman <rms@gnu.org>
17903
17904 * keymap.c (Fcurrent_local_map): Doc fix.
17905
179062007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17907
17908 * s/gnu-kfreebsd.h: New file.
17909
179102007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17911
17912 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17913 Don't cast redundantly.
17914
17915 * keyboard.c (KEY_TO_CHAR): New macro.
17916 (parse_modifiers, apply_modifiers): Accept integer arguments.
17917 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17918 for chars and symbol keys.
17919 After doing such remapping, apply function-key-map again.
17920
179212007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17922
17923 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17924 compiled anymore.
17925
179262007-11-26 Andreas Schwab <schwab@suse.de>
17927
17928 * process.c (list_processes_1): Fix indentation level of the
17929 command column.
17930
179312007-11-23 Andreas Schwab <schwab@suse.de>
17932
17933 * editfns.c (Fformat): Handle %c specially since it requires the
17934 argument to be of type int.
17935
179362007-11-23 Markus Triska <markus.triska@gmx.at>
17937
17938 * emacs.c (main): Call init_editfns before init_process, since
17939 init_process sets Vprocess_connection_type depending on OS release.
17940
179412007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17942
17943 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17944 (find_symbol_value): Use do_symval_forwarding.
17945
17946 * data.c (set_internal): Set the value in the `cons-cell' (for
17947 Buffer_Local_values) not only for frame-local variables.
17948
179492007-11-22 Andreas Schwab <schwab@suse.de>
17950
17951 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17952 values to sprintf.
17953 * keymap.c (Fsingle_key_description): Likewise.
17954 * print.c (print_object): Likewise.
17955
179562007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17957
17958 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17959 file for image is nil.
17960
179612007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17962
17963 * term.c: Include stdarg.h.
17964 (fatal): Implement using varargs.
17965 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17966
179672007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17968
17969 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17970 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17971 Update call to buffer_slot_type_mismatch.
17972 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17973 (buffer_slot_type_mismatch): Update.
17974 * buffer.c (buffer_local_types): Remove.
17975 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17976 (defvar_per_buffer): Set the type in the buffer_objfwd.
17977
179782007-11-21 Jason Rumney <jasonr@gnu.org>
17979
17980 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17981 CreateFileMapping returns NULL on failure.
17982
179832007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17984
17985 * search.c (Fset_match_data): Remove the `evaporate' feature.
17986 (unwind_set_match_data): Don't use the `evaporate' feature.
17987
179882007-11-21 Jason Rumney <jasonr@gnu.org>
17989
17990 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17991
17992 * w32console.c (w32con_write_glyphs): Remove unused variables.
17993
179942007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17995
17996 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17997
17998 * s/darwin.h (MULTI_KBOARD): Remove.
17999
18000 * macfns.c (x_create_tip_frame, Fx_create_frame)
18001 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
18002
180032007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
18004
18005 * buffer.c (Fbuffer_local_value): Remove redundant test.
18006 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
18007 than in `current-buffer' to match the comment.
18008 Do the swap using swap_in_global_binding.
18009
18010 * data.c (store_symval_forwarding, set_internal):
18011 * eval.c (specbind): Remove dead code.
18012
18013 * coding.c (detect_coding, Fupdate_coding_systems_internal):
18014 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
18015 Since we do not want to see internal Lisp_*fwd objects here.
18016
180172007-11-18 Jan Djärv <jan.h.d@swipnet.se>
18018
18019 * sysdep.c (init_system_name): Use getaddrinfo if available.
18020
18021 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
18022 (x_scroll_bar_note_movement): start, end, with, height in struct
18023 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
18024
180252007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
18026
18027 * puresize.h (BASE_PURESIZE): Increase to 1190000.
18028
180292007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
18030
18031 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
18032 This undoes Richard's change of 14-Oct-2002.
18033
18034 * alloc.c (allocate_other_vector):
18035 * lisp.h (allocate_other_vector): Remove.
18036
18037 * window.c (struct save_window_data): Move non-lisp data to the end
18038 and make it `int' rather than Lisp_Object.
18039 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
18040 Done wrap/unwrap integer values.
18041 (Fset_window_configuration, compare_window_configurations):
18042 Update use of fields to their new types.
18043
18044 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18045 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18046 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18047 (SET_SCROLL_BAR_X_WINDOW): Remove.
18048 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18049 Access the new x_window field directly.
18050 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18051 Don't wrap/unwrap integers into Lisp_Objects.
18052 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18053 (x_scroll_bar_report_motion):
18054 Don't wrap/unwrap integers into Lisp_Objects.
18055 (x_term_init): Use SDATA.
18056 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18057 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18058 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18059 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18060 * xfns.c (x_set_background_color):
18061 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18062 Access the new x_window field directly.
18063
18064 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18065 (allocate_pseudovector): Make non-static.
18066
18067 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18068 (allocate_pseudovector): Declare.
18069 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18070
180712007-11-15 Andreas Schwab <schwab@suse.de>
18072
18073 * editfns.c (Fformat): Correctly format EMACS_INT values.
18074 Also take precision into account when formatting an integer.
18075
18076 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18077
180782007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18079
18080 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18081 (syms_of_keyboard): Defsubr it.
18082
18083 * data.c (swap_in_global_binding): Fix longstanding bug where
18084 store_symval_forwarding was not called with the right second argument,
18085 thus causing objfwd-ing from being dropped.
18086
180872007-11-14 Juanma Barranquero <lekktu@gmail.com>
18088
18089 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18090 (Fx_display_pixel_height, Fx_display_planes)
18091 (Fx_display_color_cells, Fx_server_max_request_size)
18092 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18093 (Fx_display_visual_class, Fx_display_save_under):
18094 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18095 (Fx_display_pixel_height, Fx_display_planes)
18096 (Fx_display_color_cells, Fx_server_max_request_size)
18097 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18098 (Fx_display_mm_height, Fx_display_mm_width)
18099 (Fx_display_backing_store, Fx_display_visual_class)
18100 (Fw32_select_font, Fx_display_save_under):
18101 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18102 (Fx_display_pixel_height, Fx_display_planes)
18103 (Fx_display_color_cells, Fx_server_max_request_size)
18104 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18105 (Fx_display_save_under): Fix typos in docstrings.
18106
181072007-11-14 Juanma Barranquero <lekktu@gmail.com>
18108
18109 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18110 corresponding to deleted entries; they are an implementation detail.
18111 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18112 Remove variables.
18113 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18114 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18115 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18116 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18117 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18118 (Fw32_define_rgb_color, Fw32_load_color_file)
18119 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18120 Fix typos in docstrings.
18121 (Fx_server_version): Reflow docstring.
18122 (Fw32_shell_execute): Doc fixes.
18123
181242007-11-13 Juanma Barranquero <lekktu@gmail.com>
18125
18126 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18127 if w32_parse_hot_key returned nil.
18128
181292007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18130
18131 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18132
181332007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18134
aac0c6e3
MR
18135 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18136
18137 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18138
18139 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18140 Remove W32_SCROLL_BAR_CLICK_EVENT.
18141
18142 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18143 Add MULTIMEDIA_KEY_EVENT.
18144
18145 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18146 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18147 (make_lispy_event) [WINDOWSNT]: Use it to translate
18148 MULTIMEDIA_KEY_EVENT.
18149
18150 * w32term.h (WM_APPCOMMAND): Define if not already.
18151 (GET_APPCOMMAND_LPARAM): Likewise.
18152
18153 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18154 WM_APPCOMMAND.
18155
18156 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18157 (syms_of_w32fns): Export and initialize it.
18158 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18159
181602007-11-09 Chong Yidong <cyd@stupidchicken.com>
18161
18162 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18163 twice.
18164
18165 * xdisp.c (handle_face_prop): Fix last change.
18166
181672007-11-09 Richard Stallman <rms@gnu.org>
18168
18169 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18170 not just for after-strings and before-strings.
18171 Call face_for_overlay_string and pass the overlay to it.
18172 (handle_display_prop): Determine whether property came from an overlay.
18173 Pass OVERLAY arg to handle_single_display_spec.
18174 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18175 (load_overlay_strings): Fill in it->string_overlays.
18176 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18177
18178 * xfaces.c (face_for_overlay_string): Function renamed from
18179 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18180
18181 * dispextern.h (struct it): New elt string_overlays.
18182 New elt from_overlay, also in stack.
18183 Rearrange a few elements.
18184 (face_for_overlay_string): Decl renamed from
18185 face_at_buffer_position_no_overlays, and add argument.
18186
181872007-11-09 Richard Stallman <rms@gnu.org>
18188
18189 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18190 to get the base face for an overlay string.
18191
18192 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18193
18194 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18195
18196 * xdisp.c (handle_stop): Move some code out of loop.
18197
181982007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18199
18200 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18201 Fix conversion from Lisp object to ATSUFontID.
18202
182032007-11-09 Jason Rumney <jasonr@gnu.org>
18204
18205 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18206
182072007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18208
18209 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18210 Don't assume regions are aligned to page boundary.
18211 (print_load_command_name): Add LC_UUID if defined.
18212
182132007-11-09 Richard Stallman <rms@gnu.org>
18214
18215 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18216
182172007-11-07 Jason Rumney <jasonr@gnu.org>
18218
18219 * s/windows95.h: Remove.
18220
182212007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18222
18223 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18224 abort with a message on unhandled store_type values.
18225
182262007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18227
18228 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18229 Remove HAVE_X11R5 and HAVE_X11R4.
18230
182312007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18232
18233 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18234
182352007-11-01 Johan Bockgård <bojohan@gnu.org>
18236
18237 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18238 Don't set s->stippled_p here, since it has already been set by
18239 x_set_glyph_string_gc from x_draw_glyph_string.
18240
182412007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18242
18243 * sunfns.c: Remove file.
18244
18245 * m/sun386.h:
18246 * m/sun2.h:
18247 * m/sparc.h: Remove Sun windows code.
18248
182492007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18250
18251 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18252 (init_keyboard): Set current_kboard's window-system to nil.
18253 (tty_read_avail_input): Typo.
18254 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18255
182562007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18257
18258 * s/usg5-4.h:
18259 * s/usg5-3.h:
18260 * s/ptx.h:
18261 * m/is386.h:
18262 * m/ibmps2-aix.h:
18263 * Makefile.in: Remove all mentions of X10.
18264
18265 * dispnew.c (syms_of_display): Don't mention version 10.
18266
182672007-10-28 Juanma Barranquero <lekktu@gmail.com>
18268
18269 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18270 ($(BLD)/abbrev.$(O)): Remove.
18271
182722007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18273
18274 Rewrite abbrev.c in Elisp.
18275 * image.c (Qcount): Don't declare as extern.
18276 (syms_of_image): Initialize and staticpro `Qcount'.
18277 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18278 * emacs.c (main): Don't call syms_of_abbrev.
18279 * Makefile.in (obj): Remove abbrev.o.
18280 (abbrev.o): Remove.
18281 * abbrev.c: Remove.
18282
182832007-10-26 Martin Rudalics <rudalics@gmx.at>
18284
18285 * window.c (window_min_size_2): Don't count header-line.
18286
182872007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18288
18289 * frame.h (struct frame): Move all bit fields after the first bit
18290 field to take advantage of the available space. Group all the
18291 chars together to reduce wasted space due to padding.
18292
182932007-10-26 Juanma Barranquero <lekktu@gmail.com>
18294
18295 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18296
18297 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18298 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18299 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18300 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18301 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18302 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18303 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18304 (last_marked, mark_object_loop_halt): Make static.
18305
18306 * frame.c (syms_of_frame) <delete-frame-functions>:
18307 Fix typo in docstring.
18308
183092007-10-25 Juanma Barranquero <lekktu@gmail.com>
18310
18311 * w32.c (init_environment): Fix tiny memory leak.
18312 (w32_get_resource): Remove unused variable `ok'.
18313
183142007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18315
18316 Make `window-system' into a keyboard-local variable (rather than
18317 frame-local as done originally by multi-tty).
18318
18319 * keyboard.h (struct kboard): Add Vwindow_system.
18320 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18321 (mark_kboards): Mark Vwindow_system.
18322
18323 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18324 (init_display): Don't set the obsolete `window-system' frame-param.
18325
18326 * xterm.c (x_term_init):
18327 * w32term.c (w32_create_terminal):
18328 * term.c (init_tty): Set Vwindow_system.
18329 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18330 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18331
18332 * xfns.c (Fx_create_frame, x_create_tip_frame):
18333 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18334 * macfns.c (Fx_create_frame):
18335 Don't set the obsolete `window-system' frame-param.
18336
18337 * frame.h (Qwindow_system): Remove.
18338 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18339 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18340
183412007-10-24 Richard Stallman <rms@gnu.org>
18342
18343 * frame.c (x_figure_window_size): For fullscreen case,
18344 set USPosition | PPosition without clobbering rest of window_prompting.
18345
18346 * keyboard.c (Fcurrent_idle_time): Doc fix.
18347
18348 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18349
183502007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18351
18352 * process.c (unwind_request_sigio): Only define if __ultrix__.
18353
18354 * callproc.c (child_setup): Remove spurious *.
18355
18356 * lisp.h (Fget_text_property): Declare.
18357 (have_menus_p): Declare it here rather than in sys-dep header files.
18358 * macterm.h (have_menus_p):
18359 * msdos.h (have_menus_p):
18360 * xterm.h (have_menus_p): Remove.
18361
18362 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18363 (Fmake_variable_frame_local): Just check the variable's const-ness
18364 rather than checking nil or t.
18365
183662007-10-22 Jason Rumney <jasonr@gnu.org>
18367
18368 * w32fns.c: Include math.h.
18369 (w32_abort): Declaration moved to nt/config.nt.
18370
18371 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18372 (abort): Redefinition moved to nt/config.nt.
18373
18374 * m/windowsnt.h: Remove.
18375
183762007-10-22 Juanma Barranquero <lekktu@gmail.com>
18377
18378 * emacs.c (Fdump_emacs): Fix typo in message.
18379 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18380 <installation-directory>: Reflow docstring.
18381
183822007-10-22 Juri Linkov <juri@jurta.org>
18383
18384 * minibuf.c: Allow minibuffer default to be a list of default values.
18385 With empty input use the first element of this list as returned default.
18386 (string_to_object)
18387 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18388 (read_minibuf): If defalt is cons, set histstring to its car.
18389 (Fread_string): If default_value is cons, set val to its car.
18390 (Fread_buffer): If def is cons, use its car.
18391 (Fcompleting_read): If defalt is cons, set val to its car.
18392
183932007-10-21 Michael Albinus <michael.albinus@gmx.de>
18394
18395 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18396
183972007-10-20 Juanma Barranquero <lekktu@gmail.com>
18398
18399 * doc.c (Fdocumentation): Check for advice in all cases.
18400
184012007-10-19 Chong Yidong <cyd@stupidchicken.com>
18402
18403 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18404
184052007-10-19 Richard Stallman <rms@gnu.org>
18406
18407 * doc.c (Fdocumentation): Check for and handle an advised function.
18408
184092007-10-19 Juanma Barranquero <lekktu@gmail.com>
18410
18411 * process.c (Fset_process_filter): Doc fix.
18412
184132007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18414
18415 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18416 which caused key-translation-map to applied repeatedly (thus breaking
18417 double-mode).
18418
184192007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18420
18421 * xselect.c (x_own_selection, x_handle_selection_clear)
18422 (x_clear_frame_selections):
18423 * w32menu.c (list_of_panes, list_of_items):
18424 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18425 * textprop.c (validate_plist, interval_has_all_properties)
18426 (interval_has_some_properties, interval_has_some_properties_list)
18427 (add_properties, text_property_list):
18428 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18429 * minibuf.c (Fassoc_string):
18430 * macselect.c (x_own_selection, x_clear_frame_selections)
18431 (Fx_disown_selection_internal):
18432 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18433 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18434
184352007-10-17 Chong Yidong <cyd@stupidchicken.com>
18436
18437 * process.c: Link to libs for calling res_init() if available.
18438 (Fmake_network_process): Call res_init() before getaddrinfo or
18439 gethostbyname, if possible.
18440
184412007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18442
18443 * lread.c (read1): Set pvectype for char_tables.
18444
18445 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18446 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18447 Add type checks.
18448 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18449
18450 * alloc.c (free_misc): Use XMISCTYPE.
18451 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18452
184532007-10-17 Glenn Morris <rgm@gnu.org>
18454
18455 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18456 (syms_of_minibuf): Add Qcompletion_ignore_case.
18457 * dired.c (Qcompletion_ignore_case): Change to external.
18458 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18459 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18460 (Fread_file_name): Use it rather than intern'ing.
18461
18462 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18463 (Fread_coding_system): Ignore case of user input.
18464
184652007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18466
18467 * xdisp.c (handle_display_prop): Ignore display specs after
18468 replacing one when string text is being replaced.
18469 (handle_single_display_spec): Pretend as if characters with display
18470 property haven't been consumed only when buffer text is being replaced.
18471
184722007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18473
18474 * xfns.c (Fx_create_frame, Fx_display_list):
18475 * window.c (window_fixed_size_p, enlarge_window)
18476 (shrink_window_lowest_first):
18477 * macterm.c (init_font_name_table):
18478 * macfns.c (Fx_create_frame, Fx_display_list):
18479 * lread.c (close_load_descs):
18480 * keyboard.c (read_char_x_menu_prompt):
18481 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18482 * coding.c (code_convert_region_unwind): Test the type of an object
18483 rather than just !NILP before extracting data from it.
18484
18485 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18486
18487 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18488 (XMISCANY): New macro.
18489 (XMISCTYPE): Use it.
18490 (struct Lisp_Misc_Any): New type.
18491 (union Lisp_Misc): Use it.
18492 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18493 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18494 (find_symbol_value, set_internal, default_value, Fset_default)
18495 (Fmake_variable_buffer_local, Fmake_local_variable)
18496 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18497 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18498 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18499 * alloc.c (allocate_buffer): Set the size and tag.
18500 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18501 Use XMISCANY.
18502 (die): Follow the GNU convention for error messages.
18503 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18504 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18505 tag any more.
18506 (set_buffer_internal_1):
18507 * frame.c (store_frame_param):
18508 * eval.c (specbind):
18509 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18510
18511 * doc.c (Fsnarf_documentation): Simplify.
18512
185132007-10-14 Juanma Barranquero <lekktu@gmail.com>
18514
18515 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18516 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18517
185182007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18519
18520 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18521
185222007-10-14 Juanma Barranquero <lekktu@gmail.com>
18523
18524 * eval.c (do_autoload): Don't save autoloads.
18525
18526 * data.c (Ffset): Save autoload of the function being set.
18527
185282007-10-07 John Paul Wallington <jpw@pobox.com>
18529
18530 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18531 parameter before setting up faces.
18532
185332007-10-13 Eli Zaretskii <eliz@gnu.org>
18534
18535 * ccl.c (Fregister_code_conversion_map):
18536 * keyboard.c (append_tool_bar_item): Reformat last change.
18537
18538 * lisp.h (eabs): Rename from `abs'. All callers changed.
18539
185402007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18541
18542 * buffer.c (add_overlay_mod_hooklist):
18543 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18544 * fontset.c (make_fontset):
18545 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18546 (append_tool_bar_item):
18547 * macmenu.c (grow_menu_items):
18548 * w32menu.c (grow_menu_items):
18549 * xmenu.c (grow_menu_items): Use larger_vector.
18550
185512007-10-13 Eli Zaretskii <eliz@gnu.org>
18552
18553 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18554 selected frame'' on MSDOS).
18555
185562007-10-12 Martin Rudalics <rudalics@gmx.at>
18557
18558 * frame.c (Qexplicit_name): New variable.
18559 (x_report_frame_params): Report it in parameter alist.
18560 (syms_of_frame): Intern and staticpro it.
18561
185622007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18563
18564 * macfns.c (x_create_tip_frame): Set terminal for frame.
18565
185662007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18567
18568 * frame.c (Qenvironment): Remove.
18569 (syms_of_frame) <Qenvironment>: Don't initialize.
18570 (Fdelete_frame): Don't treat the `environment' param specially.
18571 * frame.h (Qenvironment): Don't declare.
18572 * callproc.c (set_initial_environment): Don't set unused frame param.
18573
18574 * frame.c (Fframe_with_environment): Remove.
18575 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18576
18577 * lisp.h (Fframe_with_environment): Don't declare.
18578
185792007-10-10 Juanma Barranquero <lekktu@gmail.com>
18580
18581 * indent.c (indent_tabs_mode, last_known_column)
18582 (last_known_column_modified): Make static.
18583 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18584
185852007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18586
18587 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18588
185892007-10-09 Jason Rumney <jasonr@gnu.org>
18590
18591 * w32term.c (x_set_window_size): Disable code that attempts to tell
18592 Lisp code about a size change before it actually happens.
18593
185942007-10-09 Richard Stallman <rms@gnu.org>
18595
18596 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18597 return HANDLED_RETURN.
18598
185992007-10-08 Martin Rudalics <rudalics@gmx.at>
18600
18601 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18602 when there's an unread command event.
18603
18604 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18605 window autoselection act appropriately when leaving selected frame.
18606 (syms_of_frame): Initialize focus_follows_mouse.
18607 * frame.h (focus_follows_mouse): Extern it.
18608 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18609 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18610 * msdos.c (dos_rawgetc): Likewise.
18611 * w32term.c (w32_read_socket): Likewise.
18612 * xterm.c (handle_one_xevent): Likewise.
18613 * xdisp.c (syms_of_xdisp): In doc-string of
18614 mouse-autoselect-window mention focus-follows-mouse.
18615
186162007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18617
18618 * macterm.c (mac_load_query_font): Fix missing return value.
18619 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18620 Add BLOCK_INPUT.
18621
186222007-10-08 Richard Stallman <rms@gnu.org>
18623
18624 * xdisp.c (get_window_cursor_type): Implement documented behavior
18625 for cursor-in-non-selected-windows = t.
18626
186272007-10-08 Jason Rumney <jasonr@gnu.org>
18628
18629 * w32.c (w32_get_resource): Always close registry keys.
18630
186312007-10-08 Jason Rumney <jasonr@gnu.org>
18632
18633 * makefile.w32-in (LIBS): Add COMCTL32.
18634
18635 * w32fns.c (globals_of_w32fns): Init common controls.
18636
186372007-10-08 Richard Stallman <rms@gnu.org>
18638
18639 * image.c (our_memory_buffer): Rename from omfib_buffer.
18640
186412007-10-08 Richard Stallman <rms@gnu.org>
18642
18643 * buffer.c (Foverlays_at): Doc fix.
18644
186452007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18646
18647 * fns.c (Fplist_put): Preserve uneven tail data.
18648
186492007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18650
18651 * termhooks.h (enum event_kind): Remove trailing comma.
18652
18653 * frame.h (enum): Remove trailing comma.
18654
186552007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18656
18657 * w32proc.c (delete_child): Don't terminate threads of zombies.
18658
186592007-10-08 Martin Rudalics <rudalics@gmx.at>
18660
18661 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18662
18663 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18664 last-repeatable-command.
18665 (init_kboard): Initialize Vlast_repeatable_command.
18666 (command_loop_1): Set it to real_this_command unless that was
18667 bound to an input event.
18668 (mark_kboards): Mark it.
18669
186702007-10-08 Richard Stallman <rms@gnu.org>
18671
18672 * eval.c (condition-case): Doc fix.
18673
186742007-10-08 Masatake YAMATO <jet@gyve.org>
18675
18676 * xfaces.c (tty_supports_face_attributes_p): Fix code
18677 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18678 was copied and not edited.
18679
186802007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18681
18682 Add new `input-decode-map' keymap and use it for terminal
18683 escape sequences.
18684 * keyboard.h (struct kboard): Add Vinput_decode_map.
18685 Remove Vlocal_key_translation_map.
18686 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18687 (init_kboard): Init input-decode-map.
18688 Replace local-key-translation-map back with key-translation-map.
18689 (syms_of_keyboard): Declare input-decode-map.
18690 Remove local-key-translation-map. Update docstrings.
18691 (mark_kboards): Mark Vinput_decode_map.
18692 Don't mark Vlocal_key_translation_map.
18693 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18694 Replace local-key-translation-map back with key-translation-map.
18695 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18696 Bind in input-decode-map rather than function-key-map.
18697
18698 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18699 This was made redundant by the previous introduction of XSETPVECTYPE.
18700
187012007-10-09 Richard Stallman <rms@gnu.org>
18702
18703 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18704
187052007-09-29 Richard Stallman <rms@gnu.org>
18706
18707 * eval.c (internal_condition_case_2, internal_condition_case_1)
18708 (internal_condition_case): Reenable abort if x_catching_errors ()
18709 to see if that really happens and why.
18710
187112007-10-06 Andreas Schwab <schwab@suse.de>
18712
18713 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18714
187152007-10-04 Juanma Barranquero <lekktu@gmail.com>
18716
18717 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18718
187192007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18720
18721 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18722
187232007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18724
18725 * window.h (struct window):
18726 * window.c (struct save_window_data, struct saved_window):
18727 * termhooks.h (struct terminal):
18728 * process.h (struct Lisp_Process):
18729 * frame.h (struct frame):
18730 * buffer.h (struct buffer):
18731 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18732 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18733 The size field of (pseudo)vectors is now unsigned.
18734 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18735
18736 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18737 Turn `count' into an integer.
18738
18739 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18740 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18741 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18742 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18743 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18744
18745 * alloc.c (allocate_pseudovector): New fun.
18746 (ALLOCATE_PSEUDOVECTOR): New macro.
18747 (allocate_window, allocate_terminal, allocate_frame)
18748 (allocate_process): Use it.
18749 (mark_vectorlike): New function.
18750 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18751 (mark_terminals): Use it.
18752 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18753 (Fmake_byte_code): Use XSETPVECTYPE.
18754
18755 * frame.c (Fframe_parameters): Minor simplification.
18756
18757 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18758
18759 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18760
18761 * buffer.c (Fget_buffer_create, init_buffer_once):
18762 * lread.c (defsubr):
18763 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18764
18765 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18766 defined differently in the m/*.h files.
18767 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18768 (XSETPVECTYPE): New macro.
18769 (XSETPSEUDOVECTOR): Use it.
18770
18771 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18772 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18773
18774 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18775 * lread.c (defvar_per_buffer):
18776 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18777
18778 * window.c (candidate_window_p): Only consider as visible frames that
18779 are on the same terminal.
18780
18781 * m/ibms390x.h (MARKBIT): Remove unused macro.
18782
187832007-10-01 Juanma Barranquero <lekktu@gmail.com>
18784
18785 * lread.c (Fload): Fix typo in docstring.
18786
187872007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18788
18789 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18790 of a non-zero value can't yield zero.
18791
187922007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18793
18794 * term.c (term_clear_mouse_face, term_mouse_highlight)
18795 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18796
18797 * print.c (safe_debug_print): Use XHASH.
18798
18799 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18800 Lisp elements such as tags.
18801 (XHASH): New macro.
18802 (EQ): Use it.
18803 (SREF, SSET, STRING_COPYIN): Use SDATA.
18804 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18805
18806 * alloc.c (mark_terminal): Remove left-over declaration.
18807 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18808 (allocate_vectorlike): Remove type argument. Adjust callers.
18809 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18810 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18811
18812 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18813 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18814 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18815 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18816 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18817 Use them.
18818
18819 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18820 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18821 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18822
188232007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18824
18825 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18826 loaded by default.
18827
188282007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18829
18830 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18831 on this tty.
18832 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18833
18834 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18835 Update all users.
18836 (handle_one_term_event): Use Gpm_DrawPointer.
18837 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18838 Signal errors instead of returning nil. Always return nil.
18839 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18840 Make it a noop if gpm-mouse was not activated.
18841 (syms_of_term): Update names.
18842
188432007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18844
18845 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18846 (init_sys_modes): Check that gpm_tty is the current tty.
18847
18848 * alloc.c (allocate_terminal): Set the vector size to only count the
18849 lisp fields. Initialize those to nil.
18850 (mark_object): Don't treat terminals specially.
18851 (mark_terminal): Remove.
18852 (mark_terminals): Use mark_object instead.
18853
18854 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18855 the GC to the beginning.
18856
18857 * indent.h:
18858 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18859
18860 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18861
188622007-09-25 Jason Rumney <jasonr@gnu.org>
18863
18864 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18865
18866 * w32console.c (create_w32cons_output): Remove.
18867
18868 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18869
18870 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18871 (reset_sys_modes): Use reset_terminal_modes_hook.
18872
188732007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18874
18875 * eval.c (do_autoload): Don't output any message.
18876
188772007-09-24 Juri Linkov <juri@jurta.org>
18878
18879 * emacs.c (standard_args): Change priority of "--no-splash"
18880 from 40 to 3. Add "--no-desktop" with the same priority.
18881
188822007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18883
18884 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18885 and optimize the case where they are all 1.
18886
188872007-09-23 Johannes Weiner <hannes@saeurebad.de>
18888
18889 * lisp.h (abs): Define if not defined.
18890 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18891 Don't define `abs', since it's defined in lisp.h.
18892
188932007-09-22 Eli Zaretskii <eliz@gnu.org>
18894
18895 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18896 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18897 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18898 (init_tty): Use DEV_TTY instead of "/dev/tty".
18899 [WINDOWSNT]: No need to protect from NAME arg being null.
18900
189012007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18902
18903 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18904 up the tty state.
18905
189062007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18907
18908 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18909 (gpm_tty): Change its type.
18910 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18911 (gpm_tty): Change its type and initialize it.
18912 (Fterm_open_connection): Check the frame is indeed a tty.
18913 Use the new gpm_tty.
18914 (Fterm_close_connection): Use the new gpm_tty.
18915 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18916 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18917
189182007-09-21 Juanma Barranquero <lekktu@gmail.com>
18919
18920 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18921 underline_color, to draw strike-through.
18922
189232007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18924
18925 * lisp.h (allocate_terminal): Declare.
18926
18927 * window.c (candidate_window_p): Consider frames that are being placed
18928 by the user as somewhere between visible and iconified.
18929 (window_loop): Prefer windows on the current frame.
18930 (Fselect_window): Move the use of select-frame to the beginning so we
18931 can just delegate all the work (it'll call us back anyway).
18932
18933 * frame.c (Qdisplay_environment_variable):
18934 * frame.h (Qdisplay_environment_variable): Delete.
18935
18936 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18937 of the first arg, since that value may be a union.
18938
18939 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18940 parameter rather than Qdisplay_environment_variable. If all else
18941 fails, look for DISPLAY in initial-environment.
18942
189432007-09-21 Glenn Morris <rgm@gnu.org>
18944
18945 * Makefile.in (emacstool): Remove target.
18946 (lisp, shortlisp): Remove termdev.elc.
18947
189482007-09-21 Markus Triska <markus.triska@gmx.at>
18949
18950 * xterm.c (x_delete_display): Compile session management conditionally.
18951
189522007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18953
18954 * callproc.c (getenv_internal_1): New function.
18955 (getenv_internal): Use it.
18956 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18957
18958 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18959 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18960 (Fset_terminal_parameter): Work with dead terminals as well.
18961 (Fmodify_terminal_parameters): Remove.
18962
18963 * terminal.c (get_terminal): Handle terminals.
18964 Make sure the terminal returned is live.
18965 (create_terminal): Use allocate_terminal.
18966 (mark_terminals): Move to alloc.c.
18967 (delete_terminal): Use terminal->name as liveness status.
18968 NULL out fields after freeing their contents.
18969 Don't deallocate the object.
18970 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18971 rather than an int.
18972 (Fterminal_live_p): Accept non-integer arguments.
18973 (Fterminal_list): Return terminal objects rather than an ints.
18974
18975 * alloc.c (enum mem_type): New member for `terminal' objects.
18976 (allocate_terminal): New function.
18977 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18978 Handle terminals.
18979 (mark_terminal): New fun.
18980 (mark_terminals): Move from terminal.c.
18981
18982 * term.c (get_tty_terminal): Don't treat output_initial specially.
18983 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18984 (delete_tty): Use terminal->name as liveness status.
18985
18986 * termhooks.h (struct terminal): Make it into a pseudovector.
18987 Remove `deleted' replaced by checking `name's nullness.
18988
18989 * print.c (print_object): Handle terminals.
18990
18991 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18992 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18993
18994 * frame.c (make_terminal_frame):
18995 * keyboard.c (tty_read_avail_input):
18996 * w32term.c (x_delete_terminal):
18997 * xfns.c (Fx_create_frame, x_create_tip_frame):
18998 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18999
190002007-09-20 Glenn Morris <rgm@gnu.org>
19001
19002 * process.c (Fmake_network_process): Doc fix.
19003
190042007-09-19 Jason Rumney <jasonr@gnu.org>
19005
19006 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
19007
190082007-09-19 Michaël Cadilhac <michael@cadilhac.name>
19009
19010 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
19011 Fix a C warning regarding variable constness.
19012
19013 * xterm.c (handle_one_xevent): Fix a C warning.
19014
190152007-09-18 Jason Rumney <jasonr@gnu.org>
19016
19017 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
19018
190192007-09-17 Jan Djärv <jan.h.d@swipnet.se>
19020
19021 * gtkutil.c (gdpy_def): New variable.
19022 (xg_initialize): Initialize gdpy_def.
19023 (xg_display_close): If no other display exists, set gdpy_def to a
19024 new connection.
19025
190262007-09-16 Jan Djärv <jan.h.d@swipnet.se>
19027
19028 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
19029 when we have no file name for the icon.
19030 (xg_tool_bar_expose_callback): Remove.
19031 (xg_create_tool_bar): Don't connect expose signal to
19032 xg_tool_bar_expose_callback.
19033 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
19034
190352007-09-16 Andreas Schwab <schwab@suse.de>
19036
19037 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
19038 values instead of zapping them.
19039
190402007-09-14 Glenn Morris <rgm@gnu.org>
19041
19042 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19043 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19044 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19045 scope and rename to omfib_buffer for clarity.
19046 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19047
190482007-09-14 Kenichi Handa <handa@m17n.org>
19049
19050 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19051
190522007-09-13 Jason Rumney <jasonr@gnu.org>
19053
19054 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19055
19056 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19057
19058 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19059 (mac_term_init): Call here instead, passing rif.
19060
190612007-09-13 Glenn Morris <rgm@gnu.org>
19062
19063 * s/hpux.h: No longer define `static' as nothing.
19064
190652007-09-13 Johan Bockgård <bojohan@gnu.org>
19066
19067 * callint.c (Fcall_interactively): Remove unused var `fun'.
19068
190692007-09-12 Romain Francoise <romain@orebokech.com>
19070
19071 * window.c (prefer_window_split_horizontally, display_buffer):
19072 Revert 2007-09-08 change.
19073
190742007-09-12 Glenn Morris <rgm@gnu.org>
19075
19076 * alloca.c: Remove file.
19077 * Makefile.in (alloca): Do not undef.
19078 (allocaobj, alloca.o): Remove.
19079 (otherobj): Remove allocaobj.
19080 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19081 * regex.c (C_ALLOCA): Remove all references and code that was only
19082 used when this was defined.
19083 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19084 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19085 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19086
19087 * Makefile.in (SOURCES, unlock, relock): Delete.
19088
19089 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19090 (menu_grab_callback): All uses changed.
19091
19092 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19093 (x_reply_selection_request): All uses changed.
19094
190952007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19096
19097 * lread.c (load_warn_old_style_backquotes): Change message to look
19098 better when it appears in the middle of byte-compiler messages.
19099
191002007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19101
19102 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19103
19104 * xterm.c (x_create_terminal): Add comment.
19105
19106 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19107
191082007-09-10 Richard Stallman <rms@gnu.org>
19109
19110 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19111
191122007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19113
19114 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19115 (DEFUN): Document `intspec', use it instead of `prompt'.
19116
19117 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19118
19119 * data.c (Finteractive_form): If the interactive specification starts
19120 with a `(', use it as a Lisp form.
19121
19122 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19123 name and file modes.
19124
19125 * callint.c (Fcall_interactively): Comment fixes.
19126
191272007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19128
19129 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19130 and compiled functions.
19131
191322007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19133
19134 * window.c (prefer_window_split_horizontally): New variable.
19135 (display_buffer): Consider splitting window horizontally depending
19136 on prefer_window_split_horizontally.
19137
191382007-09-08 Eli Zaretskii <eliz@gnu.org>
19139
19140 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19141
191422007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19143
19144 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19145
19146 * frame.c (x_set_frame_parameters): Check number is positive before
19147 using XFASTINT.
19148
19149 * window.c (freeze_window_start): Don't presume selected_window holds
19150 a window object.
19151 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19152
191532007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19154
19155 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19156
191572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19158
19159 * window.c (Vsplit_window_preferred_function): New var.
19160 (Fdisplay_buffer): Use it.
19161 (syms_of_window): Export, and initialize it.
19162
191632007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19164
19165 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19166
191672007-09-06 Glenn Morris <rgm@gnu.org>
19168
19169 * gtkutil.c (menu_grab_callback) <cnt>:
19170 * xselect.c (x_reply_selection_request) <cnt>: Move static
19171 variable to file scope.
19172
191732007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19174
19175 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19176 consistent values of selected_frame and selected_window.
19177
191782007-09-04 Jason Rumney <jasonr@gnu.org>
19179
19180 * w32console.c (initialize_w32_display): Zero unused hooks.
19181
191822007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19183
19184 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19185 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19186
191872007-09-04 Jason Rumney <jasonr@gnu.org>
19188
19189 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19190 in w32console.c. Set up input. Remove XXX comments that have been
19191 confirmed as correct.
19192
19193 * s/ms-w32.h (MULTI_KBOARD): Define.
19194
19195 * w32console.c (one_and_only_w32cons): Remove.
19196 (initialize_w32_display): Take terminal argument.
19197
19198 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19199 initialize_w32_display.
19200 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19201
19202 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19203
19204 * keyboard.c (discard_mouse_events): Discard it.
19205 (make_lispy_event): Translate it to a lisp event.
19206 (lispy_wheel_names): Add wheel-left and right events.
19207 (syms_of_keyboard): Enlarge wheel_syms.
19208
19209 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19210 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19211
19212 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19213
19214 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19215 from WM_MOUSEHWHEEL.
19216 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19217
19218 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19219 terminal.
19220
19221 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19222 keyboard for the terminal.
19223
192242007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19225
19226 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19227 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19228 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19229 and resume-tty-function to resume-tty-hook.
19230 (Fsuspend_tty, Fresume_tty): Use new names.
19231
192322007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19233
19234 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19235 if it starts with "n:".
19236
192372007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19238
19239 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19240
192412007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19242
19243 * frame.h:
19244 * frame.c (Qterm_environment_variable): Remove.
19245 (syms_of_frame): Don't init and staticpro it.
19246
19247 * callproc.c (getenv_internal): Remove special case for $TERM.
19248
19249 * callproc.c (Vinitial_environment): New variable.
19250 (set_initial_environment): Initialize it.
19251 (syms_of_callproc): Declare it.
19252 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19253 TERM under which a process runs is never related to the TERM in which
19254 Emacs is running.
19255
192562007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19257
19258 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19259 * s/darwin.h: ... do it here.
19260
192612007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19262
19263 * lisp.h (set_initial_environment): Rename from set_global_environment.
19264
19265 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19266 removed by mistake on the multi-tty branch.
19267
19268 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19269 (Fmodify_frame_parameters): Return a value.
19270
19271 * image.c (png_load): Comment-out var only used in commented-out code.
19272
19273 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19274 before passing it to mark_object.
19275
19276 * xfaces.c (internal_resolve_face_name): Return a value.
19277 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19278
19279 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19280 (x_icon): Comment-out var only used in commented-out code.
19281
192822007-08-29 Romain Francoise <romain@orebokech.com>
19283
19284 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19285 QUIT hasn't been provided.
19286
192872007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19288
19289 * callproc.c (child_setup, getenv_internal): Use the
19290 display-environment-variable and term-environment-variable frame params.
19291 (set_initial_environment): Initialise Vprocess_environment.
19292
19293 * config.in: Disable multi-keyboard support on a mac.
19294
19295 * frame.c (Qterm_environment_variable)
19296 (Qdisplay_environment_variable): New variables.
19297 (syms_of_frame): Intern and staticpro them.
19298 (Fmake_terminal_frame): Disable output method test.
19299
19300 * frame.h: Declare them here.
19301
19302 * macfns.c (x_set_mouse_color): Get rif from the frame.
19303 (x_set_tool_bar_lines): Don't use updating_frame.
19304 (mac_window): Add 2 new parameters for consistency with other systems.
19305 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19306 frame parameters following what is done in X11 and w32. Don't use
19307 FRAME_MAC_DISPLAY_INFO.
19308 (Fx_open_connection, start_hourglass): Remove window-system check.
19309 (x_create_tip_frame): Get the keyboard from the terminal.
19310
19311 * macmenu.c: Reorder includes.
19312 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19313
19314 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19315 terminal parameter.
19316 (x_clear_frame): Add a frame parameter.
19317 (note_mouse_movement): Get rif from the frame.
19318 (mac_term_init): Initialize the terminal.
19319 (mac_initialize): Make static and move terminal initialization ...
19320 (mac_create_terminal): ... to this new function.
19321
19322 * macterm.h (struct mac_display_info): Add terminal.
19323 (mac_initialize): Delete declaration.
19324
19325 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19326
19327 * sysdep.c: Comment out text after #endif.
19328
19329 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19330 is defined. Better initialize ttys in windows. Use terminal
19331 specific mouse_position_hook.
19332
19333 * termhooks.h (union display_info): Add mac_display_info.
19334
19335 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19336 Set the default minibuffer frame, window_system and the rest of the
19337 frame parameters following what is done in X11.
19338
19339 * w32term.c (w32_initialize): Make static.
19340
19341 * xselect.c (x_handle_selection_clear): Only access
19342 terminal->kboard when MULTI_KBOARD is defined.
19343
19344 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19345 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19346
193472007-08-29 Jason Rumney <jasonr@gnu.org>
19348
19349 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19350 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19351
19352 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19353 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19354
19355 * keyboard.c (restore_kboard_configuration): Only define when
19356 MULTI_KBOARD defined.
19357
19358 * makefile.w32-in: Update dependancies from Makefile.in.
19359 (OBJ1): Add terminal.$(O)
19360
19361 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19362 Don't define function body.
19363 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19364
19365 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19366
19367 * w32.c (request_sigio, unrequest_sigio): Remove.
19368
19369 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19370 (w32con_clear_frame, w32con_clear_end_of_line)
19371 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19372 (w32con_delete_glyphs, w32con_set_terminal_window)
19373 (scroll_line, w32_sys_ring_bell): Add frame arg.
19374 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19375 Add terminal arg.
19376 (PICK_FRAME): Remove.
19377 (w32con_write_glyphs): Use frame specific terminal coding.
19378 (one_and_only_w32cons): New global variable.
19379 (initialize_w32_display): Use it for storing hooks.
19380 (create_w32cons_output): New function.
19381
19382 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19383 arg a frame.
19384
19385 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19386 Set window_system.
19387 (x_set_tool_bar_lines): Don't use updating_frame.
19388 (Fx_create_frame): Set terminal and ref count.
19389 (Fx_open_connection): Remove window-system check.
19390
19391 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19392
19393 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19394 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19395 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19396 Add frame arg.
19397 (x_delete_terminal, w32_create_terminal): New functions.
19398 (w32_term_init): Create a terminal.
19399 (w32_initialize): Move terminal specific initialization to
19400 w32_create_terminal.
19401
19402 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19403 (w32_clear_rect, w32_clear_area): Use background from frame.
19404 (w32_display_info): Add terminal.
19405 (w32_sys_ring_bell, x_delete_display): Declare here.
19406
19407 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19408
19409 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19410
194112007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19412
19413 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19414 Fix get_named_tty calls for the controlling tty.
19415
194162007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19417
19418 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19419
194202007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19421
19422 * term.c (tty_insert_glyphs): Add missing first parameter.
19423
194242007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19425
19426 * buffer.c (Fbuffer_list, Fbury_buffer):
19427 Take frame->buried_buffer_list into account.
19428
19429 * cm.c (current_tty): New variable, for cmputc().
19430 (cmputc): Use it.
19431 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19432 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19433 (cmgoto): Add tty parameter. Pass it on to calccost().
19434 Use emacs_tputs() instead of tputs().
19435
19436 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19437 tputs().
19438 (current_tty): New variable, for cmputc().
19439 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19440
19441 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19442 (internal_condition_case, internal_condition_case_1)
19443 (internal_condition_case_2): Don't abort when x_catching_errors.
19444
19445 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19446 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19447 prevent crashes caused by bogus longjmps in read_char.
19448
19449 * keymap.h (Fset_keymap_parent): Add EXFUN.
19450
19451 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19452 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19453 Remove redundant definition.
19454
19455 * macfns.c (x_set_mouse_color, x_make_gc):
19456 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19457
19458 * w32term.c (x_free_frame_resources):
19459 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19460 (w32_initialize): Use the accessor macros for terminal characteristics.
19461
19462 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19463 Use the accessor macros for terminal characteristics.
19464 * msdos.c (internal_terminal_init): Use the accessor macros for
19465 terminal characteristics.
19466 (ScreenVisualBell, internal_terminal_init):
19467 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19468
19469 * termopts.h (no_redraw_on_reenter): Declare.
19470
19471 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19472 (mark_terminals, mark_ttys): Declare.
19473 (Fgarbage_collect): Call them.
19474 (mark_object): Mark buried_buffer_list.
19475
19476 * prefix-args.c: Include stdlib.h for exit.
19477
19478 * syssignal.h: Add comment.
19479
19480 * indent.c: Include stdio.h.
19481
19482 * window.h (Vinitial_window_system): Declare.
19483 (Vwindow_system): Delete declaration.
19484
19485 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19486
19487 * image.c (lookup_image): Don't initialize `c' until the xasserts
19488 have been run.
19489
19490 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19491 FRAME_FOREGROUND_PIXEL.
19492
19493 * print.c (print_preprocess): Don't lose print_depth levels while
19494 iterating.
19495
19496 * widget.c (update_from_various_frame_slots):
19497 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19498
19499 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19500 frames.
19501 (window_internal_height): Remove bogus make_number call.
19502 (init_window_once): Call make_terminal_frame with two zero parameters.
19503
19504 * fileio.c (Fread_file_name): Update comment.
19505
19506 * callint.c (Fcall_interactively):
19507 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19508 Make sure it is correctly unwound.
19509
19510 * xsmfns.c (x_session_close): New function.
19511
19512 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19513 Delete declarations.
19514
19515 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19516 (x_output): Remove background_pixel and foreground_pixel fields.
19517 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19518 (x_delete_device, x_session_close): Declare.
19519
19520 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19521 (read_filtered_event): Call `read_char' with a local
19522 `wrong_kboard_jmpbuf'.
19523
19524 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19525 Don't call single_kboard_state. Use FRAME_RIF.
19526
19527 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19528 systems.
19529
19530 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19531 (Fframe_with_environment, Fset_input_meta_mode)
19532 (Fset_quit_char): EXFUN.
19533 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19534 (init_sys_modes, reset_sys_modes): Update prototypes.
19535 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19536
19537 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19538 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19539 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19540 Delete declarations.
19541 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19542 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19543 New declarations.
19544
19545 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19546 already does that during init_display(). Call syms_of_keymap
19547 before syms_of_keyboard. Call `syms_of_terminal'.
19548 Call set_initial_environment, not set_process_environment.
19549 (shut_down_emacs): Call reset_all_sys_modes() instead of
19550 reset_sys_modes().
19551
19552 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19553 (internal_resolve_face_name, resolve_face_name_error): New functions.
19554 (resolve_face_name): Protect against loops and errors thrown by Fget.
19555 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19556 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19557
19558 * scroll.c: Replace CURTTY() with local variables throughout the
19559 file (where applicable).
19560 (calculate_scrolling, calculate_direct_scrolling)
19561 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19562 characteristics.
19563
19564 * keymap.c (Vfunction_key_map): Remove.
19565 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19566 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19567 (Vkey_translation_map): Remove.
19568 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19569 (Fdescribe_buffer_bindings)
19570 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19571 Update for terminal-local key-translation-map.
19572
19573 * Makefile.in (callproc.o): Update dependencies.
19574 (lisp, shortlisp): Add termdev.elc.
19575 (obj): Add terminal.o.
19576 (terminal.o): Add dependencies.
19577 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19578 (data.o, fns.o): Add termhooks.h dependency.
19579 (SOME_MACHINE_LISP): Add dnd.elc.
19580 (minibuf.o): Fix typo.
19581 Update dependencies.
19582
19583 * data.c (do_symval_forwarding, store_symval_forwarding)
19584 (find_symbol_value): Use the selected frame's keyboard, not
19585 current_kboard.
19586
19587 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19588 Vwindow_system.
19589
19590 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19591 Fmenu_bar_open.
19592 (syms_of_xmenu): Update defsubr.
19593 (mouse_position_for_popup, Fx_popup_menu)
19594 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19595 (set_frame_menubar, free_frame_menubar)
b97439ce 19596 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19597 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19598 an X frame.
19599
19600 * xselect.c (x_own_selection): Abort if not an X frame.
19601 (some_frame_on_display): Check if it is an X frame.
19602 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19603
19604 * coding.c: Include frame.h and termhooks.h.
19605 (terminal_coding, keyboard_coding): Delete.
19606 (Fset_terminal_coding_system_internal)
19607 (Fset_keyboard_coding_system_internal)
19608 (Fkeyboard_coding_system)
19609 (Fterminal_coding_system): Add a terminal parameter.
19610 Get terminal_coding from the terminal.
19611 (init_coding_once): Don't call setup_coding_system here.
19612
19613 * dispextern.h (set_scroll_region, turn_off_insert)
19614 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19615 (tty_clear_end_of_line, tty_setup_colors)
19616 (delete_tty, updating_frame)
19617 (produce_special_glyphs, produce_glyphs, write_glyphs)
19618 (insert_glyphs): Remove.
19619 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19620 (tty_turn_off_highlight, get_tty_size): Add declaration.
19621 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19622
19623 * frame.h (enum output_method): Add output_initial.
19624 (struct x_output): Delete.
19625 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19626 Access foreground_pixel and background_pixel directly from the frame.
19627 (tty_display): Delete.
19628 (struct frame): Add buried_buffer_list, foreground_pixel,
19629 background_pixel and terminal. Delete kboard.
19630 (union output_data): Add tty.
19631 (FRAME_KBOARD): Get the kboard from the terminal.
19632 (FRAME_INITIAL_P): New macro.
19633 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19634 (Qterm_environment_variable, Qdisplay_environment_variable)
19635 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19636 New declarations.
19637
19638 * termchar.h (tty_output, tty_display_info): New structures.
19639 (tty_list): Declare.
19640 (FRAME_TTY, CURTTY): New macros.
19641 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19642 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19643 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19644 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19645
19646 * callproc.c: Include frame.h and termhooks.h, for terminal
19647 parameters.
19648 (add_env): New function.
19649 (child_setup): Use it.
19650 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19651 (getenv_internal): Fix get_terminal_param call.
19652 (Fgetenv_internal, egetenv): Update doc.
19653 (syms_of_callproc): Initialize Vprocess_environment to nil.
19654 Register and initialize them. Remove obsolete defvars. Update doc
19655 strings.
19656 (child_setup): Handle Vlocal_environment_variables.
19657 (getenv_internal): Add terminal parameter.
19658 Handle Vlocal_environment_variables.
19659 (Fgetenv_internal): Add terminal parameter.
19660 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19661 environment in a frame (not terminal) parameter. Update doc strings.
19662 (set_initial_environment): Rename from set_global_environment.
19663 Store Emacs environment in initial frame parameter.
19664
19665 * xdisp.c (redisplay_internal): Update references to
19666 `previous_terminal_frame'.
19667 (display_mode_line, Fformat_mode_line): Replace calls to
19668 `push_frame_kboard' with `push_kboard'.
19669 (get_glyph_string_clip_rects): Add extra parentheses and
19670 braces to prevent compiler warnings.
19671 (calc_pixel_width_or_height): Add xassert to check that the
19672 frame is alive. Don't call `lookup_image' on a termcap frame.
19673 (message2_nolog, message3_nolog, redisplay_internal)
19674 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19675 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19676 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19677 (Fx_display_pixel_width, Fx_display_pixel_height)
19678 (Fx_display_planes, Fx_display_color_cells)
19679 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19680 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19681 (Fx_display_backing_store, Fx_display_visual_class)
19682 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19683 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19684
19685 * xfns.c (x_set_foreground_color x_set_background_color)
19686 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19687 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19688 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19689 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19690 terminal that is being deleted.
19691 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19692 frame parameter, and make sure it overrides any user-supplied setting.
19693 (Fx_close_connection, Fx_synchronize): Unify argument names with
19694 the rest of the DEFUNs.
19695
19696 * dispnew.c (Fsend_string_to_terminal): Update call to
19697 `get_tty_terminal'.
19698 (Fredraw_frame, Fsend_string_to_terminal)
19699 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19700 FRAME_TERMCAP_P and FRAME_TTY.
19701 (window_change_signal): Don't believe width/height values that are
19702 impossibly small.
19703 (Vinitial_window_system): Rename from Vwindow_system.
19704 (termscript, Wcm, rif): Delete.
19705
19706 * termhooks.h (struct terminal): New struct containing the
19707 previously global text display hooks and new members NAME,
19708 DELETED and PARAM_ALIST.
19709 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19710 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19711 (FRAME_RIF): New macros.
19712 (get_terminal_param, get_device): New declarations.
19713 (termscript): Delete declaration.
19714
19715 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19716 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19717 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19718 FRAME_FOREGROUND_PIXEL.
19719 (x_fully_uncatch_errors): Disable definition.
19720 (x_scroll_bar_expose): Fix reference to foreground pixel.
19721 (XTread_socket): Disable loop on all X displays.
19722 (x_delete_terminal): Don't set terminal->deleted and let
19723 delete_terminal delete the frames on the terminal.
19724 (x_delete_display): Doc update to reflect changes in
19725 delete_terminal.
19726 (x_display_info) <terminal>: Move member earlier in the struct.
19727 (deleting_tty): Remove old variable.
19728 (Fsuspend_tty): Call clear_tty_hooks.
19729 (Fresume_tty, init_tty): Call set_tty_hooks.
19730 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19731 errors on X frames.
19732 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19733 (handle_one_xevent): Initialize `f' to NULL.
19734 (x_delete_terminal, x_create_terminal): New functions.
19735 (XTset_terminal_modes, XTreset_terminal_modes)
19736 (XTread_socket, x_connection_closed, x_term_init)
19737 (x_term_init, x_delete_display): Add terminal parameter.
19738 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19739 X connections.
19740
19741 * frame.c: Include termchar.h.
19742 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19743 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19744 (Qdisplay_environment_variable): New vars.
19745 (Fframep): Deal with output_initial.
19746 (Fframe-live-p): Doc fix.
19747 (Fwindow-system): New function.
19748 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19749 (make_terminal_frame): Don't create frames on a terminal that is
19750 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19751 (store_frame_param): Check for found_for_frame before calling XFRAME.
19752 (Fmake_terminal_frame): Handle NULL tty names correctly.
19753 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19754 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19755 frames to refer to a deleted frame in their 'environment parameter.
19756 (Fframe_with_environment): New function.
19757 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19758 (get_future_frame_param): New function.
19759 (Fmake_terminal_frame): Use it.
19760 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19761
19762 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19763 * sysdep.c (reset_sys_modes): Update for renames.
19764
19765 * keyboard.c (tty_read_avail_input): New function.
19766 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19767 (syms_of_keyboard): Defsubr them.
19768 (Fset_input_meta_mode, Fset_quit_char): New functions.
19769 (Fset_input_mode): Split to above functions.
19770 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19771 parameter. Use it in call to `read_char'.
19772 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19773 Set wrong_kboard_jmpbuf correctly in recursive calls.
19774 Use current_kboard to access Vkeyboard_translate_table.
19775 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19776 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19777 Update longjmp invocations. Remember the original current_kboard,
19778 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19779 changes it. Comment out unnecessary calls to
19780 `record_single_kboard_state' and `any_kboard_state'.
19781 Update recursive calls.
19782 (wrong_kboard_jmpbuf): Remove global variable.
19783 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19784 Handle deleted interrupted_kboards correctly; that is a legal
19785 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19786 and read_char calls. Abort if interrupted_kboard died in read_char.
19787 (any_kboard_state, single_kboard_state)
19788 (push_frame_kboard): Remove function.
19789 (pop_kboard): Switch out of single_kboard mode if the kboard has
19790 been deleted. Remove unused variable. Help debugging by not
19791 changing current_kboard unnecessarily. Set current_kboard to the
19792 kboard of the selected frame when the stored kboard object has
19793 been deleted before pop_kboard.
19794 (temporarily_switch_to_single_kboard): Change first parameter to a
19795 frame pointer. Throw an error when caller wants to change kboards
19796 while in single_kboard mode. Don't push_kboard if we weren't in
19797 single kboard state. Don't pop_kboard if we popped into any
19798 kboard state.
19799 (restore_kboard_configuration): Abort if pop_kboard changed the
19800 kboard in single_kboard mode. Call pop_kboard only after setting
19801 up single_kboard mode.
19802 (Frecursive_edit): Switch to single_kboard mode only in nested
19803 command loops.
19804 (cmd_error, command_loop, command_loop_1, timer_check):
19805 Comment out unnecessary call to `any_kboard_state' and
19806 `record_single_kboard_state'.
19807 (delete_kboard): Exit single_kboard mode if we have just deleted
19808 that kboard. Use FRAME_KBOARD.
19809 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19810 `fatal_error_signal'.
19811 (record_single_kboard_state): Don't push_kboard if we weren't in
19812 single kboard state. Don't pop_kboard if we popped into any
19813 kboard state.
19814 (push_frame_kboard): Rename to push_kboard.
19815 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19816 (read_avail_input): Read input from all terminals.
19817 (mark_kboards): Also mark Vkeyboard_translate_table.
19818 (kbd_buffer_store_event_hold): Simplify condition.
19819 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19820 (Vkeyboard_translate_table): Move to struct kboard.
19821 (init_kboard): Initialize Vkeyboard_translate_table.
19822 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19823 Vkeyboard_translate_table. Update doc strings. Update docs of
19824 local-function-key-map and function-key-map.
19825
19826 * terminal.c: New file.
19827
19828 * term.c: Include errno.h.
19829 (Vring_bell_function, device_list, initial_device)
19830 (next_device_id, ring_bell, update_begin, update_end)
19831 (set_terminal_window, cursor_to, raw_cursor_to)
19832 (clear_to_end, clear_frame, clear_end_of_line)
19833 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19834 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19835 (syms_of_term): Move their initialization to terminal.c.
19836 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19837 (Ftty_display_color_cells)
19838 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19839 (clear_tty_hooks, set_tty_hooks)
19840 (init_tty, maybe_fatal): New functions.
19841 (Ftty_type): Return nil if terminal is not on a tty instead of
19842 throwing an error. Doc update.
19843 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19844 Doc update. Initialize new subrs and variables.
19845 (delete_tty): Use terminal->deleted.
19846 (tty_set_terminal_modes): Rename from set_terminal_modes.
19847 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19848 (set_scroll_region): Rename to `tty_set_scroll_region'.
19849 (turn_on_insert): Rename to `tty_turn_on_insert'.
19850 (turn_off_insert): Rename to `tty_turn_off_insert'.
19851 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19852 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19853 (toggle_highligh): Rename to `tty_toggle_highlight'.
19854 (background_highlight): Rename to `tty_background_highlight'.
19855 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19856 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19857 (tty_set_scroll_region, tty_background_highlight)
19858 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19859 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19860 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19861 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19862 Add static modifier.
19863 (tty_reset_terminal_modes, tty_set_terminal_window)
19864 (tty_set_scroll_region, tty_background_highlight)
19865 (tty_highlight_if_desired, tty_cursor_to)
19866 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19867 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19868 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19869 renames.
19870
198712007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19872
19873 * keyboard.c: Qrtl is new.
19874 (parse_tool_bar_item): Handle :rtl keyword.
19875 (syms_of_keyboard): Intern :rtl keyword.
19876
19877 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19878
19879 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19880 so no Lisp code is executed.
19881 (file_for_image, find_rtl_image): New functions.
19882 (xg_get_image_for_pixmap): Use file_for_image.
19883 (update_frame_tool_bar): If direction is RTL, use RTL image if
19884 defined. Use Gtk stock images if defined.
19885
198862007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19887
19888 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19889 for nonexistent or zero-width glyph in composition glyph.
19890
198912007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19892
19893 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19894
19895 * xdisp.c (Finvisible_p): New function.
19896 (syms_of_xdisp): defsubr it.
19897
198982007-08-24 Juanma Barranquero <lekktu@gmail.com>
19899
19900 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19901 Doc fixes.
19902
199032007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19904
19905 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19906
199072007-08-24 Martin Rudalics <rudalics@gmx.at>
19908
19909 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19910 whether decoding has modified buffer contents.
19911
199122007-08-24 Jason Rumney <jasonr@gnu.org>
19913
19914 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19915 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19916 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19917 (init_svg_functions) [HAVE_NTGUI]: New function.
19918 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19919 (svg_load_image): Use them.
19920 (svg_load_image) [HAVE_NTGUI]: Implement background.
19921
199222007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19923
19924 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19925 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19926 (LIBX): Remove @RSVG_LIBS@.
19927 (LIBES): Add $(RSVG_LIBS).
19928
19929 * image.c (svg_load_image): Blend with specified background if exists.
19930 Use IMAGE_BACKGROUND. Add Mac OS Support.
19931
19932 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19933 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19934 Remove macros.
19935 [MAC_OSX] (socket_callback): Do nothing.
19936 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19937 ReceiveNextEvent.
19938 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19939 socket_callback.
19940 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19941
199422007-08-22 Glenn Morris <rgm@gnu.org>
19943
19944 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19945
199462007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19947
19948 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19949
19950 * image.c: Add support for SVG images. Some additional comments
19951 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19952 (svg_image_p): New function to test for SVG image.
19953 (svg_load): New function to load SVG image.
19954 (svg_load_image): New function, helper for svg_load.
19955 (Qsvg): New Lisp_object.
19956 (svg_keyword_index): New enum.
19957 (svg_format): New static `image_keyword' struct.
19958 (svg_type): New static `image_type' struct.
19959 (librsvg/rsvg.h): Include it.
19960
199612007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19962
19963 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19964
199652007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19966
19967 * lread.c (Qold_style_backquotes): New var.
19968 (syms_of_lread): Init and staticpro it.
19969 (load_warn_old_style_backquotes): New fun.
19970 (Fload): Use them to warn about old style backquotes.
19971 (end_of_file_error, Fload): Remove unused vars.
19972
19973 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19974
19975 * lread.c (Vold_style_backquotes): New var.
19976 (syms_of_lread): Init and export it to Elisp.
19977 (read1): Set it when we find an old-style (back)quote.
19978
199792007-08-22 Jason Rumney <jasonr@gnu.org>
19980
19981 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19982
199832007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19984
19985 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19986
199872007-08-19 Richard Stallman <rms@gnu.org>
19988
19989 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19990
199912007-08-19 Andreas Schwab <schwab@suse.de>
19992
19993 * alloc.c (pure): Round PURESIZE up.
19994
199952007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19996
19997 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19998 active frame.
19999
200002007-08-16 Richard Stallman <rms@gnu.org>
20001
20002 * eval.c (Fcommandp): Add parens to clarify.
20003
20004 * minibuf.c (Fall_completions): Use enum for type of table.
20005
20006 * emacs.c (USAGE2): Improve text.
20007
200082007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
20009
20010 * term.c (tty_default_color_capabilities): Declare static
20011 variables in file scope, to avoid HPUX compiler problem.
20012
200132007-08-13 Jan Djärv <jan.h.d@swipnet.se>
20014
20015 * gtkutil.c (update_frame_tool_bar): Use -1 as index
20016 to gtk_toolbar_insert.
20017
200182007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
20019
20020 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
20021
20022 * insdel.c (reset_var_on_error): New fun.
20023 (signal_before_change, signal_after_change):
20024 Use it to reset (after|before)-change-functions to nil in case of error.
20025 Bind inhibit-modification-hooks to t.
20026 Don't bind (after|before)-change-functions to nil while they run.
20027
200282007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20029
20030 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
20031 filling pixmap with stippled background.
20032
200332007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20034
20035 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
20036 Don't use invisible frame as parent window for repositioning.
20037
200382007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
20039
20040 * print.c (new_backquote_output): Rename from old_backquote_output.
20041 (print): Inverse its logic (according to its name) so as to match the
20042 behavior of new_backquote_flag in lread.c.
20043
200442007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20045
20046 * gmalloc.c (posix_memalign): New function.
20047
20048 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20049 ActivateControl/DeactivateControl here.
20050 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20051 frame-notice-user-settings is non-nil.
20052 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20053 for kEventParamFMFontStyle.
20054 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20055 mac_pass_command_to_system and mac_pass_control_to_system here.
20056 (XTread_socket): Call ActivateControl/DeactivateControl here.
20057 (XTread_socket) [TARGET_API_MAC_CARBON]:
20058 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20059 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20060 for window repositioning.
20061
200622007-08-08 Glenn Morris <rgm@gnu.org>
20063
20064 * Replace `iff' in doc-strings and comments.
20065
200662007-08-07 Chong Yidong <cyd@stupidchicken.com>
20067
20068 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20069
200702007-08-07 Martin Rudalics <rudalics@gmx.at>
20071
20072 * fileio.c (Finsert_file_contents): Run format-decode and
20073 after_insert_file_functions on entire buffer when REPLACE is
20074 non-nil and inhibit modification_hooks and point_motion_hooks.
20075 For consistency, run after_insert_file_functions iff something
20076 got inserted. Move signal_after_change and update_compositions
20077 after code running after_insert_file_functions. Make sure that
20078 undo_list doesn't record intermediate steps of the decoding process.
20079
200802007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20081
20082 * emacs.c (main)
20083 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20084 Call malloc_enable_thread on interactive startup.
20085
20086 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20087 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20088 [USE_PTHREAD]: Conditionalize with it.
20089 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20090 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20091 New functions.
20092
200932007-08-06 Chong Yidong <cyd@stupidchicken.com>
20094
20095 * xdisp.c (redisplay_window): When restoring original buffer
20096 position, make sure it is still valid.
20097
20098 * image.c (png_load): Ignore png-supplied background color.
20099
201002007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20101
20102 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20103 Use kCFAbsoluteTimeIntervalSince1970.
20104
20105 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20106 New variable.
20107 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20108 event loop should be quit.
20109 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20110 Quit dialog event loop if quit_dialog_event_loop is set.
20111
20112 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20113 (Selection): New typedef. Use instead of ScrapRef.
20114 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20115 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20116 (mac_clear_selection): Rename from clear_scrap.
20117 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20118 scrap_has_target_type. All uses changed.
20119 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20120 (mac_selection_has_target_p): New functions.
20121 (mac_put_selection_value): Rename from put_scrap_string.
20122 (mac_get_selection_value): Rename from get_scrap_string.
20123 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20124 (put_scrap_private_timestamp, scrap_has_target_type)
20125 (get_scrap_private_timestamp): Remove functions.
20126 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20127 (x_own_selection, x_get_local_selection):
20128 Use mac_valid_selection_value_p.
20129 (x_own_selection): Don't use put_scrap_private_timestamp.
20130 Record OWNERSHIP-INFO into Vselection_alist instead.
20131 (x_get_local_selection): Don't check type if request is local.
20132 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20133 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20134
201352007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20136
20137 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20138 add comment explaining why.
20139
201402007-08-03 Richard Stallman <rms@gnu.org>
20141
20142 * fileio.c (Fvisited_file_modtime): Use make_time.
20143
201442007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20145
20146 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20147 build.
20148
201492007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20150
20151 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20152
201532007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20154
20155 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20156
201572007-07-30 Richard Stallman <rms@gnu.org>
20158
20159 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20160
201612007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20162
20163 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20164
201652007-07-28 Nick Roberts <nickrob@snap.net.nz>
20166
20167 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20168 remote default-directory.
20169
20170 * buffer.c (mode-line-format): Update doc string.
20171
201722007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20173
20174 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20175 scroll bar gap.
20176 (x_scroll_bar_create): Set bar->fringe_extended_p.
20177 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20178 on frame edge. Check fringe background extension. Don't clear
20179 extended fringe background area.
20180
20181 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20182 (w32_fill_area): Enclose multiple statements with do ... while (0).
20183
20184 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20185 Extend fringe background to scroll bar gap.
20186 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20187 Set bar->fringe_extended_p.
20188 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20189 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20190 background extension. Don't clear extended fringe background area.
20191
20192 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20193 New member fringe_extended_p.
20194
201952007-07-25 Glenn Morris <rgm@gnu.org>
20196
20197 * Relicense all FSF files to GPLv3 or later.
20198
20199 * COPYING: Switch to GPLv3.
20200
202012007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20202
20203 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20204
20205 * data.c (Finteractive_form): Check for the presence of an
20206 `interactive-form' symbol property more thoroughly.
20207
20208 * data.c (Finteractive_form): Use an `interactive-form' property if
20209 present, analogous to the function-documentation property.
20210
202112007-07-24 Jason Rumney <jasonr@gnu.org>
20212
20213 * w32fns.c (x_real_positions): Get real position from OS instead of
20214 calculating it.
20215
202162007-07-23 Jason Rumney <jasonr@gnu.org>
20217
20218 * filelock.c (current_lock_owner): Allow for @ sign in username.
20219
202202007-07-22 Nick Roberts <nickrob@snap.net.nz>
20221
20222 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20223 remote default-directory.
20224
20225 * buffer.c (mode-line-format): Describe above case in doc string.
20226
202272007-07-20 Eli Zaretskii <eliz@gnu.org>
20228
20229 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20230 Define if not defined.
20231
202322007-07-18 Jason Rumney <jasonr@gnu.org>
20233
20234 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20235
202362007-07-18 Richard Stallman <rms@gnu.org>
20237
20238 * data.c (Fsetq_default): Doc fix.
20239
20240 * eval.c (Fsetq): Doc fix.
20241
202422007-07-18 Juanma Barranquero <lekktu@gmail.com>
20243
20244 * coding.c (Ffind_operation_coding_system):
20245 * eval.c (For, Fand): Doc fixes.
20246 Reported by Johan Bockgård.
20247
202482007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20249
20250 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20251
20252 * xterm.h: Declare x_ewmh_activate_frame.
20253
20254 * xterm.c (x_ewmh_activate_frame): New function.
20255 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20256
202572007-07-17 Martin Rudalics <rudalics@gmx.at>
20258
20259 * window.c (Fdisplay_buffer): If largest or LRU window is the
20260 only window, split it even if it is not eligible for splitting.
20261 This restores the original behavior broken by the 2007-07-15
20262 change.
20263
202642007-07-17 Glenn Morris <rgm@gnu.org>
20265
20266 * abbrev.c (abbrev_check_chars): New function.
20267 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20268 Call abbrev_check_chars to check abbrev characters are word
20269 constituents. Doc fix.
20270
202712007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20272
20273 * process.c (Fstart_process, Fmake_network_process)
20274 (read_process_output): Fix up last changes.
20275
202762007-07-16 Eli Zaretskii <eliz@gnu.org>
20277
20278 * makefile.w32-in (clean): Don't delete *~.
20279
202802007-07-16 Andreas Schwab <schwab@suse.de>
20281
20282 * window.c (Fdisplay_buffer): Use NILP.
20283 (Fset_window_scroll_bars): Likewise.
20284
202852007-07-15 Martin Rudalics <rudalics@gmx.at>
20286
20287 * window.c (window_min_size_2): New function.
20288 (window_min_size_1, size_window, Fdisplay_buffer)
20289 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20290 windows without mode- or header-lines when window-min-height is
20291 too small.
20292 (size_window): Reset nodelete_p after testing it, following an
20293 earlier note by Kim F. Storm.
20294 (display_buffer): Do not set split_height_threshold to twice the
20295 value of window_min_height to avoid changing the value of a
20296 customizable variable. Rather explicitly check whether the
20297 height of the window that shall be splitted is at least as large
20298 as split_height_threshold.
20299 (Fwindow_full_width_p): New defun.
20300 (syms_of_window): Defsubr it.
20301
20302 * window.h: Add EXFUN for Fwindow_full_width_p.
20303
203042007-07-14 Jason Rumney <jasonr@gnu.org>
20305
20306 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20307
203082007-07-14 Richard Stallman <rms@gnu.org>
20309
20310 * eval.c (maybe_call_debugger): New function.
20311 (find_handler_clause): Use maybe_call_debugger.
20312 Call it when the handler says `debug'.
20313 Eliminate DEBUGGER_VALUE_PTR.
20314 (Fsignal): Eliminate debugger_value.
20315 (Qdebug): New variable.
20316 (syms_of_eval): Initialize it.
20317
203182007-07-14 Juanma Barranquero <lekktu@gmail.com>
20319
20320 * eval.c (Fprogn):
20321 * keyboard.c (Ftrack_mouse):
20322 * print.c (Fwith_output_to_temp_buffer):
20323 * window.c (Fsave_window_excursion): Doc fix.
20324
203252007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20326
20327 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20328
203292007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20330
20331 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20332 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20333 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20334 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20335 Remove unused encoding_carryover.
20336 * process.c: Adjust all functions accordingly.
20337
203382007-07-12 Richard Stallman <rms@gnu.org>
20339
20340 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20341
203422007-07-11 Jason Rumney <jasonr@gnu.org>
20343
20344 * makefile.w32-in (LIBS): Include OLE32.
20345
20346 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20347 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20348
203492007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20350
20351 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20352 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20353 from a Lisp_Object into a bare pointer.
20354 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20355 Adjust the code correspondingly.
20356
20357 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20358
20359 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20360 (term_show_mouse_face): Remove unused var `j'.
20361 (handle_one_term_event): Remove unused vars `i' and `j'.
20362 Don't cast return value of ttyname since it's not necessary.
20363
203642007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20365
20366 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20367 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20368
20369 * fns.c (map_char_table): Use an array of int for `indices' rather than
20370 an array of Lisp_Objects (which are only ever integers anyway).
20371 (Fmap_char_table): Update caller.
20372 * lisp.h: Update prototype.
20373 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20374 * fontset.c (Ffontset_info):
20375 * casetab.c (set_case_table): Update callers.
20376
20377 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20378
20379 * keymap.c (struct accessible_keymaps_data)
20380 (struct where_is_internal_data): New structures.
20381 (accessible_keymaps_1, where_is_internal_1): Use them to change
20382 interface to adhere to the one used by map_keymap.
20383 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20384 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20385
20386 * keymap.h (map_keymap_function_t): More informative prototype.
20387
203882007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20389
20390 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20391 (looking_at_1): Don't change search_regs and last_thing_searched
20392 if `inhibit-changing-match-data' is non-nil.
20393 (string_match_1, search_buffer, set_search_regs): Likewise.
20394 (syms_of_search): Add Lisp level definition for
20395 `inhibit-changing-match-data' and set it to nil.
20396 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20397 start and end of the match, instead of using values in search_regs.
20398
203992007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20400
20401 * minibuf.c (Fcompleting_read): New value `confirm-only'
20402 for `require-match'.
20403
204042007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20405
20406 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20407 part of the 2007-06-27 change to syms_of_fileio.
20408
204092007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20410
20411 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20412 Check WINDOWP before using XWINDOW. Consolidate return statements.
20413
204142007-06-27 Richard Stallman <rms@gnu.org>
20415
20416 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20417
204182007-06-27 Juanma Barranquero <lekktu@gmail.com>
20419
20420 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20421
204222007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20423
20424 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20425 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20426 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20427 (_free_internal, memalign): Use them.
20428 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20429 Initialize to PTHREAD_MUTEX_INITIALIZER.
20430 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20431 (morecore_nolock): Rename from morecore. All uses changed.
20432 Use only nolock versions of internal allocation functions.
20433 (_malloc_internal_nolock, _realloc_internal_nolock)
20434 (_free_internal_nolock): New functions created from
20435 _malloc_internal, _realloc_internal, and _free_internal.
20436 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20437 Copy hook value to automatic variable before its use.
20438 (memalign): Copy hook value to automatic variable before its use.
20439
204402007-06-26 Kenichi Handa <handa@m17n.org>
20441
20442 * coding.c (Ffind_operation_coding_system): Docstring improved.
20443 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20444
204452007-06-25 David Kastrup <dak@gnu.org>
20446
20447 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20448 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20449 cater for additional parameter.
20450
20451 * keymap.h: Adjust number of parameters to `current-active-maps'.
20452
20453 * doc.c (Fsubstitute_command_keys): Adjust call of
20454 `current-active-maps'.
20455
204562007-06-25 David Kastrup <dak@gnu.org>
20457
20458 * callint.c (Fcall_interactively): Make the parsing of interactive
20459 specs somewhat more readable.
20460
204612007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20462
20463 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20464 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20465 if extended background has already been filled.
20466
204672007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20468
20469 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20470 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20471
20472 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20473 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20474 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20475 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20476 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20477 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20478 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20479 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20480 Run timers during dialog popup.
20481 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20482
204832007-06-21 Jason Rumney <jasonr@gnu.org>
20484
20485 * image.c (convert_mono_to_color_image): Swap fore and background.
20486
204872007-06-20 Jason Rumney <jasonr@gnu.org>
20488
20489 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20490 (w32_free_bdf_font): Unmap memory not handle.
20491
204922007-06-20 Sam Steingold <sds@gnu.org>
20493
20494 * gmalloc.c (__morecore): Fix the declaration to comply with the
20495 definition.
20496
204972007-06-20 Juanma Barranquero <lekktu@gmail.com>
20498
20499 * w32term.c (w32_delete_display): Remove leftover declaration.
20500 (w32_define_cursor, w32_initialize): Make static.
20501
20502 * w32.c (_wsa_errlist): Fix typo in error message.
20503 (init_environment): Ignore any environment variable from the
20504 registry having a null value.
20505
205062007-06-20 Glenn Morris <rgm@gnu.org>
20507
20508 * Makefile.in (LIBGIF): Default to -lgif.
20509
205102007-06-17 Jason Rumney <jasonr@gnu.org>
20511
20512 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20513 unicode strings.
20514
205152007-06-16 Juanma Barranquero <lekktu@gmail.com>
20516
20517 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20518 Fix typo in docstring.
20519
205202007-06-16 Eli Zaretskii <eliz@gnu.org>
20521
20522 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20523 and their keybindings.
20524
205252007-06-15 Chong Yidong <cyd@stupidchicken.com>
20526
20527 * composite.c (update_compositions): Fix last fix.
20528
205292007-06-14 Jason Rumney <jasonr@gnu.org>
20530
20531 * w32.c (get_process_times_fn): New function pointer.
20532 (globals_of_w32): Intialize it if present in kernel32.dll.
20533 (w32_get_internal_run_time): New function.
20534
20535 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20536
205372007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20538
20539 * composite.c (update_compositions): Check the validness of
20540 compositions.
20541
205422007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20543
20544 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20545 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20546
20547 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20548 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20549
20550 * macgui.h (USE_MAC_TOOLBAR): New define.
20551
20552 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20553 Return immediately unless popup is activated.
20554
20555 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20556 background to scroll bar gap.
20557 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20558 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20559 scroll bars on frame edge. Check fringe background extension.
20560 Don't clear extended fringe background area.
20561 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20562 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20563 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20564 [USE_MAC_TOOLBAR]: New macros.
20565 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20566 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20567 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20568 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20569 [USE_MAC_TOOLBAR]: New functions.
20570 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20571 manually if previous repositioning has failed.
20572 (mac_handle_keyboard_event): Use precomputed event kind.
20573 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20574 as tool bar item click. Handle mouse movement over tool bar items.
20575
20576 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20577 toolbar_win_gravity.
20578 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20579 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20580 Add externs.
20581
20582 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20583 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20584
205852007-06-14 Chong Yidong <cyd@stupidchicken.com>
20586
20587 * image.c (search_image_cache): Remove unused variable.
20588
205892007-06-13 Chong Yidong <cyd@stupidchicken.com>
20590
20591 * xfns.c, xmenu.c: Link to xaw3d if available.
20592
205932007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20594
20595 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20596 frame_foreground and frame_background.
20597
20598 * image.c (lookup_image): Save frame foreground and background colors.
20599 (search_image_cache): Check if saved and current frame colors match.
20600
206012007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20602
20603 * regex.c (regex_compile): Remove the `regnum' counter.
20604 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20605
206062007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20607
20608 * term.c: Include intervals.h to declare Fget_text_property.
20609
206102007-06-10 Jason Rumney <jasonr@gnu.org>
20611
20612 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20613
206142007-06-08 Juanma Barranquero <lekktu@gmail.com>
20615
20616 * callint.c (Fcall_interactively):
20617 * editfns.c (Fdelete_and_extract_region):
20618 * fileio.c (Fread_file_name):
20619 * fns.c (Fmapconcat):
20620 * keyboard.c (cmd_error_internal):
20621 * keymap.c (Fkey_description):
20622 * lread.c (openp):
20623 * minibuf.c (read_minibuf):
20624 * search.c (wordify):
20625 * sunfns.c (sel_read):
20626 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20627 * xfns.c (x_default_scroll_bar_color_parameter):
20628 * xmenu.c (menu_help_callback):
20629 * xselect.c (Fx_get_atom_name):
20630 * xterm.c (x_term_init): Use empty_unibyte_string.
20631
206322007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20633
20634 * alloc.c (init_strings): Initialize canonical empty strings.
20635 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20636 canonical empty string when the requested size is 0.
20637
20638 * emacs.c (empty_unibyte_string): Rename from empty_string.
20639 (empty_multibyte_string): New canonical empty string.
20640 (syms_of_emacs): Don't initialize empty_string.
20641
20642 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20643 string, if appropriate.
20644 (empty_unibyte_string, empty_multibyte_string): New externs.
20645 (empty_string): Remove extern.
20646
20647 * lread.c (syms_of_lread): Use empty_unibyte_string.
20648
206492007-06-07 Jason Rumney <jasonr@gnu.org>
20650
20651 * s/ms-w32.h: Don't define HAVE_TZNAME.
20652
20653 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20654
206552007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20656
20657 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20658
20659 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20660 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20661
20662 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20663 Don't call next handler.
20664 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20665 Remove argument. Install handler to application.
20666 (set_frame_menubar): Don't change deep_p.
20667 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20668 FRAME_OUTER_TO_INNER_DIFF_Y.
20669 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20670 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20671 [HAVE_DIALOGS]: New macros.
20672 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20673 Use them.
20674 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20675
20676 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20677 init_service_handler. All callers changed. Return OSStatus value.
20678
20679 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20680 All callers changed so as not to call SetPortWindowPort.
20681 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20682 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20683 mac_draw_string_common.
20684 (mac_draw_image_string_qd): Likewise.
20685 (mac_draw_string_common): Use them. Add INLINE.
20686 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20687 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20688 GetGlobalMouse.
20689 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20690 and FRAME_OUTER_TO_INNER_DIFF_Y.
20691 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20692 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20693 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20694 repositioning window to mac_handle_window_event.
20695 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20696 saving window location to mac_handle_window_event
20697 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20698 (install_menu_target_item_handler): Remove argument in extern.
20699 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20700 Also accept command events.
20701 (do_keystroke): New function created from XTread_socket.
20702 (init_command_handler): Remove functions.
20703 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20704 and save window location by kEventWindowShowing and kEventWindowHiding
20705 handlers here. Don't call next handler for window state change and
20706 focus events.
20707 (mac_handle_application_event, mac_handle_keyboard_event)
20708 [TARGET_API_MAC_CARBON]: New functions.
20709 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20710 kEventWindowShowing and kEventWindowHiding events. Move installation
20711 of mouse, font, text input and menu target item handlers to
20712 install_application_handler.
20713 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20714 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20715 New function.
20716 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20717 Register it.
20718 (XTread_socket) [TARGET_API_MAC_CARBON]:
20719 Consolidate SendEventToEventTarget calls.
20720 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20721 Move application activation handler to mac_handle_application_event.
20722 Move keyboard handler to mac_handle_keyboard_event.
20723 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20724 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20725 init_command_handler. Call install_application_handler.
20726
20727 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20728 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20729
207302007-06-07 Glenn Morris <rgm@gnu.org>
20731
20732 * emacs.c (main): Use `emacs-copyright' in --version output.
20733
207342007-06-06 Chong Yidong <cyd@stupidchicken.com>
20735
20736 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20737
207382007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20739
20740 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20741
20742 * macgui.h: Replace WindowPtr with WindowRef.
20743
20744 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20745 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20746 Replace ControlHandle with ControlRef.
20747 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20748
20749 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20750 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20751 Replace ControlHandle with ControlRef.
20752 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20753 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20754
20755 * macterm.h (struct scroll_bar): Rename member control_handle_low
20756 and control_handle_high to control_ref_low and control_ref_high.
20757 All uses changed.
20758 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20759 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20760 respectively. All uses changed.
20761 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20762 (install_window_handler, remove_window_handler): Replace WindowPtr
20763 with WindowRef in externs.
20764
207652007-06-05 Juanma Barranquero <lekktu@gmail.com>
20766
20767 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20768
207692007-06-03 Nick Roberts <nickrob@snap.net.nz>
20770
20771 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20772
20773 * frame.c (Fmouse_position, Fmouse_pixel_position):
20774 Condition on HAVE_GPM too.
20775
20776 * term.c (term_mouse_highlight): Remove unused variables.
20777 (Fterm_open_connection): Set gpm_zerobased to 1.
20778 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20779 Use zero based co-ordinates.
20780 (handle_one_term_event): Report a drag as mouse movement too.
20781
20782 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20783
207842007-06-03 Chong Yidong <cyd@stupidchicken.com>
20785
20786 * image.c (search_image_cache): New function. Require background
20787 color match if background color is unspecified in the image spec.
20788 (uncache_image, lookup_image): Use it.
20789
207902007-06-01 Juanma Barranquero <lekktu@gmail.com>
20791
20792 * window.c (Fshrink_window): Reflow docstring.
20793
207942007-06-02 Chong Yidong <cyd@stupidchicken.com>
20795
20796 * Version 22.1 released.
20797
207982007-06-01 Richard Stallman <rms@gnu.org>
20799
20800 * xfns.c (x_encode_text): Add GCPRO.
20801
208022007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20803
20804 * xfns.c (x_set_name_internal): Save encoded name before
20805 x_encode_text in case string data is relocated.
20806
208072007-05-31 Richard Stallman <rms@gnu.org>
20808
20809 * buffer.c (syms_of_buffer): Doc fix.
20810
208112007-05-30 Nick Roberts <nickrob@snap.net.nz>
20812
20813 * sysdep.c (init_sys_modes): Add rather than replace with
20814 O_NONBLOCK.
20815
20816 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20817 term_mouse_moveto.
20818
20819 * termhooks.h (term_mouse_moveto): New extern.
20820
20821 * term.c (mouse_face_window): Rename...
20822 (Qmouse_face_window): ...to this.
20823 (term_show_mouse_face, term_clear_mouse_face)
20824 (term_mouse_highlight): Use Qmouse_face_window.
20825 (term_mouse_moveto): New function.
20826 (term_mouse_position): Make it work.
20827 (syms_of_term): Uncomment assignment to mouse_position_hook.
20828 Staticpro Qmouse_face_window.
20829
208302007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20831
20832 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20833 around current_column call.
20834
208352007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20836
20837 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20838 * xdisp.c (next_element_from_buffer):
20839 * window.c (delete_window):
20840 * term.c (term_mouse_highlight):
20841 * msdos.c (getdefdir):
20842 * macterm.c (mac_create_bitmap_from_bitmap_data)
20843 (init_font_name_table):
20844 * fns.c (Fsxhash):
20845 * data.c (Fmake_local_variable):
20846 * ccl.c (ccl_driver): Likewise.
20847
208482007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20849
20850 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20851 Call mac_wakeup_from_rne on window size change.
20852
208532007-05-25 Chong Yidong <cyd@stupidchicken.com>
20854
20855 * image.c (uncache_image): Fix typo.
20856
208572007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20858
20859 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20860
208612007-05-22 Richard Stallman <rms@gnu.org>
20862
20863 * xterm.c (x_connection_closed): Remove NO_RETURN.
20864
208652007-05-22 Martin Rudalics <rudalics@gmx.at>
20866
20867 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20868
208692007-05-21 Chong Yidong <cyd@stupidchicken.com>
20870
20871 * image.c (uncache_image): New function.
20872 (Fimage_refresh): New function.
20873
208742007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20875
20876 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20877
208782007-05-20 Nick Roberts <nickrob@snap.net.nz>
20879
20880 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20881 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20882
208832007-05-20 Nick Roberts <nickrob@snap.net.nz>
20884
20885 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20886 conditional on [HAVE_GPM_H].
20887
208882007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20889
20890 * syntax.c (skip_chars): Update syntax-table only after we checked that
20891 the new location is valid.
20892
208932007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20894
20895 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20896 mac_get_window_bounds.
20897
208982007-05-20 Nick Roberts <nickrob@snap.net.nz>
20899
20900 * Makefile.in (LIBGPM): Allow it to be set from configure.
20901 If set then link Emacs with it.
20902
20903 * config.in: Regenerate.
20904
20905 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20906 New externs.
20907
20908 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20909 Include gpm.h.
20910 (handle_one_term_event, term_gpm): New externs.
20911
20912 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20913 and allow it to be interrupted by SIGIO.
20914
20915 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20916 (wait_reading_process_output): Wait on gpm_fd too.
20917 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20918 (add_gpm_wait_descriptor_called_flag): New variable.
20919 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20920
20921 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20922 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20923 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20924 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20925 (make_lispy_event): Add case GPM_CLICK_EVENT.
20926 (read_avail_input): Handle mouse input.
20927
20928 * term.c (write_glyphs_with_face): New function.
20929 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20930 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20931 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20932 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20933 (last_mouse_x, last_mouse_y): New variables.
20934 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20935 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20936 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20937 (Fterm_close_connection): New functions.
20938 (term_init): Initialise mouse_face_window.
20939
209402007-05-19 Chong Yidong <cyd@stupidchicken.com>
20941
20942 * xdisp.c (redisplay_window): If first window line is a
20943 continuation line, recompute the new window start instead of
20944 recentering.
20945
209462007-05-18 Glenn Morris <rgm@gnu.org>
20947
20948 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20949 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20950
209512007-05-17 Glenn Morris <rgm@gnu.org>
20952
20953 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20954
209552007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20956
20957 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20958 dead key repeat and up events.
20959
209602007-05-14 Chong Yidong <cyd@stupidchicken.com>
20961
20962 * image.c (pbm_load): Check image size for monochrome pbm.
20963
209642007-05-13 Chong Yidong <cyd@stupidchicken.com>
20965
20966 * xterm.c (XTread_socket): Revert last change.
20967
209682007-05-12 Chong Yidong <cyd@stupidchicken.com>
20969
20970 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20971
20972 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20973
209742007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20975
20976 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20977 mixup (YAILOM).
20978
209792007-05-07 Andreas Schwab <schwab@suse.de>
20980
20981 * keymap.c (Flookup_key): Fix typo in last change.
20982
209832007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20984
20985 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20986 mapping for unibyte strings.
20987
209882007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20989
20990 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20991 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20992
209932007-04-29 Richard Stallman <rms@gnu.org>
20994
20995 * insdel.c (replace_range): For undo, record insertion first.
20996
209972007-04-29 Andreas Schwab <schwab@suse.de>
20998
20999 * lisp.h (VECSIZE): Use OFFSETOF.
21000
210012007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21002
21003 * xdisp.c (try_window_reusing_current_matrix): Fix number of
21004 disabled lines.
21005
210062007-04-28 Richard Stallman <rms@gnu.org>
21007
21008 * lread.c (read_escape): In a string, \s is always space.
21009
210102007-04-27 Jan Djärv <jan.h.d@swipnet.se>
21011
21012 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
21013
21014 * gtkutil.c (xg_update_menubar, create_menus): Create empty
21015 submenu for menu bar items.
21016
21017See ChangeLog.10 for earlier changes.
21018
21019;; Local Variables:
21020;; coding: utf-8
21021;; add-log-time-zone-rule: t
aac0c6e3
MR
21022;; End:
21023
76b6f707 21024 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
21025
21026 This file is part of GNU Emacs.
21027
21028 GNU Emacs is free software: you can redistribute it and/or modify
21029 it under the terms of the GNU General Public License as published by
21030 the Free Software Foundation, either version 3 of the License, or
21031 (at your option) any later version.
21032
21033 GNU Emacs is distributed in the hope that it will be useful,
21034 but WITHOUT ANY WARRANTY; without even the implied warranty of
21035 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21036 GNU General Public License for more details.
21037
21038 You should have received a copy of the GNU General Public License
21039 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21040
21041;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40