(struct xftfont_info): New member matrix.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2cc7b62f
AS
12009-12-09 Andreas Schwab <schwab@linux-m68k.org>
2
b87dd913
AS
3 * xsettings.c: Include "keyboard.h".
4
eba5eb94
AS
5 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6
2cc7b62f
AS
7 Fix implicit function declarations.
8 * cmds.c: Include "frame.h".
9 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
10 * frame.h: Move declaration of delete_frame outside of
11 HAVE_WINDOW_SYSTEM.
12
a4ef73c8
CY
132009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
14
15 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
16
17 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
18 GTK builds.
19
944a300c
AS
202009-12-07 Andreas Schwab <schwab@linux-m68k.org>
21
22 * unexelf.c (unexec): Don't search for .data twice.
23
022eef62
CY
242009-12-05 Chong Yidong <cyd@stupidchicken.com>
25
426ac949
CY
26 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
27 if push failed.
28 (handle_line_prefix): Set avoid_cursor_p here. Check return value
29 of push_display_prop (Bug#5000).
30
022eef62
CY
31 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
32 value of font_list_entities (Bug#5085).
33
be95bee9
JB
342009-12-04 Juanma Barranquero <lekktu@gmail.com>
35
36 Fix `string-to-number' to deal consistently with integers and floats.
37 * lread.c (isfloat_string): New argument ignore_trailing to accept all
38 trailing characters, not just whitespace.
39 (read1): Pass new arg 0 to keep old behavior.
40 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
41 trailing chars, as it is already done for integers. Doc fixes.
42 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
43
24c2d7ce
EZ
442009-12-04 Eli Zaretskii <eliz@gnu.org>
45
46 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>: Delete
47 unused enumeration value.
48
7e694795
EZ
492009-12-03 Eli Zaretskii <eliz@gnu.org>
50
51 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
52
84b31826
SM
532009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
54
55 * process.c (Fmake_network_process): Fix up the tests for
56 "connectionless socket", so they DTRT for seqpacket sockets as well.
57
f00c449b
SM
582009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
59
60 * process.c (Qseqpacket): New symbol.
61 (HAVE_SEQPACKET): New macro.
62 (Fmake_network_process): Accept new :type `seqpacket'.
63 (init_process): Add `seqpacket' feature when applicable.
64 (syms_of_process): Initialize Qseqpacket.
65
8096a0ff
YM
662009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
67
68 * font.c (font_load_for_lface, font_open_by_name): Don't store name
69 if entity is Qnil.
70
3e0de07f
SM
712009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
72
73 * print.c (print_preprocess): Preprocess the key_and_value table of
74 hashtables, even tho they're "hidden" (bug#5082).
75
abeafb2a
JD
762009-11-29 Jan Djärv <jan.h.d@swipnet.se>
77
78 * frame.c (frame_make_pointer_invisible)
79 (frame_make_pointer_visible): Declare f before statements.
80
4bf47195
EZ
812009-11-28 Eli Zaretskii <eliz@gnu.org>
82
83 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
84 omitted dependencies on lisp.h.
85
c525b3f2
JD
862009-11-27 Jan Djärv <jan.h.d@swipnet.se>
87
ece2d4ed
JD
88 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
89 is NULL.
90
91 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
92
93 * frame.c (frame_make_pointer_invisible)
3e0de07f 94 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
95 frame.
96
c525b3f2
JD
97 * search.c (simple_search): Remove warning by making *p const.
98
2f00e299
DN
992009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
100
101 * xdisp.c (power_letter): Remove duplicate const.
102
084b049b
JD
1032009-11-25 Jan Djärv <jan.h.d@swipnet.se>
104
a1fadc6f
JD
105 * term.c (delete_tty): Remove check for last terminal (bug#4970).
106
084b049b
JD
107 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
108 defaults (bug #5025).
109
28259cac
SM
1102009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
111
112 * insdel.c (adjust_markers_for_delete): Move it in the
113 right direction! (bug#4803)
114
e8e14166
YM
1152009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
116
117 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
118
119 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
120
86677b58
GM
1212009-11-24 Glenn Morris <rgm@gnu.org>
122
123 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
124
581e51e8
JD
1252009-11-23 Jan Djärv <jan.h.d@swipnet.se>
126
cfc86c7a
JD
127 * Makefile.in: Must create deps for ecrt0.o in its rule.
128
581e51e8
JD
129 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
130 because that is what Gtk+ font dialog understands.
131
132 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
133 of Fcopy_sequence.
134 (font_open_by_name): Put name given into QCname for font-object returned.
135
136 * frame.c (x_set_font): Save original font name as frame parameter
137 font-parameter.
138
139 * xsettings.c (set_default_xft_settings): New function.
140 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
141 is found.
142
8b264ecb
AS
1432009-11-22 Andreas Schwab <schwab@linux-m68k.org>
144
145 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
146 searching backwards through multibyte buffer.
147
872870b2
JD
1482009-11-21 Jan Djärv <jan.h.d@swipnet.se>
149
150 * xterm.c: #include xgselect.h.
151 (x_initialize): Call xgselect_initialize.
152
153 * xsettings.c (something_changedCB): C++ comments => C comments.
154 (init_gconf): Do not deal with any GLib file descriptors, xg_select
155 does that now.
156
157 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
158 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
159 (scroll_bar_button_cb): Remove.
160 (create_menus): C++ comments => C comments. Don't bind grab-notify
161 event.
162 (xg_create_scroll_bar): Don't bind button-press-event and
163 button-release-event.
164
165 * process.c: Include xgselect.h if defined (USE_GTK) ||
166 defined (HAVE_GCONF).
167 (wait_reading_process_output): Call xg_select for the same condition.
168
169 * xgselect.c (xg_select): New function to better integrate with
170 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
171
172 * xgselect.h: New file, declare xg_select, xgselect_initialize.
173
174 * Makefile.in (XOBJ): Add xgselect.o.
175
62a6e103
AS
1762009-11-21 Andreas Schwab <schwab@linux-m68k.org>
177
178 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
179 ignored second argument. All callers changed.
180 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
181 (RE_STRING_CHAR_AND_LENGTH): Likewise.
182 * xdisp.c (string_char_and_length): Likewise.
183
b0ca0f33
DN
1842009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
185
186 * xterm.c (x_new_font):
187 * print.c (print_object):
188 * cmds.c (Fself_insert_command): Move declarations before statements.
189
dd5a6279
CY
1902009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
191
192 * s/cygwin.h: Remove unneeded linker flags.
193
4a8e097d
JD
1942009-11-20 Jan Djärv <jan.h.d@swipnet.se>
195
0d1d0d26
JD
196 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
197
198 * xsettings.h: Declare xsettings_get_system_font.
199
200 * xsettings.c (xsettings_get_system_font): New function.
201 (init_gconf): No use initiating gconf unless we have Xft also.
202 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
203 HAVE_GCONF.
204
4a8e097d
JD
205 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
206 add a blank entry so it doesn't collapse into nothing.
207
8ab1650e
SM
2082009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
209
210 * lread.c (Funintern): Comment out last change.
211
82c602f0
RS
2122009-11-19 Richard Stallman <rms@gnu.org>
213
214 * lread.c (Funintern): Error if symbol is t or nil.
215
87e32266
SM
2162009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
217
218 * insdel.c (make_gap_larger): Don't make as many assumptions about the
219 representation of Lisp integers.
220 Reported by MJ Chan <mjchan.inbox@gmail.com>.
221
1b9ac145
AS
2222009-11-17 Andreas Schwab <schwab@linux-m68k.org>
223
224 * lisp.h: Remove declaration of Ffont_get_system_font.
225 * xfns.c: Move include of "xsettings.h".
226 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
227
dfb3c4c6
JD
2282009-11-17 Jan Djärv <jan.h.d@swipnet.se>
229
87e32266
SM
230 * xsettings.c (something_changedCB, Ffont_get_system_font):
231 Check use_system_font.
dfb3c4c6
JD
232 (syms_of_xsettings): DEFVAR font-use-system-font.
233
9370c1d8
AS
2342009-11-17 Andreas Schwab <schwab@linux-m68k.org>
235
25fe851a
AS
236 * xfns.c (x_default_font_parameter): Remove dead assignment.
237
9370c1d8
AS
238 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
239
637fa988
JD
2402009-11-17 Jan Djärv <jan.h.d@swipnet.se>
241
87e32266 242 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 243 not have FC_LCD_*. #define them if not there.
a6eb20d8 244
87e32266 245 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 246
637fa988
JD
247 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
248
249 * xterm.c (handle_one_xevent): Call xft_settings_event for
250 ClientMessage, PropertyNotify and DestroyNotify.
251 (x_term_init): If we have XFT, get DPI from Xft.dpi.
252 Call xsettings_initialize.
253
254 * xftfont.c (xftfont_fix_match): New function.
255 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
256 Call xftfont_fix_match after XftFontMatch.
257
258 * xfont.c (xfont_driver): Initialize all members.
259
87e32266
SM
260 * xfns.c (x_default_font_parameter):
261 Try font from Ffont_get_system_font.
637fa988
JD
262 Do not get font from x_default_parameter if we got one from
263 Ffont_get_system_font.
87e32266 264 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
265
266 * w32font.c (w32font_driver): Initialize all members.
267
268 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
269
270 * lisp.h: Declare syms_of_xsettings.
271
87e32266
SM
272 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
273 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
274
275 * ftfont.c (ftfont_filter_properties): New function.
276
277 * frame.c (x_set_font): Remove unused variable lval.
278
87e32266 279 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
280
281 * font.c (font_put_extra): Don't return if val is nil, it means
282 boolean option is off.
283 (font_parse_fcname): Collect all extra properties in extra_props
284 and call filter_properties for all drivers with extra_props and
285 font as parameter.
87e32266
SM
286 (font_open_entity): Do not use cache, it does not pick up new
287 fontconfig settings like hinting.
637fa988
JD
288 (font_load_for_lface): If spec had a name in it, store it in entity.
289
290 * emacs.c (main): Call syms_of_xsettings
291
292 * config.in: HAVE_GCONF is new.
293
294 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
295 xsettings.o is new.
296
5a942932
KH
2972009-11-17 Kenichi Handa <handa@m17n.org>
298
299 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
300 back to the default font in case that no suitable font is found.
301
b7c7a4d1
SM
3022009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
303
304 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
305 Suggested by Chad Brown <yandros@mit.edu>.
306 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
307
072f1e39
JD
3082009-11-16 Jan Djärv <jan.h.d@swipnet.se>
309
310 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
311
5d1e70a2
AS
3122009-11-14 Andreas Schwab <schwab@linux-m68k.org>
313
87e32266 314 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 315
a53cfbe5
JD
3162009-11-14 Jan Djärv <jan.h.d@swipnet.se>
317
473a99b7
JD
318 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
319 has a parent.
320
a53cfbe5
JD
321 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
322 dependency files in deps/. Include those files into Makefile.
323
324 * config.in: Generated (AUTO_DEPEND).
325
f04bb9b2
MA
3262009-11-13 Michael Albinus <michael.albinus@gmx.de>
327
b7c7a4d1 328 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
329 Vdbus_registered_functions_table, because it contains also
330 properties. Fix docstring.
b7c7a4d1 331 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 332
8f11f7ec
SM
3332009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
334
335 * alloc.c (mark_object): Don't reprocess marked strings.
336 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
337 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
338
8a605fe8
KH
3392009-11-13 Kenichi Handa <handa@m17n.org>
340
8f11f7ec 341 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
342 semantics of Vword_combining_categories.
343 (Vword_combining_categories): Describe the slight change of the
344 semantics.
345
241c4680
EZ
3462009-11-13 Eli Zaretskii <eliz@gnu.org>
347
348 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
349
350 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
351
5d58e44c
SM
3522009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
353
354 * xdisp.c (syms_of_xdisp): Fix typo in last change.
355
5e13f9d3
JB
3562009-11-12 Juanma Barranquero <lekktu@gmail.com>
357
358 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
359
cf54c754
DR
3602009-11-11 David Reitter <david.reitter@gmail.com>
361
362 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
363 variables to fix 2009-11-09 change.
364
a4ada374
DN
3652009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
366
91433552
DN
367 * process.c (ifflag_def): Make flag_sym constant.
368 (Fnetwork_interface_info): Use a constant pointer.
369 (ifflag_table):
370 * xfns.c (cursor_bits):
371 * xdisp.c (power_letter):
372 * termcap.c (speeds, esctab):
373 * sysdep.c (baud_convert):
374 * keyboard.c (lispy_accent_codes, modifier_names):
375 * image.c (xbm_format, xpm_format, pbm_format, png_format)
376 (jpeg_format, tiff_format, gif_format, svg_format)
377 (interlace_start, interlace_increment, gs_format):
378 * gtkutil.c (separator_names):
379 * fringe.c (swap_nibble):
380 * fns.c (base64_value_to_char, base64_char_to_value):
381 * fileio.c (make_temp_name_tbl):
382 * coding.c (suffixes): Make constant.
383
f4265f6c
DN
384 * frame.c (make_initial_frame):
385 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
386 build_string.
387 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
388
04420943
DN
389 * s/freebsd.h:
390 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
391
0a5d24ae
DN
392 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
393 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
394
a4ada374
DN
395 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
396 * xterm.c (syms_of_xterm):
397 * xfaces.c (syms_of_xfaces):
398 * xdisp.c (syms_of_xdisp):
399 * lread.c (syms_of_lread):
400 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
401 build_string.
91433552 402
a4ada374
DN
403 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
404
af98fc7f
SM
4052009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
406
8ab1650e 407 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 408
e90292a9
JD
4092009-11-10 Jan Djärv <jan.h.d@swipnet.se>
410
411 * keyboard.h: Declare timer_check.
412
413 * keyboard.c (timer_check_2): New function that does what the old
414 timer_check did.
415 (timer_check): Call timer_check_2 until -1 or a non-zero time is
416 returned, i.e. don't return -1 with timers pending.
417
418 * process.c: Remove extern declaration of timer_check.
419
420 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
421 even if timer_check returned -1.
422
af98fc7f
SM
423 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
424 xg_dialog_data.
e90292a9
JD
425 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
426 the event loop.
427 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
428 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
429 Destroy the dialog after xg_dialog_run.
430
045b83c0
SM
4312009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
432
433 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
434
1fb99a3a
JD
4352009-11-10 Jan Djärv <jan.h.d@swipnet.se>
436
437 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
438
04e452cb
JB
4392009-11-09 Juanma Barranquero <lekktu@gmail.com>
440
441 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
442
ef7417fd
SM
4432009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
444
445 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
446 w32menu.c, and nsmenu.m.
447 Simplify the obsolete case where position is nil.
448 (cleanup_popup_menu): New function, moved from nsmenu.m.
449 (struct skp): Remove slot `notreal'.
450 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
451 adjust callers.
452 (single_menu_item): Adjust call to parse_menu_item.
453 (syms_of_menu): Defsubr x-popup-menu.
454 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
455 (keymap_panes): Don't export any more.
456 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
457 (xmenu_show): Declare.
458 * keyboard.c (parse_menu_item): Remove arg `notreal'.
459 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
460 * keyboard.h (parse_menu_item): Update declaration.
461 * xmenu.c (Fx_popup_menu): Remove.
462 (syms_of_xmenu): Don't defsubr x-popup-menu.
463 * w32menu.c (Fx_popup_menu): Remove.
464 (syms_of_w32menu): Don't defsubr x-popup-menu.
465 * nsmenu.m (cleanup_popup_menu): Remove.
466 (ns_menu_show): Rename from ns_popup_menu and remove all the code
467 moved to menu.c's Fx_popup_menu.
468 (Fx_popup_menu): Remove.
469 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
470 menu_items (it's done in menu.c already).
471
424d6179
SM
4722009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
473
474 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
475 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
476
c0df13a6 4772009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
478
479 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 480 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
481 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
482 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
483
2de9f71c
SM
4842009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
485
486 Let integers use up 2 tags to give them one extra bit and thus double
487 their range.
488 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
489 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
490 New macros.
491 (enum Lisp_Type): Use them. Give explicit values.
492 (Lisp_Type_Limit): Remove.
493 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
494 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
495 Pay attention to USE_2_TAGS_FOR_INTS.
496 (INTEGERP): Use LISP_INT_TAG_P.
497 * fns.c (internal_equal): Simplify the default case.
498 (sxhash): Use case_Lisp_Int.
499 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
500 any more.
501 (Ftype_of): Use case_Lisp_Int.
502 (store_symval_forwarding): Take into account the fact that Ints can
503 now have more than one tag.
504 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
505 buffer_slot_type_mismatch):
506 * xfaces.c (face_attr_equal_p):
507 * print.c (print_object):
508 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
509 Use case_Lisp_Int.
510
323637a2
EZ
5112009-11-06 Eli Zaretskii <eliz@gnu.org>
512
7ac65b38
EZ
513 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
514
323637a2
EZ
515 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
516 warning.
517
e511451f
JD
5182009-11-06 Jan Djärv <jan.h.d@swipnet.se>
519
520 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
521
522 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
523
524 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
525 ButtonPressRelease and MotionNotify (bug#4870).
526
5e2327cf
DN
5272009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
528
5adc433e
DN
529 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
530
d67b4f80
DN
531 * xterm.c (syms_of_xterm):
532 * xselect.c (syms_of_xselect):
533 * xmenu.c (syms_of_xmenu):
534 * xfns.c (syms_of_xfns):
535 * xfaces.c (syms_of_xfaces):
536 * xdisp.c (syms_of_xdisp):
537 * window.c (syms_of_window):
538 * w32fns.c (syms_of_w32fns):
539 * undo.c (syms_of_undo):
540 * textprop.c (syms_of_textprop):
541 * terminal.c (syms_of_terminal):
542 * syntax.c (syms_of_syntax):
543 * sound.c (syms_of_sound):
544 * search.c (syms_of_search):
545 * print.c (syms_of_print):
546 * minibuf.c (syms_of_minibuf):
547 * macros.c (syms_of_macros):
548 * keymap.c (syms_of_keymap, initial_define_key)
549 (initial_define_lispy_key):
550 * keyboard.c (syms_of_keyboard):
551 * insdel.c (syms_of_insdel):
552 * image.c (syms_of_image):
553 * fringe.c (syms_of_fringe):
554 * frame.c (syms_of_frame):
555 * fontset.c (syms_of_fontset):
556 * fns.c (syms_of_fns):
557 * fns.c (syms_of_fns):
558 * fileio.c (syms_of_fileio):
559 * fileio.c (syms_of_fileio):
560 * eval.c (syms_of_eval):
561 * doc.c (syms_of_doc):
562 * dispnew.c (syms_of_display):
563 * dired.c (syms_of_dired):
564 * dbusbind.c (syms_of_dbusbind):
565 * data.c (syms_of_data):
566 * composite.c (syms_of_composite):
567 * coding.c (syms_of_coding):
568 * cmds.c (syms_of_cmds):
569 * charset.c (define_charset_internal, syms_of_character):
570 * ccl.c (syms_of_ccl):
571 * category.c (syms_of_category, init_category_once):
572 * casetab.c (syms_of_casetab):
573 * casefiddle.c (syms_of_casefiddle):
574 * callint.c (syms_of_callint):
575 * bytecode.c (syms_of_bytecode):
576 * buffer.c (keys_of_buffer, syms_of_buffer):
577 * alloc.c (syms_of_alloc):
578 * process.c (syms_of_process, init_process):
579 * lread.c (syms_of_lread, init_obarray):
580 * font.c (build_style_table):
581 * emacs.c (syms_of_emacs, main): Replace calls to intern with
582 intern_c_string, calls to make_pure_string with
583 make_pure_c_string. Use pure_cons instead of Fcons.
584
5e2327cf
DN
585 * process.c (socket_options): Make it const.
586 (set_socket_option, init_process): Use a const pointer.
587
588 * lread.c (intern_c_string): New function.
589 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
590 (defvar_int): Uset it. Make the name const char*.
591
592 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
593 (defvar_int): Update prototypes.
594 (DEFUN, EXFUN): Support for prototypes is now required.
595 (intern_c_string): New prototype.
596 (struct Lisp_Subr): Make symbol_name constant.
597
598 * font.c (struct table_entry): Remove unused member. Make NAMES
599 constant.
600 (weight_table, slant_table, width_table): Make constant.
601
602 * emacs.c (struct standard_args): Make name and longname constant.
603
604 * character.h (DEFSYM): Use intern_c_string.
605
a56eaaef
DN
6062009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
607
608 * alloc.c (make_pure_c_string): New function.
609
610 * eval.c (Fautoload): Purecopy all arguments.
611
f6a07420
KH
6122009-11-05 Kenichi Handa <handa@m17n.org>
613
614 * fileio.c (Finsert_file_contents): Be sure set coding-system of
615 the buffer in case of replace.
616
5d28d4b1
DN
6172009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
618
619 * puresize.h (BASE_PURESIZE): Increase to 1620000.
620
b349d111
SM
6212009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
622
d528b1ce
SM
623 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
624 when applicable (bug#4851).
625
b349d111
SM
626 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
627 (P_): Support for prototypes is now required.
628
c38eb027
CY
6292009-10-31 Chong Yidong <cyd@stupidchicken.com>
630
631 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
632 (Bug#4827).
633
0405f8d9
EZ
6342009-10-30 Eli Zaretskii <eliz@gnu.org>
635
d528b1ce 636 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 637
ca0a881a
DN
6382009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
639
640 * puresize.h (BASE_PURESIZE): Increase to 1470000.
641
d528b1ce
SM
642 * lread.c (Fload): Purecopy the file name when building
643 Vpreloaded_file_list.
ca0a881a 644
47e0e0e4
JR
6452009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
646
647 * w32fns.c (syms_of_w32fns): Change default value of
648 w32-scroll-lock-modifier to nil. (Bug#2827)
649
057bce6f
JB
6502009-10-26 Juanma Barranquero <lekktu@gmail.com>
651
782a943e 652 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 653
242bc74c
AS
6542009-10-26 Andreas Schwab <schwab@redhat.com>
655
656 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
657
522d013a
JB
6582009-10-26 Juanma Barranquero <lekktu@gmail.com>
659
660 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
661 For delta < 0, skip check that only makes sense when the mini-window
662 is going to be enlarged. (Bug#4534)
663
18060980
CY
6642009-10-25 Chong Yidong <cyd@stupidchicken.com>
665
666 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
667 string in menu maps (Bug#4471).
668
fec8f0fe
CY
6692009-10-24 Chong Yidong <cyd@stupidchicken.com>
670
671 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
672 FRAME_NS_VIEW on terminal frames (Bug#4765).
673
10d66ec0
AS
6742009-10-24 Andreas Schwab <schwab@linux-m68k.org>
675
1cae01f7
AS
676 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
677 DBUS_TYPE_UINTnn separately to get proper sign extension.
678
58a12889
AS
679 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
680 can properly handle unsigned types.
d528b1ce 681 (make_uid, make_gid): Remove.
58a12889 682
987c9327
AS
683 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
684 types again.
685
522d013a 686 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
687 (system_process_attributes): Likewise.
688
905a9ed3
DN
6892009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
690
691 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
692
693 * eval.c (Fautoload): Purecopy the filename. Simplify.
694
695 * category.c (Fdefine_category): Purecopy docstring.
696
a599b3e8
AS
6972009-10-23 Andreas Schwab <schwab@linux-m68k.org>
698
7b792fc9
AS
699 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
700
a599b3e8
AS
701 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
702
b35ac83e
CY
7032009-10-23 Chong Yidong <cyd@stupidchicken.com>
704
705 * window.c (Fwindow_edges, Fwindow_pixel_edges)
706 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
707 (Bug#4775).
708
e8903e00
SM
7092009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
710
711 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
712 (init_fileio_once):
713 * lisp.h (init_fileio_once): Remove.
714 * emacs.c (main): Don't call init_fileio_once.
715
8f43cbf3
DN
7162009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
717
718 * puresize.h (BASE_PURESIZE): Increase to 1430000.
719
26898943
AS
7202009-10-21 Andreas Schwab <schwab@linux-m68k.org>
721
722 * doprnt.c (doprnt): Fix overflow check.
723
5c646d5a
JD
7242009-10-21 Jan Djärv <jan.h.d@swipnet.se>
725
3132a7ea
JD
726 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
727
5c646d5a
JD
728 * xterm.h (x_wait_for_event): Declare it.
729
730 * xterm.c (pending_event_wait): New variable.
731 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
732 see pending_event_wait.eventtype.
733 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
734 (x_new_font): Call change_frame_size with new rows/columns before we
735 try to resize the frame.
5c646d5a 736 (x_wait_for_event): New function.
d528b1ce
SM
737 (x_set_window_size_1): Don't change gravity unless change_gravity
738 is set.
5c646d5a
JD
739 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
740 don't change frame size, instead wait for the ConfigureNotify.
741 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
742 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
743 (x_initialize): Initialize pending_event_wait.
744
745 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
746 size.
747
748 * widget.c (EmacsFrameSetValues): Add comment.
749 (EmacsFrameSetCharSize): Just call x_set_window_size.
750
751 * gtkutil.c (xg_frame_set_char_size): Flush events and call
752 x_wait_for_event.
d528b1ce 753 (flush_and_sync): Remove again.
5c646d5a
JD
754 (xg_get_font_name): Suggest monospace if no previous font is known.
755
e9c1637d
SM
7562009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
757
758 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 759 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 760
5a72cccb
YM
7612009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
762
763 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
764 processing pending events when event is filtered for input method.
ab04798f 765 (Bug#3681)
5a72cccb 766
2629aa37
JB
7672009-10-20 Juanma Barranquero <lekktu@gmail.com>
768
769 * fns.c: Add #endif accidentally removed in previous change.
770
c3417a74
DN
7712009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
772
773 * fns.c: Remove code for unsupported system: MAC_OS.
774 * image.c: Likewise. Include setjmp.h.
775
9685cef2
JD
7762009-10-19 Jan Djärv <jan.h.d@swipnet.se>
777
778 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
779 pixel -1 (bug #4742).
780
d7306fe6
DN
7812009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
782
019d2c4c
DN
783 * process.c (create_pty): Remove conditionals for no longer
784 supported systems: UNIPLUS and RTU.
785
ee6bacd4
DN
786 * xterm.c:
787 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
788
d7306fe6
DN
789 * alloc.c: Do not define struct catchtag.
790 * eval.c: Move struct catchtag definition ...
791 * lisp.h: ... here.
792
793 * image.c: Move png.h #include earlier to avoid warnings.
794
795 * xterm.c:
796 * xsmfns.c:
797 * xselect.c:
798 * xrdb.c:
799 * xmenu.c:
800 * xftfont.c:
801 * xfont.c:
802 * xfns.c:
803 * xfaces.c:
804 * xdisp.c:
805 * window.c:
806 * widget.c:
807 * w32xfns.c:
808 * w32uniscribe.c:
809 * w32term.c:
810 * w32select.c:
811 * w32reg.c:
812 * w32proc.c:
813 * w32menu.c:
814 * w32inevt.c:
815 * w32heap.c:
816 * w32font.c:
817 * w32fns.c:
818 * w32console.c:
819 * w32.c:
820 * w16select.c:
821 * vm-limit.c:
822 * unexsol.c:
823 * unexec.c:
824 * unexcw.c:
825 * unexaix.c:
826 * undo.c:
827 * tparam.c:
828 * textprop.c:
829 * terminfo.c:
830 * terminal.c:
831 * termcap.c:
832 * term.c:
833 * syntax.c:
834 * sound.c:
835 * sheap.c:
836 * search.c:
837 * scroll.c:
838 * region-cache.c:
839 * regex.c:
840 * ralloc.c:
841 * process.c:
842 * print.c:
b024548b
DN
843 * nsterm.m:
844 * nsselect.m:
845 * nsmenu.m:
846 * nsimage.m:
847 * nsfont.m:
848 * nsfns.m:
d7306fe6
DN
849 * msdos.c:
850 * minibuf.c:
851 * menu.c:
852 * marker.c:
853 * macros.c:
854 * keymap.c:
855 * keyboard.c:
856 * intervals.c:
857 * insdel.c:
858 * indent.c:
859 * gtkutil.c:
860 * ftxfont.c:
861 * ftfont.c:
862 * fringe.c:
863 * frame.c:
864 * fontset.c:
865 * font.c:
866 * fns.c:
867 * floatfns.c:
868 * filelock.c:
869 * fileio.c:
870 * emacs.c:
871 * editfns.c:
872 * dosfns.c:
873 * doprnt.c:
874 * doc.c:
875 * dispnew.c:
876 * dired.c:
877 * dbusbind.c:
878 * data.c:
879 * composite.c:
880 * coding.c:
881 * cmds.c:
882 * cm.c:
883 * chartab.c:
884 * charset.c:
885 * character.c:
886 * ccl.c:
887 * category.c:
888 * casetab.c:
889 * casefiddle.c:
890 * callproc.c:
891 * callint.c:
892 * bytecode.c:
893 * buffer.c:
894 * atimer.c: Include setjmp.h. (Bug#4643)
895
fd5f21e6
SM
8962009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
897
4c0354d7
SM
898 Remove leftover table unibyte_to_multibyte_table.
899 * character.c (unibyte_to_multibyte_table): Remove.
900 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
901 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
902 * character.h (UNIBYTE_TO_CHAR): New macro.
903 (MAKE_CHAR_MULTIBYTE): Use it.
904 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
905 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
906 (message_dolog, set_message_1):
907 * search.c (Freplace_match):
908 * editfns.c (Fcompare_buffer_substrings):
909 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
910 (concat):
911 * insdel.c (copy_text, count_size_as_multibyte):
912 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
913 * term.c (produce_glyphs):
914 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
915 * regex.c (RE_CHAR_TO_MULTIBYTE):
916 * cmds.c (internal_self_insert):
917 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
918
fd5f21e6
SM
919 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
920
4418646e
DN
9212009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
922
923 * puresize.h (BASE_PURESIZE): Increase to 1310000.
924
35f5c1d2
JB
9252009-10-16 Juanma Barranquero <lekktu@gmail.com>
926
927 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
928
a0cd8f6b
AR
9292009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
930
931 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
932 still needed under Tiger.
933
934 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
935
936 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
937 __Apple__.
938
939 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
940
01a8d3fa
KH
9412009-10-15 Kenichi Handa <handa@m17n.org>
942
943 * print.c (print_object): Escape a symbol like "2E10" too.
944
bf6c75c9 9452009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
946
947 Cleanups and changes for 64-bit compile under Snow Leopard.
948 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
949
950 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
951
c5959062 952 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
953 (ns_findfonts, nsfont_list_family): Use long format in printf, and
954 cast argument.
955 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 956 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
957
958 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
959
960 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
961 where appropriate.
962
963 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
964 where appropriate.
6e4780c5
JB
965 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
966 Use stringWithUTF8String.
bf6c75c9
AR
967 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
968
6e4780c5
JB
969 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
970 Add formal protocol mention to inheritance.
bf6c75c9
AR
971 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
972
6e4780c5
JB
973 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
974 Fix printf format.
bf6c75c9
AR
975 (ns_query_color): Use CGFloat where appropriate.
976 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
977 (EmacsScroller-mouseDown:) Use long format in printf, and cast
978 argument.
979
3d87f118
AR
980 * config.in (NS_HAVE_NSINTEGER): Drop.
981
a95c8102
AR
982 * dbusbind.c (dbus-method-return-internal)
983 (dbus-method-error-internal): Use long format in printf, and cast
984 argument.
985
986 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
987 in printf, and cast argument.
988
6873acca 989 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
990 cast argument.
991
9ec6f100
GM
9922009-10-11 Glenn Morris <rgm@gnu.org>
993
994 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
995
5be883cd
JD
9962009-10-08 Jan Djärv <jan.h.d@swipnet.se>
997
998 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
999 menu bar with a small width so it doesn't enlarge the frame.
1000
d7a39b51
JB
10012009-10-08 Juanma Barranquero <lekktu@gmail.com>
1002
1003 * fontset.c (Fset_fontset_font): Fix typos in error messages.
1004
0c2b6f8e
GM
10052009-10-06 Glenn Morris <rgm@gnu.org>
1006
1007 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
1008 SOME_MACHINE_LISP (this enters indirectly via DOC).
1009
e02131a2
EZ
10102009-10-05 Eli Zaretskii <eliz@gnu.org>
1011
1012 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
1013
b4744254
EZ
10142009-10-04 Eli Zaretskii <eliz@gnu.org>
1015
1016 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
1017 Doc fix.
1018
dbf64827
JB
10192009-10-03 Martin Rudalics <rudalics@gmx.at>
1020
1021 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
1022
e9a0aef8
MA
10232009-10-02 Michael Albinus <michael.albinus@gmx.de>
1024
d528b1ce 1025 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
1026 used anymore outside fileio.c.
1027
1028 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
1029
64eb2b56
JB
10302009-10-01 Juanma Barranquero <lekktu@gmail.com>
1031
1032 * lisp.h (Qdelete_directory_internal):
1033 Declare, instead of Qdelete_directory.
1034
1035 * w32fns.c (Fsystem_move_file_to_trash): Use it.
1036
9d28c33e
SM
10372009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
1038
1039 * eval.c (Fcalled_interactively_p): Add `kind' argument.
1040
9d8f3bd9
MA
10412009-10-01 Michael Albinus <michael.albinus@gmx.de>
1042
9d28c33e 1043 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
1044 Fdelete_directory. It is not a command anymore. It has no file
1045 name handler.
1046
9694740b
SM
10472009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
1048
1049 * xdisp.c (get_next_display_element): Use an enum in last change.
1050
748e162f
KH
10512009-09-28 Kenichi Handa <handa@m17n.org>
1052
9694740b 1053 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
1054 unibyte_display_via_language_environment in handling
1055 Vnobreak_char_display.
1056
17efd58d
AR
10572009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
1058
1059 * nsterm.h (ns_app_name): New extern variable.
1060
1061 * nsterm.m (ns_app_name): New variable.
1062 (ns_term_init): Set and use it.
1063 (ns_term_shutdown): Use it.
1064
1065 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
1066 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
1067
1068 * nsfns.m (ns_set_name_iconic, ns_set_name)
1069 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
1070 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
1071
9694740b
SM
1072 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
1073 Remove double-casting in client_data comparison.
31c2d412 1074
3208cb35
YM
10752009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1076
1077 * keyboard.c (make_lispy_event): Remember last wheel direction.
1078 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
1079
b7d552d6
GM
10802009-09-26 Glenn Morris <rgm@gnu.org>
1081
1082 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
1083 internal.elc. Add term/pc-win.elc.
1084 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
1085 term/x-win.elc.
1086 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
1087 term/w32-win.elc.
1088 (NS_SUPPORT): New.
1089 (lisp): Add NS_SUPPORT.
1090 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
1091
4ff670a8
DR
10922009-09-25 David Reitter <david.reitter@gmail.com>
1093
1094 * nsmenu.m (EmacsMenu-clear): Recognize application menu
1095 on Mac OS X 10.6+ (bug#4513).
1096
feabfb6c
JB
10972009-09-24 Juanma Barranquero <lekktu@gmail.com>
1098
1099 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
1100 some parts of Emacs code (like font selection) don't grok them.
1101 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 1102
de59072a
AS
11032009-09-24 Andreas Schwab <schwab@redhat.com>
1104
1105 * coding.c (decode_coding_iso_2022): Fix operator precedence.
1106
a489517b
JB
11072009-09-24 Juanma Barranquero <lekktu@gmail.com>
1108
1109 * dired.c (Fdirectory_files): Fix typo in docstring.
1110
0592970c
AR
11112009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1112
1113 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
1114 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
1115 (EmacsScroller-setPosition:portion:whole:): Remove -display call
1116 under GNUstep.
1117 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
1118
1119 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
1120 glyph advancement.
1121
48e8a88b
AR
11222009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1123
1124 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 1125 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
1126
1127 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
1128 deleted (bug #4492).
1129
e14f0a78
AR
1130 * nsfont.m (Vns_reg_to_script): New lisp variable.
1131 (syms_of_nsfont): Declare it.
1132 (ns_registry_to_script): New function.
1133 (ns_get_req_script): Call it.
1134 (ns_findfonts): Don't give up on non-unicode registry.
1135
1136 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
1137
5b650faa
SM
11382009-09-20 Tom Tromey <tromey@redhat.com>
1139
1140 * eval.c (find_handler_clause): Make stack-trace-on-error work in
1141 batch mode (bug#4228).
1142
a489517b 11432009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
1144
1145 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 1146 carefully. (Bug #4339)
0bae4e09 1147
fcfe06f3
CY
11482009-09-18 Chong Yidong <cyd@stupidchicken.com>
1149
d798ba87 1150 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 1151
31642728
AR
11522009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1153
1154 * emacs.c (inhibit_x_resources): Update doc string for NS.
1155 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 1156 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
1157
1158 * nsterm.h (ns_no_defaults): Remove.
1159
1160 * nsterm.m (ns_no_defaults): Remove.
1161 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
1162 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
1163 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
1164 don't update the NSWindow itself.
1165 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 1166 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
1167
1168 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
1169 ns_use_qd_smoothing.
1170
1171 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
1172 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 1173 (x-close-connection): Drop PSFlush() under OS X.
a489517b 1174 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 1175
8686ac71
JB
11762009-09-17 Juanma Barranquero <lekktu@gmail.com>
1177
1178 * emacs.c (inhibit_x_resources): New variable.
1179 (main) [HAVE_NS]: Don't process --quick command line option.
1180 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
1181
1182 * lisp.h (inhibit_x_resources): Declare it extern.
1183
1184 * w32reg.c (x_get_string_resource):
1185 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
1186
e227ba05
EZ
11872009-09-17 Eli Zaretskii <eliz@gnu.org>
1188
362654a6
JB
1189 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
1190 Add lisp/term/internal.elc.
e227ba05 1191
742d40e8
SM
11922009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
1193
1194 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
1195 (bug#4461).
1196
005bd5a2
DN
11972009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
1198
1199 * puresize.h (BASE_PURESIZE): Increase to 1290000.
1200
1201 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
1202 (OBJECTS_MACHINE): Remove, unused.
1203
f9af9719
SM
12042009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
1205
1206 * frame.c (x_get_resource_string): Remove unused.
1207
0307c7d2
JD
12082009-09-15 Jan Djärv <jan.h.d@swipnet.se>
1209
1210 * xterm.c (x_new_font): Call change_frame_size before calling
1211 x_set_window_size, in case frame size won't change.
1212
1213 * frame.c (x_set_font): Remove dead code.
1214
428b13d6
SM
12152009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
1216
1217 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
1218
5766c380
SM
12192009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1220
1221 * lread.c (Fload): Don't output a message after loading an obsolete
1222 package any more (done in Lisp now).
1223
2fd0161b
CY
12242009-09-12 Chong Yidong <cyd@stupidchicken.com>
1225
1226 * fns.c (syms_of_fns): Doc fix (Bug#4227).
1227
bc5e75b6
SM
12282009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
1229
1230 * keymap.c (Fwhere_is_internal): Use nconc2.
1231
c31c985e
AM
12322009-09-11 Alan Mackenzie <acm@muc.de>
1233
1234 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
1235 batch mode.
1236
78012bd2
AS
12372009-09-11 Andreas Schwab <schwab@linux-m68k.org>
1238
1239 * xdisp.c (display_mode_element): Detect cycles.
1240
9d889332
SM
12412009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1242
1243 * keymap.c (where_is_internal): Don't erroneously return nil right after
1244 filling the cache.
1245 (where_is_internal_1): Fix up typo.
1246
7ab5d780
GM
12472009-09-11 Glenn Morris <rgm@gnu.org>
1248
1249 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
1250 share a common doc-string.
1251
5238a749
SM
12522009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
1253
66d77eda
SM
1254 * keymap.c (get_keymap): Return the actual keymap symbol rather than
1255 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
1256
5238a749
SM
1257 * keymap.c (QCadvertised_binding): New constant.
1258 (syms_of_keymap): Initialize it.
1259 (Fwhere_is_internal): Try and use bindings from :advertised-binding
1260 if applicable.
1261
19f48442
SM
12622009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
1263
50d4ba39
SM
1264 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
1265 (parse_menu_item): Streamline since bindings are recomputed all the
1266 time anyway. Don't bother checking Vdefine_key_rebound_commands any
1267 more and don't support lmenu's menu-alias any more either.
1268
a88a5372
SM
1269 * keymap.c (where_is_internal_data): Make noindirect a boolean.
1270 (where_is_internal): Strip it down to only traverse the keymaps.
1271 Move the cache handling from Fwhere_is_internal to here.
1272 (Fwhere_is_internal): Move the handling of remapping and the choice of
1273 the best binding from where_is_internal to here.
1274 Unify the cached/noncached paths, so remapping is also handled
1275 correctly when the cache is used, and so the cache can be used to
1276 speed up remap-handling when applicable.
1277 Give preference to non-remapped bindings.
1278 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
1279 non-remapped bindings.
1280 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
1281 command remapping.
1282
19f48442
SM
1283 * xdisp.c (display_mode_element): Move list length limit from 50 to
1284 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
1285
599498c3 12862009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
1287
1288 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
1289
f9b7b5ac
SM
12902009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
1291
a53af587
JB
1292 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
1293 (Bug#4334)
1294
f9b7b5ac
SM
1295 * keymap.c (where_is_internal): Filter out shadowed remappings.
1296 Assume that where_is_internal returns unshadowed bindings to simplify
1297 the code and get rid of the gotos. Use ASIZE.
1298
04f4b72d
JD
12992009-09-04 Jan Djärv <jan.h.d@swipnet.se>
1300
4da146f2
JD
1301 * xterm.c (x_focus_changed): If we get a focusout and pointer
1302 is invisible, make it visible.
1303
04f4b72d
JD
1304 * xterm.h: Remove condition for declaration of
1305 x_*_window_to_frame.
1306
7cef7ce3
SM
13072009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
1308
1309 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
1310 initial terminal as well.
1311
a54fa5b7
JD
13122009-09-02 Jan Djärv <jan.h.d@swipnet.se>
1313
1314 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 1315 x_menubar_window_to_frame.
a54fa5b7
JD
1316
1317 * xterm.c: Remove declarations also in xterm.h
1318 (XTmouse_position): Do not return valid positions
1319 for clicks in the menubar and the toolbar for Gtk+.
1320
1321 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
1322 if the widget for the event has the same top level as a frame,
1323 return the frame.
1324 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
1325 internal windows, bug #4122.
1326 (x_non_menubar_window_to_frame): Remove.
1327
5a021dd0
GM
13282009-09-02 Glenn Morris <rgm@gnu.org>
1329
1330 * buffer.c (default-major-mode): Move most of the doc from here...
1331 (major-mode): ... to here.
1332
548fe2f3
NR
13332009-08-30 Nick Roberts <nickrob@snap.net.nz>
1334
1335 * process.c (wait_reading_process_output): Keep the descriptor
1336 when pty is used by a non-child process, e.g., in I/O buffer of
1337 GDB this allows inferior to be restarted.
1338
e0840eef
EZ
13392009-08-29 Eli Zaretskii <eliz@gnu.org>
1340
1341 * xdisp.c (redisplay_internal): Remove redundant test and collapse
1342 both branches into one.
1343
82e98df4
SM
13442009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1345
1346 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
1347 (main): Use enable-multibyte-characters rather than
1348 default-enable-multibyte-characters. Output a warning message when
1349 running a unibyte session.
1350
890617cb
YM
13512009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1352
1353 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
1354 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
1355 (copy_data_segment): Also copy __program_vars section.
1356 (copy_dyld_info) [LC_DYLD_INFO]: New function.
1357 (dump_it) [LC_DYLD_INFO]: Use it.
1358
1359 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
1360
e7adeadc
EZ
13612009-08-28 Eli Zaretskii <eliz@gnu.org>
1362
1363 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
1364 $(SRC)/buildobj.h.
1365 (buildobj.h): Renamed from $(SRC)/buildobj.h.
1366 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
1367 $(SRC)/buildobj.h.
1368 (clean): Add buildobj.h.
1369
3ed8bbdc
TZ
13702009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
1371
1372 * print.c (print_object): Set escapeflag to 1 when printing
1373 hashtable keys and values.
1374
155a6764
SM
13752009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
1376
1377 * lread.c (read_integer): Use doubles (and potentially return a float
1378 number) as we do in string-to-number.
1379 (read1): Use strtol to read integers, signal errors on strtol's
1380 overflow and use floats if strtol's output is too large for
1381 Elisp integers.
1382
877610de
EZ
13832009-08-27 Eli Zaretskii <eliz@gnu.org>
1384
1385 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
1386 (make-buildobj-SH): Fix last change.
1387 (SRC): Move to before where it's first used.
1388
ef73e7be
KH
13892009-08-27 Kenichi Handa <handa@m17n.org>
1390
550c8289
KH
1391 * process.c (send_process): Use encode_coding_object instead of
1392 encode_coding_string to perform eol-conversion even if the string
1393 is unibyte.
1394
60afa08d
KH
1395 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
1396 character.
1397
ef73e7be 1398 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 1399 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 1400
7b3a82d7
DN
14012009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
1402
5654bf63
DN
1403 * callproc.c (Fcall_process): Remove always true #if.
1404
7b3a82d7
DN
1405 * lisp.h: Replace #if 0 code for checking with text pointing to
1406 the --enable-checking configure flag.
1407
1408 * emacs.c (main): Mention the --enable-profiling configure flag
1409 instead of using CFLAGS.
1410
878bde49
KR
14112009-08-26 Ken Raeburn <raeburn@raeburn.org>
1412
1413 * Makefile.in (buildobj.h): New target.
1414 (doc.o): Depend on it.
1415 (temacs${EXEEXT}): Don't generate buildobj.lst.
1416 (mostlyclean): Delete buildobj.h, not buildobj.lst.
1417 * makefile.w32-in ($(SRC)/buildobj.h): New target.
1418 ($(BLD)/doc.$(O)): Depend on it.
1419 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
1420 provided by Eli Zaretskii.)
1421 ($(TEMACS)): Don't generate buildobj.lst.
1422 * doc.c: Include buildobj.h.
1423 (buildobj): New static variable.
1424 (Fsnarf_documentation): Use it, instead of opening and reading
1425 buildobj.lst.
1426
1574224c
MA
14272009-08-25 Michael Albinus <michael.albinus@gmx.de>
1428
1429 * dbusbind.c (Fdbus_call_method)
1430 (Fdbus_call_method_asynchronously): Use English numeric format for
1431 timeout values in doc string.
1432
d9da2f45
KH
14332009-08-25 Kenichi Handa <handa@m17n.org>
1434
ef73e7be
KH
1435 * alloc.c (mark_char_table): New function.
1436 (mark_object): Use mark_char_table for a char-table.
1437
d9da2f45
KH
1438 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
1439 (CHAR_TABLE_REF): Use it.
1440
c8edcc01
KR
14412009-08-23 Ken Raeburn <raeburn@raeburn.org>
1442
1443 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
1444 before invoking the newly build emacs to check for load-path
1445 shadowing.
1446
7763401b
GM
14472009-08-22 Glenn Morris <rgm@gnu.org>
1448
1449 * Makefile.in (bootstrap_exe): New variable.
1450 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
1451 Use ${bootstrap_exe}.
1452
729eadda
EZ
14532009-08-22 Eli Zaretskii <eliz@gnu.org>
1454
1455 * coding.h (encode_coding_string): Don't encode unibyte strings.
1456 (Bug#4047)
1457
eb4c6ace
MA
14582009-08-22 Michael Albinus <michael.albinus@gmx.de>
1459
1460 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
1461
1462 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
1463 intended as hotfix only.
1464 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
1465
36e34d1b
AR
14662009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
1467
1468 * nsterm.m (ns_get_color): Update documentation properly for last
1469 change, and clean up loose ends in the code left by it. Fix
1470 longstanding bug with 16-bit hex parsing, and add support for
1471 yet another X11 format (rgb:r/g/b) for compatibility.
1472 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
1473 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
1474
f983eb8a
SM
14752009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
1476
1477 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
1478
3f56d3c6
MA
14792009-08-20 Michael Albinus <michael.albinus@gmx.de>
1480
1481 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
1482 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
1483 (xd_initialize, xd_pending_messages): Check, whether
1484 $DBUS_SESSION_BUS_ADDRESS is set.
1485
fb641d68
YM
14862009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1487
1488 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
1489
1490 * nsterm.m (ns_get_color): Remove incompatible color formats again.
1491
cf59a374
GM
14922009-08-20 Glenn Morris <rgm@gnu.org>
1493
1494 * emacs.c (system-type): Doc fix.
1495
1373f3be
SM
14962009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
1497
1498 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
1499 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
1500
058ed861
MA
15012009-08-18 Michael Albinus <michael.albinus@gmx.de>
1502
1373f3be
SM
1503 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
1504 New functions.
058ed861
MA
1505 (xd_initialize): Revert change from 2009-08-16.
1506
563a866e 15072009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
1508
1509 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 1510 font-group vector, return nil.
5fc05db0 1511
e42bdf01
CY
15122009-08-17 Chong Yidong <cyd@stupidchicken.com>
1513
1514 * process.c (status_notify): Don't perform redisplay.
1515 (Fdelete_process, list_processes_1, process_send_signal):
1516 Expliticly perform redisplay.
1517 (wait_reading_process_output): Always check process status, but
1518 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
1519
4230ab74
KR
15202009-08-17 Ken Raeburn <raeburn@raeburn.org>
1521
1373f3be 1522 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
1523 (XFLOAT_INIT): New macro for storing a float value.
1524 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
1525 * fns.c (sxhash): Copy out the value of a float in order to
1526 examine its bytes.
1527 * dbusbind.c (xd_append_arg): Likewise.
1528
4230ab74
KR
1529 * emacs.c (main): Don't call syms_of_data twice.
1530
a0645cdd
MA
15312009-08-16 Michael Albinus <michael.albinus@gmx.de>
1532
1533 * dbusbind.c (xd_initialize): Add connection file descriptor to
1534 input_wait_mask, in order to let select() detect, whether a new
1535 message has been arrived.
ca4f31ea 1536 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 1537
485db0ba
MA
15382009-08-15 Michael Albinus <michael.albinus@gmx.de>
1539
1373f3be
SM
1540 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
1541 New functions.
485db0ba
MA
1542
1543 * lisp.h (xd_pending_messages): Declare.
1544
1545 * keyboard.c (readable_events): Call xd_pending_messages.
1546
b5b98ff4
CY
15472009-08-15 Chong Yidong <cyd@stupidchicken.com>
1548
1373f3be 1549 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 1550
f8354c6e
CY
1551 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
1552
b5b98ff4
CY
1553 * buffer.c (set_buffer_internal_1)
1554 (swap_out_buffer_local_variables): Check for unbound local
1555 variables (Bug#4138).
1556
8b9fc636
EZ
15572009-08-14 Eli Zaretskii <eliz@gnu.org>
1558
1559 * process.c (create_pty): Fix last change.
1560
ce959360
CY
15612009-08-13 Chong Yidong <cyd@stupidchicken.com>
1562
1563 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
1564 (xbm_load_image): Caller changed.
64b807c9 1565 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 1566
c7baf7e9
NR
15672009-08-13 Nick Roberts <nickrob@snap.net.nz>
1568
1569 * process.c (create_pty): New function.
1570 (Fstart_process): Use it to allow Emacs to just associate a pty
1571 with the buffer. See associated change in gdb-mi.el.
1572 (list_processes_1): Deal with no program name.
1573 (start_process_unwind): Use pid == -2 to mean no process.
1574
1ac9108a
SM
15752009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
1576
1577 * cmds.c (nonundocount): New global variable.
1578 (keys_of_cmds): Initialize it.
1579 (Fself_insert_command): Use it to combine upto 20 sequential chars
1580 into a single undo entry, just like the Qself_insert_command code in
1581 keyboard.c does.
1582 Call frame_make_pointer_invisible, also like the Qself_insert_command
1583 code in keyboard.c does.
1584 * keyboard.c (command_loop_1): Use the new global nonundocount rather
1585 than its own local replacement for it.
1586
e267324c
KR
15872009-08-10 Ken Raeburn <raeburn@raeburn.org>
1588
1ac9108a 1589 * fns.c (concat): Don't re-set string length to its current value.
77437343 1590
1ac9108a
SM
1591 * coding.h (decode_coding_string, encode_coding_string):
1592 Use SBYTES macro.
f0bed503 1593
1ac9108a 1594 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
1595 (doprnt): Merge with doprnt1, discarding lispstrings code.
1596 * lisp.h (doprnt_lisp): Don't declare.
1597
416e006d
JL
15982009-08-07 Juri Linkov <juri@jurta.org>
1599
1600 * puresize.h (BASE_PURESIZE): Increase to 1270000.
1601
6f7d5780
DN
16022009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
1603
1604 * print.c (syms_of_print): Undo previous change.
1605
f19a0f5b
TZ
16062009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
1607
1608 * lread.c (read1, syms_of_lread): Read hashtables back from the
1609 readable format.
1610
1611 * print.c (print_preprocess, print_object): Print hashtables fully
1612 and readably.
1613 (syms_of_print): Provide 'hashtable-print-readable.
1614
b9173dc2
AR
16152009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1616
1617 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
1618 no family set.
1619 (nsfont_open): Handle case when entity has no family.
1620
1586503c
AR
16212009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
1622
1623 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
1624 element, not a list, for match case.
1625
087048cd
KH
16262009-07-28 Kenichi Handa <handa@m17n.org>
1627
1628 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
1629 rigidly.
1630
1631 * xfont.c (xfont_list_pattern): Don't ignore the return value of
1632 font_parse_xlfd. Check font properties more rigidly.
1633
780c2506
DN
16342009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1635
31fd7c5c
JB
1636 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
1637 bsd-common.h.
780c2506 1638
a8c0cc18
KH
16392009-07-27 Kenichi Handa <handa@m17n.org>
1640
1641 * xfaces.c (face_with_height): Call font_clear_prop.
1642
4fbe2306
CY
16432009-07-26 Chong Yidong <cyd@stupidchicken.com>
1644
111d9af3
CY
1645 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
1646
1647 * xterm.c (x_term_init): Use Qx.
1648
4fbe2306
CY
1649 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
1650
1ac9108a 1651 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
1652 (ns_get_color): Revert 2009-07-16 change.
1653
beb0b7f9
EZ
16542009-07-25 Eli Zaretskii <eliz@gnu.org>
1655
1656 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 1657 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 1658
2baf5e76
KR
16592009-07-25 Ken Raeburn <raeburn@raeburn.org>
1660
1ac9108a
SM
1661 * coding.h (decode_coding_string, encode_coding_string):
1662 Use SCHARS macro.
8890e5f5 1663
2baf5e76 1664 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1665 (load_depth): Delete.
2baf5e76
KR
1666 (Qload_in_progress): New variable.
1667 (load_unwind): Don't reference load_depth or load_in_progress.
1668 (Fload): Likewise; specbind Qload_in_progress instead.
1669 (init_lread): Don't initialize load_depth.
1670 (syms_of_lread): Initialize and protect Qload_in_progress.
1671
1395c6f5
AR
16722009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1673
1674 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1675
4e2f36cf
AR
16762009-07-23 Yavor Doganov <yavor@gnu.org>
1677
1678 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1679
5dd9a6f7
AR
16802009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1681
1682 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1683 Bugs 3792, 3720, 2402.
1684 (ns_lookup_indexed_color): Check for bad index.
1685 (ns_index_color): Init unused slot to 0.
1686 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1687 Bug 3714, possibly 3082.
5dd9a6f7 1688
c902b920
JR
16892009-07-22 Jason Rumney <jasonr@gnu.org>
1690
1ac9108a
SM
1691 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1692 Position IME window at cursor (Bug#2570).
c902b920
JR
1693 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1694 (globals_of_w32fns): Dynamically load functions required above.
1695
1696 * w32term.c (w32_draw_window_cursor): Send message to reposition
1697 any IME window.
1698
090101cf
CY
16992009-07-21 Chong Yidong <cyd@stupidchicken.com>
1700
1701 * fileio.c: Revert 2009-07-16 changes.
1702 (Vauto_save_include_big_deletions): New variable.
1703 (Fdo_auto_save): Disable auto-save only if
1704 auto-save-include-big-deletions is nil.
1705
e6583e3d
CY
17062009-07-21 Chong Yidong <cyd@stupidchicken.com>
1707
1708 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1709 the overflowed pixels into account (Bug#3879).
1710
ece435a5
KR
17112009-07-21 Ken Raeburn <raeburn@raeburn.org>
1712
1713 * lread.c (load_depth): New variable.
1714 (Fload, load_unwind, init_lread): Set it to the load recursion
1715 depth; set load_in_progress as a simple boolean based on the
1716 current load_depth. (Bug#3892)
1717
40b2d973
AR
17182009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1719
1720 * nsfont.m (ns_has_attribute): Remove.
1721 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1722
10be7e0d
JL
17232009-07-18 Juri Linkov <juri@jurta.org>
1724
1725 * process.c (Fset_process_query_on_exit_flag): Mention killing
1726 a buffer in docstring.
1727
fa055055
KH
17282009-07-17 Kenichi Handa <handa@m17n.org>
1729
1730 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1731
042f7b69
YM
17322009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1733
1734 * nsfns.m (Fns_set_alpha): Remove function.
1735 (syms_of_nsfns): Don't defsubr it.
1736
1737 * nsterm.m (ns_get_color): Remove incompatible color formats.
1738 (ns_color_to_lisp): Generate #rrggbb color format string.
1739
4be941e3
RS
17402009-07-16 Richard Stallman <rms@gnu.org>
1741
1742 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1743 (Fset_buffer_auto_saved): Handle save_length = -2.
1744
4e6b227d
CY
17452009-07-16 Chong Yidong <cyd@stupidchicken.com>
1746
1747 * xterm.c (Qx_gtk_map_stock): New var.
1748
1749 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1750 of calling intern each time.
1751
a1856973
YM
17522009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1753
1754 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1755 does tiling.
1756
1757 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1758
497e54d8
KH
17592009-07-14 Kenichi Handa <handa@m17n.org>
1760
72d36834
KH
1761 * font.c (font_vconcat_entity_vectors): New function.
1762 (struct font_sort_data): New member font_driver_preference.
1763 (font_compare): Check font_driver_preference.
1764 (font_sort_entities): The format of the first argument changed.
1765 (font_delete_unmatched): Likewise.
1766 (font_list_entities): The return type changed.
1767 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1768 (font_find_for_lface): Adjuste for the above changes.
1769 Don't suppress the checking of C even if the repertory supports it.
1770 (Flist_fonts): Adjust for the above changes.
72d36834 1771
1ac9108a
SM
1772 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1773 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1774 Reject a font who has adstyle property that is different from a
1775 langname derived from registry property.
1ac9108a 1776 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1777
b6046155
EZ
17782009-07-13 Eli Zaretskii <eliz@gnu.org>
1779
1780 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1781 local copy of dirfilename.
1782
fb6b6049
KH
17832009-07-13 Kenichi Handa <handa@m17n.org>
1784
e2402a5e
KH
1785 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1786 against max_char.
1787
fb6b6049
KH
1788 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1789 calling XSYMBOL (sym).
1790
65156807
EZ
17912009-07-11 Eli Zaretskii <eliz@gnu.org>
1792
1ac9108a
SM
1793 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1794 New function.
1795 (directory_files_internal) [WINDOWSNT]:
1796 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1797 the filesystem of the directory is fast or slow.
1798
1799 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1800 file name.
1801 (is_slow_fs): New function.
1802 (stat): Use it to determine whether to issue more system calls to
1803 get accurate file attributes, when w32-get-true-file-attributes is
1804 `local'.
1805
e0ab5fcf
JD
18062009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1807
1808 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1809 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1810 parameter font-parameter as default to the font dialog.
1811
784ceded
KH
18122009-07-10 Kenichi Handa <handa@m17n.org>
1813
1814 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1815
fb8edc0b
EZ
18162009-07-09 Eli Zaretskii <eliz@gnu.org>
1817
1ac9108a 1818 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1819
fb8edc0b
EZ
1820 * w32.c (stat): Treat UNC file names as residing on remote
1821 drives. (Bug#3542)
1822
635c75b1
KH
18232009-07-09 Kenichi Handa <handa@m17n.org>
1824
1825 * fontset.c (fontset_find_font): Fix previous change.
1826
c1d5ce94
MA
18272009-07-08 Michael Albinus <michael.albinus@gmx.de>
1828
1829 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1830 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1831 error flag.
1832
edb61b39
KH
18332009-07-08 Kenichi Handa <handa@m17n.org>
1834
374bf7e4
KH
1835 * fontset.c (fontset_find_font): Fix the logic of handling
1836 charset_matched.
1837 (font_for_char): Delete unused var.
1838 (generate_ascii_font_name): Delete it.
1839
edb61b39
KH
1840 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1841
1842 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1843 (encode_coding_sjis): Fix the code range check.
1844
0f3f018c
CY
18452009-07-07 Chong Yidong <cyd@stupidchicken.com>
1846
1847 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1848 (Fexpand_file_name): Copy string data properly (Bug#3772).
1849
fcaf6f3a
JD
18502009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1851
1852 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1853 first MapNotify.
1854
6809ca75
KH
18552009-07-07 Kenichi Handa <handa@m17n.org>
1856
1857 * character.h (unibyte_has_multibyte_table): Delete extern.
1858 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1859
1860 * charset.c (Fset_charset_priority): Update charset_unibyte.
1861 (syms_of_charset): Initialize charset_unibyte.
1862
1863 * character.c (unibyte_has_multibyte_table): Delete it.
1864 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1865 charset_unibyte.
1866 (multibyte_char_to_unibyte_safe): Likewise.
1867 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1868
1ac9108a 1869 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1870 (x_produce_glyphs): Likewise.
1871
1872 * .gdbinit (xcharset): Fix the treating $arg0.
1873
ad9e2d54
EZ
18742009-07-04 Eli Zaretskii <eliz@gnu.org>
1875
1876 Emulation of `getloadavg' on MS-Windows.
1877 * w32.c: Include float.h
1878 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1879 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1880 (get_native_system_info, get_system_times): New functions.
1881 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1882 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1883 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1884 g_b_init_get_system_times, and num_of_processors.
1885
0a3472c7
JR
18862009-07-03 Jason Rumney <jasonr@gnu.org>
1887
1888 * w32term.c (w32_initialize): Use standard types.
1889
80904120
EZ
18902009-07-03 Eli Zaretskii <eliz@gnu.org>
1891
1892 * dired.c (Ffile_attributes): Decode user and group names by the
1893 locale's encoding. (Bug#3443)
1894
6978862d
DN
18952009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1896
f8d23104
DN
1897 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1898 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1899
1900 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1901
1902 * term.c (init_tty): Remove spurious #ifdef.
1903
6978862d
DN
1904 * m/mips.h: Mention this file is also used for netbsd.
1905 * m/pmax.h: Remove file.
1906
e044e4fc
JD
19072009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1908
1909 * xterm.h (struct x_display_info): Add invisible_cursor.
1910 (struct x_output): Add current_cursor.
1911
1912 * xterm.c (XTtoggle_invisible_pointer): New function.
1913 (x_define_frame_cursor): Don't define cursor if invisible or the
1914 same as before. Set current_cursor.
1915 (x_create_terminal): Set toggle_invisible_pointer_hook.
1916
1917 * xfns.c (make_invisible_cursor): New function.
1918 (x_set_mouse_color): Call make_invisible_cursor.
1919 Set current_cursor.
1920 (x_window): Set current_cursor.
1921
1922 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1923
1924 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1925 inserting a character.
1926 (read_avail_input): Call frame_make_pointer_visible.
1927
1928 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1929 (frame_make_pointer_invisible, frame_make_pointer_visible):
1930 New functions.
e044e4fc
JD
1931 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1932
1933 * frame.h: Declare frame_make_pointer_invisible and
1934 frame_make_pointer_visible.
1935 (struct frame): Add pointer_invisible.
1936
574c8efa
JD
19372009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1938
7b507248
JD
1939 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1940 frame isn't visible.
1941 (xg_frame_resized): If width/height is -1, get size of window
1942 from X server.
1943
1944 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1945 for MapNotify.
1946
835bdaa7 1947 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1948 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1949 (flush_and_sync): Reintroduce.
574c8efa 1950
3f1c6666 19512009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1952
31fd7c5c 1953 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1954
1955 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1956 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1957
1958 * frame.h: Declare Qsticky.
1959
cad9ef74
JD
1960 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1961
1962 * nsfns.m (ns_frame_parm_handlers): Ditto.
1963
1964 * frame.c: Declare Qsticky.
1965 (frame_parms): Add sticky.
1966
1967 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1968
1969 * xterm.h: Declare x_set_sticky.
1970
1971 * xterm.c (x_set_sticky): New function.
1972
69b16610
JD
1973 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1974 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1975 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1976
1977 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1978
1979 * frame.c: Qmaximized is new.
1980 (x_set_frame_parameters): Do not handle fullscreen specially.
1981 Only set width and height if explicitly set.
1982 (x_set_fullscreen): Handle Qmaximized.
1983 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1984 (syms_of_frame): Initialize Qmaximized.
1985
1ac9108a
SM
1986 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1987 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1988
1989 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1990 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1991 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1992 set gravity to NorthWestGravity when USE_GTK.
1993 (set_wm_state): New function.
31fd7c5c 1994 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1995 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1996 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1997 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1998 to x_real_positions and x_fullscreen_adjust.
1999
2000 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
2001 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
2002 flush_and_sync.
2003 (xg_height_changed): New function.
2004 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
2005 and gtk_window_set_policy. Set frame gravity after parsing the
2006 geometry string.
3f1c6666
JD
2007 (xg_update_frame_menubar, free_frame_menubar)
2008 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
2009 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
2010 Remove calls to xg_frame_set_char_size.
2011
fd503d99
KH
20122009-07-01 Kenichi Handa <handa@m17n.org>
2013
2014 * keyboard.c (decode_keyboard_code): New function.
2015 (tty_read_avail_input): Decode the input bytes if necessary.
2016
1ac9108a
SM
2017 * coding.c (setup_coding_system):
2018 Initialize coding->carryover_bytes to 0.
fd503d99
KH
2019 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
2020 use Qno_conversion.
2021
24ed93fb
YM
20222009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2023
2024 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
2025
99061dfc
CY
20262009-06-30 Chong Yidong <cyd@stupidchicken.com>
2027
1ac9108a 2028 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 2029
ff90fbde
JR
20302009-06-30 Jason Rumney <jasonr@gnu.org>
2031
2032 * w32term.c (w32_initialize): Use GetModuleHandle for library that
2033 is already loaded.
2034 Set user model ID if supported (bug#1849).
2035
5f445726
JM
20362009-06-29 Jim Meyering <meyering@redhat.com>
2037
2038 Remove useless if-before-xfree test.
2039 * nsfont.m (nsfont_close): Remove useless test.
2040 * term.c (delete_tty): Likewise.
2041 * w32.c (system_process_attributes): Likewise.
2042 * w32font.c (w32font_close): Likewise.
2043 * xfaces.c (x_free_gc): Likewise.
2044 * xselect.c (buffer): Likewise.
2045
b9607587
AS
20462009-06-28 Andreas Schwab <schwab@linux-m68k.org>
2047
2048 * process.c (send_process): Keep decoded string in a local
2049 variable and protect it from GC. (Bug#3521)
2050
89ba96f4
EZ
20512009-06-28 Eli Zaretskii <eliz@gnu.org>
2052
2053 * term.c (create_tty_output) [MSDOS]: #ifdef away.
2054 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
2055
098a1589
CY
20562009-06-28 Chong Yidong <cyd@stupidchicken.com>
2057
485422be
CY
2058 * xdisp.c (start_display, handle_face_prop)
2059 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
2060 (redisplay_window, try_window_id, produce_image_glyph):
2061 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 2062
098a1589
CY
2063 * xterm.c (x_update_window_begin, x_new_focus_frame)
2064 (x_scroll_bar_handle_click, handle_one_xevent)
2065 (handle_one_xevent, XTread_socket, x_focus_on_frame)
2066 (x_make_frame_visible, x_make_frame_invisible)
2067 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
2068 code chunks that are now obsolete.
2069
78c38319
MA
20702009-06-28 Michael Albinus <michael.albinus@gmx.de>
2071
2072 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
2073 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
2074 for hours, when optimzation is enabled.
2075 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
2076 (xd_read_message): Make them static.
2077
4189ed40
CY
20782009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
2079
2080 * term.c (turn_on_face): Allow simultaneously bold and dim
2081 terminal faces (Bug#3530).
2082
cd9b5e16
CY
20832009-06-27 Chong Yidong <cyd@stupidchicken.com>
2084
4e23bedb
CY
2085 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
2086
cd9b5e16
CY
2087 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
2088 truncation glyphs (Bug#3686).
2089
07cc3c35
GM
20902009-06-27 Glenn Morris <rgm@gnu.org>
2091
2092 * m/pmax.h: Restore file, with only netbsd portions.
2093
31fd7c5c 20942009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 2095
cd9b5e16 2096 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 2097
42d4a64f
KH
20982009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
2099
2100 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
2101 the arg FORCE_SYMBOL.
2102
930fe55b 21032009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
2104
2105 * fontset.c (fontset_find_font): When a usable rfont_def is found
2106 in a fallback font-group, make it the first element of the group.
2107
57ebc3fd
CY
21082009-06-24 Chong Yidong <cyd@stupidchicken.com>
2109
2110 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
2111
f084f942
KH
21122009-06-24 Kenichi Handa <handa@m17n.org>
2113
2114 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
2115 set for C.
2116 (fontset_font): Record the availability of a font for C both in
2117 the realized fontsets of the current one and the default one.
2118
2f686c87
DN
21192009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2120
2121 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
2122 conditional, it is always defined on AIX.
2123
666e158e
MB
21242009-06-23 Miles Bader <miles@gnu.org>
2125
2126 * window.c (Vrecenter_redisplay): New variable.
2127 (syms_of_window): Initialize it.
2128 (Qtty): New extern declaration.
2129 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
2130
c6da7cd2
JM
21312009-06-23 Jim Meyering <meyering@redhat.com>
2132
1ac9108a
SM
2133 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
2134 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 2135 pointer dereferences are guaranteed to be valid.
c6da7cd2 2136
678dca3d
KH
21372009-06-23 Kenichi Handa <handa@m17n.org>
2138
74d75424
KH
2139 * emacs.c (main): Call init_font ().
2140
2141 * font.h (Vfont_log): Extern it.
2142 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
2143
2144 * font.c (font_sort_entities, font_list_entities)
2145 (font_matching_entity, font_open_entity)
2146 (font_close_object): Change font_add_log to FONT_ADD_LOG.
2147 (Vfont_log): Delete static.
2148 (font_log_env_checked): Delete this variable.
2149 (font_add_log): Don't check font_log_env_checked.
2150 (font_deferred_log): Check Vfont_log.
2151 (init_font): New function.
2152
678dca3d
KH
2153 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
2154
2155 * w32font.c: Change font_add_log to FONT_ADD_LOG.
2156
2157 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
2158
2159 * xfont.c: Change font_add_log to FONT_ADD_LOG.
2160
2161 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
2162 (face_for_char): Don't call font_deferred_log here.
2163 (font_for_char): Likewise.
2164
8a668709
CY
21652009-06-22 Chong Yidong <cyd@stupidchicken.com>
2166
9a01ee33
CY
2167 * w32term.c (x_draw_glyph_string): Use the glyph string's width
2168 rather than its background_width for drawing the overline and
2169 underline (Bug#489).
2170
2171 * xterm.c (x_draw_glyph_string): Use the glyph string's width
2172 rather than its background_width for drawing the overline and
2173 underline (Bug#489).
ec7c9926
CY
2174 (xg_default_icon_file): New variable.
2175 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
2176 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 2177
8a668709
CY
2178 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
2179 (load_overlay_strings): Remove externs.
2180 (fast_find_position): Function deleted.
2181 (mouse_face_from_buffer_pos): New function, based on
2182 fast_find_position. Correctly handle before-strings,
2183 display-strings, and after-strings (Bug#1220).
2184 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
2185
4d4c02d8
CY
21862009-06-21 Chong Yidong <cyd@stupidchicken.com>
2187
1ac9108a 2188 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
2189 (move_it_in_display_line_to, move_it_in_display_line_to)
2190 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
2191
70243478
CY
21922009-06-21 Chong Yidong <cyd@stupidchicken.com>
2193
2194 * Branch for 23.1.
2195
13087e59
JR
21962009-06-21 Jason Rumney <jasonr@gnu.org>
2197
2198 * w32term.c (keyboard_codepage): New static variable.
2199 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
2200 (w32_read_socket) [WM_CHAR]: Use it to decode character
2201 input (bug#3237).
2202 (w32_initialize): Initialize it.
2203 (codepage_for_locale): New function.
2204
4735b74e
KR
22052009-06-20 Ken Raeburn <raeburn@raeburn.org>
2206
2207 * process.c (status_message): Pass Faset index argument as a lisp
2208 object, so as to work with USE_LISP_UNION_TYPE.
2209
0e727afa
YM
22102009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2211
2212 * coding.c (Ffind_coding_systems_region_internal):
2213 Cache checked characters.
2214
cf299835
KH
22152009-06-18 Kenichi Handa <handa@m17n.org>
2216
1ac9108a 2217 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 2218
90f20d94
AS
22192009-06-18 Andreas Schwab <aschwab@redhat.com>
2220
2221 * xdisp.c (redisplay_internal): Check that the frame is still
2222 live after redisplay of its windows.
2223 (redisplay_windows): Check that the window is still live.
2224
7f1faf1c
KH
22252009-06-17 Andreas Schwab <schwab@linux-m68k.org>
2226
2227 * coding.c (detect_coding_utf_16): Fix previous change.
2228
cc13543e
KH
22292009-06-16 Kenichi Handa <handa@m17n.org>
2230
2231 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
2232 UTF-16 by checking the dispersion of Eth and Oth bytes.
2233
977b85f4
AS
22342009-06-15 Andreas Schwab <schwab@linux-m68k.org>
2235
2236 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
2237
66bd43d1
KH
22382009-06-15 Kenichi Handa <handa@m17n.org>
2239
2240 * process.c (status_message): Fix previous change. Be sure to
2241 decode a localized string.
2242
cb5ca9c5
YM
22432009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2244
2245 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
2246 add comment explaining why.
2247
ec7709ba 22482009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 2249
ec7709ba 2250 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 2251
4b7f335c
AR
22522009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
2253
2254 * nsfont.m (ns_attribute_value): Remove.
2255 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
2256 (ns_has_attribute): Shrink the normal range.
2257 (ns_findfonts): Don't worry about requested spec in determining
2258 need for synthItal.
e41820ee 2259 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 2260
73b26103
SZ
22612009-06-14 Seiji Zenitani <zenitani@mac.com>
2262
2263 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
2264
5753e4da
KH
22652009-06-11 Kenichi Handa <handa@m17n.org>
2266
2267 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2268 overhang for the static composition case.
2269
3561b671
KH
22702009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2271
5753e4da
KH
2272 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
2273 overhang for the automatic composition case.
2274
3561b671
KH
2275 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
2276 composition case.
2277
852bbd41
CY
22782009-06-10 Chong Yidong <cyd@stupidchicken.com>
2279
2280 * xdisp.c (get_next_display_element): When handling wrap-prefix
2281 and line-prefix, treat \n as a control character (bug#3502).
2282
9903d1e6
KH
22832009-06-10 Kenichi Handa <handa@m17n.org>
2284
2285 * font.c (font_parse_family_registry): Fix for one-char foundry.
2286 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
2287
0bcbaaaa
CY
22882009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
2289
2290 * process.c (status_message): Fix handling of multibyte signal
2291 string (Bug#3499).
2292
40aa3f13
JM
22932009-06-09 Jim Meyering <meyering@redhat.com>
2294
1f80c7e2
CY
2295 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
2296 color name is missing.
40aa3f13 2297
72d51285
KH
22982009-06-09 Kenichi Handa <handa@m17n.org>
2299
2300 * charset.c (Fmap_charset_chars): In docstring, state clearly that
2301 FROM-CODE and TO-CODE are codepoints of CHARSET.
2302
c1d04d84
AR
23032009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2304
2305 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
2306
23072009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
2308
2309 Changes to support :script/:lang/:otf in NS font driver.
2310 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
2311 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
2312 indicate not part of font driver interface, and change callers.
2313 (ns_get_family): Remove pointless null check.
2314 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
2315 ns_spec_to_descriptor, ns_descriptor_to_entity.
2316 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
2317 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
2318 (ns_spec_to_descriptor, ns_descriptor_to_entity)
2319 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
2320 (ns_get_req_script, ns_accumulate_script_ranges)
2321 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
2322 New functions.
2323 (nsfont_list, nsfont_match): Use ns_findfonts.
2324 (nsfont_open): Use font descriptor instead of traits.
2325 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
2326 (dump_glyphstring): Rename to ns_dump_glyphstring.
2327
c7eb9816
AR
2328 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
2329
c1d04d84
AR
2330 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
2331
2332 * fontset.c (fontset_from_font): Remove NS-specific code.
2333
ec7709ba 23342009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
2335
2336 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
2337 nonactive windows.
2338
31fd7c5c 23392009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 2340
1ac9108a 2341 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 2342
68852c13 23432009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
2344
2345 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
2346
6756cd1d
CY
23472009-06-07 Chong Yidong <cyd@stupidchicken.com>
2348
2349 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
2350 account for the overflowing of newlines into the last glyph on the
2351 display line (Bug#3482).
2352
28bf482a
DR
23532009-06-05 David Reitter <david.reitter@gmail.com>
2354
ec7709ba
JB
2355 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
2356 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
2357 Fns_selection_exists_p, Fns_selection_owner_p.
2358
fdb55376
JR
23592009-06-03 Jason Rumney <jasonr@gnu.org>
2360
2361 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
2362 available. (Bug#3379)
2363
05129fbe
KH
23642009-05-29 Kenichi Handa <handa@m17n.org>
2365
1ac9108a
SM
2366 * coding.c (get_translation_table):
2367 Check Venable_character_translation.
05129fbe 2368
ec7709ba 23692009-05-26 David Reitter <david.reitter@gmail.com>
15891144 2370
ec7709ba
JB
2371 * nsterm.m (ns_raise_frame): Only raise frame if visible.
2372 (x_make_frame_visible): Move frame to front rather than calling
15891144 2373 ns_raise_frame().
ec7709ba 2374 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 2375 isn't key window.
ec7709ba 2376 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
2377 drawRect may be called by NSView even if the frame is hidden.
2378
ec7709ba
JB
2379 * nsfns.m (Fx_create_frame): Follow other ports in
2380 determining visibility; default to t. Ensure async_visible is set.
15891144 2381
21f73755
EZ
23822009-05-23 Eli Zaretskii <eliz@gnu.org>
2383
2384 * dired.c (Ffile_attributes): Doc fix.
2385
34001e41
CY
23862009-05-22 Chong Yidong <cyd@stupidchicken.com>
2387
2388 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
2389
46306a17
SM
23902009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
2391
2392 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
2393 and xfont_scratch_props.
2394 (syms_of_xfont): Do it here instead.
2395 (xfont_find_ccl_program): Delete, unused.
2396 (xfont_open): Delete unused var `i'.
2397
ef6e0694
KH
23982009-05-21 Kenichi Handa <handa@m17n.org>
2399
2400 * fontset.c (Qlatin): Don't make it static.
2401
46306a17
SM
2402 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
2403 New functions.
ef6e0694
KH
2404 (xfont_scripts_cache, xfont_scratch_props): New variables.
2405 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
2406 (xfont_list_pattern): Argument changed. Callers changed.
2407 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
2408 (xfont_list): Don't reject a font spec with :script property.
2409 (xfont_has_char): Fix setting of encoding.
2410 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
2411 xfont_scratch_props.
2412
24132009-05-19 Kenichi Handa <handa@m17n.org>
2414
46306a17 2415 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
2416 Callers changed.
2417
24182009-05-18 Kenichi Handa <handa@m17n.org>
2419
2420 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
2421
ac71ced7
SM
24222009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
2423
2424 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
2425 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
2426
1c6d1051
YM
24272009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2428
2429 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
2430 (x_delete_terminal): Dissociate resource database from display and
2431 then call XrmDestroyDatabase before closing display.
2432
9b9b779c
AR
24332009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2434
2435 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
2436 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
2437 whether selected frame is viable before raising it (based on patch
2438 by David Reitter), and improve commentary.
2439 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 2440
cccd42d5
KH
24412009-05-15 Kenichi Handa <handa@m17n.org>
2442
2443 * font.c (Ffont_spec): Check arguments.
2444
337fbd17
CY
24452009-05-14 Chong Yidong <cyd@stupidchicken.com>
2446
2447 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
2448 weight when testing attributes (Bug#3282).
2449
47a6002f
JD
24502009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2451
2452 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
2453 what we expect to get in the next ConfigureNotify event.
2454
9cb363db
YM
2455 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
2456 before Xft one (Bug#1696).
2457
b9126609
CY
24582009-05-07 David Reitter <david.reitter@gmail.com>
2459
2460 * nsfns.m (Fx_display_planes): Compute bitplanes using
2461 NSBitsPerPixelFromDepth (Bug#3207).
2462
27a69fd9
CY
24632009-05-10 Chong Yidong <cyd@stupidchicken.com>
2464
2465 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
2466
00f37552
TTN
24672009-05-10 Ulrich Mueller <ulm@gentoo.org>
2468
2469 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
2470
2d82a920
DR
24712009-05-07 David Reitter <david.reitter@gmail.com>
2472
ec7709ba
JB
2473 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
2474 Respect mouse face background.
2d82a920 2475
46b0d52d
DR
24762009-05-07 David Reitter <david.reitter@gmail.com>
2477
ec7709ba
JB
2478 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
2479 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
2480 in ns_update_begin and ns_update_end.
2481
ce1b23bb
SM
24822009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2483
5996e1b7
SM
2484 * nsfns.m (ns_get_screen): Rewrite.
2485 Don't presume selected-frame is of type `ns'.
2486
ba98e3a0
SM
2487 * font.c (font_update_drivers): Sanity fallback to avoid disabling
2488 all drivers.
2489
ce1b23bb
SM
2490 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
2491
bcda200f
YM
24922009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2493
2494 * keyboard.h (add_user_signal): Fix typo in extern.
2495
2496 * lisp.h (add_user_signal): Remove extern.
2497
2498 * unexelf.c (unexec): Consider a section to precede the .bss section
2499 if its addresses overlap that of .bss.
2500 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
2501 instead of dumping process.
2502
864660a2
SM
25032009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
2504
2505 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
2506
50da4e56
SM
25072009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
2508
2509 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
2510
51520a1a
DN
25112009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
2512
2513 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
2514 any statements.
2515
409ea3a1
AS
25162009-05-02 Andreas Schwab <schwab@linux-m68k.org>
2517
59c4c60f
AS
2518 * process.c (read_process_output): Make sure the current buffer is
2519 always restored.
2520
409ea3a1
AS
2521 * coding.c (record_conversion_result): Don't modify
2522 Vlast_code_conversion_error for successful result.
2523 (alloc_destination): Don't clobber conversion result. (Bug#1650)
2524
56f00ed2
KH
25252009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
2526
2527 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 2528 (load_charset_map): Remove unnecessary code.
56f00ed2 2529
4491c9d2
DR
25302009-04-30 David Reitter <david.reitter@gmail.com>
2531
35f5b128 2532 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
2533 through f24.
2534
6970f632
CY
25352009-04-30 Chong Yidong <cyd@stupidchicken.com>
2536
2537 * xfaces.c (face_at_buffer_position): New arg base_face_id.
2538
2539 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
2540 face_at_buffer_position.
2541 (face_before_or_after_it_pos, get_next_display_element)
2542 (note_mouse_highlight): Update face_at_buffer_position call.
2543
2544 * term.c (term_mouse_highlight):
2545 * msdos.c (IT_note_mouse_highlight):
2546 * fontset.c (Finternal_char_font):
35f5b128 2547 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
2548
2549 * dispextern.h (face_at_buffer_position): Update prototype.
2550
0c616f63
KH
25512009-04-30 Kenichi Handa <handa@m17n.org>
2552
35f5b128 2553 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 2554
ad3aaf33
AS
25552009-04-29 Andreas Schwab <schwab@linux-m68k.org>
2556
2557 * callproc.c (Fcall_process): Fix GC protection. Make sure
2558 current buffer is always restored.
2559
c3c963a0
YM
25602009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2561
2562 * atimer.c (init_atimer): Also clear stopped_atimers.
2563
2564 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
2565
7e3386cb
YM
2566 * process.c (create_process): Clean up merger residues of
2567 2008-07-17 change.
2568
91f68422
CY
25692009-04-29 Ulrich Mueller <ulm@gentoo.org>
2570
2571 * lread.c (Vread_circle): New variable.
2572 (read1): Disable recursive read if Vread_circle is nil.
2573
24b34550
KH
25742009-04-29 Kenichi Handa <handa@m17n.org>
2575
2576 * fontset.h (set_default_ascii_font): Delete extern.
2577
2578 * fontset.c (set_default_ascii_font): Delete this unused function.
2579
2580 * frame.c (x_set_font): When ARG is a font-object, check if the
2581 font-object matches with the ASCII font-spec of the frame's
9c358bda 2582 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 2583
77bf07e1
AS
25842009-04-28 Andreas Schwab <schwab@linux-m68k.org>
2585
2586 * fns.c (Flocale_info): Protect vector from GC during decoding.
2587
2588 * process.c (Fstart_process): Protect argv strings from GC during
2589 encoding.
2590
2c55aacf
AS
25912009-04-27 Andreas Schwab <schwab@linux-m68k.org>
2592
2593 * sysdep.c: Include <ctype.h>.
2594
b892d3c9
DR
25952009-04-27 David Reitter <david.reitter@gmail.com>
2596
35f5b128 2597 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
2598 Remove commented-out code.
2599
9d0644c4
JB
26002009-04-26 Johan Bockgård <bojohan@gnu.org>
2601
2602 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2603
b7053016
JR
26042009-04-25 Jason Rumney <jasonr@gnu.org>
2605
2606 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
2607
4e8231f3
YM
26082009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2609
2610 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
2611 Swap bytes in short integer if fringe bitmap width > 8.
2612
493dcf2c
KH
26132009-04-23 Kenichi Handa <handa@m17n.org>
2614
2615 * xfaces.c (Fx_list_fonts): If a font size is specified in
2616 PATTERN, set it in returned scalable fonts.
2617
401e9e57
CY
26182009-04-22 Chong Yidong <cyd@stupidchicken.com>
2619
708e05dc
CY
2620 * keyboard.c (Fset_input_meta_mode): Doc fix.
2621
2622 * dispnew.c (Fsend_string_to_terminal): Doc fix.
2623
1ac9108a 2624 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
2625
2626 * coding.c (Fterminal_coding_system): Doc fix.
2627
2628 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
2629 (Fx_display_pixel_height, Fx_display_planes)
2630 (Fx_display_color_cells, Fx_server_max_request_size)
2631 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2632 (Fx_display_mm_height, Fx_display_mm_width)
2633 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
2634 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
2635 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
2636 (check_x_display_info): Handle terminal objects instead of
2637 terminal ids.
2638
401e9e57
CY
2639 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
2640 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
2641 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
2642 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 2643
df80c7f0
KH
26442009-04-21 Kenichi Handa <handa@m17n.org>
2645
5a8f12af 2646 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 2647 (font_score): Check AVGWIDTH too.
908567ef 2648
df80c7f0
KH
2649 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
2650 worst case.
1ac9108a
SM
2651 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
2652 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 2653
705af33f
JR
26542009-04-19 Jason Rumney <jasonr@gnu.org>
2655
2656 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 2657 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
2658
2659 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
2660 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
2661 get_phys_cursor_geometry.
2662
b71ac3dd 2663 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2664 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2665 using get_phys_cursor_geometry.
2666
2667 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2668 correctly calculated.
2669
dc2933eb
JD
26702009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2671
1ac9108a
SM
2672 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2673 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2674 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2675 is deprecated.
2676
973e7849
AS
26772009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2678
2679 * font.c (font_put_frame_data): Use xfree instead of free.
2680
314d66f4
JB
26812009-04-17 Juanma Barranquero <lekktu@gmail.com>
2682
2683 * w32font.c (Qja, Qko): Remove declarations.
2684 (syms_of_w32font): Don't DEFSYM them.
2685
cf702558
CY
26862009-04-17 Chong Yidong <cyd@stupidchicken.com>
2687
2688 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2689
2690 * font.h (Qja, Qko): Extern them.
2691
2692 * ftfont.c (Qja, Qko): Remove declarations.
2693
2694 * xfont.c (Qja, Qko): Remove declarations.
2695
b50504f5
KH
26962009-04-17 Kenichi Handa <handa@m17n.org>
2697
bde25748
KH
2698 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2699 string from a vector to handle Latin-1 characters correctly.
2700
b50504f5
KH
2701 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2702 entity even if the cache hits.
2703
f4646fff
AS
27042009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2705
2706 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2707 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2708
e7deaab0
AS
2709 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2710 * lisp.h: Adjust prototypes.
2711
0a0e7d49
CY
27122009-04-16 Chong Yidong <cyd@stupidchicken.com>
2713
2714 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2715 change (Bug#3003).
2716
3c908a57
KH
27172009-04-16 Kenichi Handa <handa@m17n.org>
2718
1ac9108a 2719 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2720
2721 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2722 adstyle.
2723
2724 * ftfont.c (Qja, Qko): Don't make them static.
2725 (enum ftfont_cache_for): New enum.
2726 (fc_charset_table): Undo the previous change.
2727 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2728 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2729 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2730 non-scarable font, try to get AVERAGE_WIDTH.
2731 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2732 Change ft_face_cache from a list of a hash-table. Don't check
2733 `ja' and `ko' adstyle here.
2734 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2735 FTFONT_CACHE_FOR_CHARET.
2736 (ftfont_get_charset): Undo the previous change.
1ac9108a 2737 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2738 (ftfont_close): Likewise.
2739 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2740
2741 * font.c (font_sort_entites): Change the meaning of the arg
2742 BEST-ONLY. Don't optimize for VEC of lenght 1.
2743 (font_select_entity): Just return the value of font_sort_entites.
2744
2745 * xfaces.c (merge_face_vectors): Reflect font properties in
2746 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2747 font_clear_prop if a face attribute doesn't change.
2748
3c908a57
KH
2749 * charset.h (charset_ksc5601): Extern it.
2750
2751 * charset.c (charset_ksc5601): New variable.
2752 (Fdefine_charset_internal): Set charset_ksc5601.
2753 (init_charset_once): Initialize charset_ksc5601 to -1.
2754
d65859c3
DN
27552009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2756
2757 * fileio.c (history_delete_duplicates): Remove unused declaration.
2758
2759 * callint.c (history_delete_duplicates): New declaration.
2760 (Fcall_interactively): Remove command history duplicates when
2761 history_delete_duplicates is true.
2762
3ba010e5
EZ
27632009-04-14 Eli Zaretskii <eliz@gnu.org>
2764
2765 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2766
06f19b91
KH
27672009-04-14 Kenichi Handa <handa@m17n.org>
2768
2769 * font.c (Ffont_info): Fix docstring. Fix the second element of
2770 the returned value (bug#2949).
2771
2cce8bfc
CY
27722009-04-14 Chong Yidong <cyd@stupidchicken.com>
2773
2774 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2775
d156542d
KH
27762009-04-14 Kenichi Handa <handa@m17n.org>
2777
2778 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2779 encoding charset is ascii_compatible.
2780
2781 * charset.c (Fdefine_charset_internal): Make charset
2782 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2783 code_offset is 0, and covers all ASCII characters.
2784
86fa089e
SM
27852009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2786
2787 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2788 (ns_string_to_pasteboard_internal):
2789 * nsmenu.m (process_dialog):
2790 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2791 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2792 * lisp.h (Fx_load_color_file): Declare.
2793
a8a3728b
KH
27942009-04-13 Kenichi Handa <handa@m17n.org>
2795
1ac9108a 2796 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2797 (font_select_entity): Suppress the code to optimize for the same
2798 kind of fonts.
2799 (font_load_for_lface): Get a font that supports at least ASCII
2800 characters.
2801
2802 * ftfont.c (Qja, Qko): New variables.
2803 (fc_charset_table): Delete uniquifier data for iso8859-1.
2804 (ftfont_get_latin1_charset): New function.
2805 (get_adstyle_property): New function.
2806 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2807 bitmap fonts.
2808 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2809 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2810 `ko' or `ja'.
2811 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2812 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2813 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2814 property.
2815 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2816 (syms_of_ftfont): DEFSYM Qja and Qko.
2817
483670b5
KH
28182009-04-09 Kenichi Handa <handa@m17n.org>
2819
12b55765
KH
2820 * charset.c (map_charset_chars): For a charset of `superset'
2821 method, fix calculation of code range.
2822
483670b5
KH
2823 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2824 from the list of extra properties.
2825 (font_clear_prop): Be sure to delete `:name' font property.
2826
57d3b93b
KH
28272009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2828
b4b2c2ca
YM
2829 * dispnew.c (redraw_overlapping_rows): Fix detection of
2830 overlapping for topmost and bottommost rows.
2831
1ac9108a 2832 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2833
472c3609
JR
28342009-04-06 Jason Rumney <jasonr@gnu.org>
2835
2836 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2837
ab193662
KH
28382009-04-06 Kenichi Handa <handa@m17n.org>
2839
2840 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2841
2842 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2843
0c26f026
KH
28442009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2845
2846 * ftfont.c (ftfont_open): Fix checking of the return value of
2847 FT_Load_Char. Fix setting font->underline_thickness.
2848
e173bbce
CY
28492009-04-04 Chong Yidong <cyd@stupidchicken.com>
2850
2851 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2852 (Fterminal_parameters, Fterminal_parameter)
2853 (Fset_terminal_parameter): In doc string, refer to terminal
2854 objects rather than terminal ids.
2855
693a2698
EZ
28562009-04-04 Eli Zaretskii <eliz@gnu.org>
2857
2858 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2859 ret_lim_data. (Bug#2867)
2860
d5221487
CY
28612009-04-03 Chong Yidong <cyd@stupidchicken.com>
2862
2863 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2864 so they don't get wider than the window, matching 2006-01-23
2865 change to the partner function in xdisp.c (Bug#2800).
2866
223509a3
KH
28672009-04-03 Kenichi Handa <handa@m17n.org>
2868
2869 * print.c (print_object): Make each lowest sub_char_table start a
2870 new line (Bug#2866).
2871
74fcd0b1
KH
28722009-04-02 Kenichi Handa <handa@m17n.org>
2873
2874 * fontset.c (fontset_font): Record no-font when a fontset
2875 explicitly tells not to try another font-specs.
2876
c542407d
SM
28772009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2878
2879 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2880
e3869731
KH
28812009-03-30 Kenichi Handa <handa@m17n.org>
2882
d8d2f142
KH
2883 * fontset.c (fontset_from_font): Specify only registry in a
2884 font-spec for all characters supported by that registry.
2885
e3869731
KH
2886 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2887 even if HAVE_M17N_FLT is not defined.
2888
5da5f805
CY
28892009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2890
2891 * ftfont.c: Conditionalize prototyping and use of
2892 ftfont_variation_glyphs.
2893
ab226c50
SM
28942009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2895
9628fed7
SM
2896 * frame.c (delete_frame): Work around compiler bug.
2897
2898 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2899 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2900 Some more EMACS_INT.
2901 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2902
2903 * xdisp.c (dump_glyph): Fix typo.
2904
ae19ba7c
SM
2905 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2906 (adjust_markers_gap_motion, adjust_markers_for_delete)
2907 (adjust_markers_for_insert, adjust_point)
2908 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2909 (make_gap, copy_text, count_size_as_multibyte, insert)
2910 (insert_and_inherit, insert_before_markers)
2911 (insert_before_markers_and_inherit, insert_1)
2912 (count_combining_before, count_combining_after, insert_1_both)
2913 (insert_from_string, insert_from_string_before_markers)
2914 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2915 (insert_from_buffer_1, adjust_after_replace)
2916 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2917 (replace_range_2, del_range, del_range_1, del_range_byte)
2918 (del_range_both, del_range_2, modify_region)
2919 (prepare_to_modify_buffer, signal_before_change)
2920 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2921 for buffer positions and sizes.
2922 * lisp.h: Adjust prototypes accordingly.
2923
2924 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2925 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2926 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2927
ab226c50
SM
2928 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2929
46dfb8fb
JD
29302009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2931
2932 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2933 lines and columns so we keep the same pixel height and width.
2934
2935 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2936 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2937 (x_handle_net_wm_state): New function to update frame parameter
2938 fullscreen.
2939 (x_term_init): Initialize atoms for _NET_WM_STATE.
2940
2941 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2942
d347e494
SM
29432009-03-27 Kevin Ryde <user42@zip.com.au>
2944
2945 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2946 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2947 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2948 (Fgpm_mouse_stop): Pass that new parameter.
2949 * termhooks.h (close_gpm): Adjust prototype.
2950
84db11d6
SM
29512009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2952
c95a5008
SM
2953 * lisp.h (Fx_focus_frame): Declare.
2954
84db11d6
SM
2955 * callint.c (Fcall_interactively): For '^' just delegate the work to
2956 handle-shift-selection.
2957 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2958
0a1958d6
CY
29592009-03-24 Chong Yidong <cyd@stupidchicken.com>
2960
0bfdff23
CY
2961 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2962
0a1958d6
CY
2963 * data.c (Qinteractive_form): New variable.
2964 (Finteractive_form): Use it.
2965
2966 * eval.c (Fcommandp): Use Qinteractive_form.
2967
58aec0d6
JR
29682009-03-24 Jason Rumney <jasonr@gnu.org>
2969
2970 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2971 Calculate total size precisely. Decode environment variables
2972 before substituting. (Bug#38)
2973
553dd618
KH
29742009-03-24 Kenichi Handa <handa@m17n.org>
2975
2976 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2977 encoding (Bug#2722).
553dd618 2978
c39ea606
JD
29792009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2980
2981 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2982 that gdpy is set.
2983
bc9b2b5e
AM
29842009-03-22 Alan Mackenzie <acm@muc.de>
2985
2986 * callint.c (Finteractive): Clarify the doc string - even
2987 promptless elements need \n separators.
2988
9f995a76
JR
29892009-03-22 Jason Rumney <jasonr@gnu.org>
2990
2991 * w32term.c (syms_of_w32term): Doc fix for
2992 x-use-underline-position-properties.
2993
22749e9a
EZ
29942009-03-21 Eli Zaretskii <eliz@gnu.org>
2995
2996 * w32.c (getpwuid): Change argument type to unsigned.
2997 (struct w32_id): Change type of `rid' member to unsigned.
2998 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2999 argument ID to unsigned. All callers changed.
3000 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
3001
e00553bf
EZ
30022009-03-20 Eli Zaretskii <eliz@gnu.org>
3003
3004 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
3005 negative, produce a float value.
3006
3007 * dired.c (make_uid, make_gid): New functions.
3008 (Ffile_attributes): Use them to avoid negative UID and GID.
3009
f761d6b6
JB
30102009-03-20 Juanma Barranquero <lekktu@gmail.com>
3011
3012 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
3013 (syms_of_keyboard) <command-hook-internal, input-method-function>:
3014 Fix typos in docstrings.
3015
d507f8d7
KH
30162009-03-19 Kenichi Handa <handa@m17n.org>
3017
3018 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
3019 changed, use font_load_for_lface to get a new font object.
3020 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
3021
3022 * frame.c (x_set_font): Handle the case that ARG is a cons.
3023
c68845e0
GM
30242009-03-19 Glenn Morris <rgm@gnu.org>
3025
3026 * fileio.c (Fsubstitute_in_file_name): Doc fix.
3027
bfa49dd1
CY
30282009-03-19 Chong Yidong <cyd@stupidchicken.com>
3029
3030 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
3031
8458d4c1
KH
30322009-03-19 Kenichi Handa <handa@m17n.org>
3033
3034 * charset.c (load_charset_map_from_file): When a mapfile can't be
3035 loaded, signal an error.
3036
78e7d1fe
EZ
30372009-03-18 Eli Zaretskii <eliz@gnu.org>
3038
3039 * dired.c (Ffile_attributes): Make sure UID and GID are always
3040 positive, even if the value is too large for a positive EMACS_INT.
3041 Doc fix.
3042
3043 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
3044
5da9fdfa
YM
30452009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3046
3047 * xmenu.c (xdialog_show): Move Fredisplay call ...
3048 (Fx_popup_dialog): ... here.
3049
7519c40d
SM
30502009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
3051
3052 * dired.c (file_name_completion): Disable the first optimization just
3053 installed, since it is not implemented correctly.
3054
2cd298e2
SM
30552009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
3056
3057 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 3058 only if the entry can affect bestmatch.
2cd298e2
SM
3059 Stop the search early, as Ftry_completion already does.
3060
48d37adf
CY
30612009-03-17 Chong Yidong <cyd@stupidchicken.com>
3062
e10c9c93 3063 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 3064
9286b16a
CY
30652009-03-15 Chong Yidong <cyd@stupidchicken.com>
3066
3067 * keyboard.c (parse_menu_item): Don't display remappings as menu
3068 equivalent bindings (Bug#788).
3069
f7b146dc
JR
30702009-03-15 Jason Rumney <jasonr@gnu.org>
3071
3072 * w32term.h (WM_EMACS_PAINT): New message.
3073 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
3074 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
3075 before passing to lisp thread. (Bug#950)
3076
f761d6b6 30772009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 3078
d93f9575
CY
3079 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
3080 variable as it was never reset.
3081 (ns_term_init): Remove initialization of Lisp-settable defaults
3082 and ns_expand_space.
3083 (-setPanelFromDefaultValues): Remove ns_expand_space.
3084 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
3085 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
3086 i.e. no additional spacing, similar to Carbon port.
3087
d93f9575
CY
3088 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
3089 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 3090
305018ec
JD
30912009-03-14 Jan Djärv <jan.h.d@swipnet.se>
3092
3093 * sound.c (alsa_configure): Remove call to deprecated
3094 snd_pcm_sw_params_set_xfer_align.
3095
f761d6b6 30962009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
3097
3098 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
3099 after clicking in a detached tool bar.
3100 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
3101
46e722a9
SM
31022009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
3103
348db3dd
SM
3104 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
3105 int/Lisp_Object mixup).
46e722a9 3106
a3d16f39
KH
31072009-03-13 Kenichi Handa <handa@m17n.org>
3108
3109 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 3110 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
3111 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
3112 (set_fontset_font): Change ARG to a vector. Handle range_list in
3113 ARG correctly.
3114 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 3115 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
3116 the above change.
3117 (fontset_from_font): Fix previous change.
fe24f56a 3118 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
3119 entry. If FONTSET is the default fontset, don't set the extra
3120 slot of the returning char-table.
3121
b066e6b6
JB
31222009-03-12 Juanma Barranquero <lekktu@gmail.com>
3123
3124 * nsfns.m (Fx_close_connection): Doc fix.
3125 (Fns_do_applescript): Reflow docstring.
3126 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
3127 (Fx_display_pixel_width, Fx_display_pixel_height)
3128 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
3129 Fix typos in docstrings.
3130 (Fns_set_alpha): Fix typos in error messages.
3131
d472514e 31322009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 3133
d472514e 3134 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
3135 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
3136 were used for such events.
3137
d472514e
JB
3138 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
3139 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 3140
d472514e 3141 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
3142 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
3143
fb930676
KH
31442009-03-11 Kenichi Handa <handa@m17n.org>
3145
ff85581a
KH
3146 * font.h (font_open_by_spec): Extern it.
3147
c50b7e98
KH
3148 * font.c (font_open_by_spec): New function.
3149 (font_open_by_name): Use font_open_by_spec.
3150
fb930676
KH
3151 * frame.c (x_set_font): When ARG is a font-object, don't alter the
3152 fontset of the frame.
3153
3154 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
3155 modify the default font of frames that use this fontset.
3156 (num_auto_fontsets): New variable.
3157 (fontset_from_font): Use num_auto_fontsets to decide a fontset
3158 name. Be sure to set FONTSET_ASCII to the correct font name.
3159 (update_auto_fontset_alist): New function.
3160
df4e8455
JB
31612009-03-11 Juanma Barranquero <lekktu@gmail.com>
3162
3163 * makefile.w32-in: Update dependencies.
3164
0a375797
AR
31652009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3166
3167 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
3168
61313fa3
SM
31692009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
3170
3171 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
3172
b55103fb
CY
31732009-03-10 Chong Yidong <cyd@stupidchicken.com>
3174
3175 * lread.c (Feval_buffer): Doc fix.
3176
dde2559c
KH
31772009-03-09 Kenichi Handa <handa@m17n.org>
3178
3179 * charset.c (Qfile_name_handler_alist): Extern it.
3180 (load_charset_map_from_file): Temporarily bind
3181 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
3182
df4e8455 31832009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 3184
47f588bb
GM
3185 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
3186 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 3187
4ddf94bd
AR
31882009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3189
4c9bdfc2
AR
3190 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
3191 (x_set_window_size): Change back to calculated method of setting
3192 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
3193 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
3194 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
3195
fe41ae9e
AR
3196 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
3197
4c9bdfc2
AR
3198 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
3199 accelerator in parens under GNUstep.
3200
825d0875
KH
32012009-03-06 Kenichi Handa <handa@m17n.org>
3202
3203 These changes are to detect incorrect composition sequence without
f3b3be74 3204 looking ahead the source. (Bug#2370)
825d0875
KH
3205
3206 * coding.h: Include "composite.h".
3207 (enum compisition_state): New enum.
3208 (struct compisition_status): New struct.
3209 (struct iso_2022_spec): New member cmp_status.
3210 (struct emacs_mule_spec): New struct.
3211 (struct coding_system): New members ctext_extended_segment_len and
3212 embedded_utf_8. Change the union member
3213 spec.emacs_mule_full_support to spec.emacs_mule.
3214
3215 * coding.c (CODING_ISO_CMP_STATUS): New macro.
3216 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 3217 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
3218 (ADD_COMPOSITION_DATA): New arg nbytes.
3219 (emacs_mule_char): New arg cmp_status.
3220 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
3221 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
3222 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
3223 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
3224 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
3225 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
3226 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
3227 (EMACS_MULE_COMPOSITION_END): New macro.
3228 (emacs_mule_finish_composition): New function.
3229 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
3230 (decode_coding_emacs_mule): Avoid long looking ahead while
3231 handling composition.
3232 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
3233 (ENCODE_COMPOSITION_RULE): New macro.
3234 (finish_composition): New function.
3235 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
3236 (DECODE_COMPOSITION_START): New implementation.
3237 (DECODE_COMPOSITION_END): Likewise.
3238 (STORE_COMPOSITION_RULE): New macro.
3239 (decode_coding_iso_2022): Avoid long looking ahead while handling
3240 composition, CTEXT extended segment, and embedded UTF-8.
3241 (setup_coding_system): For a coding of type iso-2022, reset
3242 CODING_ISO_EXTSEGMENT_LEN (coding) and
3243 CODING_ISO_EMBEDDED_UTF_8 (coding).
3244 (get_translation): Delete arguments last_block, from_nchars,
3245 to_nchars. Callers changed.
3246 (produce_chars): Don't modify charbuf. Adjusted for the change of
3247 get_translation.
98a326f7 3248 (produce_composition): Adjust for the new annotation sequence.
825d0875 3249 (handle_composition_annotation): Likewise.
98a326f7 3250 (consume_chars): Adjust for the change of get_translation.
825d0875 3251
ccbc4452
AR
32522009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3253
4ddf94bd 3254 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 3255
988a7ddb
KH
32562009-03-05 Kenichi Handa <handa@m17n.org>
3257
3258 * font.c (font_select_entity): New function.
3259 (font_find_for_lface): Use font_select_entity to select a font.
3260
3261 * fontset.c (fontset_find_font): If a font found without
a8a3728b 3262 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
3263 font with C restriction.
3264
98a326f7 32652009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 3266
be1bce46 3267 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 3268
10ea2b82
JR
32692009-03-04 Jason Rumney <jasonr@gnu.org>
3270
2c93b248 3271 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 3272 characters that have already been read. (Bug#2569)
2c93b248 3273
10ea2b82
JR
3274 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
3275 Log an error message if check_image_size failed.
3276 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 3277 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 3278
71a0c011
EZ
32792009-03-02 Eli Zaretskii <eliz@gnu.org>
3280
3281 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
3282 when decoding process output.
3283
2f63bba8
RS
32842009-03-01 Richard M Stallman <rms@gnu.org>
3285
3286 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
3287
3288 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
3289
0a9564cb
EZ
32902009-02-28 Eli Zaretskii <eliz@gnu.org>
3291
3292 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
3293 (decode_coding_emacs_mule, decode_coding_iso_2022)
3294 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3295 (decode_coding_raw_text, decode_coding_charset)
3296 (setup_coding_system, decode_eol, decode_coding, consume_chars):
3297 Honor inhibit-eol-conversion. (Bug #2186)
3298
449148b3
JR
32992009-02-28 Jason Rumney <jasonr@gnu.org>
3300
3301 * coding.c (detect_coding_charset): If not checking latin extra,
3302 fail on characters between 0x80 and 0xA0. (Bug#2354)
3303
a4aee864
EZ
33042009-02-28 Eli Zaretskii <eliz@gnu.org>
3305
3306 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 3307 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 3308
d88bee5a
GM
33092009-02-27 Glenn Morris <rgm@gnu.org>
3310
3311 * callint.c (Finteractive): Doc fix.
3312
a808f22d
KH
33132009-02-27 Kenichi Handa <handa@m17n.org>
3314
3315 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
3316
caf8d60c
CY
33172009-02-27 Chong Yidong <cyd@stupidchicken.com>
3318
3319 * font.c (font_style_to_value): Set value for unknown symbols to
3320 100 instead of 255.
b61137ea
CY
3321 (weight_table, slant_table, width_table): Treat "unspecified" as
3322 the default value.
caf8d60c 3323
1a0de25c
JB
33242009-02-26 Juanma Barranquero <lekktu@gmail.com>
3325
3326 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
3327
8fc45744
JB
33282009-02-25 Juanma Barranquero <lekktu@gmail.com>
3329
107bd7d1
JB
3330 * lread.c (Fload): Stop checking Vloads_in_progress and signal
3331 error as soon as a recursive load is detected.
8fc45744 3332
f097e223
AR
33332009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3334
3335 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
3336 before caching.
3337
8810a12f
KH
33382009-02-24 Kenichi Handa <handa@m17n.org>
3339
3340 * fontset.c (fontset_find_font): Fix the condition for checking
3341 unavailable font.
3342
2c7d1565
GM
33432009-02-24 Glenn Morris <rgm@gnu.org>
3344
3345 * xfaces.c (Finternal_set_font_selection_order): Remove leading
3346 whitespace that confuses documentation.
3347
a20878b6
MB
33482009-02-23 Miles Bader <miles@gnu.org>
3349
3350 * process.c (Flist_system_processes, Fprocess_attributes)
3351 (syms_of_process): Rename `system-process-attributes' to
3352 `process-attributes'.
3353
b3b58c01
AS
33542009-02-22 Andreas Schwab <schwab@linux-m68k.org>
3355
1b3b981b
AS
3356 * coding.h (struct coding_system): Make safe_charsets a pointer to
3357 unsigned char.
3358 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
3359 being 255.
3360 (SAFE_CHARSET_P): Likewise.
3361 (setup_iso_safe_charsets): Properly setup safe_charsets.
3362 (Fdefine_coding_system_internal): Likewise.
3363 (setup_coding_system): Likewise. Remove unneeded casts.
3364 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
3365 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
3366 unneeded casts.
3367
b3b58c01
AS
3368 * insdel.c (del_range_2): Don't modify gap contents when called
3369 from decode_coding_object. (Bug#1809)
3370
0b6f228c
CY
33712009-02-21 Chong Yidong <cyd@stupidchicken.com>
3372
3373 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
3374 Qfont_object.
3375 (Ftype_of): Recognize font objects.
3376
3377 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
3378
3379 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
3380 moved to data.c.
3381
52f8870b
AR
33822009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3383
3384 * nsterm.m (x_make_frame_invisible): Unset async_visible,
3385 async_iconified. Based on a patch by Christian Lynbech
3386 <christian.lynbech@tieto.com>.
3387 (EmacsView-windowDidMiniaturize:): Unset async_visible.
3388
7087d5e9
GM
33892009-02-20 Glenn Morris <rgm@gnu.org>
3390
3391 * syntax.c (Fskip_chars_forward): Fix doc typo.
3392
41d2ceef
CY
33932009-02-20 Chong Yidong <cyd@stupidchicken.com>
3394
3395 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
3396
1a3b7ca6
CY
33972009-02-19 Chong Yidong <cyd@stupidchicken.com>
3398
3399 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
3400
73cce38d
KH
34012009-02-19 Kenichi Handa <handa@m17n.org>
3402
3403 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 3404 Don't overflow coding->carryover. (Bug#2370)
73cce38d 3405
a51092ee
DN
34062009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
3407
3408 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
3409
c423ecca
KH
34102009-02-18 Kenichi Handa <handa@m17n.org>
3411
3412 * font.c (font_check_otf_features): Fix handling of `nil' element.
3413 (Ffont_spec): Describe :lang and :otf in the docstring.
3414
4c1958f4
AS
34152009-02-16 Andreas Schwab <schwab@suse.de>
3416
3417 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
3418 string.
3419
5704f39a
KH
34202009-02-16 Kenichi Handa <handa@m17n.org>
3421
3422 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 3423 (Bug#1723)
5704f39a 3424
8f0085aa
CY
34252009-02-14 Chong Yidong <cyd@stupidchicken.com>
3426
a057d86a 3427 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
3428
3429 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
3430 (handle_line_prefix): Suppress wrapping of wrap prefixes.
3431
aff01dd9
EZ
34322009-02-14 Eli Zaretskii <eliz@gnu.org>
3433
3434 * msdos.c (MAX_SCREEN_BUF): New macro.
3435 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
3436 Encode the entire run of glyphs sharing the same face, instead of
3437 doing that one glyph at a time (fixes a bug with displaying
3438 double-size characters).
3439
ba301db3
AR
34402009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
3441
3442 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
3443
3444 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
3445 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 3446 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
3447
3448 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 3449 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 3450
51d861de
SM
34512009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
3452
3453 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
3454 invisible areas.
3455
7fed8996
JR
34562009-02-12 Jason Rumney <jasonr@gnu.org>
3457
631ea4fb
JR
3458 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
3459 (add_font_entity_to_list): Call check_face_name even when family
3460 is unspecified.
3461
cb4a3e42
JR
3462 * w32term.c (x_display_pixel_height, x_display_pixel_width):
3463 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 3464 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 3465
7fed8996 3466 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 3467 raster fonts. (Bug#2219)
7fed8996 3468
895416e3
KH
34692009-02-12 Kenichi Handa <handa@m17n.org>
3470
3471 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
3472 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
3473 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 3474 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3475 (find_automatic_composition): While looking forward and backward,
3476 check static composition. Fix where to stop looking forward.
3477 (composition_adjust_point): Fix checking of static composition.
3478 (Fcomposition_get_gstring): Pay attention to
1dacf998 3479 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
3480
3481 * lisp.h (fast_looking_at): Extern it.
3482
3483 * search.c (fast_looking_at): New function.
3484
51d861de 3485 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
3486 <struct glyph>.u.cmp.to.
3487 (append_composite_glyph): Likewise.
3488
51d861de 3489 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
3490 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
3491 composition.
51d861de 3492 (append_composite_glyph): Adjust for the change of
895416e3
KH
3493 <strcut glyph>.u.cmp.to.
3494
8510724d
JB
34952009-02-11 Juanma Barranquero <lekktu@gmail.com>
3496
3497 * casetab.c (init_casetab_once):
3498 * coding.c (ALLOC_CONVERSION_WORK_AREA):
3499 * font.c (font_update_lface):
3500 * fontset.c (Fnew_fontset):
3501 * ftfont.c (ftfont_drive_otf):
3502 * xfont.c (xfont_open):
3503 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
3504
294fa707
SM
35052009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
3506
3507 * fileio.c (Fwrite_region): !NILP -> CONSP.
3508
b5bfebec
AS
35092009-02-10 Andreas Schwab <schwab@suse.de>
3510
3511 * process.c (send_process): Properly relocate pointer into data
adab88bd 3512 when using encoded data. (Bug#2272)
b5bfebec 3513
cb84a2be
KH
35142009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
3515
3516 * coding.c (detect_coding_charset): Fix previous change.
3517
89e09428
JR
35182009-02-08 Jason Rumney <jasonr@gnu.org>
3519
3520 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 3521 disappeared while hourglass was displayed. (Bug #2193)
89e09428 3522
4470a277
AS
35232009-02-07 Andreas Schwab <schwab@suse.de>
3524
3525 * unexelf.c (unexec): Fix error message.
3526
3175b12a
AR
35272009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
3528
3529 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 3530 when modal window is active. (Bug #2152)
3175b12a
AR
3531 (applicationShouldTerminate:): Remove now-unneeded while loop
3532 around NSRunAlertPanel.
3533
3534 * nsmenu.m (popupSession): New file-global variable.
3535 (pop_down_menu): End the popupSession before closing dialog.
3536 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
3537 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
3538 don't query NSApp for events (just sleep instead).
3539
8434d0b8
EZ
35402009-02-07 Eli Zaretskii <eliz@gnu.org>
3541
51d861de
SM
3542 * coding.c (syms_of_coding) <translation-table-for-input>:
3543 Modify doc string to discourage use for character code unification.
8434d0b8 3544
aa82edfd
CY
35452009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3546
3547 * atimer.c (run_timers): Update pending_atimers.
3548
2d283c7c
CY
35492009-02-06 Chong Yidong <cyd@stupidchicken.com>
3550
eb306cab
CY
3551 * image.c (svg_load_image): Fix last change.
3552
2d283c7c
CY
3553 * xfns.c (Fx_create_frame): Signal an error if no font is
3554 found (Bug#2147).
3555
4d8e170e
JB
35562009-02-05 Juanma Barranquero <lekktu@gmail.com>
3557
3558 * character.c (syms_of_character) <script-representative-chars>:
3559 Fix typo in docstring.
3560
c96169a0
AR
35612009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3562
3563 * nsmenu.m (pop_down_menu): New function.
3564 (ns_popup_dialog): Call it on unwind.
3565 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
3566 call timer_check() (Bug#2154).
3567 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
3568 handling_signal is set.
3569 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
3570
31fd7c5c 3571 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
3572
3573 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
3574
3575 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
3576
51d861de
SM
3577 * keyboard.c (poll_for_input_1, handle_async_input):
3578 Set handling_signal under HAVE_NS.
c96169a0 3579
aacd8ba1
GM
35802009-02-04 Glenn Morris <rgm@gnu.org>
3581
3582 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
3583
4cb75c4b
KH
35842009-02-04 Kenichi Handa <handa@m17n.org>
3585
3586 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
3587
3588 * charset.c (Fchar_charset): New optional arg restriction.
3589
3590 * coding.h (coding_system_charset_list): Extern it.
3591
3592 * coding.c (coding_system_charset_list): New function.
3593
3594 * composite.c: Include coding.h and termhooks.h.
3595 (composition_gstring_p): Fix for the terminal case.
3596 (composition_gstring_width): Likewise.
3597 (fill_gstring_body): Likewise.
3598 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
3599 the frame.
3600 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
3601 is within a composition.
867d4bb3 3602 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
3603
3604 * term.c (encode_terminal_code): Fix handling of composition.
3605 (produce_composite_glyph): For static composition, get pixel_width
3606 from struct composition.
3607
826ba17e
AS
36082009-02-02 Andreas Schwab <schwab@suse.de>
3609
3610 * unexelf.c (unexec): Handle unaligned bss offset.
3611
8ad093db
AR
36122009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3613
3614 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
3615 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 3616
8ad093db
AR
3617 * keyboard.c (handle_interrupt): Don't call
3618 quit_throw_to_read_char() under NS.
d0a76a6e 3619
8ad093db
AR
3620 * blockinput.h: Remove NS-specific code.
3621
4d18a7a2
DN
36222009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
3623
db878925
DN
3624 * dispnew.c (window_change_signal): Don't try to get the size of a
3625 suspended tty frame.
3626 * term.c (Fresume_tty): Resize if the size has changed while the
3627 tty was suspended.
3628
4d18a7a2
DN
3629 * alloc.c (mark_stack): Properly conditionalize previous change.
3630
8984df7c
JB
36312009-01-30 Juanma Barranquero <lekktu@gmail.com>
3632
3633 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
3634 * w32term.c (w32_read_socket) [SYNC_INPUT]:
3635 Remove; this code is not used on Windows.
3636
75f4f1ac
EZ
36372009-01-30 Eli Zaretskii <eliz@gnu.org>
3638
3639 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
3640 EOLs that also has stray ^M characters.
3641
07a1e794
JB
36422009-01-30 Juanma Barranquero <lekktu@gmail.com>
3643
3644 * atimer.c (run_timers, alarm_signal_handler):
3645 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
3646 * w32inevt.c (w32_console_read_socket):
3647 * w32term.c (w32_read_socket):
3648 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
3649
a8b11cc9
CY
36502009-01-30 Chong Yidong <cyd@stupidchicken.com>
3651
3652 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
3653 Initialize it as a relative filename pattern.
3654 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
3655 (Fcall_process_region): Simplify temp file creation using
3656 temporary-file-directory.
3657
c279587b
EZ
36582009-01-29 Eli Zaretskii <eliz@gnu.org>
3659
3660 * msdos.c: Rename pending_signals to msdos_pending_signals.
3661 (sig_suspender, sigprocmask): Adjust.
3662
a8fe3242
CY
36632009-01-29 Chong Yidong <cyd@stupidchicken.com>
3664
3665 * keyboard.c (pending_signals): New var.
3666 (poll_for_input, input_available_signal, init_keyboard): Set it.
3667 (process_pending_signals): New function.
3668
3669 * lisp.h (QUIT): Check pending_signals instead of
3670 interrupt_input_pending. Use process_pending_signals.
3671
51d861de 3672 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3673
51d861de 3674 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3675
3676 * sysdep.c (emacs_write): Use process_pending_signals.
3677
3678 * xterm.c (XTread_socket): Update pending_signals.
3679
3680 * w32term.c (w32_read_socket): Update pending_signals.
3681
3682 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3683
6570a1c4
KH
36842009-01-29 Kenichi Handa <handa@m17n.org>
3685
3686 * xftfont.c (xftfont_has_char): New function.
3687 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3688
d72a4afa
AR
36892009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3690
3691 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3692 under GNUstep.
3693 (ns_query_color): New declaration.
3694
3695 * nsterm.m (ns_confirm_quit): New variable.
3696 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3697 (EmacsApp-applicationShouldTerminate:): Use it.
3698 (EmacsPrefsController): Let user set it.
3699 (ns_query_color): New function.
3700 (ns_defined_color): Use it.
3701 (ns_initialize): Drop.
3702 (ns_term_init): Add two lines from ns_initialize(), and set
3703 input_interrupt_mode to nil.
3704
3705 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3706 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3707
9fe78804
KH
37082009-01-28 Kenichi Handa <handa@m17n.org>
3709
3710 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3711 (fontset_get_font_group): Remember that no font-group is specified
3712 for C.
9fe78804 3713
fa57de36
CY
37142009-01-27 Chong Yidong <cyd@stupidchicken.com>
3715
930600e9
CY
3716 * fns.c (concat): Check for string overflow (bug#1787).
3717
fa57de36
CY
3718 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3719 Quadruple undo limits (bug#1501).
3720
7179ce7b
KH
37212009-01-27 Kenichi Handa <handa@m17n.org>
3722
3723 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3724 directly use GT_Get_Char_index.
3725
3726 * xftfont.c (struct xftfont_info): New member `index'.
3727
3728 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3729 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3730
5be8fcc0
CY
37312009-01-26 Kenichi Handa <handa@m17n.org>
3732
3733 * fontset.c (fontset_find_font): Fix handling of non-cons return
3734 value of fontset_get_font_group.
3735 (fontset_font): Revert last change.
3736
19ae3e61
JR
37372009-01-26 Jason Rumney <jasonr@gnu.org>
3738
3739 * w32font.c (w32font_list_internal): Return quickly if registry is
3740 unknown. Simplify final return.
3741 (add_font_entity_to_list): Break complex logic down into more
3742 manageable chunks. Move unknown registry check to
3743 w32font_list_internal.
3744
8612b71a
AR
37452009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3746
3747 Changes to remove Feval calls from GUI under NS.
3748
d8038940
JB
3749 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3750 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3751 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3752
3753 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3754 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3755 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3756 instead of NON_ASCII_KEYSTROKE_EVENT.
3757 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3758 (EmacsApp-applicationShouldTerminate:): Query user.
3759 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3760 instead of Feval.
3761
3762 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3763
3764 * keyboard.c (kbd_buffer_get_event): Check for it.
3765 (keys_of_keyboard): Define lispy keys for
3766 ns-put/unput-working-text.
3767
3768 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3769 versions.
3770 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3771
6288ae55
CY
37722009-01-25 Chong Yidong <cyd@stupidchicken.com>
3773
3774 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3775 setting current_buffer directly. (Bug#2044)
6288ae55 3776
289e7f8f
CY
37772009-01-24 Chong Yidong <cyd@stupidchicken.com>
3778
5ce87308 3779 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3780 any work. (Bug#1952, bug#1990).
5ce87308 3781
64cc3cf6 3782 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3783
b3243e6f
AR
37842009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3785
3786 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3787 (ns_no_defaults): New declaration.
3788 (main): Use it.
e0d2e69a 3789
d900b2af 3790 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3791
d900b2af 3792 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3793
d900b2af
AR
3794 * nsterm.m (ns_no_defaults): New variable.
3795 (ns_initialize): Don't read defaults when ns_no_defaults.
3796 (EmacsView-readSelectionFromPasteboard:)
3797 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3798 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3799 (ns_dumpglyphs_stretch): New function.
3800 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3801 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3802
e0d2e69a
AR
3803 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3804
3ac71f5d
CY
38052009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3806
3807 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3808 call for Sparc64.
3809
3fe53a83
AR
38102009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3811
3812 * nsfns.m:
3813 * nsgui.h:
3814 * nsmenu.m:
3815 * nsselect.m:
3816 * nsterm.h:
3817 * nsterm.m: Remove '23' comments that indicated code added during
3818 update from emacs-20 -> emacs-23.
3819
10f87c6f 38202009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3821
3822 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3823 ns_alternate_modifier. (Bug#1217)
a3b53a85 3824
c7cef62d
AR
3825 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3826 Display all shortcuts, including those w/o super modifier.
3827
575fb8bd
AR
3828 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3829
918b848b
CY
38302009-01-22 Chong Yidong <cyd@stupidchicken.com>
3831
3832 * fileio.c (Vwrite_region_post_annotation_function)
3833 (Vwrite_region_annotation_buffers): New vars.
3834 (build_annotations_unwind): Just reset
3835 Vwrite_region_annotation_buffers.
3836 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3837 Call write-region-post-annotation-function.
3838 (build_annotations): Add to Vwrite_region_annotation_buffers if
3839 buffer changes.
3840
a39e2539
AR
38412009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3842
3843 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3844 Tiger.
51d861de
SM
3845 * nsfns.m (ns_do_applescript):
3846 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3847
35ed44db
AR
38482009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3849
3850 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3851
cbe0b5bf
AR
38522009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3853
3854 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3855
6049d3a0
AR
3856 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3857
3858 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3859 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3860 handle Ctrl-tab. (Bug#1841)
3861 (ns_get_color): Use unsigned long long for scanned hex string value.
3862 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3863 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3864 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3865 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3866 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3867 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3868 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3869
d3810c21 3870 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3871 DPI. (Bug#1316)
d3810c21
AR
3872 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3873 values in onTiger section.
4c7077c3 3874
e301e634
CY
38752009-01-19 Chong Yidong <cyd@stupidchicken.com>
3876
7f82490b
CY
3877 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3878 Check return value of font_spec_from_name.
64cc3cf6 3879 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3880
3881 * font.c (font_spec_from_name): Return Qnil if font name could not
3882 be parsed.
3883 (font_parse_name): Treat a `?' character as part of an XLFD.
3884
e301e634
CY
3885 * fns.c (Fsubstring): Doc fix.
3886
1c0db158
KH
38872009-01-19 Kenichi Handa <handa@m17n.org>
3888
51d861de 3889 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3890 (ftfont_list): Likewise.
3891
acf20901
JB
38922009-01-18 Juanma Barranquero <lekktu@gmail.com>
3893
fff4e459
JB
3894 * dbusbind.c (Fdbus_register_signal):
3895 * process.c (conv_sockaddr_to_lisp):
3896 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3897
acf20901
JB
3898 * callproc.c (Fgetenv_internal): Doc fix.
3899
e7abcdfb
CY
39002009-01-16 Chong Yidong <cyd@stupidchicken.com>
3901
3902 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3903 it is not even used.
3904
b60861e6
GM
39052009-01-16 Glenn Morris <rgm@gnu.org>
3906
3907 * font.c (Ffont_variation_glyphs): Silence compiler.
3908
8db52afe
JB
39092009-01-15 Juanma Barranquero <lekktu@gmail.com>
3910
3911 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3912 Reported by David Robinow <drobinow@gmail.com>.
3913
4cddb209
KH
39142009-01-15 Kenichi Handa <handa@m17n.org>
3915
51d861de 3916 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3917
f247f67b
JR
39182009-01-14 Jason Rumney <jasonr@gnu.org>
3919
3920 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3921 never a fontset. (Bug#1562)
f247f67b 3922
f56a4450
KH
39232009-01-14 Kenichi Handa <handa@m17n.org>
3924
3925 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3926 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3927
4e99855e
CY
39282009-01-13 Chong Yidong <cyd@stupidchicken.com>
3929
3930 * font.c (font_clear_prop): If clearing the family, clear the font
3931 width index too.
3932
fff4e459 3933 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3934
24f01470
JB
39352009-01-12 Juanma Barranquero <lekktu@gmail.com>
3936
3937 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3938 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3939 functions, use sizeof.
3940
a41240a3
MR
39412009-01-12 Martin Rudalics <rudalics@gmx.at>
3942
3943 * keyboard.c (read_char): Fix case where last_nonmenu_event
3944 returned a bad value with submenus. (Bug#447)
3945
944636b8
CY
39462009-01-12 Chong Yidong <cyd@stupidchicken.com>
3947
3948 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3949 family, clear the font width index too.
3950
0dad7c6f
JR
39512009-01-11 Jason Rumney <jasonr@gnu.org>
3952
3953 * keyboard.c (cmd_error_internal): Exit when errors occur before
3954 frame creation and not in daemon mode. (Bug#1836)
3955
7c2363af
CY
39562009-01-10 Chong Yidong <cyd@stupidchicken.com>
3957
3958 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3959 of a display vector, backtrack.
3960 (try_window_reusing_current_matrix): Check glyph type before
3961 referencing charpos member.
3962
97b1b294
EZ
39632009-01-10 Eli Zaretskii <eliz@gnu.org>
3964
3965 Fix Bug #876:
3966
3967 * coding.c (inhibit_null_byte_detection): New variable.
3968 (detect_coding, detect_coding_system): Don't pay attention to null
3969 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3970 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3971 <inhibit-iso-escape-detection>: Doc fix.
3972
4624b6e3
JR
39732009-01-09 Jason Rumney <jasonr@gnu.org>
3974
3975 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3976 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3977 Only report Unicode Plane 2 fonts as unicode-sip.
3978
323b840c
CY
39792009-01-09 Chong Yidong <cyd@stupidchicken.com>
3980
51d861de
SM
3981 * xfaces.c (Fx_font_family_list): Delete function.
3982 Move compatibility version to faces.el.
323b840c 3983
51d861de 3984 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3985
eba7400d
MR
39862009-01-09 Martin Rudalics <rudalics@gmx.at>
3987
3988 * frame.c (x_set_frame_parameters): Remember requested value for
3989 fullscreen before it's reset by the parameter handler.
3990
4b09796d
GM
39912009-01-09 Glenn Morris <rgm@gnu.org>
3992
3993 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3994 (last_command_event): ... and update all users.
4b09796d
GM
3995 (last_input_char): For clarity, rename to...
3996 (last_input_event): ... and update all users.
3997 (last-command-char, last-input-char): Move to subr.el as aliases.
3998 * cmds.c, commands.h: Update for last_command_char rename.
3999
14ccea62
CY
40002009-01-08 Chong Yidong <cyd@stupidchicken.com>
4001
51d861de 4002 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 4003
5f004711
JR
40042009-01-08 Jason Rumney <jasonr@gnu.org>
4005
4006 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
4007 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
4008 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
4009 Don't declare.
fff4e459 4010 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
4011 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
4012
b71f6f73
KH
40132009-01-07 Kenichi Handa <handa@m17n.org>
4014
50b06221 4015 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 4016 remember the coding system used for decoding in
50b06221
KH
4017 coding_system (Bug#1039).
4018
b71f6f73 4019 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 4020 breaking the loop. (Bug#870)
b71f6f73
KH
4021 (decode_coding_utf_16, decode_coding_emacs_mule)
4022 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4023 (decode_coding_charset): Likewise.
4024
56f668f7
MR
40252009-01-05 Martin Rudalics <rudalics@gmx.at>
4026
4027 * frame.c (x_set_frame_parameters): Make sure height (width) get
4028 applied when fullwidth (fullheight) is set. (Bug#1522)
4029
5da9424d
JB
40302009-01-04 Juanma Barranquero <lekktu@gmail.com>
4031
4032 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
4033 (utc_base): Declare as ULONGLONG, not long double.
4034 (convert_time_raw): Delete.
4035 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
4036 (initialize_utc_base): New function.
4037 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
4038 (convert_from_time_t): Use initialize_utc_base; compute result with
4039 64-bit arithmetic.
4040 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
4041
c4605e09
EZ
40422009-01-03 Eli Zaretskii <eliz@gnu.org>
4043
9acef61c 4044 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
4045 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
4046 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
4047 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
4048 [!subprocesses]: Define.
4049 (syms_of_process) [!subprocesses]: Intern and staticpro them.
4050 (Flist_system_processes, Fsystem_process_attributes)
4051 [!subprocesses]: Call list_system_processes and
4052 system_process_attributes instead of returning Qnil.
4053
9acef61c
JB
4054 * dosfns.c (system_process_attributes, list_system_processes):
4055 New functions.
c4605e09
EZ
4056
4057 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
4058
4059 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
4060 Don't use the default (no-op) implementation.
4061
8b7d0a16
JR
40622009-01-03 Jason Rumney <jasonr@gnu.org>
4063
a6d46bc1
JR
4064 * keyboard.c (parse_modifiers_uncached): Wheel events are
4065 clicks (bug#687).
4066
8b7d0a16
JR
4067 * w32term.c (x_query_colors, x_query_color): New functions.
4068
4069 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
4070 (svg_load_image): Cast returned pointers from dynamically loaded
4071 functions. Eliminate W32 specific code.
4072
bfe11752
DN
40732009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
4074
89e2438a
DN
4075 * nsfns.m (x_set_foreground_color, x_set_background_color)
4076 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
4077 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
4078 x_ prefix instead of ns_. Update references.
4079 (syms_of_nsfns): Add a FIXME comment.
4080
4081 * nsterm.m (x_set_cursor_type): New prototype.
4082 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
4083
bfe11752
DN
4084 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
4085 for Solaris instead of incorrectly providing Qutime and Qcutime.
4086
031da700
EZ
40872009-01-02 Eli Zaretskii <eliz@gnu.org>
4088
4089 * w32.c (process_times): Compute sum of utime and stime.
4090 (system_process_attributes): Add Qtime to the alist.
4091
4092 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
4093 and add them to the alist.
4094
4095 * process.c (top level) <Qtime, Qctime>: New variables.
4096 (syms_of_process): staticpro them.
4097 (Fsystem_process_attributes): Add their documentation to the doc
4098 string.
4099
4100 * process.h: Declare Qtime and Qctime.
4101
df23bf08
JR
41022009-01-02 Jason Rumney <jasonr@gnu.org>
4103
9acef61c 4104 * image.c (Qgobject): New symbol.
df23bf08
JR
4105 (syms_of_image): Initialize it.
4106 (init_svg_functions): Load some functions from gobject library.
4107
5bbdf7aa
DN
41082009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
4109
4110 * frame.c (make_terminal_frame): Remove redundant code and useless
4111 block.
4112
63136da6
AS
41132009-01-01 Andreas Schwab <schwab@suse.de>
4114
4115 * process.c (conv_sockaddr_to_lisp): Add workaround for
4116 getsockname bug on BSD.
4117
9ef69046
CY
41182009-01-01 Chong Yidong <cyd@stupidchicken.com>
4119
d6fafbe0
CY
4120 * xfns.c (x_create_tip_frame): Set border width of the X window.
4121
51d861de 4122 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 4123
f9c34147
JR
41242009-01-01 Jason Rumney <jasonr@gnu.org>
4125
9acef61c 4126 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
4127 Don't block input, as per earlier xterm.c changes.
4128
f5497e45
AR
41292008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
4130
4131 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
4132 (ns_appkit_version_int): New function.
4133 (x-server-version): Use ns_appkit_version_int and follow 21+
4134 convention of returning 3 integers.
4135
c19cab20
KH
41362008-12-30 Kenichi Handa <handa@m17n.org>
4137
4138 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
4139 (CHAR_SURROGATE_PAIR_P): New macro.
4140
4141 * font.h (struct font_driver): New member get_variation_glyphs.
4142
9acef61c 4143 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
4144 (Ffont_variation_glyphs): New function.
4145 (syms_of_font): Defsubr it.
4146
4147 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
4148 ftfont_variation_glyphs.
4149 (setup_otf_gstring): New function.
4150 (ftfont_drive_otf): Use it.
4151 (ftfont_shape_by_flt): Handle variation selector.
4152 (ftfont_variation_glyphs): New function.
4153
28cd591f
MR
41542008-12-30 Martin Rudalics <rudalics@gmx.at>
4155
4156 * frame.c (Vemacs_iconified): Remove.
4157
7f714baf
JR
41582008-12-30 Jason Rumney <jasonr@gnu.org>
4159
4160 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 4161 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 4162
9d2d22ab
CY
41632008-12-30 Chong Yidong <cyd@stupidchicken.com>
4164
4165 * indent.c (Fvertical_motion): Don't advance iterator if we have
4166 reseated to the desired position.
4167
4168 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
4169 checking for pos match.
4170
545312c2
KH
41712008-12-30 Kenichi Handa <handa@m17n.org>
4172
1ede3eb6
KH
4173 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
4174 just get the low 8-bit of the code.
4175
545312c2
KH
4176 * font.c (font_intern_prop): Validate str as multibyte.
4177
bd7bbf29
DN
41782008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4179
31e0750e
DN
4180 * dispextern.h (struct face): Move lface and hash from the middle
4181 of bitfields.
4182
bd7bbf29
DN
4183 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
4184
b5672e7c
DN
41852008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
4186
4187 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
4188 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
4189 instead of intervals.h.
4190
d704470f
AS
41912008-12-26 Andreas Schwab <schwab@suse.de>
4192
4193 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
4194 cons.
4195
54b33868
MR
41962008-12-26 Martin Rudalics <rudalics@gmx.at>
4197
4198 * textprop.c (Qminibuffer_prompt): New variable.
4199 (syms_of_textprop): Initialize it.
4200 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
4201 in minibuffer-prompt face. (Bug#1662)
4202
40b615d6
JR
42032008-12-25 Jason Rumney <jasonr@gnu.org>
4204
4205 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
4206
baae5c2d
JR
42072008-12-24 Jason Rumney <jasonr@gnu.org>
4208
4209 * ralloc.c (r_alloc_reset_variable): New function.
4210
4211 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 4212 record of what points where. (Bug#716)
baae5c2d 4213
a9051c88
DN
42142008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
4215
4216 * minibuf.c (read_minibuf): Follow the non-interactive case when
4217 running as a daemon, before detaching.
4218
8b146312
AS
42192008-12-22 Andreas Schwab <schwab@suse.de>
4220
4221 * buffer.c (init_buffer): Use realloc instead of xrealloc.
4222 * gtkutil.c (free_widget_value): Use xfree instead of free.
4223
56f2de10
MR
42242008-12-22 Martin Rudalics <rudalics@gmx.at>
4225
4226 * frame.c (delete_frame): New function derived from
4227 Fdelete_frame to handle Qnoelisp value for FORCE argument.
4228 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
4229 (Fdelete_frame): Call delete_frame. Remove line from doc-string
4230 saying that FORCE non-nil doesn't run `delete-frame-functions'.
4231 * frame.h: Extern delete_frame.
4232 * window.c (window_loop):
4233 * terminal.c (delete_terminal):
4234 * xterm.c (x_connection_closed):
4235 * xfns.c (Fx_hide_tip):
9acef61c 4236 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 4237
1fc200d6
JR
42382008-12-21 Jason Rumney <jasonr@gnu.org>
4239
4240 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
4241 when character maps to .notdef character.
4242
5e252df2
SM
42432008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
4244
4245 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
4246
99b72cc4
JR
42472008-12-20 Jason Rumney <jasonr@gnu.org>
4248
4249 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 4250 a graphical frame on Windows. (Bug#1325)
99b72cc4 4251
acc49a52
JD
42522008-12-20 Jan Djärv <jan.h.d@swipnet.se>
4253
4254 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
4255
6ea15123
CY
42562008-12-20 Chong Yidong <cyd@stupidchicken.com>
4257
4258 * minibuf.c (Fread_buffer): Doc fix.
4259
b2dab6c8
JR
42602008-12-20 Jason Rumney <jasonr@gnu.org>
4261
54ea0c87 4262 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 4263 server name in UNC paths. (Bug#719)
54ea0c87 4264
b2dab6c8 4265 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 4266 charbuf. (Bug#1035)
b2dab6c8 4267
6d1921be
DN
42682008-12-19 Daniel Engeler <engeler@gmail.com>
4269
4270 * sysdep.c (serial_configure): Fix typo.
4271
53934c98
DN
42722008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4273
4274 * sysdep.c: Include alloca.h.
f4f634e8
DN
4275 (system_process_attributes): Add implementation for Solaris.
4276
4277 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 4278
06e111a6
DN
42792008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
4280
4281 Reorganize implementation of Flist_system_processes and
4282 Fsystem_process_attributes. No functional changes.
4283 * process.c: Don't #include pwd.h, grp.h and limits.h.
4284 (Flist_system_processes): Just call list_system_processes.
4285 (Fsystem_process_attributes): Just call system_process_attributes.
4286 (procfs_list_system_processes, time_from_jiffies)
4287 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
4288 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
4289
4290 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
4291 (list_system_processes): Rename from
4292 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
4293 Provide a do nothing implementation.
4294 (system_process_attributes): Rename from
4295 procfs_list_system_processes.
4296 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 4297 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
4298
4299 * w32.c (list_system_processes): Rename from
4300 w32_list_system_processes.
4301 (system_process_attributes): Rename from
4302 w32_system_process_attributes.
4303
4304 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
4305
4306 * process.h (w32_list_system_processes)
4307 (w32_system_process_attributes): Remove.
362654a6
JB
4308 (list_system_processes, system_process_attributes):
4309 New prototypes.
06e111a6 4310
6a705b23
KH
43112008-12-19 Kenichi Handa <handa@m17n.org>
4312
4313 * xfont.c (xfont_decode_coding_xlfd): New function.
4314 (xfont_encode_coding_xlfd): New function.
4315 (xfont_list_pattern): Decode XLFD by iso-8859-1.
4316 (xfont_list): Decode and encode XLFD by iso-8859-1.
4317 (xfont_match): Likewise.
4318 (xfont_list_family): Likewise.
4319 (xfont_open): Likewise.
4320
d66c0241 4321 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
4322 names are utf-8.
4323
d66c0241 4324 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
4325 names are utf-8.
4326
5a130941
JD
43272008-12-18 Jan Djärv <jan.h.d@swipnet.se>
4328
4329 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
4330 changed.
bfd20325
JD
4331 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
4332 clicked on a detached tool bar button.
5a130941 4333
fd95644b
DN
43342008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
4335
4336 * emacs.c (main): Print and error and exit when no data is read
4337 from the pipe.
4338
e6eee6ae
JR
43392008-12-17 Jason Rumney <jasonr@gnu.org>
4340
4341 * w32font.c (w32font_has_char): Always return -1.
4342
a35dd56b
KH
43432008-12-16 Kenichi Handa <handa@m17n.org>
4344
4345 * font.c (font_open_entity): Fix previous change.
4346
0e3635c2
DN
43472008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
4348
4349 * process.c: Include <limits.h>.
4350
d4835507 43512008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
4352
4353 * font.c (font_update_drivers): Fix mistake in reconstructing the
4354 driver list.
4355
43562008-12-16 Chong Yidong <cyd@stupidchicken.com>
4357
4358 * font.c (font_clear_cache): Fix format of font cache data.
4359
e2cbc401
CY
43602008-12-15 Chong Yidong <cyd@stupidchicken.com>
4361
4362 * xftfont.c (xftfont_open): Free Xft font pattern if
4363 XftFontOpenPattern fails.
4364
4365 * xterm.c (x_free_frame_resources): Remove extraneous call to
4366 free_frame_faces.
4367
b131d535
CY
43682008-12-13 Chong Yidong <cyd@stupidchicken.com>
4369
4370 * xterm.c (x_delete_display): Move xim_close_dpy call to
4371 x_delete_terminal.
4372 (x_delete_terminal): Call xim_close_dpy.
4373
e6df5336
JR
43742008-12-13 Jason Rumney <jasonr@gnu.org>
4375
4376 * w32font.c (intern_font_name): New function.
4377 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
4378 (w32font_open_internal, Fx_select_font): Decode font name.
4379 (fill_in_logfont, list_all_matching_fonts): Encode font name.
4380
4381 * w32font.h (intern_font_name): Declare new function.
4382
4383 * w32uniscribe.c (add_opentype_font_name_to_list):
4384 Use intern_font_name.
4385
20d68145
CY
43862008-12-13 Chong Yidong <cyd@stupidchicken.com>
4387
9f2554de
CY
4388 * frame.c (Fdelete_frame): Call free_font_driver_list.
4389
3d9bec9a
CY
4390 * font.c (free_font_driver_list): Implement missing function.
4391
20d68145
CY
4392 * w32term.c (w32_term_init): Don't initialize the image cache
4393 here; it will be done in init_frame_faces.
4394
4395 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
4396 (struct x_display_info): Remove unused member null_pixel. New
4397 member xim_callback_data.
4398
4399 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
4400 (xim_initialize): Save pointer to callback function data.
4401 (xim_close_dpy): Free callback function data. Call XCloseIM,
4402 reverting 2008-11-04 change by David Smith.
4403 (x_term_init): Don't initialize the image cache here; it will be
4404 done in init_frame_faces. Remove ancient "null_pixel" cruft.
4405 (x_delete_display): Free x_dnd_atoms member.
4406
96f9306b
KH
44072008-12-13 Kenichi Handa <handa@m17n.org>
4408
6dec9044
JB
4409 * font.c (font_rescale_ratio): Moved from xfaces.c.
4410 Argument type changed. Handle a font-spec too.
96f9306b 4411 (font_score): Check Vface_font_rescale_alist.
6dec9044 4412 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
4413
4414 * xfaces.c (font_rescale_ratio): Moved to font.c.
4415
8d5b4964
CY
44162008-12-13 Chong Yidong <cyd@stupidchicken.com>
4417
4418 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
4419
e6df5336
JR
44202008-12-12 Jason Rumney <jasonr@gnu.org>
4421
4422 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
4423 Vwindow_system_version to the real w32 major version.
4424
97c6058a
DN
44252008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
4426
4427 * term.c (init_tty): Move setting the terminal name before the
4428 potential user: maybe_fatal.
4429
ec4e88d7
CY
44302008-12-11 Chong Yidong <cyd@stupidchicken.com>
4431
d4835507
JB
4432 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
4433 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 4434
b4233ec9
JR
44352008-12-11 Jason Rumney <jasonr@gnu.org>
4436
8ec71e23 4437 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 4438 SYMBOL_CHARSET. (Bug#547)
8ec71e23 4439
b4233ec9 4440 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 4441 size for surrogates. (Bug#1096, bug#872)
b4233ec9 4442
011a0143
JB
44432008-12-11 Juanma Barranquero <lekktu@gmail.com>
4444
4445 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
4446
3c309f34
JB
44472008-12-11 Juanma Barranquero <lekktu@gmail.com>
4448
4449 * process.c (Fsystem_process_attributes, syms_of_process):
4450 Fix typo in name of Ssystem_process_attributes.
4451 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
4452
fedc6ab5
JB
44532008-12-11 Juanma Barranquero <lekktu@gmail.com>
4454
4455 * syntax.c (Fmodify_syntax_entry): Doc fix.
4456
ba3de0e8
JB
44572008-12-10 Juanma Barranquero <lekktu@gmail.com>
4458
4459 * font.c (Ffont_spec): Move usage to end of docstring.
4460
174f1c74
JR
44612008-12-10 Jason Rumney <jasonr@gnu.org>
4462
4463 * w32font.c (Qcham): New symbol.
4464 (font_supported_scripts): Add cham, and comments for other new
4465 scripts in bitfield from OpenType spec.
9d32f818
JR
4466 (add_font_entity_to_list): Limit unicode-sip fonts to those that
4467 contain characters beyond the bmp.
174f1c74 4468
7b649478
KH
44692008-12-10 Kenichi Handa <handa@m17n.org>
4470
4471 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 4472 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
4473 Qunicode_sip.
4474
2133e2d1
JB
44752008-12-10 Juanma Barranquero <lekktu@gmail.com>
4476
4477 * coding.c (QCdefault_char): Rename from QCdefalut_char.
4478 (Fcoding_system_put): Use QCdefault_char.
4479 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
4480
9af886ee
CY
44812008-12-09 Chong Yidong <cyd@stupidchicken.com>
4482
74d819eb
CY
4483 * xftfont.c (syms_of_xftfont): Fix typo.
4484
4ccfa1c0 4485 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 4486
7c19d3ae
DN
44872008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
4488
4489 * emacs.c (main): Close daemon_pipe on exec.
4490
567826bb
CY
44912008-12-08 Chong Yidong <cyd@stupidchicken.com>
4492
4493 * termchar.h (struct tty): New members termcap_term_buffer and
4494 termcap_strings_buffer.
4495
4496 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 4497 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
4498 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
4499 All callers changed.
4500 (init_tty): Store termcap data and string buffers in new struct
4501 tty members termcap_term_buffer and termcap_strings_buffer.
4502 (delete_tty): Free them.
4ccfa1c0 4503 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 4504
aa96c42b
SZ
45052008-12-07 Seiji Zenitani <zenitani@mac.com>
4506
4507 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 4508 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 4509
b7e1d896
CY
45102008-12-06 Chong Yidong <cyd@stupidchicken.com>
4511
4512 * coding.c (make_conversion_work_buffer): Disable buffer
4513 modification hooks in the work buffer.
4514
b5ec91a5
EZ
45152008-12-05 Eli Zaretskii <eliz@gnu.org>
4516
4517 * process.c (procfs_system_process_attributes): If `nread' has a
4518 negative value, assign zero to it.
4519
a5d2a52b
CY
45202008-12-05 Chong Yidong <cyd@stupidchicken.com>
4521
68c5540b 4522 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 4523
7bf1bb21
KH
45242008-12-05 Kenichi Handa <handa@m17n.org>
4525
4526 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
4527 second character is a combining character.
4528
2fdc7d00
EZ
45292008-12-05 Eli Zaretskii <eliz@gnu.org>
4530
4531 * process.c (procfs_system_process_attributes): Don't use cmd,
4532 cmdsize, and q without initializing them first.
4533
bf6bfba8
JR
45342008-12-04 Jason Rumney <jasonr@gnu.org>
4535
4536 * w32font.c (w32font_draw): Initialize orig_clip before getting
4537 it, and delete it when finished.
4538
a3b1a468
DN
45392008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
4540
4541 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
4542 case when running as a daemon before detaching.
4543
8b8be8eb
JB
45442008-12-03 Juanma Barranquero <lekktu@gmail.com>
4545
805f2638 4546 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 4547
b1bde622
KH
45482008-12-03 Kenichi Handa <handa@m17n.org>
4549
e500c47d
KH
4550 * font.c (font_at): Set `multibyte' at first.
4551
ca516334
KH
4552 * coding.c (decode_coding_charset): Check type of an element of
4553 vector VALIDS.
7bf1bb21 4554 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 4555
4ccfa1c0 4556 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
4557 (font_for_char): Likewise.
4558
1e5ecd37
CY
45592008-12-03 Chong Yidong <cyd@stupidchicken.com>
4560
d5b01609 4561 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
4562 (font_update_lface): Handle fonts with corrupted size specs,
4563 i.e. non-int and non-float.
d5b01609 4564
11e3a6e4 4565 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 4566 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 4567 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 4568
ab06788b
CY
4569 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
4570
1e5ecd37 4571 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 4572 underline_minimum_offset for underline position.
1e5ecd37 4573
63c125ab
DN
45742008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
4575
4576 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
4577
4578 * character.c (c_string_width): Specify the type for LEN.
4579
3a8406e1
KH
45802008-12-03 Kenichi Handa <handa@m17n.org>
4581
4ccfa1c0 4582 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 4583 (decode_coding_utf_8): Likewise.
4ccfa1c0 4584 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 4585 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 4586
651df7d9
CY
45872008-12-02 Chong Yidong <cyd@stupidchicken.com>
4588
4589 * keyboard.c (make_lispy_position): Only use PT if the selected
4590 window is current.
4591
1f625c6c
AS
45922008-12-02 Andreas Schwab <schwab@suse.de>
4593
f7741ce9
AS
4594 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
4595
1f625c6c
AS
4596 * doprnt.c (doprnt1): Fix size of charbuf.
4597
92bc2678
CY
45982008-12-02 Chong Yidong <cyd@stupidchicken.com>
4599
4600 * keyboard.c (timer_check): Revert last change.
4601
93b9e8cc
JB
46022008-12-02 Juanma Barranquero <lekktu@gmail.com>
4603
4604 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
4605
fd7a37d5
JB
46062008-12-01 Juanma Barranquero <lekktu@gmail.com>
4607
4608 * makefile.w32-in: Update dependencies.
4609 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
4610
c115043b
AS
46112008-12-01 Andreas Schwab <schwab@suse.de>
4612
4613 * font.c (register_font_driver): Use xmalloc.
4614 (font_put_frame_data): Likewise.
4615
f5668d2a
CY
46162008-12-01 Chong Yidong <cyd@stupidchicken.com>
4617
860d96be
CY
4618 * xfaces.c (realize_x_face): Make abort condition clearer.
4619
f5668d2a
CY
4620 * gtkutil.c (update_frame_tool_bar): Initialize variable.
4621
379c17e7
CY
46222008-11-30 Chong Yidong <cyd@stupidchicken.com>
4623
4624 * keyboard.c (timer_check): After a timer runs, ensure that the
4625 selected window's buffer is current.
4626
35f36d65
JB
46272008-11-30 Juanma Barranquero <lekktu@gmail.com>
4628
f952c61c
JB
4629 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
4630 It was accidentally restored by the Unicode merge.
4631
35f36d65
JB
4632 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
4633
b23077df
JB
46342008-11-29 Juanma Barranquero <lekktu@gmail.com>
4635
4636 * w32proc.c: Include "coding.h".
4637 (Fw32_short_file_name): Encode filename passed to Windows API.
4638 (Fw32_long_file_name): Encode filename passed to Windows API and
4639 decode back the result. (Bug#1433)
4640
b8ebe9dd
KH
46412008-11-29 Kenichi Handa <handa@m17n.org>
4642
8cc53f96
KH
4643 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
4644 not before accessing it.
4645
b8ebe9dd
KH
4646 * charset.c (Fdefine_charset_internal): After calculating
4647 min_char, max_char, and fastmap, copy the charset structure again.
4648 (encode_char): Fix the previous change.
4649
59bc82c0
SZ
46502008-11-28 Seiji Zenitani <zenitani@mac.com>
4651
4652 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
4653
4654 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
4655
4656 * nsterm.m (x_set_frame_alpha): New function.
4657
32247e3d
EZ
46582008-11-27 Eli Zaretskii <eliz@gnu.org>
4659
4660 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
4661
b003e5ff
JB
46622008-11-27 Juanma Barranquero <lekktu@gmail.com>
4663
4664 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4665 pointer to check_face_name.
4666
708550f5
KH
46672008-11-27 Kenichi Handa <handa@m17n.org>
4668
4669 * category.h (SET_CATEGORY_SET): Call set_category_set.
4670 (set_category_set): Extern it.
4671
4672 * category.c (hash_get_category_set): New function.
4673 (Fmodify_category_entry): Adjusted for the change of
4674 char_table_ref_and_range. Call hash_get_category_set to get a
4675 category set to store in the table.
4676
4677 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4678 Funify_charset.
4679
2ae37cf0 4680 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4681 (DECODE_CHAR): Check if the decoder vector is ready.
4682 (ENCODE_CHAR): Check if the encoder char-table is ready.
4683 (maybe_unify_char): Extern it.
4684
4685 * charset.c (Vchar_unified_charset_table): Delete it.
4686 (inhibit_load_charset_map): New variable.
4687 (temp_charset_work): New variable.
4688 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4689 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4690 New macros.
4691 (load_charset_map): Meaning of control_flag changed. If
4692 inhibit_load_charset_map is nonzero, setup a table in
4693 temp_charset_work.
4694 (load_charset): New argument control_flag.
4695 (map_charset_for_dump): New function.
4696 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4697 map_charset_for_dump.
4698 (Fdefine_charset_internal): If the charset method is MAP, load
4699 mapping tables by calling load_charset.
4700 (Funify_charset): Don't load a mapping table but directly set
4701 Vchar_unify_table.
4702 (maybe_unify_char): New function.
4703 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4704 Handle the case of inhibit_load_charset_map being nonzero.
4705 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4706 Handle the case of inhibit_load_charset_map being nonzero.
4707 (Fclear_charset_maps): Just free temp_charset_work.
4708 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4709 variable.
4710
4711 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4712 change of char_table_ref_and_range.
4713 (char_table_ref_and_range): Change the meaning of argument FROM
4714 and TO. Now the caller must provide initial values for *FROM
4715 and *TO.
4716
4717 * fontset.c (fontset_add): Adjusted for the change of
4718 char_table_ref_and_range.
4719 (fontset_get_font_group): Likewise.
4720 (Ffontset_info): Likewise.
4721
4722 * keymap.c (describe_vector): Adjusted for the change of
4723 char_table_ref_and_range. For char-table, put boundary between
4724 non-ASCII and 8-bit characters.
4725
4726 * print.c (print_object): For bool-vector, delete unnecessary
4727 check of ASCII_BYTE_P.
4728
9196133b
JR
47292008-11-26 Jason Rumney <jasonr@gnu.org>
4730
4731 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4732 leading in font height. (Bug#879)
9196133b 4733
9f688acf
GM
47342008-11-26 Glenn Morris <rgm@gnu.org>
4735
4736 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4737 redefinition with ifdef. (Bug#1383)
4738
90d19aff
AR
47392008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4740
4741 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4742
4ccfa1c0 47432008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4744
4745 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4746 New EmacsView methods.
4747 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4748 Fixes bug #1048,1357,1414.
4749
47502008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4751
4752 Fix bug #1362.
4753 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4754 is not an indexed color.
4755 * nsterm.m (free_indexed_color): Add argument checking.
4756 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4757
e7d5ecb3
CY
47582008-11-24 Chong Yidong <cyd@stupidchicken.com>
4759
4760 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4761 Document confirm-after-completion value for
4762 minibuffer-completion-confirm.
4763
c285743c
JR
47642008-11-24 Jason Rumney <jasonr@gnu.org>
4765
4766 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4767 warning.
4768
b0857706
JR
47692008-11-23 Jason Rumney <jasonr@gnu.org>
4770
4771 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4772 restored before returning.
4773
4774 * w32font.c (check_face_name): New function.
4775 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4776 fonts. (Bug#642)
b0857706 4777
ee50ff07
MR
47782008-11-22 Martin Rudalics <rudalics@gmx.at>
4779
4780 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4781 confirm-nonexistent-file-or-buffer in doc-string.
4782
b8ff72fa
SM
47832008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4784
4785 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4786 Fix copy/paste typo. Add checks.
4787
cee53ed4
KH
47882008-11-21 Kenichi Handa <handa@m17n.org>
4789
4790 * coding.c (detect_coding_iso_2022): Reject invalid composition
4791 sequence.
4792 (DECODE_COMPOSITION_START): If the current source is the last
4793 block, and the current composition doesn't end, regard this
4794 sequence as invalid.
4795 (decode_coding_iso_2022): Handle invalid composition sequence.
4796
f6ef1e65
MR
47972008-11-20 Martin Rudalics <rudalics@gmx.at>
4798
4799 * window.c (coordinates_in_window): Don't return
4800 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4801 line when the window is not the rightmost one. (Bug#1372)
4802
e08b1705
MR
48032008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4804
4805 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4806
ad98e89f
EZ
48072008-11-15 Eli Zaretskii <eliz@gnu.org>
4808
4809 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4810 and bright_bg if noninteractive is non-zero.
4811
fb098a4b
CY
48122008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4813
4814 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4815 x_draw_glyph_string_background.
4816
4817 * w32term.c (x_draw_glyph_string): Likewise.
4818
ce952b6e
CY
48192008-11-15 Chong Yidong <cyd@stupidchicken.com>
4820
4821 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4822 the next glyph string once past the overhang width.
4823
4824 * nsterm.m (ns_draw_glyph_string): Likewise.
4825
4826 * w32term.c (x_draw_glyph_string): Likewise.
4827
26ea7079
CY
48282008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4829
4830 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4831 double file close.
4832
1c33c906
MR
48332008-11-14 Martin Rudalics <rudalics@gmx.at>
4834
4835 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4836 dedicated status of window before attempting to display another
4837 buffer in it.
4838
8fc29035
JB
48392008-11-14 Juanma Barranquero <lekktu@gmail.com>
4840
4841 * msdos.c (Fmsdos_long_file_names):
4842 (syms_of_msdos) <dos-unsupported-char-glyph>:
4843 * dosfns.c (Fint86): Fix typos in docstrings.
4844
55fb4286
EZ
48452008-11-14 Eli Zaretskii <eliz@gnu.org>
4846
4847 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4848
3fda0315
KY
48492008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4850
4851 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4852
7e849c17
CY
48532008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4854
4855 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4856
4857 * frame.h: Negative alpha means "don't touch".
4858
4859 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4860
4861 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4862
b9fd67bd
DN
48632008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4864
4865 * hftctl.c:
4866 * chpdef.h:
4867 * acldef.h: Remove files used only for systems no longer supported.
4868
4869 * Makefile.in: Fix .o alphabetical ordering.
4870 (hftctl.o): Remove dependency, file removed.
4871 (keymap.o, print.o): Depend on charset.h.
4872
d5998e03
KH
48732008-11-10 Kenichi Handa <handa@m17n.org>
4874
2ae37cf0 4875 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4876
be70e183
CY
48772008-11-08 Chong Yidong <cyd@stupidchicken.com>
4878
4879 * dired.c (file_name_completion): If completion_ignore_case is
4880 enabled, ignore case when checking completion-regexp-list.
4881
7cf94eac
EZ
48822008-11-08 Eli Zaretskii <eliz@gnu.org>
4883
4884 * vm-limit.c (get_lim_data): Fix last change.
4885
ee107a89
KH
48862008-11-08 Kenichi Handa <handa@m17n.org>
4887
4888 * character.c (Fget_byte): New function.
4889 (syms_of_character): Defsubr Fget_byte.
4890
5fd15622
CY
48912008-11-07 Chong Yidong <cyd@stupidchicken.com>
4892
4893 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4894 cursor position is valid after scrolling.
4895
13d62fad
JB
48962008-11-06 Juanma Barranquero <lekktu@gmail.com>
4897
4898 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4899
a1dd2936
GM
49002008-11-06 Glenn Morris <rgm@gnu.org>
4901
4902 * xterm.c (handle_one_xevent): Don't let popup menus cause
4903 mouse-autoselect-window related window switching. (Bug#1261)
4904
860cd236
CY
49052008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4906
4907 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4908
653a3150
AS
49092008-11-04 Andreas Schwab <schwab@suse.de>
4910
4911 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4912
870f5cac
CY
49132008-11-03 Chong Yidong <cyd@stupidchicken.com>
4914
4915 * xfns.c (Fx_wm_set_size_hint): New function.
4916
1e02f3cb
MR
49172008-11-03 Martin Rudalics <rudalics@gmx.at>
4918
4919 * textprop.c (Fprevious_single_char_property_change): Return 0
4920 when there's no change in a string. (Bug#1301)
4921
e630dfc6
MR
49222008-11-02 Martin Rudalics <rudalics@gmx.at>
4923
4924 * frame.c (do_switch_frame): New argument NORECORD passed to
4925 Fselect_window.
4926 (Fselect_frame): New argument NORECORD passed to
4927 do_switch_frame.
4928 (Fset_frame_selected_window): New argument NORECORD passed to
4929 Fselect_frame.
4930 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4931 in call of do_switch_frame.
4932 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4933 Handle NORECORD argument in call of Fselect_frame.
4934 * lisp.h (do_switch_frame, Fselect_frame)
4935 (Fset_frame_selected_window): Adjust declarations.
4936 * window.c (select_frame_norecord): New function.
4937 (run_window_configuration_change_hook): Use it and call
4938 Fselect_frame with NORECORD set.
4939 (Fselect_window): Pass NORECORD to Fselect_frame.
4940 (Fset_window_configuration): Handle NORECORD argument in call of
4941 do_switch_frame.
4942 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4943 Fset_frame_selected_window.
4944 * keyboard.c (command_loop_1): Handle NORECORD in call of
4945 Fselect_frame (currently ifdefd).
4946
9020b223
GM
49472008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4948
4949 * emacs.c (USAGE2): Untabify.
4950
793ffee8
SM
49512008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4952
4953 * composite.c (fill_gstring_header): Fix copy/paste typo.
4954
ab6d1131
MR
49552008-10-31 Martin Rudalics <rudalics@gmx.at>
4956
4957 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4958 (Fother_window): Rename argument and rewrite doc-string.
4959 (select_window_norecord): Fix return value. (Bug#1276)
4960
601a9cf1
JB
49612008-10-30 Juanma Barranquero <lekktu@gmail.com>
4962
4963 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4964 new frames overriding foreground for tooltips. Based on similar patch
4965 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4966
813b0652
CY
49672008-10-29 Chong Yidong <cyd@stupidchicken.com>
4968
4969 * emacs.c (Fdaemon_initialized): Initialize nfd.
4970
4414f58f
MR
49712008-10-29 Martin Rudalics <rudalics@gmx.at>
4972
4973 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4974 (Fwindow_text_height): Clarify doc-strings.
4975 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4976 doc-string of window-scroll-functions.
4977
ecdcaa09
RS
49782008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4979
4980 * category.c (syms_of_category): Fix typo in docstring.
4981
23fe745a
JB
49822008-10-28 Juanma Barranquero <lekktu@gmail.com>
4983
4984 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4985 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4986 Fix typos in docstrings.
4987
ff808935
DN
49882008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4989
4990 * emacs.c (daemon_pipe): Make non-static.
4991 (IS_DAEMON): Move definition ...
4992 * lisp.h (IS_DAEMON): ... here.
4993 (daemon_pipe): Declare.
4994 (is_daemon): Remove.
4995 * dispnew.c (init_display): Use IS_DAEMON.
4996
fc012771
SM
49972008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4998
4999 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
5000 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
5001
5002 * emacs.c (is_daemon): Remove.
5003 (main): Don't set is_daemon.
5004 (IS_DAEMON): New macro.
5005 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 5006 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
5007 parent exits.
5008 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
5009
d8bdbe6f
CY
50102008-10-27 Chong Yidong <cyd@stupidchicken.com>
5011
d1a072bf
CY
5012 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
5013 over-sized glyph, draw it with the default glyph width.
5014
e2e325aa
CY
5015 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5016 glyph, draw it with the default glyph width.
5017
5018 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
5019 glyph, draw it with the default glyph width.
5020
d8bdbe6f
CY
5021 * xdisp.c (try_scrolling): When computing the distance from the
5022 scroll margin to PT, try moving some distance past the window
5023 bottom before giving up.
5024
7bfac547
MR
50252008-10-27 Martin Rudalics <rudalics@gmx.at>
5026
5027 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
5028 (Fset_window_buffer): Explain in doc-string that a window can be
5029 "strongly" dedicated to its buffer.
5030
4ff029f6
DN
50312008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
5032
5033 * emacs.c (daemon_name): New variable.
5034 (main): Deal with --daemon=SERVER_NAME.
5035 (Fdaemonp): Return a name if one was passed to --daemon.
5036
5790ef40
DN
50372008-10-26 Romain Francoise <romain@orebokech.com>
5038
f9bd0df9 5039 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
5040 (main): Create a pipe before forking, make the parent exit only after
5041 the child has closed its end of the pipe. Move closing the
5042 descriptors ...
5043 (Fdaemon_initialized): ... here. New function.
5044
f5385255
SM
50452008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
5046
4d632321
SM
5047 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
5048 the previous unoptimized table.
5049
f5385255
SM
5050 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
5051 the distinction between non-nil and non-t value of `dedicated'.
5052
6c56a0f3
CY
50532008-10-25 Chong Yidong <cyd@stupidchicken.com>
5054
5055 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 5056 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 5057
fec89261
MR
50582008-10-25 Martin Rudalics <rudalics@gmx.at>
5059
5060 * window.c (Fget_buffer_window, Fdelete_windows_on)
5061 (Freplace_buffer_in_windows): Make buffer argument optional and
5062 rename to buffer_or_name.
5063
34fcddd0
CY
50642008-10-24 Chong Yidong <cyd@stupidchicken.com>
5065
f5385255
SM
5066 * xdisp.c (handle_single_display_spec, handle_display_prop):
5067 Undo 2005-05-16 change.
34fcddd0
CY
5068 (handle_stop): Pop iterator if it's loaded with an empty string.
5069 (get_overlay_strings_1): Don't save iterator if it's loaded with
5070 an empty string (bug#1201).
5071
064766f2
KH
50722008-10-24 Kenichi Handa <handa@m17n.org>
5073
5074 * ftfont.c (ftfont_otf_features): Fix previous change.
5075 (ftfont_otf_capability): Check FeatureList.FeatureCount before
5076 calling ftfont_otf_features.
5077
f9bd0df9 50782008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
5079
5080 * font.c (font_match_p): Fix for the case that a vector of
5081 characters is in script-representative-chars.
5082
1dae9197
MA
50832008-10-24 Michael Albinus <michael.albinus@gmx.de>
5084
5085 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 5086 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
5087 (xd_read_queued_messages): Catch Qdbus_error from the macros.
5088 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
5089 macro. (Bug#1186).
5090
f9bd0df9 50912008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
5092
5093 * s/sol2-10.h: New file.
5094
878a4584
JB
50952008-10-23 Juanma Barranquero <lekktu@gmail.com>
5096
5097 * xdisp.c (fill_glyph_string): Fix typo in source (though the
5098 poor beast has survived 9+ years and the jump from xterm.c!).
5099
cd265ca6
MR
51002008-10-23 Martin Rudalics <rudalics@gmx.at>
5101
5102 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
5103 Reword doc-string.
f5385255 5104 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 5105
472a4dc9
JB
51062008-10-23 Juanma Barranquero <lekktu@gmail.com>
5107
5108 * character.c (syms_of_character) <script-representative-chars>:
5109 <unicode-category-table>: Doc fixes.
5110
159bd5a2
NF
51112008-10-23 Noah Friedman <friedman@splode.com>
5112
5113 * coding.c (make_conversion_work_buffer): Check that
5114 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
5115 Fget_buffer_create.
5116
49f9c344
KH
51172008-10-23 Kenichi Handa <handa@m17n.org>
5118
5119 * font.c (font_add_log): Check the values of extra properties.
5120
12bb3111
MR
51212008-10-22 Martin Rudalics <rudalics@gmx.at>
5122
5123 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5124 Reword doc-string.
5125 (Fset_window_parameter): Use NILP.
5126 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 5127 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 5128
bbeb4e99
JB
51292008-10-22 Juanma Barranquero <lekktu@gmail.com>
5130
5131 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
5132
51332008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
5134
5135 * nsfns.m (ns_appkit_version): New function.
5136 (x-server-version): Use it.
5137 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
5138 (x-server-vendor): Don't check_ns().
5139
5140 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
5141
a9b555d3
JB
51422008-10-22 Juanma Barranquero <lekktu@gmail.com>
5143
5144 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
5145 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
5146
4626499f
KH
51472008-10-22 Kenichi Handa <handa@m17n.org>
5148
e3681952
KH
5149 * syntax.c (scan_words): Call word_boundary_p instead of comparing
5150 scripts.
5151
4626499f
KH
5152 * category.c (word_boundary_p): Check scripts instead of charset.
5153 Handle nil value in word-separating-categories and
5154 word-combining-categories.
5155 (syms_of_category): Fix docstrings of word-separating-categories
5156 and word-combining-categories.
5157
1560f91a
EZ
51582008-10-21 Eli Zaretskii <eliz@gnu.org>
5159
5160 * coding.c (Fencode_coding_region, Fdecode_coding_region)
5161 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
5162
f4668441
MR
51632008-10-21 Martin Rudalics <rudalics@gmx.at>
5164
5165 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
5166 Rename arg "buffer" to "buffer_or_name".
5167 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
5168 it optional.
5169 (no_switch_window): Remove since the return value is not used.
a9b555d3 5170 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
5171 Consider window as dedicated when Fwindow_dedicated_p returns a
5172 non-nil value.
5173 * lisp.h: Remove prototype for no_switch_window.
5174
fd75ddb2
JD
51752008-10-21 Jan Djärv <jan.h.d@swipnet.se>
5176
5177 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 5178 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 5179
07295713
KH
51802008-10-21 Kenichi Handa <handa@m17n.org>
5181
5182 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
5183 check Vlatin_extra_code_table.
5184
712adc82
EZ
51852008-10-20 Eli Zaretskii <eliz@gnu.org>
5186
5187 * fileio.c (Fset_file_modes): Doc fix.
5188
f549eb0b
MA
51892008-10-19 Michael Albinus <michael.albinus@gmx.de>
5190
5191 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
5192 in arrays.
5193
aac0c6e3
MR
51942008-10-19 Martin Rudalics <rudalics@gmx.at>
5195
5196 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
5197 Mention kill-buffer in doc-string.
5198 (Fset_window_buffer): Reinsert tem check removed in last commit.
5199 (Fenlarge_window, Fshrink_window): Have argument names and
5200 doc-string follow Elisp manual more closely.
5201
52022008-10-18 Eli Zaretskii <eliz@gnu.org>
5203
5204 * fileio.c (Fset_file_modes): Doc fix.
5205
52062008-10-18 Martin Rudalics <rudalics@gmx.at>
5207
5208 * window.c (Fwindow_width, Fset_window_start)
5209 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
5210 (Fdelete_windows_on, Freplace_buffer_in_windows):
5211 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
5212 (Fwindow_dedicated_p): Make window argument optional.
5213 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
5214 (Fset_window_buffer): Respect any non-nil dedicated value for
5215 window. Rename "buffer" argument to "buffer_or_name".
5216
52172008-10-18 Ulrich Mueller <ulm@gentoo.org>
5218
5219 * m/sh3.h: New file, machine description for SuperH.
5220
52212008-10-17 Martin Rudalics <rudalics@gmx.at>
5222
5223 * window.c (Fsplit_window): Rename arg horflag to horizontal.
5224
52252008-10-17 Kenichi Handa <handa@m17n.org>
5226
5227 * ftfont.c (ftfont_otf_features): Fix indexing
5228 gsub_gpos->FeatureList.Feature. Check the validity of indices.
5229
52302008-10-16 Magnus Henoch <mange@freemail.hu>
5231
5232 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
5233 (Fdbus_call_method_asynchronously): Ditto.
5234 This change makes C-h f display the argument list.
5235
52362008-10-16 Chong Yidong <cyd@stupidchicken.com>
5237
5238 * fileio.c (Fexpand_file_name): Doc fix.
5239
5240 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
5241 of :foreground and :background equivalent to unspecified (20.x
5242 compatibility).
5243
52442008-10-15 Eli Zaretskii <eliz@gnu.org>
5245
5246 * buffer.c (syms_of_buffer): Doc fix.
5247
52482008-10-14 Kenichi Handa <handa@m17n.org>
5249
5250 * font.c (font_clear_prop): When clearing font width, clear the
5251 average width field too.
5252
52532008-10-12 Andreas Schwab <schwab@suse.de>
5254
5255 * ftfont.c (ftfont_shape_by_flt): Make static.
5256 * ftfont.h (ftfont_shape_by_flt): Don't declare.
5257
5258 * font.c: Don't include <m17n-flt.h>.
5259
52602008-10-10 Eli Zaretskii <eliz@gnu.org>
5261
5262 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
5263
52642008-10-09 Eli Zaretskii <eliz@gnu.org>
5265
5266 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
5267 away code.
5268
52692008-10-09 Chong Yidong <cyd@stupidchicken.com>
5270
5271 * dispnew.c (update_text_area): Avoid looping due to large glyph
5272 overhangs (bug#1070).
5273
52742008-10-09 Kenichi Handa <handa@m17n.org>
5275
5276 * fontset.c (face_for_char): If face->fontset is negative, just
5277 return ascii_face.
5278
f5385255
SM
5279 * font.c (font_delete_unmatched): Fix previous change.
5280 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
5281
52822008-10-09 Martin Rudalics <rudalics@gmx.at>
5283
5284 * frame.c (Fraise_frame): On text-only terminals select frame in
5285 order to make it visible. (Bug#1061)
5286
52872008-10-08 Chong Yidong <cyd@stupidchicken.com>
5288
5289 * fontset.c (fontset_find_font): Check frame validity.
5290
52912008-10-07 Chong Yidong <cyd@stupidchicken.com>
5292
a9b555d3 5293 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
5294 (xg_display_close): Allow Emacs to close all displays (bug#985).
5295
52962008-10-06 Andreas Schwab <schwab@suse.de>
5297
f5385255 5298 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
5299
53002008-10-06 Chong Yidong <cyd@stupidchicken.com>
5301
f5385255 5302 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 5303
a9b555d3 5304 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
5305
5306 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
5307 during initialization.
5308
53092008-10-04 Eli Zaretskii <eliz@gnu.org>
5310
5311 * xdisp.c (redisplay_internal): If frame switched, redisplay the
5312 whole thing on MSDOS frames as well as on a TTY.
5313
5314 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
5315 well as for TTY.
5316 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
5317 well as on a TTY.
5318
5319 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
5320 as well as for TTY.
5321
5322 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
5323
5324 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
5325 MSDOS frames as well.
5326
53272008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5328
5329 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
5330 correct arguments.
b71ac3dd 5331 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
5332
53332008-10-03 Glenn Morris <rgm@gnu.org>
5334
5335 * emacs.c (USAGE1): Add --daemon.
5336
53372008-10-02 Eli Zaretskii <eliz@gnu.org>
5338
5339 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
5340 100, so it's in percents as advertised.
5341
53422008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
5343
5344 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
5345 (ns_output.current_cursor, ns_output.desired_cursor)
5346 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
5347 (FRAME_NEW_CURSOR_COLOR): Remove.
5348
5349 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 5350 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
5351 enumeration (HOLLOW_BOX_CURSOR, etc.).
5352
5353 * nsterm.m (ns_frame_rehighlight): Remove commented code.
5354 (draw_window_cursor): Simplify code.
f5385255
SM
5355 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
5356 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 5357 updates manually.
a9b555d3
JB
5358 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
5359 Use core Emacs cursor types.
aac0c6e3 5360
b8ff72fa 5361 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
5362
53632008-10-02 Martin Rudalics <rudalics@gmx.at>
5364
5365 * process.c (Faccept_process_output): Fix doc-string.
5366
53672008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
5368
5369 * gmalloc.c (__sbrk): Also define for uClibc.
5370
5371 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
5372 for uClibc.
5373
53742008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5375
5376 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
5377 styles.
5378 (nsfont_open): Reenable the cache.
5379
53802008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5381
5382 * font.c (font_matching_entity): Reflect ATTRS in font selection.
5383 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
5384
53852008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
5386
5387 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
5388 a suspended terminal.
5389
53902008-09-30 Michael Albinus <michael.albinus@gmx.de>
5391
5392 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
5393
53942008-09-30 Eli Zaretskii <eliz@gnu.org>
5395
5396 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
5397
53982008-09-30 Chong Yidong <cyd@stupidchicken.com>
5399
5400 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
5401 in a continued line coincides with a line beginning.
5402
54032008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5404
5405 * nsfont.m (nsfont_trait_distance): Fix bug.
5406 (nsfont_list): Return a list rather than a vector (syncs with Handa
5407 changes of 2008-05-14).
5408 (nsfont_open): Improve logging.
5409
54102008-09-29 Andreas Schwab <schwab@suse.de>
5411
5412 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
5413
54142008-09-28 Martin Rudalics <rudalics@gmx.at>
5415
5416 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
5417 name as char-resolve-modifiers.
5418 Reported by: Markus Triska <markus.triska@gmx.at>
5419
54202008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
5421
5422 * dispnew.c (init_display): Return earlier when running as a daemon.
5423
54242008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5425
5426 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
5427
54282008-09-27 Eli Zaretskii <eliz@gnu.org>
5429
5430 * composite.c (Fcomposition_get_gstring)
5431 (Fcompose_region_internal, Fcompose_string_internal)
5432 (Ffind_composition_internal): Doc fix.
5433 (syms_of_composite) <compose-chars-after-function>: Doc fix.
5434 (syms_of_composite) <auto-composition-function>: Doc fix.
5435 (syms_of_composite) <composition-function-table>: Doc fix.
5436
54372008-09-25 Chong Yidong <cyd@stupidchicken.com>
5438
5439 * search.c (wordify): New argument for lax word-ends.
5440 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
5441
54422008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
5443
5444 * lisp.h (is_daemon): Declare.
5445 * dispnew.c (init_display): Do not try to initialize the terminal
5446 when running as a daemon.
5447
54482008-09-22 Chong Yidong <cyd@stupidchicken.com>
5449
5450 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
5451 x_display_pixel_height.
5452
54532008-09-22 Martin Rudalics <rudalics@gmx.at>
5454
5455 * undo.c (record_point): Don't call Fundo_boundary for first
5456 change. (Bug#731)
5457
54582008-09-22 Juanma Barranquero <lekktu@gmail.com>
5459
5460 * emacs.c (Fdaemonp): Doc fix.
5461
54622008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
5463
5464 * emacs.c (main): Place #ifdef in the proper place.
5465
54662008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5467
5468 * emacs.c (standard_args): Add --daemon.
5469 (main): Disconnect from the terminal when --daemon is passed.
5470 (is_daemon): New variable.
5471 (Fdaemonp): New function.
5472 (syms_of_emacs): Defsubr it.
5473
54742008-09-20 Chong Yidong <cyd@stupidchicken.com>
5475
5476 * xdisp.c (get_next_display_element): Handle string display
5477 correctly when checking for the end of a box run.
5478
54792008-09-20 Glenn Morris <rgm@gnu.org>
5480
5481 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
5482 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
5483 (Frename_file): Avoid copying to trash if a rename involves
5484 a delete. (Bug#964).
5485
54862008-09-20 Eli Zaretskii <eliz@gnu.org>
5487
5488 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
5489 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
5490 frames as well as termcap frames.
5491 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
5492 get_named_tty.
5493
54942008-09-19 Eli Zaretskii <eliz@gnu.org>
5495
5496 * process.c (procfs_system_process_attributes): Fix cmdline in
5497 case /proc/PID/cmdline is empty.
5498
5499 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
5500 x_display_pixel_height.
5501
55022008-09-19 Juanma Barranquero <lekktu@gmail.com>
5503
5504 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
5505
5506 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
5507 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
5508
55092008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
5510
5511 * dispextern.h (struct it): Move line_wrap away from the middle of
5512 bitfields. Move voffset in struct iterator_stack_entry after the
5513 bitfields. Move tab_width near after another short.
5514
55152008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
5516
5517 * frame.h (struct frame): Move alpha from the middle of bitfields.
5518
5519 * window.h (struct window): Move frozen_window_start_p after the
5520 rest of the bitfields to reduce padding.
5521
55222008-09-18 Chong Yidong <cyd@stupidchicken.com>
5523
5524 * xterm.h (x_display_info): Remove `height' and `width' members.
5525
5526 * nsterm.h (ns_display_info): Remove `height' and `width' members.
5527
5528 * w32term.h (w32_display_info): Remove `height', `width',
5529 `height_in', and `width_in' members.
5530
b8ff72fa
SM
5531 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5532 New functions.
aac0c6e3
MR
5533 (x_calc_absolute_position): Use them.
5534 (x_term_init): Omit removed `height' and `width' members.
5535
b8ff72fa
SM
5536 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5537 New functions.
aac0c6e3
MR
5538 (w32_read_socket, x_calc_absolute_position): Use them.
5539 (w32_initialize_display_info, w32_term_init): Omit removed members
5540 of w32_display_info.
5541
b8ff72fa
SM
5542 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
5543 New functions.
5544 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 5545
b8ff72fa
SM
5546 * xterm.c (x_display_pixel_height, x_display_pixel_width):
5547 New functions.
aac0c6e3
MR
5548 (x_calc_absolute_position): Use them.
5549 (x_term_init): Omit removed `height' and `width' members.
5550
5551 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
5552 (compute_tip_xy):
5553 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
5554 * xmenu.c (menu_position_func): Use x_display_pixel_height and
5555 x_display_pixel_width.
5556
55572008-09-18 Kenichi Handa <handa@m17n.org>
5558
5559 * composite.c (fill_gstring_header): Don't check FROM and TO here.
5560 (composition_compute_stop_pos): Fix handling of static composition.
5561 (Fcomposition_get_gstring): Check FROM and TO at first.
5562
55632008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5564
46e722a9 5565 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
5566 mixup (YAILOM).
5567
55682008-09-17 Chong Yidong <cyd@stupidchicken.com>
5569
5570 * indent.c (Fvertical_motion): Use position reported by iterator
5571 instead of PT for determining screen motion (bug#943).
5572
55732008-09-17 Romain Francoise <romain@orebokech.com>
5574
5575 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
5576
55772008-09-17 Kenichi Handa <handa@m17n.org>
5578
5579 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
5580
5581 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
5582 if necessary.
5583
55842008-09-16 Kenichi Handa <handa@m17n.org>
5585
5586 * coding.c (make_conversion_work_buffer): Avoid calling
5587 Fget_buffer_create if it is not necessary.
5588
55892008-09-15 Martin Rudalics <rudalics@gmx.at>
5590
5591 * window.c (Fselect_window): Don't update window_select_count and
5592 use_time when norecord is not nil.
5593
55942008-09-14 Kenichi Handa <handa@m17n.org>
5595
5596 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
5597 specpdl_ptr.
5598
55992008-09-12 Kenichi Handa <handa@m17n.org>
5600
5601 * indent.c (scan_for_column): Don't handle automatic composition
5602 if the current buffer is not associated with a window.
5603
5604 * composite.c (composition_reseat_it): If the current buffer is
5605 not associated with a window, ignore the automatic composition.
5606 (find_automatic_composition): Likewise.
5607
56082008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5609
5610 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
5611 (Fgpm_mouse_stop): Use it.
5612 * termhooks.h (close_gpm): Declare.
5613 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
5614 connection if Gpm_GetEvent fails.
5615
5616 * window.c (set_window_buffer): Always preserve current-buffer.
5617
56182008-09-12 Glenn Morris <rgm@gnu.org>
5619
5620 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
5621
56222008-09-11 Glenn Morris <rgm@gnu.org>
5623
5624 * charset.c (charset-map-path): Doc fix.
5625
56262008-09-10 Kenichi Handa <handa@m17n.org>
5627
5628 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
5629
5630 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
5631 compose a grapheme cluster with the preceding base glyph.
5632
5633 * composite.c (composition_compute_stop_pos): Fix previous change.
5634 Reset cmp_it->id to -1 at first.
5635
56362008-09-10 Glenn Morris <rgm@gnu.org>
5637
5638 * Makefile.in (character.o, chartab.o): Fix config.h typo.
5639
56402008-09-09 Chong Yidong <cyd@stupidchicken.com>
5641
5642 * keyboard.c (read_key_sequence): Reapply translation maps when
5643 switching keyboards.
5644
56452008-09-09 Kenichi Handa <handa@m17n.org>
5646
5647 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
5648 characters.
5649
5650 * composite.c (FORWARD_CHAR): Fix calculation
5651 of (POSITION).pos_byte.
5652 (composition_compute_stop_pos): Limit the search of composition to
5653 at most 500 characters ahead. If we reach the limit or find a
5654 newline, set cmp_it->ch to -2 and return 0.
5655 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
5656
56572008-09-08 Kenichi Handa <handa@m17n.org>
5658
5659 * indent.c (Fvertical_motion): Be sure to set
5660 it_overshoot_expected if it.cmp_it.id is non-negative.
5661
56622008-09-07 Andreas Schwab <schwab@suse.de>
5663
5664 * callproc.c (Fcall_process): Don't hold references to string data
5665 across garbage collection. Move initialisation of new_argv down
5666 to avoid compiler bug.
5667
56682008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5669
5670 * process.c (Fsystem_process_attributes): Doc fix.
5671
56722008-09-07 Chong Yidong <cyd@stupidchicken.com>
5673
5674 * callproc.c (Fcall_process): Canonicalize current directory name.
5675
5676 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5677 iterator advances to the next line if the current line ends in a
5678 continued tab.
5679
56802008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5681
5682 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5683 member to point to cmp_from.
5684
5685 * xdisp.c: Doc fix for references to gidx data member.
5686
56872008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5688
5689 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5690
56912008-09-07 Kenichi Handa <handa@m17n.org>
5692
5693 * composite.c (FORWARD_CHAR): Check STOP after
5694 incrementing (POSITION).pos.
5695
56962008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5697
5698 * process.c (Fsystem_process_attributes): Doc fix.
5699
57002008-09-06 Chong Yidong <cyd@stupidchicken.com>
5701
5702 * keyboard.c (Ftop_level): Doc fix.
5703
57042008-09-06 Eli Zaretskii <eliz@gnu.org>
5705
5706 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5707 minibuffer, don't let lower part of menu invade the echo area.
5708
5709 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5710 "char *q" to access menu text and advance through it. Revert the
5711 change that displayed ">" instead of ASCII character 0x10.
5712
57132008-09-05 Eli Zaretskii <eliz@gnu.org>
5714
5715 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5716 toggle boxes and radio buttons on MS-DOS as well.
5717
57182008-09-05 Kenichi Handa <handa@m17n.org>
5719
5720 * composite.c (autocmp_chars): Check lookback count.
5721 (composition_compute_stop_pos): Set cmp_it->lookback.
5722 (composition_reseat_it): Check lookback count.
5723 (struct position_record): New struct.
5724 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5725 (find_automatic_composition): New function.
5726 (composition_adjust_point): Use find_automatic_composition.
5727
5728 * dispextern.h (struct composition_it): New member lookback.
5729
57302008-09-02 Chong Yidong <cyd@stupidchicken.com>
5731
5732 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5733 if moving by a single line.
5734
57352008-09-02 Andreas Schwab <schwab@suse.de>
5736
5737 * xterm.c (x_delete_display): Fix merge error.
5738
5739 * fileio.c (Fexpand_file_name): Remove unused variables.
5740
57412008-09-02 Eli Zaretskii <eliz@gnu.org>
5742
5743 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5744 storage on all platforms, not just on DOS_NT.
5745
57462008-09-02 Jason Rumney <jasonr@gnu.org>
5747
b8ff72fa
SM
5748 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5749 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5750
57512008-09-01 Chong Yidong <cyd@stupidchicken.com>
5752
5753 * xfaces.c (Finternal_set_alternative_font_family_alist)
5754 (Finternal_set_alternative_font_registry_alist): Properly copy
5755 entire alist structure.
5756
57572008-09-01 Kenichi Handa <handa@m17n.org>
5758
d66c0241 5759 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5760 representative chars of the script is a vector.
d66c0241
JB
5761 (ftfont_list): Handle the case where the representative chars of
5762 the script is a vector.
aac0c6e3
MR
5763
5764 * character.c (syms_of_character): Docstring of
5765 script-representative-chars fixed.
5766
57672008-08-31 Eli Zaretskii <eliz@gnu.org>
5768
5769 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5770 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5771 the menu. Allocate larger buffer for `text', to account for
5772 possible ^C characters.
5773
57742008-08-31 Martin Rudalics <rudalics@gmx.at>
5775
5776 * xdisp.c (prepare_menu_bars): Don't call
5777 Vwindow_size_change_functions with arg Qt.
5778
57792008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5780
5781 * font.h (font_range):
5782 * fileio.c (report_file_error):
46e722a9
SM
5783 * composite.c (composition_update_it): Yet another int/Lisp_Object
5784 mixup (YAILOM).
aac0c6e3
MR
5785
57862008-08-30 Glenn Morris <rgm@gnu.org>
5787
5788 * data.c (Fmake_variable_frame_local): Doc fix.
5789
5790 * frame.c (Fmodify_frame_parameters): Doc fix.
5791
57922008-08-30 Eli Zaretskii <eliz@gnu.org>
5793
5794 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5795 needed by GetTokenInformation.
5796 (w32_system_process_attributes): Check return values of all system
5797 APIs.
5798
5799 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5800 only when the state changes.
5801 (IT_update_begin, IT_update_end): Add termscript trace.
5802
5803 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5804 clipboard is unavailable. Set dst to NULL if it doesn't point to
5805 malloc'ed data.
5806 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5807 passing random values to xfree.
5808
5809 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5810 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5811
58122008-08-29 Jason Rumney <jasonr@gnu.org>
5813
5814 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5815
58162008-08-29 Eli Zaretskii <eliz@gnu.org>
5817
5818 * composite.c (fill_gstring_body): Avoid compiler warnings.
5819
5820 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5821 LGLYPH_SET_CODE to avoid compiler warnings.
5822
2ae37cf0 5823 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5824
5825 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5826
5827 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5828 LGLYPH_SET_CODE.
5829
58302008-08-29 Kenichi Handa <handa@m17n.org>
5831
5832 * fileio.c (report_file_error): Don't downcase the first character
5833 of errstring if it is still unibyte.
5834
58352008-08-29 Kenichi Handa <handa@m17n.org>
5836
5837 These changes are to re-implement the automatic composition so
5838 that it doesn't use text properties.
5839
5840 * Makefile.in (ftfont.o): Depend on composite.h.
5841 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5842
5843 * character.h (Vunicode_category_table): Extern it.
5844
5845 * character.c (Vunicode_category_table): New variable.
5846 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5847
5848 * chartab.c (optimize_sub_char_table): Perform more greedy
5849 optimization.
5850
b8ff72fa
SM
5851 * composite.h (enum composition_method):
5852 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5853 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5854 (Vcomposition_function_table): Extern it.
5855 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5856 (composition_gstring_put_cache, composition_gstring_from_id)
5857 (composition_gstring_p, composition_gstring_width)
5858 (composition_compute_stop_pos, composition_reseat_it)
5859 (composition_update_it, composition_adjust_point): Extern them.
5860 (Fcomposition_get_gstring): EXFUN it.
5861
d66c0241 5862 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5863 (Vcomposition_function_table)
5864 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5865 (gstring_hash_table, gstring_work, gstring_work_headers):
5866 New variables.
aac0c6e3
MR
5867 (gstring_lookup_cache, composition_gstring_put_cache)
5868 (composition_gstring_from_id, composition_gstring_p)
5869 (composition_gstring_width, fill_gstring_header)
5870 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5871 (composition_reseat_it, composition_update_it)
b8ff72fa 5872 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5873 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5874 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5875 Defsubr compostion_get_gstring.
5876
5877 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5878 cmp_id.
5879 (struct glyph_string): Delete the member gidx. New members
5880 cmp_id, cmp_from, and cmp_to.
5881 (enum it_method): Delete GET_FROM_COMPOSITION.
5882 (struct composition_it): New struct.
5883 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5884 Delete c, len, cmp_id, cmp_len in u.comp.
5885
5886 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5887 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5888 (enum lglyph_indices): Likewise.
b8ff72fa 5889 (font_range): Adjust extern.
aac0c6e3
MR
5890 (font_fill_lglyph_metrics): Extern it.
5891
5892 * font.c (QCf): New variable.
5893 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5894 (font_prepare_composition): Delete this function.
5895 (font_range): Type and arguments changed.
5896 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5897 (font_fill_lglyph_metrics): New function.
b8ff72fa 5898 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5899 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5900 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5901 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5902
5903 * fontset.h (font_for_char): Extern it.
5904
5905 * fontset.c (font_for_char): New function.
5906
5907 * ftfont.c: Include composite.h.
5908 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5909 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5910
5911 * indent.c: Include composite.h and dispextern.h.
5912 (check_composition): Delete this function.
5913 (scan_for_column): Handle composition by
5914 composition_compute_stop_pos, composition_reseat_it, and
5915 composition_update_it.
5916 (compute_motion): Likewise.
5917 (Fvertical_motion): Fix checking of composition.
5918
5919 * keyboard.c (adjust_point_for_property): Check composition by
5920 composition_adjust_point.
5921
b8ff72fa 5922 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5923 struct glyph_string.
5924
b8ff72fa
SM
5925 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5926 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5927 struct glyph.
5928 (produce_composite_glyph): Likewise.
5929
b8ff72fa
SM
5930 * w32term.c (x_draw_composite_glyph_string_foreground):
5931 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5932 (x_draw_glyph_string): Likewise.
5933
5934 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5935 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5936
5937 * xdisp.c: Include font.h.
5938 (it_props): Delete the entry for Qauto_composed.
5939 (init_iterator): Initialize it->cmp_it.id to -1.
5940 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5941 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5942 (handle_auto_composed_prop): Delete it.
5943 (handle_composition_prop): Handle only static composition.
5944 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5945 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5946 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5947 (pop_it): Likewise.
5948 (get_next_element): Delete next_element_from_composition.
5949 (CHAR_COMPOSED_P): New macro.
5950 (get_next_display_element): For automatic composition, get a face
5951 from the font in the glyph-string.
5952 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5953 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5954 (next_element_from_string): Check if the character at the current
5955 position is composed by CHAR_COMPOSED_P.
5956 (next_element_from_buffer): Likewise.
d66c0241
JB
5957 (next_element_from_composition): Adjust for the change of struct it.
5958 Update it->cmp_it.
b8ff72fa
SM
5959 (dump_glyph): Adjust for the change of struct glyph.
5960 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5961 it and struct glyph. Don't handle automatic composition here.
5962 (fill_gstring_glyph_string): New function.
5963 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5964 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5965 (BUILD_GSTRING_GLYPH_STRING): New macro.
5966 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5967 automatic composition.
b8ff72fa 5968 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5969 struct glyph.
b8ff72fa 5970 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5971
b8ff72fa 5972 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5973 the change of struct glyph_string.
5974 (x_draw_glyph_string): Likewise.
5975
59762008-08-29 Glenn Morris <rgm@gnu.org>
5977
5978 * buffer.c (word-wrap): Doc fix.
5979 * xdisp.c (truncate-partial-width-windows): Doc fix.
5980 Increase default to 50.
5981
59822008-08-29 Chong Yidong <cyd@stupidchicken.com>
5983
5984 * xdisp.c (update_tool_bar_unwind): New function.
5985 (update_tool_bar): Temporarily set selected frame before building
5986 tool-bar items.
5987
59882008-08-28 Michael Albinus <michael.albinus@gmx.de>
5989
5990 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5991 snprintf, respectively.
5992 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5993
59942008-08-28 Chong Yidong <cyd@stupidchicken.com>
5995
5996 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5997 LDFLAGS to GNUstep CC invocation.
5998
59992008-08-27 Chong Yidong <cyd@stupidchicken.com>
6000
6001 * indent.c (Fvertical_motion): Revert last change. Handle the
6002 general case where we are moving forward, and PT spans multiple
6003 screen lines.
6004
6005 * eval.c (find_handler_clause): Temporarily increase
6006 max-lisp-eval-depth while printing the backtrace buffer, to
6007 guarantee that help-mode code can run.
6008
60092008-08-27 Eli Zaretskii <eliz@gnu.org>
6010
6011 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
6012 colors under -rv.
6013 (IT_set_frame_parameters): Don't swap foreground and background
6014 colors if `(reverse . t)' is present in the frame properties.
6015 (internal_terminal_init): Call init_frame_faces only for the
6016 initial frame.
6017
60182008-08-27 Andreas Schwab <schwab@suse.de>
6019
6020 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
6021
60222008-08-27 Andreas Schwab <schwab@suse.de>
6023
6024 * search.c (search_buffer): Set char_base to zero only at the end.
6025
60262008-08-27 Kenichi Handa <handa@m17n.org>
6027
b8ff72fa 6028 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
6029
60302008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
6031
6032 * xterm.c (x_term_init): Temporarily hide the partially
6033 initialized terminal while calling vendor-specific-keysyms.
6034
60352008-08-26 Eli Zaretskii <eliz@gnu.org>
6036
6037 * msdos.c (internal_terminal_init): Most initializations done only
6038 once, especially initial_screen_colors[] and termscript open.
6039
60402008-08-26 Chong Yidong <cyd@stupidchicken.com>
6041
6042 * eval.c (Fcondition_case): Doc fix.
6043
6044 * widgetprv.h (EmacsFramePart): Change font member to the new font
6045 struct.
6046
6047 * widget.c: Include character.h and font.h for XSETFONT.
6048 (setup_frame_gcs): Compute X font id from font struct, just once.
6049
60502008-08-26 Eli Zaretskii <eliz@gnu.org>
6051
6052 * term.c (get_named_tty): Fix last change.
6053
60542008-08-26 Chong Yidong <cyd@stupidchicken.com>
6055
6056 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 6057 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
6058
60592008-08-25 Eli Zaretskii <eliz@gnu.org>
6060
6061 * frame.c (do_switch_frame): Mark previously displayed frame as
6062 obscured for FRAME_MSDOS_P frames as well.
6063
60642008-08-24 Eli Zaretskii <eliz@gnu.org>
6065
6066 * frame.c (make_terminal_frame): Initialize f->terminal,
6067 f->terminal->reference_count, and scroll bars on MS-DOS as well.
6068 Set the top frame to newly created frame.
6069 (Fmake_terminal_frame): Reuse the_only_display_info.
6070
6071 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
6072 estimating available memory.
6073
b97439ce 60742008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
6075
6076 * nsterm.m (ns_draw_window_cursor): Don't call
6077 NSDisableScreenUpdates and NSEnableScreenUpdates on
6078 non-NS_IMPL_COCOA systems.
6079
60802008-08-23 Andreas Schwab <schwab@suse.de>
6081
6082 * process.c (procfs_system_process_attributes): Fix use of
6083 uninitialized variables.
6084
60852008-08-23 Eli Zaretskii <eliz@gnu.org>
6086
6087 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
6088
6089 * dispnew.c (init_display): Remove MS-DOS specific conditions for
6090 calling tty-set-up-initial-frame-faces.
6091
b8ff72fa
SM
6092 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
6093 Allow MSDOS frames along with X frames.
aac0c6e3
MR
6094
6095 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
6096 addition to output_termcap.
6097
6098 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
6099
6100 * termchar.h (FRAME_TTY): Support output_msdos_raw.
6101 (struct tty_display_info) [MSDOS]: Add fields related to mouse
6102 highlight.
6103
6104 * process.c [!subprocesses]: Define QCname.
6105 (syms_of_process): Intern and staticpro it.
6106
6107 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
6108 Adjust for changes in encoding/decoding routines.
6109 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
6110 encode_coding and decode_coding.
6111
b8ff72fa 6112 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
6113
6114 * dosfns.c: Include frame.h before termhooks.h.
6115 (dos_cleanup): Use CURTTY ()->termscript instead of a global
6116 variable termscript.
6117
6118 * s/msdos.h (USER_FULL_NAME): Define.
6119 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
6120
6121 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
6122 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
6123 pw->pw_gecos.
6124
6125 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
6126 SELECTED_FRAME as additional (1st) argument.
6127 (tty_read_avail_input): Handle output_msdos_raw in
6128 addition to output_termcap.
6129
6130 * msdos.c: Include frame.h before termhooks.h.
6131 (mouse_on, mouse_off, mouse_moveto, mouse_init)
6132 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
6133 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
6134 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
6135 (IT_set_terminal_modes, IT_reset_terminal_modes)
6136 (IT_set_frame_parameters): Use tty->termscript instead of a global
6137 variable termscript.
6138 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
6139 global variable terminal_coding. Don't refer to
6140 Vnonascii_translation_table.
6141 (internal_terminal_init): Set Vwindow_system in current_kboard.
6142 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
6143 Announce date and time of session start, if termscript is open.
6144 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
6145 term.c:init_tty). Open termscript only of not already open.
6146 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
6147 here instead of dos_ttraw. Don't initialize display if this is an
6148 initial tty. Don't set FRAME_FONT.
6149 (Vwindow_system_version): Bump to 23.
6150 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
6151 is available, set up mouse_position_hook.
6152 (dos_ttraw, IT_set_terminal_modes): If called with initial
6153 terminal, do nothing.
6154 (IT_set_frame_parameters): Handle the Qtty_type frame
6155 parameter by calling internal_terminal_init.
6156 (dos_set_window_size, show_mouse_face)
6157 (clear_mouse_face, IT_note_mode_line_highlight)
6158 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
6159 (dos_rawgetc): Use tty_display_info instead of x_display_info.
6160 (initialize_msdos_display): New function.
6161 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
6162 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
6163 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
6164 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 6165 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
6166 (request_sigio, unrequest_sigio): Don't define, now defined on
6167 sysdep.c.
6168 (IT_write_glyphs): Rewrite to use encode_terminal_code.
6169
6170 * term.c [MSDOS]: Include msdos.h.
6171 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
6172 conditional to DOS_NT. Allow only one call to this function in a
6173 session. Don't allocate a new struct tty_display_info; instead,
6174 reuse the_only_display_info. Call get_tty_size to get screen
6175 dimensions. Call init_baud_rate to set bad_rate.
6176 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
6177 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 6178 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
6179 (get_tty_terminal, get_named_tty, Ftty_type)
6180 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
6181 output_termcap.
b8ff72fa
SM
6182 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
6183 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 6184 only when subprocesses are supported.
aac0c6e3
MR
6185
6186 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
6187 f->output_data.x.
6188 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
6189 terminal devices.
6190
5582fbc7 6191 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
6192 x_output.
6193 (FRAME_FONT): Use output_data.tty.
6194 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
6195 (struct x_display_info): Rename from display_info. Update all users in
6196 msdos.c.
aac0c6e3 6197 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 6198 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
6199 (dos_ttraw): Update prototype.
6200
6201 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
6202 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
6203
62042008-08-23 Jason Rumney <jasonr@gnu.org>
6205
6206 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
6207 (fn_TIFFSetDirectory): New library function used.
6208 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
6209 (tiff_load): Use :index to select among multiple images. Set count
6210 property when multiple images exist.
6211 (gif_format): Use :index, not :image.
6212
62132008-08-23 Chong Yidong <cyd@stupidchicken.com>
6214
6215 * xdisp.c (try_scrolling): Check INT_MAX instead of
6216 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
6217 to obtain INT_MAX.
6218
62192008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
6220
6221 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
6222
62232008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
6224
6225 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
6226 GNUstep library location.
6227
62282008-08-21 Chong Yidong <cyd@stupidchicken.com>
6229
6230 * xfaces.c (x_update_menu_appearance): Check validity of menu font
6231 before using it.
6232
6233 * puresize.h (BASE_PURESIZE): Increase to 1250000.
6234
62352008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6236
6237 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
6238 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
6239 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
6240 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
6241 (EmacsApp-cursor_blink_handler): Remove declaration.
6242 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
6243 match 01 Feb 2008 changes in xterm.c.
6244 (ns_read_socket): Add cast to avoid warning.
6245 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
6246 GNUstep.
6247
62482008-08-20 Chong Yidong <cyd@stupidchicken.com>
6249
6250 * xselect.c (x_get_foreign_selection): Return nil if desired
6251 selection could not be obtained, instead of signalling an error.
6252
62532008-08-20 David Reitter <david.reitter@gmail.com>
6254
6255 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
6256 * nsterm.m: Remove ns-specific code for cursor blinking.
6257 (ns_draw_window_cursor): Clear cursor properly rather than
6258 redrawing the area. Respect width of bar cursors.
6259 These changes enable the use of generic blink-cursor-mode and
6260 generic cursor types in NS and support smooth cursor movements (do
6261 not blink off after command).
6262 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
6263 Nextstep, too.
6264
62652008-08-19 Kenichi Handa <handa@m17n.org>
6266
6267 * font.c (Vfont_log_deferred): New variable.
6268 (font_add_log): Check Vfont_log_deferred.
6269 (font_deferred_log): New function.
6270
6271 * font.h (font_deferred_log): Extern it.
6272
6273 * fontset.c (reorder_font_vector): Use encoding charset of fonts
6274 for sorting.
6275 (face_for_char): Use deferred log.
6276
62772008-08-18 Kenichi Handa <handa@m17n.org>
6278
6279 * fontset.c (face_for_char): Add font log.
6280
6281 * font.c (font_add_log): Add the font properties :script, :lang,
6282 and :otf in the log.
6283
62842008-08-17 Chong Yidong <cyd@stupidchicken.com>
6285
6286 * xdisp.c: Remove dead code.
6287 (handle_invisible_prop, next_overlay_string): Defer call to
6288 setup_for_ellipsis.
6289 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
6290
62912008-08-15 Chong Yidong <cyd@stupidchicken.com>
6292
6293 * xfaces.c (lookup_derived_face): Properly handle possible zero
6294 return value of get_lface_attributes.
6295 (merge_faces): Don't tell lookup_derived_face to signal an error
6296 if face is not found.
6297
6298 * dired.c (Fdirectory_files): Doc fix.
6299
6300 * process.c (make_process): Initialize kill_without_query struct
6301 member.
6302
63032008-08-15 Eli Zaretskii <eliz@gnu.org>
6304
6305 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
6306 Alternative calculation of totphys for Visual Studio 6.
6307
6308 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
6309
6310 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
6311 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
6312 All users changed.
6313 (stat): Only root directory passed to GetDriveType. Allow RAM
6314 disk as well as local fixed disk when w32-get-true-file-attributes
6315 is set to `local'.
6316 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
6317 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
6318 (w32_cached_id, w32_add_to_cache): New functions.
6319 (get_name_and_id): Look account names in the cache before calling
6320 lookup_account_sid.
6321 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
6322 New initialization flags.
6323 (globals_of_w32): Initialize them to zero.
6324 (w32_system_process_attributes): Use w32_cached_id and
6325 w32_add_to_cache.
6326
63272008-08-14 Lawrence Mitchell <wence@gmx.li>
6328
6329 * lread.c (Fread_char, Fread_char_exclusive): If no character
6330 event is read before timeout is reached, return nil, rather than
6331 converting to a number.
6332
63332008-08-14 Chong Yidong <cyd@stupidchicken.com>
6334
6335 * fns.c (use_dialog_box): Doc fix.
6336
6337 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
6338 on OS X.
6339
63402008-08-13 Chong Yidong <cyd@stupidchicken.com>
6341
6342 * frame.c (Qns_parse_geometry): New var.
6343 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
6344
63452008-08-11 Chong Yidong <cyd@stupidchicken.com>
6346
6347 * xdisp.c (x_produce_glyphs): Handle the case when font has no
6348 space character in calculating tabs.
6349
63502008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
6351
6352 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
6353
63542008-08-10 Glenn Morris <rgm@gnu.org>
6355
6356 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
6357 silence gcc "limited range of data type" warnings in some
6358 make_fixnum_or_float calls.
6359
63602008-08-09 Eli Zaretskii <eliz@gnu.org>
6361
6362 * w32.c (w32_system_process_attributes): If the process does not
6363 exist, return nil.
6364
6365 * w32.c: Include thelp32.h, psapi.h and coding.h.
6366 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
6367 declarations.
6368 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
6369 (Process32Next_Proc): New typedefs.
6370 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
6371 (g_b_init_process32_next, g_b_init_open_thread_token)
6372 (g_b_init_impersonate_self, g_b_init_revert_to_self)
6373 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
6374 (g_b_init_get_process_working_set_size)
6375 (g_b_init_global_memory_status_ex): New static variables.
6376 (globals_of_w32): Initialize them.
6377 (create_toolhelp32_snapshot, process32_first, process32_next)
6378 (open_thread_token, impersonate_self, revert_to_self)
6379 (get_process_memory_info, get_process_working_set_size)
6380 (global_memory_status, global_memory_status_ex): New wrapper
6381 functions.
6382 (w32_list_system_processes, w32_system_process_attributes)
6383 (enable_privilege, restore_privilege, ltime, process_times):
6384 New functions.
6385 (convert_time_raw): New function.
6386 (convert_time): Remove conversion of FILETIME into time in 100
6387 nsec units, call convert_time_raw instead.
6388
6389 * process.h (w32_list_system_processes, w32_system_process_attributes):
6390 Add prototypes.
6391 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
6392 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
6393 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
6394 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
6395
6396 * process.c (Fsystem_process_attributes): Doc fix.
6397
63982008-08-08 Chong Yidong <cyd@stupidchicken.com>
6399
6400 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
6401 a continued multi-char glyph; if so, advance to the actual glyph.
6402
64032008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
6404
6405 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
6406
6407 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
6408 (.m.o): Use it.
6409 * config.in: Regenerate.
6410
64112008-08-07 Chong Yidong <cyd@stupidchicken.com>
6412
6413 * xdisp.c (redisplay_window): Revert last change.
6414 (try_window): Check bottom scroll margin too.
6415
64162008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6417
6418 * config.in: Regenerate.
6419
6420 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
6421 -list-load-path-shadows'.
6422 (nsgui.h): Reduce number of things depending on it.
6423
64242008-08-06 Chong Yidong <cyd@stupidchicken.com>
6425
6426 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
6427 instead of window-end which does the wrong thing at eob.
6428 (try_cursor_movement): Minor optimization.
6429 (redisplay_window): If scroll margin is defined, don't assume
6430 window doesn't need scrolling.
6431
64322008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
6433
6434 * config.in: Regenerate.
6435
6436 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
6437 (mostlyclean): Don't delete *.d under NS.
6438
6439 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
6440
64412008-08-06 Kenichi Handa <handa@m17n.org>
6442
6443 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
6444
64452008-08-06 Andreas Schwab <schwab@suse.de>
6446
6447 * config.in: Regenerate.
6448
64492008-08-05 Chong Yidong <cyd@stupidchicken.com>
6450
6451 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
6452 forcing a window start.
6453
6454 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
6455 (auto_save_1): Update modtime when auto-save-list-file-name is on.
6456
64572008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6458
6459 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
6460 argument.
6461
64622008-08-05 Juanma Barranquero <lekktu@gmail.com>
6463
6464 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
6465 <scroll-down-aggressively, before-change-functions>:
6466 <after-change-functions>: Reflow docstrings.
6467
64682008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6469 Ken Raeburn <raeburn@gnu.org>
6470
6471 Dock menu customization, based on a patch by Ken Raeburn, plus some
6472 other fixes.
6473 * nsmenu.m (dockMenu): New variable.
6474 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
6475
6476 * nsterm.h (dockMenu): Declare.
6477
6478 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
6479 (ns_term_init): Initialize dockMenu.
6480 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
6481 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
6482 left.
6483
6484 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
6485
64862008-08-04 Chong Yidong <cyd@stupidchicken.com>
6487
6488 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
6489
6490 * config.in: Regenerate.
6491
64922008-08-04 Seiji Zenitani <zenitani@mac.com>
6493
6494 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
6495
64962008-08-04 Chong Yidong <cyd@stupidchicken.com>
6497
6498 * nsterm.h (find_and_call_menu_selection): Fix prototype.
6499
65002008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
6501
6502 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
6503
6504 * keyboard.h: Comment an #endif.
6505
6506 * lisp.h (have_menus_p): Adjust comment.
6507
6508 * menu.c (find_and_return_menu_selection): Fix comparison with
6509 client_data.
6510
6511 * nsmenu.m (popup_activated_flag): New variable.
6512 (popup_activated): New function.
6513 (menu-or-popup-active-p): New exported lisp definition.
6514 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
6515 when popup done.
6516 (ns_popup_dialog): Set popup_activated_flag.
6517
6518 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
6519 version for GNUstep (handled by conditional typedef in nsterm.m).
6520 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
6521 in rgb.txt).
6522
6523 * process.c (init_process): Use DARWIN_OS, not DARWIN.
6524
6525 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
6526
6527 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
6528
6529 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
6530 shortcircuit if popup_activated like GTK and X toolkit.
6531
6532 * m/inter386.h: Change DARWIN to DARWIN_OS.
6533
6534 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
6535 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
6536 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
6537 comment on NO_SOCK_SIGIO.
6538
65392008-08-03 Chong Yidong <cyd@stupidchicken.com>
6540
6541 * nsterm.m (windowDidResize): Remove stopModal call.
6542
65432008-08-03 Andreas Schwab <schwab@suse.de>
6544
6545 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
6546 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
6547
65482008-08-02 Chong Yidong <cyd@stupidchicken.com>
6549
6550 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
6551 Don't use uninitialized pointer variable when using getrlimit.
6552
65532008-08-02 Jason Rumney <jasonr@gnu.org>
6554
6555 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
6556
65572008-08-02 Eli Zaretskii <eliz@gnu.org>
6558
6559 * alloc.c (NSTATICS): Bump to 0x640.
6560
6561 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
6562
6563 * lisp.h: Add prototype for directory_files_internal.
6564
6565 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
6566 New functions.
6567 (syms_of_process): Defsubr them. Add initializations for various
6568 Q* symbols used in procfs_system_process_attributes.
6569 (procfs_list_system_processes, procfs_system_process_attributes)
6570 [HAVE_PROCFS]: New functions.
6571 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
6572 (procfs_get_total_memory): New functions.
6573
65742008-08-01 Juanma Barranquero <lekktu@gmail.com>
6575
6576 * xfaces.c (Fx_load_color_file): Fix previous change;
6577 it is #ifdef WINDOWSNT, not WINDOWS_NT.
6578
65792008-08-01 Michael Albinus <michael.albinus@gmx.de>
6580
6581 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
6582
65832008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6584
6585 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
6586
65872008-08-01 Chong Yidong <cyd@stupidchicken.com>
6588
6589 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6590
6591 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
6592 define NSApplicationDelegateReplySuccess.
6593 (EmacsView -converstationIdentifier): Use long instead of
6594 NSInteger for GNUstep, since it doesn't have NSInteger.
6595
6596 * xmenu.c: Revert last change.
6597
6598 * keyboard.h: Fix last change.
6599
66002008-08-01 Juanma Barranquero <lekktu@gmail.com>
6601
6602 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
6603 on Windows.
6604
66052008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6606
6607 Warning clearing and clean-up in NS port.
6608 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6609 Add prototypes.
6610 * nsgui.h (FACE_DEFAULT): Remove, unused.
6611 (XGCValues): Change colors to unsigned long.
6612 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
6613 nsterm.m.
6614 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
6615 (ns_list_fonts): Remove, unused.
6616 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
6617 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
6618 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
6619 (nsfont_draw): Compare face colors to 0, not nil.
6620 * nsmenu.m (struct widget_value): Drop unneeded declaration.
6621 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
6622 (-addSubmenuWithTitle:): Use NSMenuItem class.
6623 (ns_popup_menu): Use NO, not NULL, for enabled setting.
6624 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
6625 (ns_clip_to_row): Make gc arg a BOOL.
6626 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
6627 ns_clip_to_row() call.
6628 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
6629 used). Cast FRAME_FONT assignments.
6630 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
6631 (ns_string_to_lispmod): Change arg to const char.
6632 (ns_term_init): Use NSMenuItem class.
6633 (EmacsApp -openFile:): Move to different section of file.
6634 (EmacsApp -application:openFiles:): Don't return a value, call
6635 -replyToOpenOrPrint:.
6636 (EmacsView -keyDown:): Fix up cast.
6637 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
6638 (EmacsView -menuDown:): Cast tag in call to
6639 find_and_call_menu_selection().
6640 (ns_list_fonts): Remove, unused.
6641 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
6642 (ns_fontname_to_xlfd): Make static.
6643 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
6644 Remove prototypes (now in keyboard.h).
6645 (next_menubar_widget_id): Remove, unused.
6646 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
6647 Remove prototypes (now in keyboard.h).
6648 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
6649
66502008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
6651
6652 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
6653 (floatfns.o): Depend on syssignal.h.
6654 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
6655
6656 * systty.h: Fix previous change that removed BSD_TERMIOS.
6657 Add comments to #ifdefs.
6658
66592008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6660
6661 * w32fns.c (w32-load-color-file): Remove.
6662 (x-open-connection): Use renamed Fx_load_color_file.
6663 * xfaces.c (x-load-color-file): Add.
6664 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6665 Emacs.clr.
6666 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6667
66682008-07-31 Michael Albinus <michael.albinus@gmx.de>
6669
6670 * dbusbind.c (Fdbus_call_method_asynchronously)
6671 (Fdbus_method_error_internal): New defuns.
6672 (xd_read_message): Handle also reply messages.
6673 (Vdbus_registered_functions_table): Extend docstring.
6674
66752008-07-31 Juanma Barranquero <lekktu@gmail.com>
6676
6677 * keyboard.c (gobble_input): Fix previous change.
6678
66792008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6680
6681 * bitmaps/README:
6682 * xfns.c:
6683 * termcap.c:
6684 * term.c:
6685 * syswait.h:
6686 * systty.h:
6687 * systime.h:
6688 * syssignal.h:
6689 * sysdep.c:
6690 * process.h:
6691 * process.c:
6692 * print.c:
6693 * ndir.h:
6694 * lread.c:
6695 * keyboard.c:
6696 * getpagesize.h:
6697 * floatfns.c:
6698 * fileio.c:
6699 * emacs.c:
6700 * doc.c:
6701 * dispnew.c:
6702 * dired.c:
6703 * data.c:
6704 * callproc.c:
6705 * buffer.c:
6706 * README:
6707 * Makefile.in:
6708 * s/template.h:
6709 * s/msdos.h:
6710 * m/vax.h: Remove VMS support.
6711 * s/vms.h:
6712 * vlimit.h:
6713 * uaf.h:
6714 * temacs.opt:
6715 * param.h:
6716 * ioctl.h: Remove file.
6717
67182008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6719
6720 * s/ms-w32.h (MULTI_KBOARD): Remove.
6721 * xterm.c:
6722 * xselect.c:
6723 * xfns.c:
6724 * window.c:
6725 * w32term.c:
6726 * w32fns.c:
6727 * terminal.c:
6728 * termhooks.h:
6729 * term.c:
6730 * sysdep.c:
6731 * keyboard.h:
6732 * keyboard.c:
6733 * frame.h:
6734 * frame.c:
6735 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6736 * config.in: Regenerate.
6737
67382008-07-30 Jason Rumney <jasonr@gnu.org>
6739
6740 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6741
6742 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6743 (w32font_open_internal): Get unicode version of textmetrics.
6744 Don't enable or disable glyph indices here.
6745 (w32font_open): Disable use of glyph indices.
6746
6747 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6748
67492008-07-30 Chong Yidong <cyd@stupidchicken.com>
6750
6751 * minibuf.c (Vread_buffer_function): Doc fix.
6752
67532008-07-30 John Paul Wallington <jpw@pobox.com>
6754
6755 * minibuf.c (read_buffer_completion_ignore_case): New var.
6756 (Fread_buffer): Use it.
6757
67582008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6759
6760 * systty.h (sensemode): Remove empty #if. Remove reference to
6761 BSD_TERMIOS, unused.
6762
6763 * sysdep.c: Remove reference to DGUX.
6764 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6765
6766 * config.in: Regenerate.
6767
67682008-07-30 Jason Rumney <jasonr@gnu.org>
6769
6770 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6771
67722008-07-29 Jason Rumney <jasonr@gnu.org>
6773
6774 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6775 is populated.
6776 (uniscribe_encode_char): Always use uniscribe.
6777 Avoid using context if cache is populated.
6778
67792008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6780
6781 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6782 open menu.
6783
6784 * gtkutil.c (menu_nav_ended): Remove.
6785 (create_menus): Remove signal connect for menu_nav_ended.
6786
67872008-07-28 Chong Yidong <cyd@stupidchicken.com>
6788
6789 * xdisp.c (redisplay_window): Check return value of
6790 compute_window_start_on_continuation_line before forcing a window
6791 start.
6792
67932008-07-28 Jason Rumney <jasonr@gnu.org>
6794
6795 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6796
6797 * w32term.c (w32_enable_unicode_output, cleartype_active):
6798 Remove obsolete display options.
6799 (x_draw_glyph_string_background): Don't use old cleartype_active
6800 workaround.
6801 (w32_initialize): Remove cleartype_active initialization.
6802 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6803
68042008-07-28 Andreas Schwab <schwab@suse.de>
6805
6806 * lisp.h (init_weak_hash_tables, syms_of_font)
6807 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6808 (remove_hash_entry): Don't declare.
6809 * eval.c (maybe_call_debugger): Make static and move before use.
6810 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6811 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6812 * xterm.h (x_set_frame_alpha): Declare.
6813
68142008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6815
6816 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6817 (create_menus): Connect selection-done to menu_nav_ended.
6818
68192008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6820
6821 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6822 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6823 parameter with read of 'alpha' one.
6824 (Qns_frame_parameter): Remove.
5582fbc7 6825 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6826 (next-selection-coding-system, Vselection_coding_system)
6827 (Vnext_selection_coding_system): Drop.
6828
68292008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6830
6831 * nsfns.m (do-applescript, do_applescript): Rename to
6832 ns-do-applescript, ns_do_applescript, and move within file.
6833
68342008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6835
6836 Remove support for Mac Carbon.
6837 * mactoolbox.c:
6838 * macterm.h:
6839 * macterm.c:
6840 * macselect.c:
6841 * macmenu.c:
6842 * macgui.h:
6843 * macfns.c:
6844 * mac.c: Remove file.
6845 * s/darwin.h:
6846 * m/intel386.h:
6847 * xfaces.c:
6848 * xdisp.c:
6849 * window.c:
6850 * tparam.c:
6851 * termhooks.h:
6852 * termcap.c:
6853 * term.c:
6854 * syssignal.h:
6855 * sysselect.h:
6856 * sysdep.c:
6857 * process.c:
6858 * lread.c:
6859 * lisp.h:
6860 * keyboard.c:
6861 * image.c:
6862 * fringe.c:
6863 * frame.h:
6864 * frame.c:
6865 * fontset.c:
6866 * font.h:
6867 * font.c:
6868 * fns.c:
6869 * fileio.c:
6870 * emacs.c:
6871 * dispnew.c:
6872 * dispextern.h:
6873 * config.in:
6874 * atimer.c:
2ae37cf0 6875 * Makefile.in: Remove code for Carbon.
aac0c6e3 6876
f0131492 68772008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6878
6879 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6880
68812008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6882
6883 * macterm.h (kCGBitmapByteOrder32Host): New define for
6884 non-universal SDKs.
6885
6886 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6887 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6888
6889 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6890 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6891
68922008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6893
6894 * w32inevt.c: Include dispextern.h.
6895
68962008-07-26 Andreas Schwab <schwab@suse.de>
6897
6898 * print.c (print_object): Fix off-by-one in last change.
6899
69002008-07-25 Juanma Barranquero <lekktu@gmail.com>
6901
6902 * term.c (syms_of_term): Don't initialize default_orig_pair,
6903 default_set_foreground and default_set_background on Windows.
6904
69052008-07-25 Jason Rumney <jasonr@gnu.org>
6906
6907 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6908 ScriptItemize. Clean up return value checking. Remove unused
6909 variables.
6910 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6911 shaping engine.
6912
6913 * w32font.c (w32font_has_char): Handle the case where we can't
6914 determine the script for a character.
6915
69162008-07-25 Chong Yidong <cyd@stupidchicken.com>
6917
6918 * term.c (syms_of_term): Initialize default_orig_pair,
6919 default_set_foreground, and default_set_background.
6920
6921 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6922 clash (bug#86).
6923 (getloadavg): Callers changed.
6924
6925 * image.c (svg_load_image): Fix last change.
6926 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6927 image size is valid. Use g_object_unref instead of deprecated
6928 rsvg_handle_free to free rsvg handle.
6929 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6930
69312008-07-25 Jason Rumney <jasonr@gnu.org>
6932
6933 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6934 surrogates before looking up glyph index.
6935 (w32font_text_extents): Encode as surrogates if falling back to
6936 functions that need UTF-16 wide chars.
6937
6938 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6939 BMP as surrogates before looking up glyph index.
6940
69412008-07-25 Chong Yidong <cyd@stupidchicken.com>
6942
6943 * image.c (svg_load_image): Check for failure in return value of
6944 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6945
69462008-07-25 Jason Rumney <jasonr@gnu.org>
6947
6948 * w32font.c (Fx_select_font): Reverse sense of second arg.
6949
69502008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6951
6952 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6953 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6954
6955 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6956 (PURESIZE): Use it.
6957
69582008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6959
6960 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6961 * m/alpha.h (TEXT_END):
6962 * m/ibmrs6000.h (TEXT_END):
6963 * m/macppc.h (TEXT_END):
6964 * s/darwin.h (TEXT_END):
6965 * s/msdos.h (TEXT_END): Remove, unused.
6966 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6967 * s/cygwin.h: Remove comment.
6968
6969 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6970 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6971 * m/intel386.h (DOT_GLOBAL_START):
6972 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6973 (USG): Remove, file not used on USG platforms.
6974
6975 * Makefile.in (HAVE_X11): Remove empty #else.
6976
69772008-07-24 Andreas Schwab <schwab@suse.de>
6978
6979 * fileio.c (Finsert_file_contents): Properly adjust undo list
6980 after format conversion.
6981
69822008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6983
6984 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6985 (menu_nav_ended): Remove.
6986 (create_menus): Remove signal connect for menu_nav_ended.
6987 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6988 create_menus.
6989 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6990
69912008-07-23 Jason Rumney <jasonr@gnu.org>
6992
6993 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6994 with opened font.
6995 (w32font_open): Set font type to gdi.
6996
6997 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6998
69992008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
7000
7001 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
7002 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
7003 defines it.
7004 * unexec.c (ADDR_CORRECT): Define unconditionally.
7005
7006 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
7007
7008 * unexec.c: Remove code depending on !COFF and USG, the file is
7009 not used for such systems.
7010
7011 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
7012 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
7013 (LD_SWITCH_SYSTEM_1): Remove, update users.
7014
7015 * s/darwin.h (DATA_END):
7016 * m/intel386.h (DATA_END):
7017 * m/ibmrs6000.h (DATA_END):
7018 * m/alpha.h (DATA_END): Remove, unused.
7019
7020 * config.in: Regenerate.
7021 * s/ms-w32.h (subprocesses): Define unconditionally.
7022 * s/template.h (subprocesses): Update comment.
7023 * s/vms.h (subprocesses):
7024 * s/usg5-4.h (subprocesses):
7025 * s/hpux10-20.h (subprocesses):
7026 * s/gnu-linux.h (subprocesses):
7027 * s/cygwin.h (subprocesses):
7028 * s/bsd-common.h (subprocesses):
7029 * s/aix4-2.h (subprocesses):
7030 * s/darwin.h (subprocesses): Do not define, defined by default now.
7031
7032 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
7033 Remove all references.
7034 (temacs): Add GNUstep specific ld flags.
7035
7036 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
7037 similarly to what X does.
7038
70392008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7040
7041 * nsfns.m (x-list-fonts): Remove.
7042 (syms_of_nsfns): Drop the x-list-fonts declaration.
7043 * nsterm.m: Get rid of remaining "//" comments.
7044
70452008-07-22 Chong Yidong <cyd@stupidchicken.com>
7046
7047 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
7048
7049 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
7050 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
7051 (Fns_own_selection_internal, Fx_disown_selection_internal)
7052 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
7053
7054 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
7055 ... */' style of docstrings. Doc fixes.
7056
70572008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7058
7059 * terminfo.c (UP, BC, PC): Undo previous change.
7060
7061 * nsfns.m: Rename ns prefixed functions/variables to the
7062 corresponding x versions. Update references.
7063
70642008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
7065
7066 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
7067
70682008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
7069
7070 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
7071 Remove forwarding functions.
7072 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
7073 non-static.
7074 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
7075 non-static.
7076 (ns_frame_parm_handlers): Use the new names.
7077 (syms_of_nsfns): Move to the end of file.
7078
7079 * nsterm.m (syms_of_nsterm): Move to the end of file.
7080
7081 * dispnew.c (init_display): Remove code for X10.
7082
70832008-07-22 Jason Rumney <jasonr@gnu.org>
7084
7085 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
7086 bare drive.
7087
70882008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7089
7090 * nsterm.m (syms_of_nsterm): Remove debugging println.
7091
70922008-07-22 David Reitter <david.reitter@gmail.com>
7093
7094 * nsfns.m (do_applescript, F_do_applescript): NS version of the
7095 Carbon implementation of the same functionality: execute arbitrary
7096 AppleScript code.
7097
70982008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7099
7100 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
7101 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
7102 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7103 (Fx_display_mm_height, Fx_display_mm_width)
7104 (Fx_display_backing_store, Fx_display_visual_class)
7105 (Fx_display_save_under, Fx_open_connection)
7106 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
7107 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
7108 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7109 (Fx_display_pixel_width, Fx_display_pixel_height)
7110 (Fx_display_usable_bounds, Fx_display_planes)
7111 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
7112 ... */' style of docstrings.
7113
71142008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
7115
7116 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
7117 on this platform.
7118 (mips):
7119 * m/iris4d.h (mips): Do not define.
7120 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
7121
7122 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
7123
7124 * image.c:
7125 * nsfns.m:
7126 * nsselect.m:
7127 * nsterm.h:
7128 * nsterm.m: Rename ns prefixed functions/variables to the
7129 corresponding x versions. Update references.
7130
7131 * m/ibms390x.h (NO_REMAP): Do not undefine.
7132
7133 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
7134
71352008-07-21 Chong Yidong <cyd@stupidchicken.com>
7136
7137 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
7138 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
7139 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
7140 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
7141 (Fns_display_mm_height, Fns_display_mm_width)
7142 (Fns_display_backing_store, Fns_display_visual_class)
7143 (Fns_display_save_under, Fns_open_connection)
7144 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
7145 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
7146 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
7147 (Fns_display_pixel_width, Fns_display_pixel_height)
7148 (Fns_display_usable_bounds, Fx_display_planes)
7149 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
7150
71512008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
7152
7153 * print.c (print_object): Check print_depth before searching for
7154 circularities.
7155
71562008-07-21 Michael Albinus <michael.albinus@gmx.de>
7157
7158 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
7159 only sprintf.
7160
71612008-07-21 Kenichi Handa <handa@m17n.org>
7162
7163 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
7164
71652008-07-20 Andreas Schwab <schwab@suse.de>
7166
7167 * syntax.c (find_start_pos, find_start_value)
7168 (find_start_value_byte, find_start_begv, find_defun_start)
7169 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
7170
71712008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7172
7173 * s/sol2-3.h: Insert contents of s/sol2.h.
7174 (LD_SWITCH_SYSTEM): Remove redundant definition.
7175 * s/sol2.h: Remove, unused.
7176
71772008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7178
7179 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
7180
71812008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7182
7183 * Makefile.in (ns_appdir): Fix typo in find command.
7184
71852008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
7186
7187 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
7188
7189 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
7190 added not supported anymore.
7191
7192 * s/usg5-4-2.h (LIBS_SYSTEM):
7193 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
7194
7195 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7196 * s/lynxos.h (GETPGRP_NO_ARG):
7197 * s/hpux10-20.h (NO_SIOCTL_H):
7198 * s/gnu.h (GETPGRP_NO_ARG):
7199 * s/gnu-linux.h (NO_SIOCTL_H):
7200 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
7201 * s/cygwin.h (GETPGRP_NO_ARG):
7202 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
7203 (C_DEBUG_SWITCH): Remove duplicate definition.
7204
7205 * m/ibms390.h: Remove boilerplate comments.
7206
7207 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
7208
7209 * process.c (HAVE_SERIAL): Consolidate ifdefs.
7210 (wait_reading_process_output): Remove code for SunOS, platform not
7211 supported anymore. Use SOLARIS2 instead of sun.
7212
72132008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7214
7215 * font.c (font_open_by_name): Under NS, default lface height to zero.
7216 (font_open_for_lface): Under NS, set size based on frame fontsize.
7217 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
7218 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
7219
72202008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7221
7222 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
7223 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
7224 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
7225 YES/NO.
7226 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
7227 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
7228 * Makefile.in (clean): Clear out build destination dir.
7229
72302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7231
7232 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
7233 xterm, xselect.
7234 * lisp.h: Remove declaration of hash_remove.
7235 * nsgui.h: Remove redefinitions of hash_remove.
7236 * fns.c (hash_remove): Rename to hash_remove_from_table.
7237
72382008-07-19 Seiji Zenitani <zenitani@mac.com>
7239
7240 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
7241 strdup() the family UTF8String before modifying it.
7242
72432008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
7244
7245 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
7246 NS_FACE_BACKGROUND with 0 instead of nil.
7247 * nsfont.m (nsfont_draw): Same.
7248
72492008-07-19 Chong Yidong <cyd@stupidchicken.com>
7250
7251 * nsfns.m (ns_set_background_color): Fix crash.
7252
72532008-07-18 Chong Yidong <cyd@stupidchicken.com>
7254
7255 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
7256
72572008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
7258
7259 * puresize.h (BASE_PURESIZE): Increase to 1240000.
7260
72612008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7262
7263 * gtkutil.c: Include <config.h> instead of "config.h".
7264
7265 * lisp.h (Foverlay_buffer): Add EXFUN.
7266
7267 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
7268 child process to complete child_setup. Undo 2005-09-21 change.
7269
7270 * s/darwin.h: Mention setsid after vfork.
7271
72722008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7273
7274 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
7275 Depend on macgui.h.
7276
7277 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
7278 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
7279
7280 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
7281 and f19.
7282 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
7283
7284 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
7285 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
7286 Remove enumerators.
7287
7288 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
7289 Check if FACE_FROM_ID returns NULL.
7290
72912008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
7292
7293 * w32inevt.c (change_frame_size): Remove extern declaration.
7294 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
7295 change_frame_size.
7296
72972008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7298
7299 * getloadavg.c: Revert last change (2008-07-15).
7300
73012008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
7302
7303 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 7304 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
7305 from configure.
7306
73072008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
7308
7309 * s/sol2.h:
7310 * s/sol2-4.h: Reorganize conditionals.
7311
7312 * ecrt0.c: Remove code depending on m68000, not used anymore.
7313
7314 * fns.c (hash_remove): Make static.
7315 * lisp.h (hash_remove): Don't prototype.
7316
7317 * m/ibmrs6000.h:
7318 * m/ibms390x.h:
7319 * m/macppc.h: Remove boilerplate comments.
7320
7321 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
7322 Solaris, which does not need them.
7323
7324 * m/vax.h: Remove comments about unsupported systems.
7325
7326 * s/darwin.h: Reorganize ifdefs.
7327
73282008-07-17 Andreas Schwab <schwab@suse.de>
7329
7330 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
7331
73322008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
7333
7334 Use SDATA. Follow coding convention of placing operators at
7335 beginning of next line rather than end of previous line, and placing
7336 spaces around infix operators.
7337
7338 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
7339 in case it was defined already.
7340 USE @GNUSTEP_MAKEFILES@ rather than envvars.
7341 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
7342 ns_default.
7343 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
7344 Lisp_Objects.
7345 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
7346 (ns_defined_color, ns_color_to_lisp): Declare.
7347 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
7348 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
7349 it's accepted even with USE_LISP_UNION_TYPE.
7350 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
7351 (update_frame_tool_bar): Remove apparently obsolete tests for
7352 non-integerness of f->tool_bar_lines.
7353 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
7354 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
7355 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
7356 (nsfont_open): Don't confuse NULL for Qnil.
7357 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
7358 * menu.h (find_and_call_menu_selection):
7359 * menu.c (find_and_call_menu_selection): Use just int for vector size.
7360 (find_and_return_menu_selection): Always return something.
7361 * frame.h: Include dispextern.h for Display_Info.
7362 (display_x_get_resource): Declare.
7363
73642008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
7365
7366 * syntax.c: Remove stdio.h include accidentally introduced in
7367 Emacs.app commit.
7368 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
7369 NS_IMPL_COCOA.
7370 * keyboard.c (handle_async_input, input_available_signal): Remove
7371 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
7372
73732008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7374
7375 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
7376 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
7377 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
7378 Use SDATA.
7379
7380 * keymap.c: Remove all NS-specific code.
7381 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
7382 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
7383 where_is_preferred_modifier, return a different value depending on how
7384 preferred is the binding.
7385 (where_is_internal): Adjust accordingly.
7386 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
7387 Adjust to new preferred_sequence_p.
7388 (syms_of_keymap): Declare `where-is-preferred-modifier'.
7389 * keyboard.c (parse_solitary_modifier): Not static any more.
7390 * keyboard.h (parse_solitary_modifier): Declare.
7391
73922008-07-16 Andreas Schwab <schwab@suse.de>
7393
7394 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
7395 of easymenu.
7396
73972008-07-16 Chong Yidong <cyd@stupidchicken.com>
7398
7399 * xdisp.c (move_it_in_display_line): Account for word wrap, so
7400 that we don't move off the line.
7401
74022008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
7403
7404 * keyboard.c (Qsuper): Remove.
7405 (parse_menu_item): Don't call where_is_internal specially for NS.
7406
74072008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7408
7409 * s/gnu-linux.h: Remove boilerplate comments.
7410
7411 * m/alpha.h (__ELF__): Consolidate conditions.
7412
7413 * m/m68k.h (linux): Use GNU_LINUX instead.
7414 Remove boilerplate comments.
7415
7416 * m/intel386.h: Undo refactoring from previous change.
7417 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
7418 too, remove dead code.
7419 (linux): Use GNU_LINUX instead.
7420
74212008-07-16 Jason Rumney <jasonr@gnu.org>
7422
7423 * w32gui.h: Repeat 26 June changes lost by last change.
7424
74252008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
7426
7427 * systty.h: Remove code for Aix on 386, unsupported platform.
7428
7429 * s/ms-w32.h: Remove boilerplate comments.
7430 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
7431
7432 * s/gnu-linux.h (TERM): Remove support.
7433 (HAVE_SYSVIPC): Remove, unused.
7434 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
7435 for this system.
7436
7437 * process.c: Remove support for IRIS, unused.
7438 Remove support for TERM, not relevant anymore.
7439
7440 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
7441 used with the definition.
7442
7443 * s/aix4-2.h (static): Do not undef.
7444
7445 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
7446 only used on Aix.
7447 (HAVE_SYSVIPC): Remove, unused.
7448
7449 * m/hp800.h (CANNOT_DUMP): Do not undef.
7450
7451 * m/alpha.h: Fix comment.
7452
7453 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
7454 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
7455 used by this configuration.
7456 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
7457 * unexec.c: Remove code depending on HPUX and
7458 USG_SHARED_LIBRARIES, not used with this file. Remove code
7459 depending on IRIS, unused. Remove if 0-ed code.
7460
7461 * s/template.h: Remove comments about static.
7462
7463 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
7464 Remove if 0-ed code.
7465 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
7466 were the same as the default.
7467 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
7468 Remove boilerplate comments.
7469 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
7470 (HAVE_SYSVIPC): Remove, unused.
7471 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
7472
7473 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7474 Remove boilerplate comments.
7475 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7476 Remove boilerplate comments.
7477 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
7478 Remove boilerplate comments.
7479 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
7480
7481 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
7482 USG systems which do not use DATA_SEG_BITS.
7483 Refactor code. Remove boilerplate comments.
7484
7485 * m/ibms390.h:
7486 * m/m68k.h:
7487 * s/bsd-common.h:
7488 * s/cygwin.h:
7489 * s/darwin.h:
7490 * s/freebsd.h:
7491 * s/gnu.h:
7492 * s/msdos.h: Remove boilerplate comments.
7493
7494 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 7495 do not use this file.
aac0c6e3
MR
7496 (IRIS_4D): Remove, unused.
7497
7498 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 7499 do not use this file.
aac0c6e3
MR
7500 (SIGN_EXTEND_CHAR):
7501 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
7502 * unexmips.c: Remove file, unused.
7503
7504 * editfns.c (Fuser_full_name): Replace the only use of
7505 USER_FULL_NAME with its value.
7506 * config.in: Regenerate.
7507
75082008-07-16 David Reitter <david.reitter@gmail.com>
7509
7510 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
7511 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
7512
75132008-07-16 Glenn Morris <rgm@gnu.org>
7514
7515 * emacs.c (system-type): Doc fix.
7516
75172008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
7518
7519 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
7520 If the cache doesn't work, let's fix it, rather than work around it.
7521
75222008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7523
7524 * Makefile.in: Correct additions for nsfont.o in last commit.
7525 * nsfont.m: New file (forgot last commit).
7526
75272008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7528
7529 * callproc.c (set_initial_environment): Initialize
7530 Vprocess_environment under CANNOT_DUMP (fixes crash when
7531 batch-compiling for bootstrap).
7532
75332008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
7534 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7535
7536 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
7537 fix crash due to different init order.
7538
75392008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7540
7541 Changes and additions for NeXTstep windowing system (Cocoa and
7542 GNUstep) support.
7543
7544 * Makefile.in:
7545 * config.in: Support defines and build commands for NS port.
7546 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
7547 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
7548 * dispextern.h: Include nsgui.h and add needed typedefs under NS
7549 windowing.
7550 (struct face): Add synth_ital field.
7551 * dispnew.c: Include nsterm.h when compiling under NS windowing.
7552 (init_display): Initialize Vinitial_window_system to "ns" when so
7553 compiled.
7554 * emacs.c: Include GSConfig.h when compiling under GNUstep.
7555 (display_arg): Use under NS.
7556 (main): Under NS, allocate autorelease pool and handle command line
7557 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
7558 (standard_args): Add NS-specific args.
7559 (shut_down_emacs): Shut down NS terminal if compiled under NS.
7560 * font.c (DEFAULT_ENCODING): New variable.
7561 (font_find_for_lface): Use it.
7562 (syms_of_font): Load syms_of_nsfont under NS.
7563 * font.h: Declare nsfont_driver when compiled under NS.
7564 * fontset.c: When compiling under NS, include nsterm.h.
7565 (fontset_from_font): Autoconstruct fontset under NS.
7566 * frame.c (various): Under NS, include nsterm.h, add Qns window system
7567 symbol, document and use it.
7568 (do_switch_frame): When for_deletion under Cocoa, add
7569 Fraise_frame(Qnil).
7570 (x_set_frame_parameters): Ensure font attribute changes are picked up.
7571 (x_get_arg): Allow "yes" and "no" as boolean values.
7572 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
7573 Qright under Cocoa.
7574 (focus-follows-mouse): Default to 0 under NS.
7575 * frame.h (enum output_method): Add output_ns.
7576 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
7577 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
7578 (FRAME_WINDOW_P): NS-specific definition.
7579 * fringe.c (max_used_fringe_bitmap): Make public.
7580 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
7581 (getloadavg): Use NeXT code under descendant OS's.
7582 * image.c (includes and header section, x_create_bitmap_from_data)
7583 (x_create_bitmap_from_file, free_bitmap_record, image_background)
7584 (image_background_transparent, x_clear_image_1)
7585 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
7586 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
7587 (x_to_xcolors, x_from_xcolors, x_disable_image)
7588 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
7589 other GUIs, including XPM support using code originally written for
7590 Carbon GUI.
7591 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
7592 using NS API.
7593 (image_ascent): Use font metrics macros instead of direct struct field
7594 access.
7595 * keyboard.c (includes): Add nsterm.h when compiling under NS.
7596 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
7597 Also, handle NS as GTK for menu bar purposes.
7598 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
7599 toolkit where they differ.
7600 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
7601 use cachelist, still needed under NS.
7602 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
7603 (struct widget_value): Define it here for menu.c.
7604 * keymap.c (includes): Include modifier internals.
7605 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
7606 NS.
7607 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
7608 support for preferring sequences using certain modifiers, specified by
7609 the FIRSTONLY argument.
7610 * lisp.h (hash_remove): Rename to avoid name clash when compiling
7611 under NS GNUstep implementation.
7612 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
7613 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
7614 * menu.c: Include nsterm.h under NS.
7615 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
7616 (free_menubar_widget_tree_value, update_submenu_strings)
7617 (find_and_call_menu_selection): Treat NS as X and NT.
7618 (find_and_return_menu_selection): New function, used for popup menus.
7619 * nsgui.h:
7620 * nsterm.h:
7621 * nsfns.m:
7622 * nsimage.m:
7623 * nsmenu.m:
7624 * nsselect.m:
7625 * nsterm.m: New files.
7626 * process.c (wait_reading_process_output): Under NS, call ns_select()
7627 instead of plain select().
7628 * syntax.c (char_quoted): Under NS, avoid a crash when called near
7629 beginning of buffer.
7630 * sysselect.h (init_process): Rename when compiling under Cocoa to
7631 avoid name conflict.
7632 * termhooks.h (display_info): Add ns_display_info to union.
7633 * terminal.c (Fterminal_live_p): Add ns to terminal types.
7634 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
7635 COCOA environment.
7636 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
7637 unexec() signature. (Note, this will dump, but the resulting file
7638 crashes; unexosx is used instead; keeping around for reference and
7639 possible aid in getting dump working under GNUstep.)
7640 * w32gui.h (button_type, widget_value): Remove definitions (now in
7641 keyboard.h).
7642 * window.c: Include nsterm.h when compiling under NS.
7643 * xdisp.c (includes): Include nsterm.h when compiling under NS.
7644 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
7645 other GUI windowing systems.
7646 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
7647 GTK.
7648 (x_consider_frame_title): Under NS, set icon type and frame
7649 modified-state indicator; use ns_set_name_as_filename() when using
7650 formatted title.
7651 (update_window_cursor): Make public when compiling under NS.
7652 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
7653 (hourglass_atimer, Vhourglass_delay
7654 * xfaces.c (header section, init_frame_faces, clear_font_table)
7655 (defined_color, unload_color, x_face_list_fonts)
7656 (prepare_face_for_display): Add NS support parallel to other GUIs.
7657 Emulate GCs like other non-X GUIs.
7658 (split_font_name): Don't lowercase font name under NS.
7659 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
7660 under NS.
7661 * s/darwin.h: Add support for compilation under NS.
7662
76632008-07-15 Jason Rumney <jasonr@gnu.org>
7664
7665 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7666 (w32_show_hourglass): Rename from show_hourglass.
7667 (w32_hide_hourglass): Rename from hide_hourglass.
7668 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7669 (Vhourglass_delay): Declare extern.
7670 (hourglass_started): Remove.
7671
7672 * xdisp.c (Vhourglass_delay): Remove static.
7673 (hourglass_started, start_hourglass, cancel_hourglass):
7674 Don't include these versions on WINDOWSNT.
7675
76762008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7677
7678 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7679 variables (formerly in xfns.c).
7680 (show_hourglass, hide_hourglass): New prototypes (same).
7681 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7682 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7683 in xfns.c).
7684 (syms_of_xdisp): Declare/initialize display-hourglass,
7685 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7686 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7687 formerly in xfns.c.
7688 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7689 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7690 (start_hourglass, cancel_hourglass): Remove.
7691 (show_hourglass, hide_hourglass): Remove prototypes and static
7692 modifiers.
7693 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7694 hourglass_atimer, hourglass_shown_p declaration/initialization.
7695 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7696 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7697 (start_hourglass, cancel_hourglass): Remove.
7698 (show_hourglass, hide_hourglass): Remove prototypes and static
7699 modifiers.
7700 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7701 hourglass_atimer, hourglass_shown_p declaration/initialization.
7702 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7703 (DEFAULT_HOURGLASS_DELAY): Remove.
7704 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7705 hourglass_shown_p declaration/initialization.
7706
77072008-07-14 Jason Rumney <jasonr@gnu.org>
7708
7709 * w32fns.c (w32_get_arg): Remove wrapper function.
7710 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7711 directly.
7712 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7713
77142008-07-14 Kenichi Handa <handa@m17n.org>
7715
7716 * xfont.c (xfont_open): Add workaround for X's bug.
7717
77182008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7719
7720 * fontset.c: Include <stdio.h> unconditionally.
7721
77222008-07-13 Michael Albinus <michael.albinus@gmx.de>
7723
7724 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7725 for filtering.
7726
77272008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7728
7729 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7730
7731 * m/macppc.h:
7732 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7733
7734 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7735 (SPECIAL_EMACS_INT):
7736 * m/ia64.h (SPECIAL_EMACS_INT):
7737 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7738 * s/gnu.h (NLIST_STRUCT):
7739 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7740 * s/gnu-linux.h (LINUX):
7741 * s/msdos.h (HAVE_FACES):
7742 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7743
7744 * systty.h:
7745 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7746 anymore.
7747
77482008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7749
7750 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7751 always defined as int.
7752
7753 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7754 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7755 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7756 * s/freebsd.h (HAVE_WAIT_HEADER):
7757 * s/bsd-common.h (HAVE_UNION_WAIT):
7758 * s/aix4-2.h (HAVE_WAIT_HEADER):
7759 * m/mips.h (HAVE_UNION_WAIT):
7760 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7761 (COFF, static): Do not define, they are undefined later in the file.
7762
7763 * process.c (update_status): Don't use a union.
7764 (status_convert):
7765 (sigchld_handler): Use int instead of WAITTYPE.
7766
77672008-07-12 Chong Yidong <cyd@stupidchicken.com>
7768
7769 * indent.c (Fvertical_motion): Restore hscroll before moving to
7770 goal column.
7771
77722008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7773
7774 * lisp.h: Remove left over code.
7775
77762008-07-11 Andreas Schwab <schwab@suse.de>
7777
7778 * lisp.h: Fix logic in last change.
7779
7780 * menu.h: New file.
7781 * menu.c: Include it.
7782 * xmenu.c: Likewise.
7783 * Makefile.in: Update dependencies.
7784
77852008-07-11 Kenichi Handa <handa@m17n.org>
7786
7787 * fontset.c (fontset_from_font): Cancel the previous change.
7788
77892008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7790
7791 * lisp.h:
7792 * w32heap.c:
7793 * emacs.c:
7794 * alloc.c: Replace all references of NO_UNION_TYPE with
7795 USE_LISP_UNION_TYPE.
7796
7797 * m/xtensa.h (NO_UNION_TYPE):
7798 * m/vax.h (NO_UNION_TYPE):
7799 * m/template.h (NO_UNION_TYPE):
7800 * m/sparc.h (NO_UNION_TYPE):
7801 * m/mips.h (NO_UNION_TYPE):
7802 * m/macppc.h (NO_UNION_TYPE):
7803 * m/m68k.h (NO_UNION_TYPE):
7804 * m/iris4d.h (NO_UNION_TYPE):
7805 * m/intel386.h (NO_UNION_TYPE):
7806 * m/ibms390x.h (NO_UNION_TYPE):
7807 * m/ibms390.h (NO_UNION_TYPE):
7808 * m/ibmrs6000.h (NO_UNION_TYPE):
7809 * m/ia64.h (NO_UNION_TYPE):
7810 * m/hp800.h (NO_UNION_TYPE):
7811 * m/arm.h (NO_UNION_TYPE):
7812 * m/amdx86-64.h (NO_UNION_TYPE):
7813 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7814 defining it the same.
7815
78162008-07-10 Chong Yidong <cyd@stupidchicken.com>
7817
7818 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7819
78202008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7821
7822 * fileio.c:
7823 * sysdep.c
7824 * systty.h:
7825 * m/ibmrs6000.h:
7826 * m/iris4d.h:
7827 * s/aix4-2.h:
7828 * s/freebsd.h:
7829 * s/gnu-linux.h:
7830 * s/hpux10-20.h:
7831 * s/hpux11.h:
7832 * s/netbsd.h:
7833 * s/sol2-3.h:
7834 * s/sol2-4.h:
7835 * s/sol2.h:
7836 * s/usg5-4.h:
7837 * s/vms.h: Remove references to unused variables.
7838
78392008-07-10 Andreas Schwab <schwab@suse.de>
7840
7841 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7842 pattern before matching the generic family.
7843
78442008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7845
7846 * unexec.c:
7847 * s/vms.h:
7848 * s/usg5-4-2.h:
7849 * s/sol2-5.h:
7850 * s/freebsd.h:
7851 * s/darwin.h: Remove dead code.
7852
7853 * m/template.h:
7854 * m/sparc.h:
7855 * m/mips.h:
7856 * m/m68k.h:
7857 * m/iris4d.h:
7858 * m/intel386.h:
7859 * m/ibms390x.h:
7860 * m/ibms390.h:
7861 * m/ia64.h:
7862 * m/hp800.h:
7863 * m/arm.h:
7864 * m/amdx86-64.h: Remove dead code and references to unused
7865 and compiler defined symbols.
7866
7867 * unexmips.c:
7868 * unexelf.c: Remove references to desupported systems.
7869
7870 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7871
7872 * m/powermac.h: Remove boilerplate comments.
7873 (NO_REMAP): Remove unused definition.
7874
7875 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7876 define them.
7877
78782008-07-10 Kenichi Handa <handa@m17n.org>
7879
7880 * xfont.c (xfont_open): Log the reason of failure.
7881
78822008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7883
7884 * fontset.c (fontset_get_font_group):
7885 * font.c (font_check_otf): Specify argument types.
7886
78872008-07-09 Kenichi Handa <handa@m17n.org>
7888
7889 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7890 non-ASCII char is found.
7891
7892 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7893 (reorder_font_vector): Change the arg preferred_family to font.
7894 Prefer the spec matching with font.
7895 (fontset_get_font_group): New function.
7896 (fontset_find_font): Change the format of an element of a realized
7897 fontset. Use fontset_get_font_group.
7898 (fontset_font): Try the current fontset, the default fontset, the
7899 fallbacks of the current fontset, and the fallbacks of the default
7900 fontset in this order.
7901 (face_for_char): Delete the shortcut to use the current font.
7902 (fontset_from_font): Don't set fonts for Latin in the fontset.
7903
7904 * font.h (font_make_object, font_match_p): Adjust prototypes.
7905
7906 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7907
7908 * font.c (font_make_object): New arg entity and pixelsize.
7909 (font_check_otf_features, font_check_otf): New functions.
7910 (font_match_p): Check :lang, :script, and :otf properties.
7911
7912 * xfont.c (xfont_open): Adjust it for the change of
7913 font_make_object.
7914 (xfont_text_extents): Fix initial setting of metrics.
7915
7916 * ftfont.c (struct ftfont_info): New member index, delete member
7917 fc_charset_idx. Make the member order compatible with struct
7918 xftfont_info.
7919 (fc_charset_table): Change charset names to registry names.
7920 (ftfont_pattern_entity): Delete the args registry and
7921 fc_charset_idx. Change the value of :font-entity property
7922 to (FONTNAME . INDEX). Always set :registry property to
7923 `iso10646-1'.
7924 (struct ftfont_cache_data): New struct.
7925 (ftfont_lookup_cache): New arg for_face.
7926 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7927 (ftfont_driver): Set the member otf_capability.
7928 (ftfont_get_charset): Adjust it for the change of
7929 fc_charset_table.
7930 (OTF_TAG_SYM): New macro.
7931 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7932 for the change of fc_charset_table.
7933 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7934 ftfont_pattern_entity. Add FC_INDEX to objset.
7935 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7936 and ftfont_pattern_entity.
7937 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7938 font_make_object, struct ftfont_info.
7939 (ftfont_has_char): Use ftfont_get_fc_charset.
7940 (ftfont_otf_features, ftfont_otf_capability): New functions.
7941 (ftfont_shape): Use ftfont_get_otf.
7942 (ftfont_text_extents): Fix initial setting of metrics.
7943
7944 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7945 member order compatible with struct ftfont_info.
7946 (xftfont_open): Add FC_CHARSET to the pattern. Set
7947 xftfont_info->ft_size. Don't unlock the face. Check BDF
7948 properties if appropriate.
7949 (xftfont_close): Unlock the face.
7950 (xftfont_anchor_point, xftfont_shape): Deleted.
7951 (syms_of_xftfont): Don't set members anchor_point and shape of
7952 xftfont_driver.
7953
7954 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7955 font_make_object.
7956
7957 * w32font.c (w32font_open): Adjust it for the change of
7958 font_make_object.
7959 (w32font_open_internal): Don't set properties of font_object here.
7960
79612008-07-08 Chong Yidong <cyd@stupidchicken.com>
7962
7963 * macfns.c (x_create_tip_frame):
7964 * w32fns.c (x_create_tip_frame):
7965 * xfns.c (x_create_tip_frame): Pass parameter argument to
7966 face-set-after-frame-default.
7967
7968 * xfaces.c (Finternal_merge_in_global_face): Save merged
7969 attributes for the default face back into the face vector.
7970
79712008-07-08 Andreas Schwab <schwab@suse.de>
7972
7973 * fontset.h: Declare fontset_from_font. Don't declare
7974 new_fontset_from_font and fontset_from_font_name.
7975 * xterm.c: Include "fontset.h".
7976 * Makefile.in (xterm.o): Update dependencies.
7977
79782008-07-08 Glenn Morris <rgm@gnu.org>
7979
7980 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7981 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7982
79832008-07-07 Chong Yidong <cyd@stupidchicken.com>
7984
7985 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7986 (x_set_frame_parameters): Don't bind it.
7987
79882008-07-07 Juanma Barranquero <lekktu@gmail.com>
7989
7990 * w32fns.c (map_w32_filename): Declare extern.
7991
79922008-07-07 Jason Rumney <jasonr@gnu.org>
7993
7994 * w32term.c (WS_EX_LAYERED): Define if not already.
7995
79962008-07-06 Chong Yidong <cyd@stupidchicken.com>
7997
7998 * xfaces.c (set_font_frame_param): Don't try to set the font
7999 parameter if it is still unspecified in the lface.
8000
80012008-07-05 Chong Yidong <cyd@stupidchicken.com>
8002
8003 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
8004 face if it didn't already exist.
8005
8006 * xdisp.c (try_window_id): Give up if word-wrapping is on.
8007
80082008-07-05 Andreas Schwab <schwab@suse.de>
8009
8010 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
8011
80122008-07-05 Chong Yidong <cyd@stupidchicken.com>
8013
8014 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
8015 word-wrapping.
8016 (IT_DISPLAYING_WHITESPACE): New macro.
8017 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
8018 when word-wrapping. Simplify word-wrapping logic. Use correct
8019 pixel positions when saving copies of the iterator.
8020 (display_line): Use proper wrap point if the last character on a
8021 line was preceded by whitespace.
8022
80232008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
8024
8025 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
8026
80272008-07-04 Kenichi Handa <handa@m17n.org>
8028
8029 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
8030
8031 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
8032
80332008-07-02 Jason Rumney <jasonr@gnu.org>
8034
8035 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 8036 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
8037
8038 * xdisp.c (next_element_from_display_vector): Move assignment out
8039 of if statement.
8040
80412008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
8042
8043 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
8044
8045 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
8046 (syms_of_fileio): Initialize and export them.
8047 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
8048
8049 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
8050 (Fsystem_move_file_to_trash): New function.
8051 (syms_of_w32fns): Export it to lisp.
8052
80532008-07-01 Jason Rumney <jasonr@gnu.org>
8054
8055 * w32font.c (w32font_text_extents): Don't count overhang as part
8056 of width.
8057
80582008-06-30 Miles Bader <miles@gnu.org>
8059
8060 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
8061 Add `avoid_cursor_p' field.
8062
8063 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
8064 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
8065 (append_glyph, append_composite_glyph, produce_image_glyph)
8066 (append_stretch_glyph): Initialize avoid_cursor_p.
8067 (get_it_property): Rename from `get_line_height_property'.
8068 (x_produce_glyphs): Use get_it_property.
8069 (handle_line_prefix, push_display_prop): New functions.
8070 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
8071 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
8072 New variables.
8073 (syms_of_xdisp): Initialize them.
8074
80752008-06-30 Kenichi Handa <handa@m17n.org>
8076
8077 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
8078 XftDefaultSubstitute (they are called in XftFontMatch).
8079 (xftfont_open): Fix args to ftfont_font_format.
8080
8081 * ftfont.c (fc_charset_table): New member lang.
8082 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 8083 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
8084 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
8085 (ftfont_open): Fix args to ftfont_font_format.
8086 (ftfont_font_format): New arg filename.
8087
80882008-06-30 Chong Yidong <cyd@stupidchicken.com>
8089
8090 * xfaces.c (Finternal_merge_in_global_face): If default face was
8091 modified, realize it again. Update the font face attribute.
8092
80932008-06-29 Jason Rumney <jasonr@gnu.org>
8094
8095 * w32term.c (x_set_frame_alpha): Fix logic.
8096
80972008-06-29 Kenichi Handa <handa@m17n.org>
8098
8099 * fontset.c (Finternal_char_font): Return font-object instead of
8100 font-name.
8101
8102 * composite.c (get_composition_id): Fix the width calculation for TAB.
8103
81042008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
8105
8106 * indent.c (Fvertical_motion): Properly handle float column arg.
8107
81082008-06-28 Jason Rumney <jasonr@gnu.org>
8109
8110 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
8111 (pfnSetLayeredWindowAttributes): New function pointer.
8112 (w32_initialize): Initialize it when supported.
8113 (x_set_frame_alpha): New function.
8114
8115 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
8116 (w32_frame_parm_handlers): Set alpha handler.
8117
8118 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8119
81202008-06-27 Jason Rumney <jasonr@gnu.org>
8121
8122 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
8123 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
8124 (w32_to_x_charset, x_to_w32_charset)
8125 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8126 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8127 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8128 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8129 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8130 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8131 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
8132 (Qw32_charset_unicode): Remove.
8133 (syms_of_w32fns): Update for above changes.
8134
8135 * w32font.c (w32_to_x_charset, x_to_w32_charset)
8136 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
8137 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
8138 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
8139 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
8140 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
8141 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
8142 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
8143 (syms_of_w32font): Update for above changes.
8144
81452008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8146
8147 * s/usg5-4.h: Fix previous change: keep the correct branch of a
8148 removed #if.
8149 (USG_SHARED_LIBRARIES): Remove duplicate definition.
8150
81512008-06-26 Juanma Barranquero <lekktu@gmail.com>
8152 Eli Zaretskii <eliz@gnu.org>
8153
8154 * makefile.w32-in (LOCAL_FLAGS):
8155 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
8156
8157 * sysdep.c (_spawnlp, _getpid):
8158 Declare with explicit _cdecl instead of _CRTAPI1.
8159
8160 * editfns.c (Fget_internal_run_time):
8161 Check for WINDOWSNT with #ifdef, not #if.
8162
81632008-06-26 Jason Rumney <jasonr@gnu.org>
8164
8165 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
8166
8167 * w32term.c (x_draw_glyph_string_foreground)
8168 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
8169 Use FONT_HANDLE macro.
8170 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
8171
8172 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8173 (uniscribe_encode_char): Use FONT_HANDLE macro.
8174
8175 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
8176 (w32font_text_extents): Use precast w32_font.
8177 (w32font_close): Free cached metrics.
8178 (w32font_open_internal): Allocate space for name on stack.
8179
81802008-06-26 Chong Yidong <cyd@stupidchicken.com>
8181
8182 * xdisp.c (extend_face_to_end_of_line): Fix last change.
8183
81842008-06-26 Jason Rumney <jasonr@gnu.org>
8185
8186 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
8187 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
8188
81892008-06-26 Juanma Barranquero <lekktu@gmail.com>
8190
8191 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
8192
81932008-06-26 Jason Rumney <jasonr@gnu.org>
8194
8195 * w32bdf.c, w32bdf.h: Remove obsolete files.
8196
8197 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
8198
8199 * w32gui.h: Don't include w32bdf.h.
8200 (XCharStruct, enum w32_char_font_type, W32FontStruct):
8201 Remove obsolete font support.
8202
8203 * w32font.h (struct w32font_info): Remove compat_w32_font.
8204 Add hfont member.
8205 (FONT_COMPAT): Remove obsolete macro.
8206
8207 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
8208 (w32font_encode_char, w32font_text_extents): Use new hfont member.
8209 (w32font_open_internal): Remove compat code. Set new hfont member.
8210 (Fx_select_font): Use new hfont member.
8211
8212 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
8213 (uniscribe_encode_char): Use new hfont member.
8214
8215 * w32term.c (x_draw_glyph_string_foreground)
8216 (x_draw_composite_glyph_string_foreground): Use new hfont member.
8217 (x_draw_glyph_string): Use metrics in w32font_info.
8218
82192008-06-26 Kenichi Handa <handa@m17n.org>
8220
8221 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
8222
82232008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
8224
8225 * unexnext.c:
8226 * m/ews4800.h:
8227 * m/hp9000s300.h:
8228 * m/ibm370aix.h:
8229 * m/mips-siemens.h:
8230 * m/ncr386.h:
8231 * m/next.h:
8232 * m/pmax.h:
8233 * m/powerpcle.h:
8234 * m/tandem-s2.h:
8235 * s/386bsd.h:
8236 * s/bsd386.h:
8237 * s/bsd4-1.h:
8238 * s/bsd4-2.h:
8239 * s/bsdos2-1.h:
8240 * s/bsdos2.h:
8241 * s/bsdos3.h:
8242 * s/bsdos4.h:
8243 * s/nextstep.h:
8244 * s/ultrix4-3.h:
8245 * s/usg5-0.h:
8246 * s/usg5-2-2.h:
8247 * s/usg5-2.h:
8248 * s/usg5-4-3.h:
8249 * s/ux4800.h:
8250 * s/uxpds.h:
8251 * s/uxpv.h: Remove support for obsolete systems.
8252 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 8253 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
8254 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
8255 Remove, insert contents in s/aix4-2.h.
8256 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
8257 * s/bsd4-3.h: Rename to ...
8258 * s/bsd-common.h: ... this.
8259 * data.c:
8260 * doc.c:
8261 * ecrt0.c:
8262 * emacs.c:
8263 * fileio.c:
8264 * floatfns.c:
8265 * keyboard.c:
8266 * mem-limits.h:
8267 * print.c:
8268 * process.c:
8269 * sysdep.c:
8270 * syssignal.h:
8271 * systty.h:
8272 * syswait.h:
8273 * term.c:
8274 * unexec.c:
8275 * unexelf.c:
8276 * unexhp9k800.c:
8277 * m/hp800.h:
8278 * m/ibmrs6000.h:
8279 * m/mips.h:
8280 * m/vax.h:
8281 * s/darwin.h:
8282 * s/freebsd.h:
8283 * s/gnu.h:
8284 * s/ms-w32.h:
8285 * s/msdos.h:
8286 * s/netbsd.h:
8287 * s/template.h: Remove references to obsolete variables.
8288
8289 * Makefile.in: Add dependencies for all unexec files.
8290 (admindir): Remove unused variable.
8291 (UNEXEC_SRC): Remove references.
8292
82932008-06-25 Chong Yidong <cyd@stupidchicken.com>
8294
8295 * xfns.c (x_default_font_parameter): If Xft is available, first
8296 try Monospace-12 for the default font.
8297
82982008-06-25 Jason Rumney <jasonr@gnu.org>
8299
8300 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
8301
83022008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
8303
8304 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
8305
8306 * buffer.c (syms_of_buffer): Remove default-word-wrap.
8307
83082008-06-25 Juanma Barranquero <lekktu@gmail.com>
8309
8310 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
8311 <scroll-conservatively>: Fix typo in docstring.
8312
8313 * xselect.c (Fx_send_client_event): Doc fix.
8314
83152008-06-25 Kenichi Handa <handa@m17n.org>
8316
8317 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
8318
8319 * font.c (font_parse_fcname): Remove unused variables.
8320 (font_sort_entites): Delete the arg SPEC. Caller changed.
8321 Fix for the case of ! best_only.
8322 (font_delete_unmatched): Check DPI and AVGWIDTH too.
8323
8324 * lisp.h (Fstring_to_unibyte): EXFUN it.
8325
8326 * character.h (str_to_unibyte): Extern it.
8327
8328 * character.c (str_to_unibyte): New function.
8329
8330 * fns.c (Fstring_to_unibyte): New function.
8331 (syms_of_fns): Defsubr it.
8332
83332008-06-24 Kenichi Handa <handa@m17n.org>
8334
8335 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
8336 DPI too.
8337 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
8338
83392008-06-24 Andreas Schwab <schwab@suse.de>
8340
8341 * Makefile.in (${lispsource}loaddefs.el): Rename from
8342 ../lisp/loaddefs.el.
8343 (bootstrap-clean): Do what distclean does but don't remove
8344 Makefile.
8345 (distclean): Depend on bootstrap-clean and remove Makefile.
8346
83472008-06-24 Chong Yidong <cyd@stupidchicken.com>
8348
8349 * buffer.h (struct buffer): New member word_wrap.
8350
8351 * buffer.c (syms_of_buffer): New variables default-word-wrap and
8352 word-wrap.
8353 (init_buffer_once): Initialize them.
8354
8355 * dispextern.h (struct it): Replace bool truncate_lines_p with a
8356 line_wrap enum possessing three possible values.
8357
8358 * termopts.h: Replace truncate_partial_width_windows with
8359 Vtruncate_partial_width_windows.
8360
8361 * dispnew.c (direct_output_for_insert): Avoid direct output when
8362 inserting a space with word wrap on.
8363
8364 * indent.c (compute_motion): Obey integer values of
8365 truncate-partial-width-windows.
8366
8367 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
8368 replacing truncate_partial_width_windows.
8369 (init_iterator): If Vtruncate_partial_width_windows is an integer,
8370 truncate only if the window width is below that integer.
8371 (start_display, resize_mini_window, produce_stretch_glyph)
8372 (display_string, move_it_in_display_line_to): Use line_wrap.
8373 (back_to_previous_visible_line_start, reseat_1): Reset
8374 string_from_display_prop_p.
8375 (display_line): Extend default face to end of line when wrapping.
8376
83772008-06-24 Kim F. Storm <storm@cua.dk>
8378
8379 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
8380 to wrap continued lines at word boundaries.
8381
83822008-06-24 Jason Rumney <jasonr@gnu.org>
8383
8384 * font.c (Ffont_face_attributes): Multiply pixel size before point
8385 conversion to avoid multiplying rounding error.
8386
83872008-06-23 Jason Rumney <jasonr@gnu.org>
8388
8389 * w32term.c (x_draw_glyph_string_background)
8390 (x_draw_glyph_string): Remove old bdf font code.
8391
8392 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
8393
83942008-06-22 Kenichi Handa <handa@m17n.org>
8395
8396 * font.c (font_find_for_lface): Try the adstyle specified in
8397 the property of LFACE_FONT of LFACE (if any).
8398
83992008-06-21 Seiji Zenitani <zenitani@mac.com>
8400 Ryo Yoshitake <ryo@shiftmode.net>
8401
8402 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
8403
84042008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
8405
8406 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
8407 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
8408 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
8409 (witness-emacs): Remove.
8410 (lisp, shortlisp): Move loaddefs.el earlier.
8411 (mostlyclean): Forget about witness-emacs.
8412
84132008-06-22 Glenn Morris <rgm@gnu.org>
8414
8415 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
8416 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
8417
84182008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8419
8420 * Makefile.in (PRECOMP): Remove.
8421 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
8422 (witness-emacs): Run `compile-first'.
8423 (.el.elc): Use the new compile-onefile target.
8424
84252008-06-21 Kenichi Handa <handa@m17n.org>
8426
8427 * xftfont.c (xftfont_open): Handle QCembolden only when
8428 FC_EMBOLDEN is defined.
8429
84302008-06-21 Andreas Schwab <schwab@suse.de>
8431
8432 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
8433 (.el.elc): Likewise.
8434
84352008-06-21 Miles Bader <miles@gnu.org>
8436
8437 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
8438 build dir, not the lisp source dir.
8439
84402008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
8441
8442 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
8443 (bootstrapclean): Remove.
8444 (.el.elc): New rule.
8445 (PRECOMP): New var.
8446 (../lisp/subdirs.el): Remove.
8447 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
8448 (witness-emacs): New target.
8449 (mostlyclean): Remove witness-emacs as well.
8450 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
8451 Add witness-emacs dependency.
8452
84532008-06-20 Chong Yidong <cyd@stupidchicken.com>
8454
8455 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
8456 defined by the font.
8457
84582008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8459
8460 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
8461 (bootstrap-clean): New target that keeps TAGS around.
8462 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
8463 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
8464
84652008-06-20 Jason Rumney <jasonr@gnu.org>
8466
8467 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
8468 Remove obsolete font code.
8469
8470 * w32font.c (font_matches_spec): Use csb bitfield from font signature
8471 to determine language support.
8472
84732008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8474
8475 * sysdep.c (cfsetspeed): New fun extracted from the code.
8476 (cfmakeraw): Move before first use.
8477
84782008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
8479
8480 * sysdep.c (cfmakeraw): Provide fallback implementation.
8481 (serial_configure): Provide fallback implementation of cfsetspeed.
8482
84832008-06-20 Kenichi Handa <handa@m17n.org>
8484
8485 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
8486 the pattern.
8487
8488 * fontset.c (fontset_from_font): Copy font_spec before changing
8489 the elements.
8490
8491 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
8492
84932008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
8494
8495 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
8496 for explicit `font' parameters.
8497
8498 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
8499
85002008-06-19 Kenichi Handa <handa@m17n.org>
8501
8502 * frame.c: Include <ctype.h>.
8503 (x_set_font_backend): Allow spacing characters in the X resource
8504 for FontBackend.
8505
85062008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
8507
8508 * w32fns.c, xfns.c (Qfont_param): New var.
8509 (syms_of_w32fns): Initialize it.
8510 (x_default_font_parameter): Record explicit `font' into
8511 `font-parameter'.
8512
85132008-06-18 Kenichi Handa <handa@m17n.org>
8514
8515 * font.c (font_parse_xlfd): Fix previous change.
8516 (font_parse_fcname): Don't use :fc-unknown-spec.
8517 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
8518 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
8519 (font_add_log): Prepend the driver name to the resulting fonts.
8520
8521 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
8522 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
8523 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
8524
8525 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
8526 (QCembolden): New variables.
8527 (syms_of_xftfont): DEFSYM them.
8528 (xftfont_open): Call XftFontMatch. Don't trust the result of
8529 XftTextExtents8 if the pixel_size is less than 5.
8530
85312008-06-18 Andreas Schwab <schwab@suse.de>
8532
8533 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
8534 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
8535
85362008-06-18 Jason Rumney <jasonr@gnu.org>
8537
8538 * w32font.c (w32font_list, w32font_match): Add logging.
8539
8540 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
8541
85422008-06-17 Chong Yidong <cyd@stupidchicken.com>
8543
8544 * font.c (font_parse_fcname): Store divider characters for
8545 unknown-spec list. For known key symbols, intern using correct
8546 symbol name.
8547
85482008-06-17 Kenichi Handa <handa@m17n.org>
8549
8550 * xfaces.c (realize_default_face): If the frame is not on window
8551 system, set the fontset of face to nil.
8552
85532008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8554
8555 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
8556
85572008-06-16 Juanma Barranquero <lekktu@gmail.com>
8558
8559 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
8560 (build_font_name_from_vector): Delete externs.
8561
8562 * xfaces.c (struct font_name): Don't declare.
8563
85642008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8565
8566 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
8567
85682008-06-16 Chong Yidong <cyd@stupidchicken.com>
8569
8570 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
8571
85722008-06-16 Juanma Barranquero <lekktu@gmail.com>
8573
8574 * font.c (Ffont_spec): Fix usage in docstring.
8575 (Ffont_face_attributes): Doc fix.
8576
85772008-06-16 Andreas Schwab <schwab@suse.de>
8578
8579 * font.c (Ffont_face_attributes): Fix definition.
8580
85812008-06-16 Jason Rumney <jasonr@gnu.org>
8582
8583 * font.h (font_style_symbolic_from_value): Remove.
8584
8585 * font.c (font_style_symbolic_from_value): Remove.
8586 (font_style_symbolic): Revert to pre 2008-06-13 version.
8587
8588 * w32font.c (w32_to_fc_weight): New function.
8589 (w32font_full_name, logfont_to_fcname): Use it.
8590
85912008-06-16 Kenichi Handa <handa@m17n.org>
8592
8593 * font.c (font_check_object): Delete it.
8594 (font_clear_cache): Check if a font-object is alive.
8595 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
8596 font-object to nil.
8597 (font_close_object): Don't check FONT_CLOSE_OBJECT.
8598 (font_at): Don't call font_check_object.
8599 (Ffont_get): Return a symbol for :weight, :slant, and :width.
8600
86012008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
8602
8603 * puresize.h (BASE_PURESIZE): Increase to 1230000.
8604
86052008-06-16 Chong Yidong <cyd@stupidchicken.com>
8606
8607 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
8608
86092008-06-15 Chong Yidong <cyd@stupidchicken.com>
8610
8611 * font.c (font_parse_fcname): Only one decimal point.
8612 (font_unparse_fcname): Handle data in family and foundry indices
8613 as symbols, not strings.
8614 (font_unparse_gtkname, Ffont_face_attributes): New functions.
8615
8616 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
8617
8618 * font.h (font_unparse_gtkname): Add prototype.
8619
86202008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
8621
8622 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
8623
86242008-06-15 Andreas Schwab <schwab@suse.de>
8625
8626 * font.c (font_update_drivers): Fix crash when no drivers match.
8627
86282008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
8629
8630 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
8631 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
8632
86332008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
8634
8635 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
8636
86372008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
8638
8639 * process.c (Fserial_process_configure, Fprocess_send_eof):
8640 Use EQ to compare Lisp_Objects.
8641
86422008-06-13 Jason Rumney <jasonr@gnu.org>
8643
8644 * w32fns.c (Fw32_select_font): Remove old font API function.
8645
8646 * w32font.c (logfont_to_fcname): New function.
8647 (Fx_select_font): New font dialog function compatible with
8648 GTK/fontconfig version.
8649
8650 * font.c (font_style_symbolic_from_value): New function.
8651 (font_style_symbolic): Use it.
8652
8653 * font.h (font_style_symbolic_from_value): Declare new function.
8654
86552008-06-13 Juanma Barranquero <lekktu@gmail.com>
8656
8657 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
8658 <font-width-table>: Fix typos in docstrings.
8659
86602008-06-13 Daniel Engeler <engeler@gmail.com>
8661
8662 These changes add serial port access.
8663 * process.c: Add HAVE_SERIAL.
8664 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8665 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8666 (list_processes_1, select_wrapper, Fstop_process)
8667 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8668 (status_notify): Modify to handle serial processes.
8669 [HAVE_SERIAL] (Fserial_process_configure)
8670 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8671 New functions.
8672 * process.h (struct Lisp_Process): Add `type'.
8673 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8674 New functions.
8675 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8676 serial ports.
b71ac3dd 8677 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8678 * w32.h: Add FILE_SERIAL.
8679 (struct _child_process): Add ovl_read, ovl_write.
8680
86812008-06-13 Kenichi Handa <handa@m17n.org>
8682
8683 * dispextern.h (enum lface_attribute_index): New member
8684 LFACE_FOUNDRY_INDEX.
8685
8686 * font.c (font_score): Delete arg alternate_families. Check only
8687 weight, slant, width, and size. Ignore the difference of alias
8688 style symbols.
8689 (font_sort_entites): Adjust for the above change. Reflect the
8690 order of font-driver to scores.
8691 (font_list_entities): Don't check alternate_familes here.
8692 (font_clear_prop): Handle foundry.
8693 (font_update_lface): Don't parse "foundry-family" form here.
8694 Handle FONT_FOUNDRY_INDEX.
8695 (font_find_for_lface): Likewise. Handle alternate families here.
8696 If registry is nil, try iso8859-1 and ascii-0.
8697 (font_open_for_lface): Pay attention to size in ENTITY.
8698 (font_open_by_name): Simplify by calling font_load_for_lface.
8699 (free_font_driver_list): Delete it.
8700 (font_update_drivers): Preserve the order of backends.
8701 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8702 of font_score and font_sort_entites.
8703 (font_update_sort_order): Likewise.
8704
8705 * xfaces.c (LFACE_FOUNDRY): New macro.
8706 (check_lface_attrs): Check foundry.
8707 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8708 (merge_face_vectors): Check foundry.
8709 (merge_face_ref): Likewise.
8710 (Finternal_set_lisp_face_attribute): Likewise.
8711 (x_update_menu_appearance): Likewise.
8712 (Finternal_get_lisp_face_attribute): Likewise.
8713 (lface_hash): Likewise.
8714 (lface_same_font_attributes_p): Likewise.
8715 (x_supports_face_attributes_p): Likewise.
8716 (tty_supports_face_attributes_p): Likewise.
8717 (Finternal_set_alternative_font_family_alist): Intern strings.
8718 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8719 (realize_default_face): Set LFACE_FOUNDRY (lface).
8720
8721 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8722 font-driver at first.
8723
8724 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8725
87262008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8727
8728 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8729
87302008-06-12 Jim Meyering <meyering@redhat.com>
8731
8732 Make unexec_free handle NULL the same way free does.
8733 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8734
87352008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8736
8737 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8738 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8739 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8740 (WEAK_ALIAS): Simplify.
8741 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8742 when searching a unibyte buffer.
8743
87442008-06-12 Chong Yidong <cyd@stupidchicken.com>
8745
8746 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8747
87482008-06-12 Juanma Barranquero <lekktu@gmail.com>
8749
8750 * w32font.c: Include ctype.h.
8751
87522008-06-11 Jason Rumney <jasonr@gnu.org>
8753
8754 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8755 misreported as space.
8756 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8757 as aliases for registry iso10646-1.
8758
87592008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8760
8761 * buffer.c (clone_per_buffer_values): Skip `name'.
8762
87632008-06-11 Chong Yidong <cyd@stupidchicken.com>
8764
8765 * font.c (font_parse_fcname): Fix last change; accept decimal
8766 points in font size.
8767
87682008-06-10 Jason Rumney <jasonr@gnu.org>
8769
8770 * w32uniscribe.c (add_opentype_font_name_to_list):
8771 Skip non unicode fonts.
8772
87732008-06-10 Chong Yidong <cyd@stupidchicken.com>
8774
8775 * xfns.c (Fx_font_dialog): New function.
8776
8777 * gtkutil.c (xg_dialog_response_cb): Rename from
8778 xg_file_response_callback.
8779 (pop_down_dialog): Rename from pop_down_file_dialog.
8780 (xg_get_file_name): Callers changed.
8781 (xg_get_font_name): New function.
8782
8783 * gtkutil.h (xg_get_font_name): Insert prototype.
8784
87852008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8786
8787 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8788 x_underline_minimum_display_offset.
8789 (syms_of_xdisp): Declare it here rather than in xterm.c.
8790 * dispextern.h (underline_minimum_offset): Declare it.
8791 * w32term.c (x_draw_glyph_string): Use it.
8792 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8793 (syms_of_xterm): Don't declare it any more.
8794 (x_draw_glyph_string): Adjust to the new name.
8795
87962008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8797
8798 * xterm.c (x_underline_minimum_display_offset): New var.
8799 (x_draw_glyph_string): Use it.
8800 (syms_of_xterm): Declare it.
8801
88022008-06-10 Chong Yidong <cyd@stupidchicken.com>
8803
8804 * font.c (font_parse_fcname): Accept GTK-style font names too.
8805
88062008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8807
8808 * dired.c (file_name_completion): Don't return t if the match is exact
8809 but with different capitalization.
8810 * minibuf.c (Ftry_completion): Simplify.
8811
8812 * window.c (Vwindow_point_insertion_type): New var.
8813 (set_window_buffer): Use it.
8814 (syms_of_window): Init and export it to Lisp.
8815
88162008-06-10 Kenichi Handa <handa@m17n.org>
8817
8818 * font.h (font_intern_prop): Prototype adjusted.
8819
8820 * font.c (font_intern_prop): New arg force_symbol.
8821 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8822 Adjust for the change of font_intern_prop.
8823
8824 * ftfont.c (ftfont_pattern_entity):
8825 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8826 (w32_registry):
8827 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8828 the change of font_intern_prop.
8829
88302008-06-09 Juanma Barranquero <lekktu@gmail.com>
8831
8832 * w32menu.c (digest_single_submenu): Declare extern.
8833
88342008-06-09 Jason Rumney <jasonr@gnu.org>
8835
8836 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8837
8838 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8839 (parse_single_submenu): Remove.
8840 (digest_single_submenu): Remove.
8841 (syms_of_w32menu): Don't initialise variables that have moved
8842 to menu.c.
8843 (set_frame_menubar): Sync with version in xmenu.c.
8844 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8845
8846 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8847 Make static again.
8848
88492008-06-09 Jason Rumney <jasonr@gnu.org>
8850
8851 Changes to w32 files related to the move of common menu code
8852 to menu.c on 2008-06-08 by Chong Yidong.
8853
8854 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8855 defs to w32gui.h.
8856 (single_keymap_panes, push_menu_item, push_menu_pane):
8857 Make globally visible.
8858
8859 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8860 (local_free, malloc_widget_value, free_widget_value)
8861 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8862 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8863 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8864 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8865 (menu_items, menu_items_allocated, menu_items_used)
8866 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8867 (init_menu_items, finish_menu_items, discard_menu_items)
8868 (grow_menu_items, push_submenu_start, push_submenu_end)
8869 (push_left_right_boundary, push_menu_pane, push_menu_item)
8870 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8871 (free_menubar_widget_tree_value, parse_single_submenu)
8872 (update_submenu_strings): Remove functions.
8873 (xmalloc_widget_value): Remove and declare extern.
8874
8875 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8876 (OBJ1): Build it.
8877
8878 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8879 (local_heap, local_alloc, local_free, malloc_widget_value)
8880 (free_widget_value): Define here.
8881
88822008-06-09 Kenichi Handa <handa@m17n.org>
8883
8884 * font.h (Qascii_0): Extern it.
8885
8886 * font.c (Qascii_0): New variable.
8887 (syms_of_font): DEFSYM it.
8888 (font_open_by_name): If the registry "iso8859-1" fails, try also
8889 "ascii-0".
8890
8891 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8892
88932008-06-08 Kenichi Handa <handa@m17n.org>
8894
8895 * .gdbinit (xfont): New command.
8896
88972008-06-08 Andreas Schwab <schwab@suse.de>
8898
8899 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8900 * Makefile.in (menu.o): Update dependencies.
8901
8902 * Makefile.in (obj): Always add menu.o.
8903 * emacs.c (main): Always call syms_of_menu.
8904 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8905
89062008-06-08 Chong Yidong <cyd@stupidchicken.com>
8907
8908 * Makefile.in: Compile menu.c.
8909
8910 * lisp.h: Declare syms_of_menu.
8911
8912 * emacs.c (main): Call syms_of_menu.
8913
8914 * keyboard.h: Relocate platform-independent menu definitions from
8915 xmenu.c.
8916
8917 * menu.c: New file. Relocate platform-independent menu
8918 definitions from xmenu.c. Suggested by Adrian Robert.
8919
8920 * xmenu.c: Remove platform-independent menu definitions.
8921 (menu_items menu_items_inuse, menu_items_allocated)
8922 (menu_items_used, menu_items_n_panes)
8923 (menu_items_submenu_depth): Move to keyboard.h.
8924 (init_menu_items, finish_menu_items, unuse_menu_items)
8925 (discard_menu_items, restore_menu_items, save_menu_items)
8926 (grow_menu_items, push_submenu_start, push_submenu_end)
8927 (push_left_right_boundary, push_menu_pane, push_menu_item)
8928 (keymap_panes, single_keymap_panes, single_menu_item)
8929 (list_of_panes, list_of_items, find_and_call_menu_selection)
8930 (xmalloc_widget_value, free_menubar_widget_value_tree)
8931 (parse_single_submenu, digest_single_submenu)
8932 (update_submenu_strings): Move to menu.c.
8933
89342008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8935
8936 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8937
89382008-06-06 Miles Bader <miles@gnu.org>
8939
8940 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8941 face, not frame default.
8942
89432008-06-05 Martin Rudalics <rudalics@gmx.at>
8944
8945 * window.c (pop_up_windows, pop_up_frames)
8946 (display_buffer_reuse_frames, Vpop_up_frame_function)
8947 (Vdisplay_buffer_function, Veven_window_heights)
8948 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8949 (Vspecial_display_function, Vsame_window_buffer_names)
8950 (Vsame_window_regexps, split_height_threshold)
8951 (Vsplit_window_preferred_function): Move those vars to window.el.
8952 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8953 (Fdisplay_buffer): Move those functions to window.el.
8954 (syms_of_window): Remove corresponding declarations.
8955 (display_buffer): New function.
8956 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8957 * dispnew.c (Flast_nonminibuf_frame): New function.
8958 * buffer.c (Fpop_to_buffer): Move to window.el.
8959
89602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8961
8962 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8963
89642008-06-05 Kenichi Handa <handa@m17n.org>
8965
8966 * coding.c (detect_coding): Fix previous change.
8967 (detect_coding_system): Likewise.
8968
89692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8970
8971 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8972
8973 * keymap.c (Vminibuffer_local_filename_must_match_map):
8974 Rename from Vminibuffer_local_must_match_filename_map.
8975 (syms_of_keymap):
8976 * minibuf.c (Fcompleting_read): Adjust accordingly.
8977 * commands.h: Rename declaration as well.
8978
89792008-06-05 Kenichi Handa <handa@m17n.org>
8980
8981 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8982 family name.
8983 (Ffont_put): Likewise.
8984
8985 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8986 current font-spec.
8987
8988 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8989 is unspecified.
8990
8991 * xfaces.c (realize_x_face): If the font-related face attributes
8992 are the same as those of default face, realize a new fontset from
8993 default->fontset.
8994 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8995
89962008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8997
8998 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8999 (move_it_in_display_line): New wrapper.
9000
9001 * window.c (window_scroll_pixel_based_preserve_x)
9002 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
9003 (window_scroll_pixel_based, window_scroll_line_based):
9004 Use them to preserve column positions.
9005 (syms_of_window): Initialize them.
9006
9007 * indent.c (Fvertical_motion): Extend first arg to allow passing an
9008 (HPOS . VPOS) pair.
9009
9010 * dispextern.h (move_it_in_display_line): Declare.
9011
90122008-06-05 Juanma Barranquero <lekktu@gmail.com>
9013
9014 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
9015 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
9016 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
9017
90182008-06-04 Juanma Barranquero <lekktu@gmail.com>
9019
9020 * window.c (Fset_window_parameter): Doc fix.
9021 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
9022
90232008-06-04 Joakim Verona <joakim@verona.se>
9024
9025 * window.h (struct window): Add new member window_parameters.
9026
9027 * window.c (Fwindow_parameters, Fwindow_parameter)
9028 (Fset_window_parameter): New defuns.
9029 (syms_of_window): Defsubr the new defuns.
9030 (make_window): Initialize window_parameters to nil.
9031
90322008-06-04 John Paul Wallington <jpw@pobox.com>
9033
9034 * eval.c (Fdefmacro): Doc fix.
9035
90362008-06-04 Kenichi Handa <handa@m17n.org>
9037
9038 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9039 Be sure to call setup_coding_system when we find a proper coding system.
9040 (detect_coding_system): Fix handling of coding->head_ascii.
9041
90422008-06-03 Andreas Schwab <schwab@suse.de>
9043
9044 * font.c (font_prop_validate_spacing): Fix last change.
9045
90462008-06-03 Kenichi Handa <handa@m17n.org>
9047
9048 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
9049 (font_parse_fcname): Fix handling of unknown key.
9050
9051 * xfont.c (xfont_list): Try an alias.
9052
9053 * charset.c (char_charset): Return NULL if the arg charset_list is
9054 specified and C doesn't belong to any of them.
9055
90562008-06-02 Chip Coldwell <coldwell@redhat.com>
9057
9058 * font.c (font_pixel_size): Don't take cdr of an integer.
9059
90602008-06-02 Jim Meyering <meyering@redhat.com>
9061
9062 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
9063 * alloc.c (xfree): Return right away for a NULL arg.
9064 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
9065 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
9066 * mac.c (create_apple_event_from_event_ref): Likewise.
9067 (create_apple_event_from_drag_ref, cfstring_create_normalized):
9068 Likewise.
9069 * doprnt.c (doprnt1): Likewise.
9070 * frame.c (frame): Likewise.
9071 * keyboard.c (wipe_kboard): Likewise.
9072 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
9073 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
9074 * term.c (tty_default_color_capabilities, maybe_fatal)
9075 (delete_tty): Likewise.
9076 * w16select.c (string): Likewise.
9077 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
9078 * w32bdf.c (w32_free_bdf_font): Likewise.
9079 * w32fns.c (w32_unload_font): Likewise.
9080 * w32font.c (w32font_close): Likewise.
9081 * window.c (size_window): Likewise.
9082 * xselect.c (receive_incremental_selection): Likewise.
9083 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
9084 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
9085 * w32.c (stat): Likewise.
9086
9087 Remove useless if-before-free tests.
9088 * editfns.c (Fset_time_zone_rule): Likewise.
9089 * lread.c (nosuffix): Likewise.
9090 * ralloc.c (get_bloc): Likewise.
9091 * regex.c (reg_free): Likewise.
9092 * xftfont.c (xftfont_open, xftfont_close): Likewise.
9093 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
9094 * xsmfns.c (smc_save_yourself_CB): Likewise.
9095
90962008-06-02 Kenichi Handa <handa@m17n.org>
9097
9098 * font.c (font_find_for_lface): Handle float font size.
9099 (font_open_for_lface): Likewise.
9100
9101 * xfaces.c (x_supports_face_attributes_p): Check face->font before
9102 comparing the properties.
9103
91042008-06-01 Jason Rumney <jasonr@gnu.org>
9105
9106 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
9107 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
9108 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
9109 Don't add empty script list.
9110 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
9111
91122008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
9113
9114 * Makefile.in (dot, dotdot): Remove, update users.
9115 ".." has been used elsewhere in the file for a long time.
9116 (LIBXT_STATIC): Remove conditional based on unused variable.
9117
91182008-06-01 Miles Bader <miles@gnu.org>
9119
9120 * xfaces.c (Vface_remapping_alist): New variable.
9121 (syms_of_xfaces): Initialize it.
9122 (enum named_merge_point_kind): New type.
9123 (struct named_merge_point): Add `named_merge_point_kind' field.
9124 (push_named_merge_point): Make cycle detection respect different
9125 named-merge-point kinds.
9126 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
9127 Remove face-name alias resolution.
9128 (lface_from_face_name): New definition using
9129 `lface_from_face_name_no_resolve'.
9130 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
9131 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
9132 (get_lface_attributes): New definition that layers face-remapping on
9133 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
9134 (lookup_basic_face): New function.
9135 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
9136 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
9137 `get_lface_attributes'.
9138 (face_at_buffer_position): Use `lookup_basic_face' to lookup
9139 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
9140 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
9141
9142 * xdisp.c (init_iterator): Pass base_face_id through
9143 `lookup_basic_face' when we actually use it as a face-id.
9144 (handle_single_display_prop): Use `lookup_basic_face' to lookup
9145 DEFAULT_FACE_ID.
9146
9147 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
9148 lookup the initial face-id.
9149
9150 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
9151
91522008-06-01 Juanma Barranquero <lekktu@gmail.com>
9153
9154 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
9155 (Fremove_text_properties): Fix typos in docstrings.
9156
91572008-05-31 Kenichi Handa <handa@m17n.org>
9158
9159 * font.c (font_list_entities): Fix the car part of data to be
9160 stored in the cache.
9161
9162 * ftfont.c (ftfont_font_format): Don't use strcasestr.
9163
91642008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9165
9166 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
9167 Add a `test' argument so another predicate than `equal' can be used.
9168 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
9169 (map_char_table): Remove unused vars `c' and `i'.
9170 * lisp.h (Foptimize_char_table): Adjust declaration.
9171 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
9172
91732008-05-30 Kenichi Handa <handa@m17n.org>
9174
9175 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
9176 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
9177 defined.
9178
91792008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
9180
9181 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
9182 (Fmake_variable_frame_local): Disallow mixing buffer-local and
9183 frame-local settings for the same variable.
9184
91852008-05-30 Kenichi Handa <handa@m17n.org>
9186
9187 * fontset.c (Ffont_info): Move to font.c.
9188 (syms_of_fontset): Delete defsubr of Sfont_info.
9189
9190 * font.c (font_style_to_value, font_score): Delete casting of the
9191 args to xstcasecmp.
9192 (register_font_driver): Increment num_font_drivers only when
9193 registering the driver globally.
9194 (Ffont_info): Move from fontset.c. Handle a font object too.
9195 (syms_of_font): Defsubr Sfont_info.
9196
91972008-05-29 Kenichi Handa <handa@m17n.org>
9198
9199 * coding.h (enum define_coding_utf8_arg_index): New enum.
9200 (enum coding_attr_index): Change coding_attr_utf_16_bom to
9201 coding_attr_utf_bom.
9202 (enum utf_bom_type): Rename from utf_16_bom_type.
9203 (struct utf_16_spec): Adjust for the above change.
9204 (struct coding_system): Add utf_8_bom in `spec' union.
9205
9206 * coding.c (CODING_UTF_8_BOM): New macro.
9207 (enum coding_category): Delete coding_category_utf_8, add
9208 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
9209 coding_category_utf_8_sig.
9210 (CATEGORY_MASK_UTF_8): Delete it.
9211 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
9212 (CATEGORY_MASK_UTF_8_SIG): New macros.
9213 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
9214 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
9215 CATEGORY_MASK_UTF_8_SIG.
9216 (CATEGORY_MASK_UTF_8): New macro.
9217 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
9218 (detect_coding_utf_8): Check BOM.
9219 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
9220 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
9221 (encode_coding_utf_16): Likewise.
9222 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
9223 (detect_coding, detect_coding_system): Handle utf-8-auto.
9224 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
9225 (syms_of_coding): Fix setting up of Vcoding_category_table.
9226
92272008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
9228
9229 * process.c (Faccept_process_output): If `millisec' is non-nil,
9230 `seconds' default to 0.
9231 (wait_reading_process_output): Also return non-nil if we read output
9232 from a non-running process.
9233
92342008-05-29 Jason Rumney <jasonr@gnu.org>
9235
9236 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
9237 `raster' specified.
9238 (add_font_entity_to_list): Allow non-opentype truetype fonts back
9239 in the uniscribe backend, but disallow any font that has no
9240 unicode subrange support.
9241
92422008-05-29 Juanma Barranquero <lekktu@gmail.com>
9243
9244 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
9245 Fix typos in docstrings.
9246
92472008-05-29 Kenichi Handa <handa@m17n.org>
9248
9249 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
9250 (Fx_family_fonts): Set frame correctly.
9251
92522008-05-28 Jason Rumney <jasonr@gnu.org>
9253
9254 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
9255
92562008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
9257
9258 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
9259 calling build_annotations.
9260
92612008-05-28 Juanma Barranquero <lekktu@gmail.com>
9262
9263 * coding.c (Fdecode_coding_region, Fencode_coding_region)
9264 (Fencode_coding_string):
9265 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
9266 <latin-extra-code-table>: Fix typos in docstrings.
9267 (syms_of_coding) <coding-system-alist>: Doc fix.
9268 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
9269
92702008-05-28 Kenichi Handa <handa@m17n.org>
9271
9272 * fontset.c (Ffont_info): Don't call font_close_object.
9273
9274 * font.c (font_parse_family_registry): Use Ffont_put to validate
9275 foundry and family.
9276 (font_delete_unmatched): Don't check spacing.
9277 (font_list_entities): Add spacing to the spec to list fonts.
9278
9279 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
9280 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
9281
9282 * coding.c (encode_coding_raw_text): Fix previous change.
9283 (encode_coding_object): When the dst_object is a buffer and is
9284 different from src_object, move gap to PT.
9285
92862008-05-27 Chong Yidong <cyd@stupidchicken.com>
9287
9288 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
9289
92902008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9291
9292 * coding.c (encode_coding_raw_text): Set coding->produced_char for
9293 all branches. Compute it differently.
9294
9295 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
9296
92972008-05-27 Juanma Barranquero <lekktu@gmail.com>
9298
9299 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
9300 into "else if () ... else ...".
9301
93022008-05-27 Jason Rumney <jasonr@gnu.org>
9303
9304 * w32font.c (w32font_open_internal): Determine if glyph indices
9305 are likely to work here.
9306
93072008-05-27 Chong Yidong <cyd@stupidchicken.com>
9308
9309 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
9310 draw overlap glyphs with appropriate highlighting.
9311
93122008-05-27 Kenichi Handa <handa@m17n.org>
9313
9314 * xfont.c (xfont_open): Fix calculation of font->average_width.
9315
93162008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
9317
9318 * casefiddle.c (casify_object): Try to guess better whether the
9319 argument is a byte or a char.
9320
93212008-05-26 Andreas Schwab <schwab@suse.de>
9322
9323 * xselect.c (x_reply_selection_request): Properly handle format == 32.
9324 Always send multiples of format size.
9325
9326 * xterm.c (x_set_frame_alpha): Fix type mismatch.
9327
93282008-05-26 Jason Rumney <jasonr@gnu.org>
9329
9330 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
9331 (compute_metrics): Don't set failure if we just cleared the cache.
9332 (w32_weight_table): Remove unused variable.
9333 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
9334 backwards compatibility.
9335
93362008-05-25 Kenichi Handa <handa@m17n.org>
9337
9338 * w32term.c (x_draw_glyph_string):
9339 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
9340
9341 * xfaces.c: Delete unused function prototypes.
9342 (xstrlwr, font_frame): Delete them.
9343 (clear_face_cache): Delete unused variable.
9344
9345 * xftfont.c (xftfont_open): Delete unused variable.
9346 If underline_thickness is not 1, adjust underline_position.
9347
9348 * ftxfont.c (ftxfont_open): Delete unused variable.
9349
9350 * fontset.c (face_for_char): Optimize for the case of no charset
9351 property.
9352
9353 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
9354 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
9355 (otf_open, font_otf_capability, generate_otf_features)
9356 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9357 Comment out by surrounding "#if 0" and "#endif" for the moment.
9358 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
9359 (syms_of_font): Codes for accessing above commented out.
9360
93612008-05-24 Eli Zaretskii <eliz@gnu.org>
9362
9363 * w32proc.c: Include dispextern.h.
9364
9365 * w32.c: Include dispextern.h.
9366
93672008-05-23 Juanma Barranquero <lekktu@gmail.com>
9368
9369 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
9370 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
9371 Fix typos in docstrings.
9372
93732008-05-23 Jason Rumney <jasonr@gnu.org>
9374
9375 * xsmfns.c: Remove includes that are already included by config.h.
9376
93772008-05-23 Kenichi Handa <handa@m17n.org>
9378
9379 * charset.c (Qemacs, charset_emacs): New variables.
9380 (char_charset): Fix for non-Unicode characters.
9381 (syms_of_charset): Define charset_emacs.
9382
9383 * w32term.c (x_draw_glyph_string): Be sure to update
9384 s->underline_thickness and s->underline_position. Be sure to draw
9385 underline within the current line area.
9386
9387 * xterm.c (x_draw_glyph_string): Be sure to update
9388 s->underline_thickness and s->underline_position. Be sure to draw
9389 underline within the current line area.
9390
9391 * fontset.c: Delete unused variables and add casting for char *
9392 throughout the file.
9393 (fontset_font): Try the fallback fonts of the current fontset
9394 before consulting the default fontset.
9395
9396 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
9397
9398 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
9399
94002008-05-22 Jason Rumney <jasonr@gnu.org>
9401
9402 * font.c: Don't include strings.h.
9403
9404 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
9405
9406 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
9407 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
9408 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
9409 to call xstrcasecmp.
9410
9411 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
9412
9413 * fontset.c (fs_query_fontset): Use xstrcasecmp.
9414
9415 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
9416
9417 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
9418
94192008-05-22 Kenichi Handa <handa@m17n.org>
9420
9421 * puresize.h (BASE_PURESIZE): Increase to 1220000.
9422
9423 * font.c (font_prop_validate_style): Adjust for the format
9424 change of font_style_table.
9425
9426 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
9427 two args.
9428
9429 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
9430 two args.
9431
94322008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
9433
9434 * minibuf.c (keys_of_minibuf): Delete.
9435 * lisp.h (keys_of_minibuf): Delete.
9436 * emacs.c (main): Don't call keys_of_minibuf.
9437
94382008-05-22 Kenichi Handa <handa@m17n.org>
9439
9440 * ftfont.c (ftfont_resolve_generic_family): Rename from
9441 ftfont_list_generic_family. Return a single family for each
9442 generic family.
9443 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
9444 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
9445 Call font_add_log.
9446 (ftfont_match): Call font_add_log.
9447
9448 * font.h (Ffont_xlfd_name): EXFUN adjusted.
9449 (FONT_DEBUG): Define it.
9450 (font_add_log): Extern it.
9451 (font_assert): Rename from xassert.
9452
9453 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
9454 (xfont_list_family): Call font_add_log.
9455 (xfont_match): Likewise.
9456 (memq_no_quit): Delete.
9457
9458 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
9459 call of Ffont_xlfd_name.
9460
9461 * xfaces.c (struct table_entry, slant_table, weight_table)
9462 (swidth_table): Move to font.c.
9463
9464 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
9465 xassert are changed to font_assert. Delete many unused variables.
9466 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
9467 New variables.
9468 (struct table_entry): Move from xfaces.c and modified.
9469 (weight_table, slant_table, width_table): Move from xfaces.c and
9470 contents adjusted for the change of struct table_entry.
9471 (font_style_to_value, font_style_symbolic): Adjust for the
9472 format change of font_style_table.
9473 (font_parse_family_registry): Don't overwrite existing foundry and
9474 family of font_spec.
9475 (font_score): Fix calculation of diff for sizes.
9476 (font_sort_entites): Call font_add_log.
9477 (font_delete_unmatched): Return a newly created list.
9478 (font_list_entities): Fix previous change. Call font_add_log.
9479 (font_matching_entity, font_open_entity, font_close_entity):
9480 Call font_add_log.
9481 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
9482 (Finternal_set_font_style_table): Delete.
9483 (BUILD_STYLE_TABLE): New macro.
9484 (build_style_table): New function.
9485 (Vfont_log, font_log_env_checked): New variables.
9486 (font_add_log): New function.
9487 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
9488 Declare Lisp variables "font-weight-table", "font-slant-table",
9489 "font-width-table", and "font-log". Initialize font_style_table.
9490
94912008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
9492
9493 * xterm.c (x_set_frame_alpha): Move declarations before statements.
9494
94952008-05-21 Seiji Zenitani <zenitani@mac.com>
9496 Ryo Yoshitake <ryo@shiftmode.net>
9497
9498 * frame.c (Qalpha): Add a new frame parameter `alpha'.
9499 (Vframe_alpha_lower_limit): New variable.
9500 (x_set_alpha): New function.
9501
9502 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
9503
9504 * xfns.c (x-create-frame, Qalpha):
9505 Initialize the frame parameter `alpha'.
9506 * xterm.c (OPAQUE, OPACITY): New.
9507 (x_set_frame_alpha): New function.
9508 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
9509
9510 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
9511 * w32fns.c (w32_frame_parm_handlers): Likewise.
9512
95132008-05-20 Jason Rumney <jasonr@gnu.org>
9514
9515 * w32font.c (add_font_entity_to_list): Don't add non-opentype
9516 truetype fonts to opentype list.
9517
95182008-05-20 Juanma Barranquero <lekktu@gmail.com>
9519
9520 * fontset.c (Ffontset_info): Doc fix.
9521 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
9522 <ignore-relative-composition>: Fix typos in docstrings.
9523
9524 * font.c (syms-of-font) <font-encoding-alist>:
9525 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
9526 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
9527 (Ffont_otf_alternates): Doc fixes.
9528
95292008-05-20 Kenichi Handa <handa@m17n.org>
9530
9531 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
9532 font.h through out the file.
9533 (FONT_DRIVERS): Rename from FONTOBJ.
9534 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
9535 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
9536
9537 * emacs.c (main): Call syms_of_font unconditionally.
9538
9539 * font.h (find_font_encoding): Extern it.
9540
9541 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
9542 fontset.c.
9543 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
9544 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
9545 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
9546 only when HAVE_WINDOW_SYSTEM is defined.
9547 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
9548 when HAVE_WINDOW_SYSTEM is defined.
9549
9550 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
9551 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
9552
9553 * xfaces.c: Include font.h unconditionally.
9554 (merge_face_ref, merge_face_vectors)
9555 (Finternal_set_lisp_face_attribute): Cancel the previous change.
9556
95572008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
9558
9559 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
9560 indirect_variable.
9561 * eval.c (lisp_indirect_variable): New fun.
9562 (Fuser_variable_p): Use it.
9563
95642008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
9565
9566 * lisp.h (indirect_variable):
9567 * data.c (indirect_variable, let_shadows_buffer_binding_p):
9568 Use Lisp_Symbol pointers rather than Lisp_Object.
9569 Adjust callers.
9570 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
9571 To this end, change calling-convention.
9572
9573 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
9574 if some non-hidden buffers are selected by string&pred.
9575
95762008-05-19 Chong Yidong <cyd@stupidchicken.com>
9577
9578 * process.c (wait_reading_process_output): Always check status
9579 when in batch mode.
9580
95812008-05-19 Kenichi Handa <handa@m17n.org>
9582
9583 * font.c (font_list_entities): Fix handling of cache.
9584 (font_matching_entity): Likewise.
9585
9586 * ftfont.c (cs_iso8859_1): Delete.
9587 (ft_face_cache): New variable.
9588 (struct ftfont_info): New member fc_charset_idx.
9589 (ftfont_build_basic_charsets): Delete.
9590 (fc_charset_table): New variable.
9591 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
9592 . FC_CHARSET_IDX) as :font-entity property in the font entity.
9593 Callers changed.
9594 (ftfont_lookup_cache, ftfont_get_charset): New functions.
9595 (ftfont_spec_pattern): New argument fc_charset_idx.
9596 Check registry more rigidly. Change callers.
9597 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
9598 change of :font-entity property of the font.
9599
9600 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
9601 property of the font.
9602
96032008-05-18 Juanma Barranquero <lekktu@gmail.com>
9604
9605 * coding.c (Fcoding_system_p): Rename argument to match docstring.
9606 (Funencodable_char_position, Fcheck_coding_systems_region)
9607 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
9608 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
9609 (Ffind_operation_coding_system, Fset_coding_system_priority)
9610 (Fcoding_system_eol_type): Doc fixes.
9611
96122008-05-17 Glenn Morris <rgm@gnu.org>
9613
9614 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
9615
96162008-05-16 Eli Zaretskii <eliz@gnu.org>
9617
9618 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
9619 and st_gid.
9620
9621 * frame.c (Fdelete_frame): Don't call font_update_drivers if
9622 HAVE_WINDOW_SYSTEM is not defined.
9623
9624 * xfaces.c (merge_face_ref, merge_face_vectors)
9625 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
9626 HAVE_WINDOW_SYSTEM is defined.
9627 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
9628
96292008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
9630
9631 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
9632
96332008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9634
9635 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
9636
96372008-05-15 Kenichi Handa <handa@m17n.org>
9638
9639 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
9640 preference.
9641
96422008-05-15 Glenn Morris <rgm@gnu.org>
9643
9644 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
9645
96462008-05-15 Chong Yidong <cyd@stupidchicken.com>
9647
9648 * fns.c (init_fns): Don't initialize weak_hash_tables here.
9649 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
9650
9651 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
9652
96532008-05-15 Kenichi Handa <handa@m17n.org>
9654
9655 * ftfont.c (ftfont_list): Downcase family name to check generic
9656 families.
9657
9658 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
9659 font-spec for QCfont value.
9660
9661 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9662 buffer. Check the return value of it.
9663
96642008-05-14 Jason Rumney <jasonr@gnu.org>
9665
9666 * w32term.c (w32_get_glyph_overhangs): Remove.
9667 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9668
96692008-05-14 Kenichi Handa <handa@m17n.org>
9670
9671 * font.c (font_prop_validate): Make nil a valid value.
9672 (font_clear_cache): Check if the cached vector of entities is nil
9673 or not.
9674
96752008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9676
9677 * emacs.c (main_thread): Conditionalize on
9678 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9679 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9680
9681 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9682 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9683 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9684
96852008-05-14 Kenichi Handa <handa@m17n.org>
9686
9687 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9688 has no corresponding coding system.
9689
96902008-05-14 Jason Rumney <jasonr@gnu.org>
9691
9692 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9693
9694 * w32font.h (w32font_open_internal): Update declaration.
9695
9696 * w32font.c (w32font_open_internal): Change last argument from
9697 w32font_info struct to font object. Fill in font object from
9698 font_entity. Get Outline metrics if possible. Use them to
9699 calculate underline position and thickness. Use xlfd name as name
9700 property. Don't set codepage.
9701 (w32font_open): Pass font_object to w32font_open_internal. Don't
9702 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9703 (w32font_draw): Use s->font.
9704 (clear_cached_metrics): Don't clear non-existent blocks.
9705
9706 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9707 font was not found.
9708 (x_draw_glyph_string): Use underline position and thickness from font.
9709
9710 * w32uniscribe.c (uniscribe_open): Pass font_object to
9711 w32font_open_internal.
9712
97132008-05-14 Kenichi Handa <handa@m17n.org>
9714
9715 These changes are to delete all legacy font-handling codes, and
9716 make Emacs use only font-backends.
9717
9718 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9719 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9720
9721 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9722
9723 * charset.h (Vcharset_non_preferred_head)
9724 (Vcurrent_iso639_language): Extern them.
9725
9726 * charset.c (Vcharset_non_preferred_head): New variable.
9727 (Vcurrent_iso639_language): New variable.
9728 (syms_of_charset): Declare it as a Lisp variable.
9729 (char_charset): Don't check non preferred charsets. As a last
9730 resort, return charset_unicode.
9731 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9732
9733 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9734 conditionals. Don't check enable_font_backend. Delete all codes
9735 used only when USE_FONT_BACKEND is not defined.
9736
9737 * dispextern.h (struct glyph_string): Change type of `font' to
9738 `struct font *'.
9739 (struct glyph_string): New member underline_position and
9740 underline_thickness.
9741 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9742 (struct face): Change type of `font' to `struct font *'. Remove
9743 members `font_name', `font_info_id'.
9744 (per_char_metric, encode_char): Delete externs.
9745 (calc_pixel_width_or_height): Adjust the prototype.
9746
9747 * emacs.c (enable_font_backend): Delete extern.
9748 (main): Don't set enable_font_backend. Don't check the command
9749 line argument "-disable-font-backend".
9750
9751 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9752 (enum font_property_index): New members FONT_DPI_INDEX,
9753 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9754 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9755 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9756 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9757 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9758 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9759 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9760 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9761 (struct font_spec, struct font_entity): New structs.
9762 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9763 (struct font): Many members from old "struct font_info" moved to
9764 here. Members font and entity deleted.
9765 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9766 the new font-related objects.
9767 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9768 (CHECK_FONT_GET_OBJECT): Likewise.
9769 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9770 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9771 (struct font_driver): New members case_sensitive anc check. Type
9772 of the member list and open changed.
9773 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9774 (font_symbolic_width, font_find_object, font_get_spec)
9775 (font_set_lface_from_name): Delete extern.
9776 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9777
9778 * font.c: Include <strings.h>.
9779 (enable_font_backend): Delete it.
9780 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9781 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9782 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9783 (null_string): Delete it.
9784 (null_vector): Make it static.
9785 (font_family_alist): Delete it.
9786 (Qnormal): Extern it.
9787 (QCextra, QClanguage): Delete it.
9788 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9789 (font_make_spec, font_make_entity, font_make_object)
9790 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9791 the string. Callers changed.
9792 (font_pixel_size): Adjusted for the format change of font-related
9793 objects.
9794 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9795 (font_style_to_value, font_style_symbolic): New function.
9796 (build_font_family_alist): Delete it.
9797 (font_registry_charsets): Use Fassoc_string instead of
9798 assq_no_quit.
9799 (font_prop_validate_symbol): Don't return null_string.
9800 (font_prop_validate_style): Adjusted for the change of
9801 style-related values in a font vector.
9802 (font_property_table): Delete entries for QClanguage and
9803 QCantialias, add entries for QCavgwidth.
9804 (get_font_prop_index): Delete the 2nd argument FROM.
9805 (font_prop_validate): Arguments changed.
9806 (font_put_extra): Adjusted for the change of font-related objects.
9807 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9808 (font_parse_fcname, font_unparse_fcname)
9809 (font_prepare_composition): Likewise.
9810 (font_parse_family_registry): Renamed from font_merge_old_spec.
9811 (otf_open): Delete the 1st arg entity.
9812 (font_otf_capability): Adjusted for the above change.
9813 (font_score): New arg alternate_families. Adjusted for the change
9814 of font-related objects.
9815 (font_sort_entites): New arg best_only.
9816 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9817 Delete them.
9818 (font_match_p): Check alternate families.
9819 (font_find_object): Delete it.
9820 (font_check_object): New function.
9821 (font_clear_cache): Adjusted for the change of font-related objects.
9822 (font_delete_unmatched): New arg.
9823 (font_list_entities): Call font_driver->list with a spec that
9824 doesn't specify style-related properties.
9825 (font_matching_entity): Arguments changed. Caller changed.
9826 (font_open_entity): Adjusted for the change of font-related objects.
9827 (font_close_object, font_has_char, font_encode_char)
9828 (font_get_name, font_get_spec): Likewise.
9829 (font_spec_from_name, font_clear_prop, font_update_lface):
9830 New functions.
9831 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9832 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9833 (font_at): Adjusted for the change of font-related objects.
9834 (font_range): New function.
9835 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9836 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9837 (Fcopy_font_spec, Fmerge_font_spec): New function.
9838 (Ffont_family_list): Renamed from list-families.
9839 (Finternal_set_font_style_table): Arguments changed.
9840 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9841 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9842 change of font-related objects.
9843 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9844
9845 * fontset.h (struct font_info): Delete it. Most members go to
9846 struct font.
9847 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9848 (enum FONT_SPEC_INDEX): Delete it.
9849 (font_info, list_fonts_func, load_font_func, query_font_func)
9850 (set_frame_fontset_func, find_ccl_program_func)
9851 (get_font_repertory_func, new_fontset_from_font_name): Delete
9852 externs.
9853 (fontset_from_font_name): Extern it.
9854 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9855 (FONT_INFO_FROM_FACE): Deleted.
9856 (face_for_font): Adjust prototype.
9857
9858 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9859 conditionals. Don't check enable_font_backend. Delete all codes
9860 used only when USE_FONT_BACKEND is not defined.
9861 (get_font_info_func, list_font_func, load_font_func)
9862 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9863 (get_font_repertory_func): Delete them.
9864 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9865 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9866 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9867 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9868 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9869 (fontset_compare_rfontdef): New function.
9870 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9871 rfont-defs by qsort. Adjusted for the change of font-group vector.
9872 (load_font_get_repertory): Deleted.
9873 (fontset_find_font): Use new macros to ref/set elements of
9874 font-def and rfont-def.
9875 (fontset_font): Fix the timing of remembering that no font for C.
9876 (free_face_fontset): Do nothing if the face has no fontset.
9877 (face_suitable_for_char_p): Use new macros to ref/set elements of
9878 rfont-def.
9879 (face_for_char): Likewise. Call face_for_char with font_object.
9880 (fs_load_font): Delete. Delete #pragma surrounding it.
9881 (fs_query_fontset): Use strcasecmp instead of strcmp.
9882 (generate_ascii_font_name): Adjusted for the format change of
9883 font-spec.
9884 (Fset_fontset_font): Likewise. Use new macros to set elements of
9885 font-def.
9886 (Fnew_fontset): Use font_unparse_xlfd to generate
9887 FONTSET_ASCII (fontset).
9888 (new_fontset_from_font_name): Deleted.
9889 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9890 a fontset is already created for the font. FIx updating of
9891 Vfontset_alias_alist.
9892 (fontset_ascii_font): Deleted.
9893 (Ffont_info): Adjusted for the format change of font-spec.
9894 (Finternal_char_font): Likewise.
9895 (Ffontset_info): Likewise.
9896 (syms_of_fontset): Don't check load_font_func.
9897
9898 * fns.c (internal_equal): Handle PREV_FONT.
9899
9900 * frame.h: Delete USE_FONT_BACKEND conditional.
9901
9902 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9903 conditionals. Don't check enable_font_backend. Delete all codes
9904 used only when USE_FONT_BACKEND is not defined.
9905 (x_set_font): Call x_new_font, not x_new_fontset2.
9906 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9907 already set for the frame.
9908
9909 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9910 a font-entity by font_make_entity. Use font_intern_prop instead
9911 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9912 font property. If a font is scalable, set avgwidth property to 0.
9913 Set font-entity property by font_put_extra.
9914 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9915 (ffont_driver): Adjusted for the change of struct font_driver.
9916 (ftfont_spec_pattern): New function.
9917 (ftfont_list): Return a list, not vector.
9918 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9919 (ftfont_list_family): Don't downcase names.
9920 (ftfont_free_entity): Deleted.
9921 (ftfont_open): Return a font-object. Adjusted for the change of
9922 struct font. Get underline_thickness and underline_position from
9923 font property. Don't update dpyinfo->smallest_font_height and
9924 dpyinfo->smallest_char_width.
9925 (ftfont_close): Don't free `struct font'.
9926 (ftfont_has_char): Adjusted for the format change of font-entity.
9927 (ftfont_encode_char, ftfont_text_extents): Likewise.
9928
9929 * ftxfont.c (ftxfont_list): Return a list, not vector.
9930 (ftxfont_open): Return a font-object. Adjusted for the change of
9931 struct font. Get underline_thickness and underline_position from
9932 font property. Don't update dpyinfo->smallest_font_height and
9933 dpyinfo->smallest_char_width.
9934 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9935 (ftxfont_draw): Adjusted for the change of struct font.
9936
9937 * image.c (image_ascent): Don't include "charset.h". Include
9938 "character.h" and "font.h".
9939
9940 * lisp.h (enum pvec_type): New member PREV_FONT.
9941 (Fassoc_string): EXFUN it.
9942
9943 * print.c: Include font.h.
9944 (print_object): Handle font-related objects.
9945
9946 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9947 conditionals. Don't check enable_font_backend. Delete all codes
9948 used only when USE_FONT_BACKEND is not defined.
9949 (handle_auto_composed_prop): Do nothing if it->f is not on a
9950 window system. Check how many following characters can be
9951 displayed by the same font.
9952 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9953 'struct font *'.
9954 (get_char_face_and_encoding): Assign the whole encoding task to
9955 the `encode-char' method of a font driver.
9956 (fill_composite_glyph_string): Adjusted for the change of `struct
9957 face' and `struct glyph_string'.
9958 (fill_glyph_string): Likewise.
9959 (get_per_char_metric): Arguments changed.
9960 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9961 and `struct glyph_string'.
9962 (produce_stretch_glyph, calc_line_height_property)
9963 (x_produce_glyphs): Likewise.
9964
9965 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9966 conditionals. Don't check enable_font_backend. Delete all codes
9967 used only when USE_FONT_BACKEND is not defined. Use
9968 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9969 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9970 (Qp): Extern them.
9971 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9972 Deleted.
9973 (struct font_name): Deleted.
9974 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9975 (compare_fonts_by_sort_order): New function.
9976 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9977 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9978 Deleted.
9979 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9980 compare_fonts_by_sort_order.
9981 (Fx_font_family_list): Call Ffont_family_list.
9982 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9983 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9984 (face_symbolic_slant, face_symbolic_swidth)
9985 (split_font_name_into_vector, build_font_name_from_vector)
9986 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9987 (font_rescale_ratio, split_font_name, build_font_name)
9988 (free_font_names, sort_fonts, x_face_list_fonts)
9989 (face_font_available_p, sorted_font_list, cmp_font_names)
9990 (font_list_1, concat_font_list, font_list, remove_duplicates):
9991 Deleted.
9992 (Fx_list_fonts): Use Ffont_list.
9993 (LFACE_AVGWIDTH): Deleted.
9994 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9995 by FONTP.
9996 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9997 (set_lface_from_font_name): Delete it.
9998 (set_lface_from_font): Renamed from
9999 set_lface_from_font_and_fontset. Caller changed. Don't set
10000 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
10001 for face.
10002 (merge_face_vectors): Copy font-spec if necessary.
10003 Clear properties of the font-spec if necessary.
10004 (merge_face_ref): Clear properties of the font-spec if necessary.
10005 (Finternal_set_lisp_face_attribute): Likewise.
10006 (set_font_frame_param): Use font_load_for_lface to load a
10007 font-object, and call Fmodify_frame_parameters with it.
10008 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
10009 font name by Ffont_xlfd_name.
10010 (Finternal_lisp_face_attribute_values): Don't check QCweight,
10011 QCslant, and QCwidth.
10012 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
10013 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
10014 Compare fonts by EQ.
10015 (lookup_non_ascii_face): Deleted.
10016 (face_for_font): The 2nd argument changed.
10017 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
10018 Check atomic font properties by case insensitive.
10019 (realize_non_ascii_face): Set face->overstrike correctly.
10020 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
10021 (dump_realized_face): Get font name from
10022 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
10023
10024 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
10025 conditionals. Don't check enable_font_backend. Delete all codes
10026 used only when USE_FONT_BACKEND is not defined.
10027 (xic_create_xfontset): Original code deleted and renamed from
10028 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
10029 (x_make_gc): Don't set GCFont in GCs.
10030 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
10031 opened by "fixed".
10032 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
10033 find_ccl_program_func, query_font_func, set_frame_fontset_func,
10034 get_font_repertory_func.
10035
10036 * xfont.c: Include <stdlib.h> and "ccl.h".
10037 (struct xfont_info): New structure.
10038 (xfont_query_font): Deleted.
10039 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
10040 moved from xterm.c.
10041 (xfont_driver): Adjusted for the change of struct font_driver.
10042 (compare_font_names): New function.
10043 (xfont_list_pattern): Sort font names case insensitively. Make
10044 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
10045 (xfont_list): Return a list, not vector.
10046 (xfont_match): If the font doesn't have QCname property, generate
10047 a name from the other font properties.
10048 (xfont_open): Return a font-object. Adjusted for the change of
10049 struct font. Get underline_thickness and underline_position from
10050 font property. Don't update dpyinfo->smallest_font_height and
10051 dpyinfo->smallest_char_width.
10052 (xfont_close): Don't free struct font.
10053 (xfont_prepare_face): Adjusted for the change of struct font.
10054 (xfont_done_face): Deleted.
10055 (xfont_has_char): Adjusted for the change of struct font.
10056 (xfont_encode_char, xfont_draw): Likewise.
10057 (xfont_check): New function.
10058
10059 * xftfont.c (xftfont_list): Adjusted for the change of `list'
10060 callback function.
10061 (xftfont_match): Adjusted for the format change of font-entity.
10062 (xftfont_open): Adjusted for the format change of font-entity and
10063 font-object. Adjusted for the change of struct font. Return a
10064 font-object. Don't update dpyinfo->smallest_font_height and
10065 dpyinfo->smallest_char_width.
10066 (xftfont_close): Block input while calling XftFontClose.
10067 (xftfont_prepare_face): Don't block input while calling
10068 xftfont_get_colors. Adjusted for the change of struct font.
10069 (xftfont_shape): Return value of error case fixed.
10070
10071 * xrdb.c (x_load_resources): Don't setup a fontset resource.
10072
10073 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
10074 conditionals.
10075 (FONT_WIDTH): Return (f)->max_width.
10076 (struct x_display_info): Delete member `font'.
10077 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
10078 (x_find_ccl_program, x_get_font_repertory): Delete externs.
10079 (struct x_output): Change type of `font' to `struct font *'.
10080
10081 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
10082 conditionals. Don't check enable_font_backend. Delete all codes
10083 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
10084 (x_per_char_metric, x_encode_char): Deleted.
10085 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
10086 (x_compute_glyph_string_overhangs): Adjusted for the change of
10087 `struct face'.
10088 (x_draw_glyph_string_foreground)
10089 (x_draw_composite_glyph_string_foreground): Likewise.
10090 (x_draw_glyph_string): Likewise. Use font->underline_position and
10091 font->underline_thickness.
10092 (x_new_font): Renamed from x_new_fontset2.
10093 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
10094 (x_check_font): Call `check' method of a font driver.
10095 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
10096 (x_query_font, x_get_font_repertory): Deleted.
10097 (x_find_ccl_program): Renamed and moved to xfont.c.
10098 (x_redisplay_interface): Adjusted for the change of `struct
10099 redisplay_interface'.
10100
10101 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
10102 conditionals. Don't check enable_font_backend. Delete all codes
10103 used only when USE_FONT_BACKEND is not defined. Surround non-used
10104 code by "#ifdef OLD_FONT" and "endif".
10105 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
10106
10107 * w32font.h (struct w32font_info): New member.
10108 (FONT_COMPAT): New macro.
10109 (w32font_open_internal): Prototype adjusted.
10110
10111 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
10112 OLD_FONT" and "endif".
10113
10114 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
10115 conditionals. Don't check enable_font_backend. Delete all codes
10116 used only when USE_FONT_BACKEND is not defined.
10117 (w32font_open): Return a font-object. Make a font-object by
10118 font_make_object. Adjusted for the change of struct w32font_info.
10119 (w32font_close): Don't free struct font. Adjusted for the change
10120 of struct w32font_info.
10121 (w32font_encode_char, w32font_text_extents, w32font_draw):
10122 Adjusted for the change of struct w32font_info.
10123 (w32font_draw): Likewise.
10124 (w32font_list_internal): Return a list, not vector.
10125 (w32font_open_internal): Change the 4th arg to font-object.
10126 Adjusted for the change of struct w32font_info and font-object format.
10127 (add_font_name_to_list): Don't downcase names.
10128 (w32_enumfont_pattern_entity): Make a font-entity by
10129 font_make_entity. Adjusted for the format change of font-entity.
10130 Use FONT_SET_STYLE to set a style-related font property. If a
10131 font is scalable, set avgwidth property to 0. Set font-entity
10132 property by font_put_extra.
10133 (font_matches_spec): Adjusted for the format change of font-entity.
10134 (w32_weight_table, w32_decode_weight): New variables.
10135 (w32_encode_weight): New function.
10136 (fill_in_logfont): Adjusted for the format change of font-spec.
10137 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
10138 weight value.
10139 (w32font_driver): Adjusted for the change of struct font_driver.
10140
10141 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
10142 conditionals. Don't check enable_font_backend. Surround non-used
10143 code by "#ifdef OLD_FONT" and "endif".
10144 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
10145 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
10146
10147 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
10148 conditionals. Don't check enable_font_backend. Delete all codes
10149 used only when USE_FONT_BACKEND is not defined. Surround non-used
10150 code by "#ifdef OLD_FONT" and "endif".
10151
10152 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
10153 (uniscribe_open): Return value changed to font-object.
10154 Adjusted for the format change of font-object.
10155 (uniscribe_otf_capability): Adjusted for the change of struct font.
10156 (add_opentype_font_name_to_list): Don't downcase names.
10157 (uniscribe_font_driver): Adjusted for the change of struct
10158 font_driver.
10159
101602008-05-13 Chong Yidong <cyd@stupidchicken.com>
10161
10162 * dispnew.c (update_frame_1): Check if tty output is still valid
10163 before flushing it.
10164
101652008-05-13 Jan Djärv <jan.h.d@swipnet.se>
10166
10167 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
10168 to Gtk+ menus.
10169
101702008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
10171
10172 * dired.c (file_name_completion): Tweak the code so as to always do it
10173 in a single pass. Tighten the scope of some variables.
10174
10175 * dired.c (Qdefault_directory): New var.
10176 (file_name_completion): Use it instead of Fexpand_file_name.
10177 (syms_of_dired): Initialize it.
10178
101792008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
10180
10181 * fileio.c (double_dollars): Remove dead code.
10182
101832008-05-10 Eli Zaretskii <eliz@gnu.org>
10184
10185 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
10186 Mention w32-get-true-file-attributes in doc string.
10187
10188 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
10189
101902008-05-09 Glenn Morris <rgm@gnu.org>
10191
10192 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
10193 2008-04-23.
10194
101952008-05-09 Eli Zaretskii <eliz@gnu.org>
10196
10197 Support for reporting owner and group of each file on MS-Windows:
10198 * dired.c (stat_uname, stat_gname): New functions, with special
10199 implementation for w32.
10200 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
10201
10202 * w32.c: Rename the_passwd_* to dflt_passwd_*.
10203 (dflt_group_name): New static variable.
10204 (dflt_group): Rename from the_group.
10205 (init_user_info): Init dflt_group fields. Get user's group name
10206 from LookupAccountSid.
10207 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
10208 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
10209 New initialization states.
10210 (globals_of_w32): Initialize them to zero. Initialize the default
10211 group name to "None".
10212 (GetFileSecurity_Name): New global var, the name of the function
10213 to call for GetFileSecurity.
10214 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
10215 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
10216 (get_file_security, get_security_descriptor_owner)
10217 (get_security_descriptor_group, is_valid_sid)
10218 (get_file_security_desc, get_rid, get_name_and_id)
10219 (get_file_owner_and_group): New functions.
10220 (stat): Use get_file_security_desc and get_file_owner_and_group to
10221 report the owner and primary group of each file. Don't ignore the
10222 high 32 bits of file's size, now that st_size is 64-bit wide.
10223 Fix test when to get true file attributes.
10224 (init_user_info): Use get_rid instead of equivalent inline code.
10225 (fstat): Don't ignore the high 32 bits of file's size.
10226
102272008-05-09 Chong Yidong <cyd@stupidchicken.com>
10228
10229 * image.c (png_load): Use correct bit-depth for setting background
10230 color.
10231
102322008-05-08 Eli Zaretskii <eliz@gnu.org>
10233
10234 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
10235 epa-hook.elc.
10236
102372008-05-08 Juanma Barranquero <lekktu@gmail.com>
10238
10239 * font.c (Ffont_match_p): Don't use `iff' in docstring.
10240
102412008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
10242
10243 * macfns.c (Fx_create_frame): Make a copy of frame parameters
10244 because the original parameters are in pure storage now.
10245 (mac_window): Remove unused params. Update callers.
10246
102472008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
10248
10249 * lread.c (substitute_object_recurse): Use lower-level primitives.
10250 Don't signal errors when traversing sub-char-tables.
10251 Don't loop over all the possible characters when traversing char-tables.
10252
10253 * print.c (print_preprocess): Add sub-char-tables to the print-table,
10254 just like we do in print.c.
10255
102562008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
10257
10258 * minibuf.c (Ftry_completion): Remove code left over from when we used
10259 scmp instead of Fcompare_strings.
10260
102612008-05-04 Juanma Barranquero <lekktu@gmail.com>
10262
10263 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
10264
102652008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10266
10267 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
10268 Create bitmap context in native byte order.
10269
10270 * macterm.c (XDrawLine)
10271 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
10272 context in native byte order.
10273
102742008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10275
10276 * config.in: Regenerate.
10277
10278 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
10279 New definitions for Image I/O support.
10280 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
10281 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
10282 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10283 (mac_data_provider_release_data, image_load_image_io)
10284 [USE_MAC_IMAGE_IO]: New functions.
10285 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
10286 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
10287 (init_image_func_pointer) [MAC_OSX]: Remove function.
10288 (image_load_quartz2d) [MAC_OSX]: Check availability of
10289 CGImageCreateWithPNGDataProvider at compile time.
10290 Use lowercase `false' for boolean constant.
10291 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
10292 Use image_load_image_io.
10293 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
10294 Don't check MyCGImageCreateWithPNGDataProvider.
10295 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
10296 Don't call init_image_func_pointer.
10297
10298 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
10299
10300 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
10301 Make variable non-static.
10302 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
10303 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
10304
10305 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
10306 (RED_FROM_ULONG): Mask off higher bits.
10307 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
10308
10309 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
10310 Include AvailabilityMacros.h.
10311 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
10312 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
10313
103142008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
10315
10316 * chartab.c (Fset_char_table_range): If range is t, really set all
10317 chars to that value.
10318
103192008-05-03 Eli Zaretskii <eliz@gnu.org>
10320
10321 * dired.c (Ffile_attributes): Don't allow the device number become
10322 negative.
10323
103242008-05-02 Daiki Ueno <ueno@unixuser.org>
10325
10326 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
10327
103282008-05-02 Juri Linkov <juri@jurta.org>
10329
10330 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
10331 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
10332 DEFAULT argument as a list of default values in docstrings.
10333
103342008-05-01 Chong Yidong <cyd@stupidchicken.com>
10335
10336 * puresize.h (BASE_PURESIZE): Increase to 1210000.
10337
103382008-05-01 Martin Rudalics <rudalics@gmx.at>
10339
10340 * dispnew.c (change_frame_size_1): Preserve small windows when
10341 shrinking frames by calling set_window_height|width with third
10342 arg 2.
10343
10344 * window.h (struct window): Replace field too_small_ok by field
10345 resize_proportionally.
10346
10347 * window.c (make_window): Initialize resize_proportionally.
10348 (enlarge_window): Temporarily set resize_proportionally to make
10349 sure that shrink_windows does scale the window proportionally.
10350 (shrink_windows): When window has resize_proportionally set try
10351 to shrink it proportionally by stealing from other windows.
10352 (struct saved_window, Fset_window_configuration)
10353 (compare_window_configurations): Handle resize_proportionally.
10354 (WINDOW_TOTAL_SIZE): New macro.
10355 (window_min_size, shrink_windows, size_window): Use it.
10356 (check_min_window_sizes): Remove. Invalid values of
10357 window-min-height|width are handled by window_min_size_2 now.
10358 (size_window, Fsplit_window, enlarge_window)
10359 (adjust_window_trailing_edge, grow_mini_window): Don't call
10360 check_min_window_sizes.
10361 (window_min_size_2, window_min_size_1, window_min_size):
10362 New argument safe_p for retrieving "safe" minimum sizes.
10363 (Fdisplay_buffer, Fsplit_window, enlarge_window)
10364 (adjust_window_trailing_edge, grow_mini_window):
10365 Adjust arguments of window_min_size... functions.
10366 (shrink_windows): Argument min_size removed. New argument
10367 safe_p allows shrinking windows to their safe minimum sizes.
10368 Calculate minimum size and decide whether a window shall be
10369 deleted for each window individually.
10370 (size_window): When nodelete_p equals 2, tell shrink_windows to
10371 delete windows only if their new minimum size is no more safe.
10372 (shrink_window_lowest_first): Call window_min_size_1 to make
10373 sure to preserve modeline of bottom-most window when resizing
10374 the minibuffer.
10375 (Fset_window_configuration, Fcurrent_window_configuration)
10376 (compare_window_configurations): Do not handle
10377 window-min-height|width any more.
10378 (syms_of_window): Clarify window-min-height|width doc-strings.
10379
103802008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
10381
10382 * dired.c (file_name_completion): Fix up the encoding/decoding issue
10383 some more. Copy some of the code from Ftry_completions.
10384 Remove special case code that dates back to initial revision when the
10385 slash was only added when necessary and that can't trigger nowadays.
10386
103872008-04-27 Kenichi Handa <handa@m17n.org>
10388
10389 * font.c (font_prop_validate): Signal `error' instead of `font'.
10390
103912008-04-29 Jason Rumney <jasonr@gnu.org>
10392
10393 * w32fns.c (Fw32_battery_status): New defun.
10394 (syms_of_w32fns): Defsubr it.
10395
103962008-04-28 Andreas Schwab <schwab@suse.de>
10397
10398 * dired.c (file_name_completion): Fix another mixing of encoded
10399 and decoded names.
10400
104012008-04-28 Juanma Barranquero <lekktu@gmail.com>
10402
10403 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
10404
104052008-04-27 Juanma Barranquero <lekktu@gmail.com>
10406
10407 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
10408
104092008-04-27 Andreas Schwab <schwab@suse.de>
10410
10411 * dired.c (file_name_completion): Fix inappropriate mixing of
10412 encoded and decoded names.
10413
10414 * xterm.c (XTread_socket): Fix use of uninitialized variable.
10415
10416 * puresize.h (BASE_PURESIZE): Increase to 1200000.
10417
104182008-04-26 Eli Zaretskii <eliz@gnu.org>
10419
10420 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
10421 2008-03-31, it's not needed anymore with `struct stat' definition
10422 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
10423 for the same reasons.
10424
104252008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
10426
10427 * m/sparc.h: Additional redefinitions for GNU/Linux.
10428
104292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10430
10431 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
10432 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
10433 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
10434 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
10435 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10436 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
10437 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10438 Likewise.
10439
10440 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
10441 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
10442 (mac_ax_number_of_characters): Add externs.
10443 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
10444 [USE_MAC_TSM]: Likewise.
10445 (mac_handle_text_input_event) [MAC_OSX]:
10446 Handle kEventTextInputOffsetToPos for no active input area case.
10447 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10448 (mac_handle_document_access_event)
10449 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
10450 (install_application_handler) [MAC_OSX]: Register handlers for
10451 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
10452 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
10453 Register mac_handle_document_access_event.
10454
10455 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
10456 Make functions non-static.
10457
104582008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
10459
10460 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
10461 (read_file_name_completion_ignore_case, insert_default_directory)
10462 (Qdefault_directory): Move to minibuffer.el.
10463 (Fread_file_name): Call the new `read-file-name' instead.
10464
104652008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10466
10467 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
10468 Make function non-static.
10469 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
10470 Remove function.
10471 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10472 Move to mactoolbox.c.
10473 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
10474
10475 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
10476 (mac_rect_make): New macro.
10477
10478 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
10479 instead of float.
10480 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10481 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
10482 (XSetBackground) [USE_CG_DRAWING]: Likewise.
10483 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
10484 CGRectMake.
10485 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
10486 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
10487 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
10488 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10489 instead of WindowRef in argument type.
10490 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
10491 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
10492 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
10493 instead of DISPLAY. All uses changed.
10494 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
10495 (x_calc_absolute_position): Simplify so as not to use
10496 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
10497
10498 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
10499 instead of WindowRef in argument type.
10500 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
10501 [TARGET_API_MAC_CARBON]: Remove externs.
10502 (create_apple_event, mac_event_parameters_to_lisp)
10503 [TARGET_API_MAC_CARBON]: Add externs.
10504
10505 * mactoolbox.c (Vmac_ts_script_language_on_focus)
10506 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
10507 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
10508 is clicked.
10509 (x_activate_menubar): Remove extern for saved_menu_event_location.
10510 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
10511 Move from mac.c.
10512
105132008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10514
10515 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
10516 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
10517
105182008-04-23 Jason Rumney <jasonr@gnu.org>
10519
10520 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
10521 attributes only for local files.
10522
10523 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
10524 default to Qlocal.
10525
105262008-04-22 Juri Linkov <juri@jurta.org>
10527
10528 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
10529 read-buffer-to-switch instead of using the letter "B".
10530
105312008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
10532
10533 * fileio.c (Qdefault_directory): New variable.
10534 (Fread_file_name): Use it to pass `dir' to the completion functions.
10535
105362008-04-20 Chong Yidong <cyd@stupidchicken.com>
10537
10538 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
10539
105402008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
10541
10542 * keyboard.c (Vpre_help_message): Remove.
10543 (show_help_echo): Remove default C code.
10544
10545 * dired.c (directory_files_internal, file_name_completion):
10546 Only call ENCODE_FILE if the string is indeed decoded.
10547
105482008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10549
10550 * Makefile.in (TOOLKIT_DEFINES): Remove.
10551 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
10552
105532008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10554
10555 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
10556 (mactoolbox.o): New target.
10557
10558 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
10559 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
10560
10561 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
10562 Use mac_set_frame_window_background instead of XSetWindowBackground.
10563 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
10564 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
10565 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
10566 instead of SetWindowTitleWithCFString.
10567 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
10568 Move function to mactoolbox.c.
10569 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
10570 Use mac_set_window_modified instead of SetWindowModified.
10571 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
10572 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
10573 (Fx_focus_frame): Use mac_front_non_floating_window instead of
10574 FrontNonFloatingWindow. Use mac_activate_window instead of
10575 ActivateWindow. Use mac_active_non_floating_window instead of
10576 ActiveNonFloatingWindow.
10577 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
10578 Use mac_show_hourglass and mac_hide_hourglass.
10579 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
10580 instead of GetGlobalMouse.
10581 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
10582 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
10583 Use mac_bring_window_to_front instead of BringToFront.
10584 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
10585 mactoolbox.c.
10586 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
10587 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
10588 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
10589 mactoolbox.c.
10590
10591 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
10592 (XtPointer): Move typedef from macmenu.c.
10593 (enum button_type): Move enum from macmenu.c.
10594 (widget_value): Move typedef from macmenu.c.
10595 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
10596 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10597 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10598 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10599 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10600 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10601 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10602 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
10603 (Selection): Move typedef from macselect.c.
10604 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
10605 macterm.c.
10606 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
10607 (mac_is_window_collapsed, mac_bring_window_to_front)
10608 (mac_send_window_behind, mac_hide_window, mac_show_window)
10609 (mac_collapse_window, mac_front_non_floating_window)
10610 (mac_active_non_floating_window, mac_activate_window)
10611 (mac_move_window_structure, mac_move_window, mac_size_window)
10612 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
10613
10614 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
10615 (enum mac_menu_kind): Move enum to mactoolbox.c.
10616 (min_menu_id): Move variable to mactoolbox.c.
10617 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
10618 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
10619 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
10620 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
10621 [TARGET_API_MAC_CARBON]: Likewise.
10622 (XtPointer): Move typedef to macgui.h.
10623 (enum button_type): Move enum to macgui.h.
10624 (widget_value): Move typedef to macgui.h.
10625 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
10626 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
10627 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
10628 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
10629 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
10630 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
10631 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
10632 (popup_activated_flag): Make variable non-static.
10633 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
10634 (add_menu_item, fill_menu, dispose_menus):
10635 Move functions to mactoolbox.c.
10636 (restore_show_help_function, menu_target_item_handler)
10637 (install_menu_target_item_handler, mac_handle_dialog_event)
10638 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
10639 [TARGET_API_MAC_CARBON]: Likewise.
10640 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
10641 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10642 (find_and_call_menu_selection, name_is_separator): Make function
10643 non-static.
10644 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
10645 to mactoolbox.c.
10646 (set_frame_menubar): Don't call install_menu_quit_handler.
10647 (menu_item_selection): New variable.
10648 (mac_menu_show): Use create_and_show_popup_menu.
10649 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
10650 selection but set variable menu_item_selection. All uses changed.
10651 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
10652 Call install_menu_quit_handler. Move to mactoolbox.c.
10653
10654 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
10655 (Selection): Move typedef to macgui.h.
10656 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
10657 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
10658 Make variables non-static.
10659 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10660 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
10661 Make functions non-static.
10662 (Vmac_service_selection) [MAC_OSX]: Likewise.
10663 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10664 (mac_valid_selection_target_p, mac_clear_selection)
10665 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10666 (mac_put_selection_value, mac_selection_has_target_p)
10667 (mac_get_selection_value, mac_get_selection_target_list)
10668 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10669 Move functions to mactoolbox.c.
10670 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10671 Likewise.
10672 (copy_scrap_flavor_data, mac_handle_service_event)
10673 (install_service_handler) [MAC_OSX]: Likewise.
10674 (syms_of_macselect) <Vmac_dnd_known_types>:
10675 Use mac_dnd_default_known_types.
10676
10677 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10678 Move to mactoolbox.c.
10679 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10680 (Fx_selection_owner_p): Add EXFUN.
10681 (install_window_handler, remove_window_handler, XSetWindowBackground):
10682 Remove externs.
10683 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10684 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10685 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10686 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10687 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10688 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10689 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10690 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10691 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10692 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10693 (mac_valid_selection_target_p, mac_clear_selection)
10694 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10695 (mac_put_selection_value, mac_selection_has_target_p)
10696 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10697 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10698 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10699 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10700 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10701 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10702 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10703 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10704 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10705
10706 * mactoolbox.c: New file.
10707
107082008-04-18 Jason Rumney <jasonr@gnu.org>
10709
10710 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10711
107122008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10713
10714 * character.c (Fmultibyte_char_to_unibyte):
10715 Return latin1 chars unchanged.
10716
10717 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10718 relocated if it points to `name'.
10719
107202008-04-17 Kenichi Handa <handa@m17n.org>
10721
10722 * data.c (Faset): Allow setting a multibyte character in an
10723 ASCII-only unibyte string.
10724
10725 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10726
107272008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10728
10729 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10730 done in config.h.
10731
107322008-04-16 Juanma Barranquero <lekktu@gmail.com>
10733
10734 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10735 (Fchar_direction): Add usage in the docstring.
10736
107372008-04-15 Chong Yidong <cyd@stupidchicken.com>
10738
10739 * keyboard.c (read_key_sequence): Remove always-true checks.
10740
107412008-04-14 Jason Rumney <jasonr@gnu.org>
10742
10743 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10744 compatibility struct, for better underline positioning.
10745
107462008-04-13 David Hansen <david.hansen@gmx.net>
10747
10748 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10749 string.
10750
107512008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10752
10753 * m/hp800.h (XUINT, XSET): Remove.
10754
107552008-04-12 Juanma Barranquero <lekktu@gmail.com>
10756
10757 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10758 previous change.
10759
107602008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10761
10762 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10763 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10764
107652008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10766
10767 * keymap.h (map_keymap_canonical): Declare.
10768 * xmenu.c (single_keymap_panes): Use it.
10769
107702008-04-11 Glenn Morris <rgm@gnu.org>
10771
10772 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10773 set the target's value to that of the alias.
10774
107752008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10776
10777 * term.c (set_tty_color_mode): Left over typo.
10778
107792008-04-10 Michael Albinus <michael.albinus@gmx.de>
10780
10781 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10782 only after check for file name handler functions. Signal, when
10783 native functionality is not supported.
10784 (syms_of_fileio): Declare it unconditionally.
10785
107862008-04-10 Jason Rumney <jasonr@gnu.org>
10787
10788 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10789 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10790
10791 * w32.c (logon_network_drive): Also logon to remote drives that
10792 are mapped to drive letters.
10793
107942008-04-10 Glenn Morris <rgm@gnu.org>
10795
10796 * xdisp.c (truncate-partial-width-windows): Doc fix.
10797
107982008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10799
10800 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10801 Move functions to minibuffer.el.
10802 (syms_of_fileio): Don't declare them.
10803
108042008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10805
10806 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10807 (syms_of_minibuf): Remove its initialization.
10808
10809 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10810
108112008-04-09 Juanma Barranquero <lekktu@gmail.com>
10812
10813 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10814
108152008-04-09 Jason Rumney <jasonr@gnu.org>
10816
10817 * makefile.w32-in (distclean): Delete makefile too.
10818 (maintainer-clean): New target.
10819
10820 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10821
10822 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10823 for new font backend and composite cases.
10824
108252008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10826
10827 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10828 Most of the code moved to run_timers.
10829 (do_pending_atimers): Call run_timers.
10830 (run_timers): New function.
10831
10832 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10833 run atimers.
10834
10835 * process.c (wait_reading_process_output): The same as above.
10836
108372008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10838
10839 * minibuf.c (last_exact_completion): Remove variable.
10840 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10841 (complete_and_exit_1, complete_and_exit_2)
10842 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10843 (Fdisplay_completion_list, display_completion_list_1)
10844 (Fminibuffer_completion_help, Fself_insert_and_exit)
10845 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10846 minibuffer.el.
10847 (syms_of_minibuf): Remove corresponding initializations.
10848
10849 * keyboard.c (Qdeactivate_mark): New var.
10850 (command_loop_1): Use it to call `deactivate-mark'.
10851 (syms_of_keyboard): Initialize it.
10852
10853 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10854 to another frame.
10855 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10856 Don't call set_tty_color_mode.
10857 (store_frame_param): Reset previous_frame rather than call
10858 set_tty_color_mode.
10859 * term.c (set_tty_color_mode): Rewrite.
10860 * dispextern.h (set_tty_color_mode): New type.
10861 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10862
108632008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10864
10865 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10866 for generic chars, which do not exist any more in emacs-unicode.
10867
108682008-04-08 Michael Albinus <michael.albinus@gmx.de>
10869
10870 * coding.c (detect_coding_emacs_mule)
10871 (Ffind_operation_coding_system): Fix typo.
10872
108732008-04-08 Jason Rumney <jasonr@gnu.org>
10874
10875 * w32uniscribe.c (SNAME): Extract only symbol name.
10876
10877 * w32font.h (struct w32_metric_cache): New struct.
10878 (w32font_info): Use it.
10879 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10880 (CACHE_BLOCKSIZE): New constants.
10881
10882 * w32font.c (Qja, Qko, Qzh): New symbols.
10883 (syms_of_w32font): Initialise them.
10884 (font_matches_spec): Use them to filter by language.
10885 (recompute_cached_metrics): Remove function.
10886 (compute_metrics, clear_cached_metrics): New functions.
10887 (w32font_encode_char): Use them to manage metric cache.
10888 (w32font_text_extents): Cache metrics for all glyphs on demand.
10889 Delay converting glyph indices to WORD until needed.
10890 (w32font_open_internal): Initialize metric cache to empty.
10891 (registry_to_w32_charset): Charset should always be a symbol.
10892 (fill_in_logfont, list_all_matching_fonts): Family should
10893 always be a symbol.
10894
108952008-04-06 Jason Rumney <jasonr@gnu.org>
10896
10897 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10898 Give up if glyph indices not supported. Use uniscribe obtained
10899 ABC widths for individual metrics. Map glyph clusters back to
10900 characters using fClusterStart flag. Return number of glyphs
10901 produced, not chars processed.
10902 (uniscribe_shape): Map char at FROM to current glyph.
10903
109042008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10905
10906 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10907 Use SetMenuItemHierarchicalMenu.
10908
109092008-04-05 Jason Rumney <jasonr@gnu.org>
10910
10911 * image.c (pbm_load): Allow color values up to 65535.
10912 Throw an error if max_color_idx is outside the supported range.
10913 Report an error when image size is invalid.
10914 Read two bytes at a time when raw images have max_color_idx above 255.
10915
109162008-04-05 Eli Zaretskii <eliz@gnu.org>
10917
10918 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10919 cFileName a file name that includes `?' characters, use the 8+3
10920 alias in cAlternateFileName instead.
10921
109222008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10923
10924 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10925 append "CCL: Quitted" when the CCL program is quitted.
10926 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10927
10928 * ccl.h (struct ccl_program): New member quit_silently.
10929
109302008-04-05 Chong Yidong <cyd@stupidchicken.com>
10931
10932 * search.c (compile_pattern_1): Treat non-nil and non-string of
10933 search-spaces-regexp as nil.
10934
10935 * minibuf.c (Fassoc_string): Tweak docstring.
10936
109372008-04-05 Eli Zaretskii <eliz@gnu.org>
10938
10939 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10940 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10941 2008-03-14 to force inode be positive.
10942
10943 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10944 _S_* ones, since we now use our own sys/stat.h.
10945 (stat, fstat): Don't mangle the inode number.
10946 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10947
109482008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10949
10950 * frame.h (struct frame): Give one more bit to `visible' since we use
10951 values larger than 1 to indicate obscured frames on ttys.
10952
10953 * keymap.c (Qkeymap_canonicalize): New var.
10954 (Fmap_keymap_internal): New fun.
10955 (describe_map): Use keymap-canonicalize.
10956
10957 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10958 (Fundo_boundary): Set them.
10959 (syms_of_undo): Initialize them.
10960 (record_point): Use them instead of last_point_position*.
10961 (last_undo_buffer): Change type.
10962
109632008-04-04 Jason Rumney <jasonr@gnu.org>
10964
10965 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10966 (recompute_cached_metrics): Don't set ascent and descent per char.
10967
10968 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10969 (uniscribe_check_otf): Add GC protection before consing.
10970 Rearrange loop for counting features.
10971
109722008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10973
10974 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10975 buffer with byte-size of source buffer.
10976
109772008-04-03 Chong Yidong <cyd@stupidchicken.com>
10978
10979 * callint.c (Fcall_interactively): Handle temporary region even
10980 when shift-select-mode is off.
10981
109822008-04-03 Jason Rumney <jasonr@gnu.org>
10983
10984 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10985
109862008-04-03 Kenichi Handa <handa@m17n.org>
10987
10988 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10989 (CATEGORY_MASK_UTF_16): Likewise.
10990 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10991 binary file.
10992 (detect_coding): Add null-byte detection for a binary file.
10993 (detect_coding_system): Likewise.
10994
109952008-04-03 Jason Rumney <jasonr@gnu.org>
10996
10997 * w32uniscribe.c: New file.
10998
10999 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
11000
11001 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
11002
11003 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
11004 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
11005 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
11006 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
11007 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
11008 (Qphonetic): New symbols.
11009 (syms_of_w32font): Initialize them.
11010 (font_supported_scripts): Use them.
11011 (w32font_list_family): List all charsets.
11012 (w32font_text_extents, recompute_cached_metrics): Fix metric
11013 calculations.
11014 (w32_enumfont_pattern_entity): Make full_type a DWORD.
11015 Give opentype fonts their own format.
11016 (font_matches_spec): New arguments backend and logfont.
11017 Handle :otf spec for uniscribe backend.
11018 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
11019 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
11020
11021 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
11022 font backend.
11023 (globals_of_w32fns): Initialize uniscribe font backend.
11024
11025 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
11026 dependencies.
11027 (w32uniscribe.$(O)): New file to build.
11028 (FONT_OBJ): Include w32uniscribe.$(O).
11029 (LIBS): Add uniscribe libraries.
11030
11031 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
11032
110332008-04-02 Chong Yidong <cyd@stupidchicken.com>
11034
11035 * callint.c (Vshift_select_mode): New var.
11036 (Finteractive): Document new ^ spec.
11037 (Fcall_interactively): Call handle-shift-selection if the ^ spec
11038 is present.
11039
11040 * keyboard.c (Vthis_command_keys_shift_translated): New var.
11041 (command_loop_1): Avoid running the direct display versions of
11042 forward-char and backward-char if shift-selection may occur.
11043 (read_key_sequence): Set Vthis_command_keys_shift_translated if
11044 shift-translation takes place.
11045
11046 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
11047 avoid clobbering by define-minor-mode.
11048
11049 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
11050 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
11051
11052 * syntax.c (Fforward_word): Add ^ interactive spec.
11053
11054 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
11055 (Fscroll_right): Add ^ interactive spec.
11056
110572008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
11058
11059 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
11060
11061 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
11062
11063 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
11064
110652008-03-31 Juri Linkov <juri@jurta.org>
11066
11067 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
11068
110692008-03-30 Jan Djärv <jan.h.d@swipnet.se>
11070
11071 * gtkutil.c (xg_set_geometry): Fix indentation.
11072 (xg_resize_outer_widget): Remove.
11073 (x_wm_size_hint_off): Fix indentation.
11074 (xg_frame_set_char_size): Call flush_and_sync after
11075 gtk_window_resize.
11076 (x_wm_set_size_hint): Pass NULL as geometry window to
11077 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
11078 Add menu bar and tool bar height to base height.
11079 (xg_update_frame_menubar, free_frame_menubar)
11080 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
11081 (update_frame_tool_bar, free_frame_tool_bar):
11082 Change xg_resize_outer_widget to xg_frame_set_char_size.
11083
110842008-03-30 Michael Albinus <michael.albinus@gmx.de>
11085
11086 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
11087 (Fdbus_call_method): New parameter TIMEOUT.
11088 (dbus-send-signal): Optimize UNGCPRO call.
11089
110902008-03-29 Juri Linkov <juri@jurta.org>
11091
11092 * window.c (Fdisplay_buffer): Move call to
11093 Vsplit_window_preferred_function out of conditions that check
11094 if window is eligible for vertical splitting.
11095 When Vsplit_window_preferred_function is non-nil, call it and use
11096 its non-nil return value as window. Otherwise, continue doing
11097 vertical splitting using Fsplit_window with arg horflag=nil.
11098 (syms_of_window) <Vsplit_window_preferred_function>: Change the
11099 default value from `split-window' to nil.
11100
111012008-03-29 Juri Linkov <juri@jurta.org>
11102
11103 * callint.c (Fcall_interactively): Revert 2008-03-16 change
11104 for interactive code letters 'b' and 'B'.
11105
111062008-03-29 Eli Zaretskii <eliz@gnu.org>
11107
11108 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
11109 multibyte string.
11110
111112008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
11112
11113 * keyboard.c (pending_funcalls): New var.
11114 (timer_check): Run it.
11115 (syms_of_keyboard): Initialize it.
11116 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
11117 (Vdelete_terminal_functions): New vars.
11118 (syms_of_terminal): Initialize them.
11119 (Fdelete_terminal): Run delete-terminal-functions.
11120 * xdisp.c (safe_eval): Rewrite.
11121 (safe_call2): New fun.
11122 * frame.c (Qdelete_frame_functions): New var.
11123 (syms_of_frame): Initialize it.
11124 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
11125 * lisp.h (safe_call2, pending_funcalls): Declare.
11126
111272008-03-28 Andreas Schwab <schwab@suse.de>
11128
11129 * indent.c (Fmove_to_column): Move declaration before statements.
11130
111312008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
11132
11133 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
11134 (struct frame): Use bit fields for boolean vars.
11135
11136 * process.c (server_accept_connection): Simplify naming.
11137 (emacs_get_tty_pgrp): Use SDATA.
11138
11139 * coding.c (decode_coding_object): Fix last change.
11140
111412008-03-27 Jason Rumney <jasonr@gnu.org>
11142
11143 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
11144
111452008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
11146
11147 * charset.c (Fdefine_charset_internal): Change the way of
11148 registering charsets in Vcharset_order_list.
11149 (syms_of_charset): Make the charset `eight-bit' supplementary.
11150
111512008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
11152
11153 * regex.c (EXTEND_BUFFER): Change order of pointer addition
11154 operations, to avoid having the difference between pointers
11155 overflow.
11156
111572008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
11158
11159 * indent.c (check_display_width): New fun.
11160 (scan_for_column): Use it.
11161
11162 * data.c (syms_of_data): Mark most-positive-fixnum and
11163 most-negative-fixnum as constants.
11164
11165 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
11166
11167 * indent.c (scan_for_column): Extract from current_column_1.
11168 Merge with the same code from Fmove_to_column.
11169 (current_column_1, Fmove_to_column): Use it.
11170
111712008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
11172
11173 * keymap.c (map_keymap_internal): New fun.
11174 (map_keymap): Use it.
11175 (Fmap_keymap_internal): New fun.
11176 (Fmap_keymap): Remove left-out test from before make_save_value.
11177
11178 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
11179
11180 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
11181 Use XCAR/XCDR.
11182
11183 * process.h (struct Lisp_Process): Remove filter_multibyte.
11184 * process.c (QCfilter_multibyte): Remove.
11185 (setup_process_coding_systems): Don't use filter_multibyte.
11186 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
11187 (read_process_output): Don't adjust multibyteness to filter_multibyte.
11188 (Fset_process_filter_multibyte): Change the coding-system to
11189 approximate the previous behavior.
11190 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
11191 coding-system.
11192
11193 * coding.c (decode_coding_object): When not decoding into a buffer,
11194 obey the coding system's preference of (uni|multi)byte.
11195
111962008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
11197
11198 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
11199 every char is changed and has a different byte-length.
11200 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
11201 Fix int -> EMACS_INT.
11202
112032008-03-23 David Hansen <david.hansen@gmx.net>
11204
11205 * dbusbind.c (xd_read_message): Remove extra copying of message
11206 strings. Check for NULL `interface' or `member'.
11207
112082008-03-22 Eli Zaretskii <eliz@gnu.org>
11209
11210 * w32.c (readdir): If FindFirstFile/FindNextFile return in
11211 cFileName a file name that includes `?' characters, use the 8+3
11212 alias in cAlternateFileName instead.
11213
112142008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
11215
11216 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
11217
112182008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11219
11220 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
11221 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
11222 work on current_buffer only instead (that was already the case
11223 for some of the code anyway).
11224 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
11225 (temp_set_point, temp_set_point_both): Use EMACS_INT.
11226 (SET_PT, SET_PT_BOTH): Adjust.
11227 * intervals.h (set_point, temp_set_point, set_point_both)
11228 (temp_set_point_both): Remove redundant declarations.
11229
112302008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
11231
11232 * fileio.c (Finsert_file_contents):
11233 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
11234 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
11235 when buffer != current_buffer anyway.
11236
112372008-03-20 Andreas Schwab <schwab@suse.de>
11238
11239 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
11240 as default.
11241
112422008-03-19 Jason Rumney <jasonr@gnu.org>
11243
11244 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
11245 (syms_of_w32fns): Initialize them.
11246 (HOURGLASS_ID): New constant.
11247 (x_window_to_frame): Don't check hourglass_window.
11248 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
11249 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
11250 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
11251 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
11252 Only change the cursor if hourglass is not active.
11253 (Fx_create_frame): Initialize frame's current_cursor.
11254 (hourglass_atimer): Remove.
11255 (hourglass_started): New function.
11256 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
11257 (show_hourglass): Adapt to w32, changing argument to frame.
11258
11259 * w32term.h (struct w32_output): Remove hourglass_window.
11260 Add current_cursor.
11261
11262 * eval.c (call_debugger, Fsignal):
11263 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
11264 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
11265 (Fexecute_extended_command, cancel_hourglass_unwind):
11266 * minibuf.c (read_minibuf):
11267 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
11268
112692008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
11270
11271 * window.c (run_funs): New fun.
11272 (run_window_configuration_change_hook): Use it to run the buffer-local
11273 and the global part of the hook.
11274
11275 * xdisp.c (format_mode_line_unwind_data): Add window argument.
11276 (unwind_format_mode_line): Restore selected window.
11277 (x_consider_frame_title, Fformat_mode_line): Set selected window.
11278
112792008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
11280
11281 * editfns.c (Fchar_equal): Check they are valid characters.
11282
11283 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
11284
112852008-03-17 Andreas Schwab <schwab@suse.de>
11286
11287 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
11288 against a charset.
11289
11290 * lisp.h (Fbuffer_list): Declare.
11291
112922008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 11293
aac0c6e3
MR
11294 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
11295 handlebox_widget is != 0.
11296
112972008-03-16 Juri Linkov <juri@jurta.org>
11298
11299 * callint.c (Fcall_interactively): For interactive code letters
11300 'b' and 'B' put the buffer list into the list of default "future"
11301 values of the minibuffer.
11302
113032008-03-16 Andreas Schwab <schwab@suse.de>
11304
11305 * keyboard.c (read_key_sequence): Fix downcasing of letters with
11306 modifiers.
11307
11308 * regex.c (re_match_2_internal): Correct matching of a charset
11309 against latin-1 characters.
11310
113112008-03-16 Kenichi Handa <handa@m17n.org>
11312
11313 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
11314 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
11315 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
11316 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
11317 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
11318 CHAR_STRING_ADVANCE.
11319 (produce_chars): Fix for the case that the source and the
11320 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
11321 instead of CHAR_STRING_ADVANCE.
11322 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
11323 STRING_CHAR_ADVANCE.
11324
113252008-03-15 Andreas Schwab <schwab@suse.de>
11326
11327 * regex.c (re_match_2_internal): Correct matching of eight bit
11328 characters in unibyte strings.
11329
113302008-03-15 Martin Rudalics <rudalics@gmx.at>
11331
11332 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
11333 at end of range when it coincides with the end of the buffer.
11334
113352008-03-14 Eli Zaretskii <eliz@gnu.org>
11336
11337 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
11338
11339 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
11340
113412008-03-14 Jason Rumney <jasonr@gnu.org>
11342
11343 * editfns.c (initial_tz): New variable.
11344 (syms_of_editfns): Initialize it.
11345 (Fset_time_zone_rule): Set it when first called.
11346 Use it when TZSTRING is nil.
11347
11348 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
11349 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
11350 (monitor_from_point_fn, get_monitor_info_fn): New globals.
11351 (globals_of_w32fns): Initialize them.
11352 (compute_tip_xy): Use them to position tooltips.
11353
113542008-03-14 Glenn Morris <rgm@gnu.org>
11355
11356 * emacs.c (main): Revert previous change.
11357 (standard_args): Revert -internal-script back to -scriptload,
11358 and remove the long-option form.
11359
113602008-03-13 Glenn Morris <rgm@gnu.org>
11361
11362 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
11363 Remove option -enable-font-backend.
11364
113652008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
11366
11367 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
11368
113692008-03-11 Jan Djärv <jan.h.d@swipnet.se>
11370
11371 * xterm.c (x_connection_closed): For GTK: If this is the last
11372 terminal just exit without closing the display.
11373
113742008-03-11 Jason Rumney <jasonr@gnu.org>
11375
11376 * w32font.c (w32font_full_name): Use floor to round.
11377
f0131492 113782008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
11379
11380 * sound.c (alsa_configure): Declare vol at beginning of block.
11381
11382 * fontset.c (Ffontset_info): Remove extra semicolon.
11383
113842008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
11385
11386 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
11387 size of resulting string.
11388
113892008-03-10 Jason Rumney <jasonr@gnu.org>
11390
11391 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
11392
113932008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11394
11395 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
11396 Don't pretend as if characters with display property haven't been
11397 consumed for string-replacing-string case.
11398
113992008-03-08 Kim F. Storm <storm@cua.dk>
11400
11401 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
11402 (get_next_display_element, next_element_from_string)
11403 (next_element_from_ellipsis, next_element_from_buffer): Use it.
11404
114052008-03-08 Andreas Schwab <schwab@suse.de>
11406
11407 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
11408
114092008-03-06 Jason Rumney <jasonr@gnu.org>
11410
11411 * w32font.c (w32_registry): Take font_type argument. Use ANSI
11412 when charset not specified. Only translate ANSI to unicode when
11413 font_type is truetype.
11414 (w32font_coverage_ok): New function.
11415 (add_font_entity_to_list): Use it to filter unsuitable fonts.
11416
114172008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
11418
11419 * lread.c (Fread_char): Resolve modifiers.
11420 (Fread_char_exclusive): Likewise.
11421
11422 * character.c (char_resolve_modifier_mask): New function.
11423 (char_string): Use char_resolve_modifier_mask.
11424 (Fchar_resolve_modifiers): New function.
11425 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
11426 function.
11427
114282008-03-04 Jason Rumney <jasonr@gnu.org>
11429
11430 * makefile.w32-in: Always include w32font.c in the build.
11431 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
11432
114332008-03-04 Andreas Schwab <schwab@suse.de>
11434
11435 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
11436 (versionclean): Likewise.
11437
114382008-03-04 Juanma Barranquero <lekktu@gmail.com>
11439
11440 * .cvsignore: Add oo.
11441
114422008-03-03 Andreas Schwab <schwab@suse.de>
11443
11444 * coding.c (decode_coding_object): Inhibit gap shrinking while
11445 decoding in place.
11446
114472008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
11448
11449 * w32term.c: Remove unused include "gnu.h".
11450 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
11451
11452 * gnu.h: Rename to ...
11453 * emacs-icon.h: ... this.
11454 * xterm.c: Use emacs-icon.h instead of gnu.h.
11455 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
11456
114572008-03-03 Juanma Barranquero <lekktu@gmail.com>
11458
11459 * w32font.c: Include math.h.
11460
114612008-03-03 Jason Rumney <jasonr@gnu.org>
11462
11463 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
11464 Compute options separately.
11465 (w32font_open_internal): Set glyph_idx before caching metrics.
11466
11467 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
11468 Define if system headers don't.
11469 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
11470 (w32font_encode_char): Don't declare here.
11471
11472 * w32font.c (Quniscribe, QCformat): New symbols.
11473 (syms_of_w32font): Define them.
11474 (w32font_has_char): Indicate uncertainty.
11475 (w32font_encode_char): Encode as glyph point. Make static.
11476 (recompute_cached_metrics): New function.
11477 (w32font_open_internal): Use it. Set font to use glyph points
11478 initially. Set format based on type of font.
11479 (w32font_text_extents, w32font_draw): Optionally use glyph points.
11480 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
11481 on it. Set format based on information available here.
11482 (add_font_entity_to_list): Identify backend based on opentype_only.
11483
114842008-03-02 Andreas Schwab <schwab@suse.de>
11485
11486 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
11487
11488 * coding.c (decode_coding_big5, produce_chars):
11489 Fix typos in last change.
11490
114912008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
11492
11493 * gnu.h: New icon.
11494
114952008-03-02 Kenichi Handa <handa@m17n.org>
11496
11497 * coding.c (decode_coding_utf_8): When eol-type of CODING is
11498 `dos', don't decode '\r' if that is the last in the source.
11499 (decode_coding_utf_16, decode_coding_emacs_mule)
11500 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11501 (decode_coding_raw_text, decode_coding_charset): Likewise.
11502 (produce_chars): Don't decode EOL here. Use EMACS_INT.
11503
115042008-03-01 Jason Rumney <jasonr@gnu.org>
11505
11506 * w32font.c (w32font_full_name): Report point size for scalable fonts.
11507
115082008-03-01 Kim F. Storm <storm@cua.dk>
11509
11510 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
11511
115122008-03-01 Jason Rumney <jasonr@gnu.org>
11513
11514 * w32font.c (w32font_full_name): New function.
11515 (w32font_open_internal): Use it.
11516
115172008-03-01 Kim F. Storm <storm@cua.dk>
11518
11519 * dispnew.c (line_draw_cost): Fix invalid glyph check.
11520
115212008-03-01 Jason Rumney <jasonr@gnu.org>
11522
11523 * font.c (font_unparse_fcname): Increase len when style is a symbol.
11524
115252008-03-01 Jan Djärv <jan.h.d@swipnet.se>
11526
11527 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
11528 xg_frame_resized when the event is for the edit widget.
11529
11530 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
11531
11532 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
11533 set_char_size.
11534 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
11535 operations on widgets here. Just set frame size if needed.
11536 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
11537 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
11538 (x_wm_set_size_hint): Set size hints on the edit widget only, not
11539 the whole frame.
11540 (xg_create_tool_bar): Move attachment of the tool bar to
11541 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
11542 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
11543
115442008-03-01 Jason Rumney <jasonr@gnu.org>
11545
11546 * w32fns.c (w32_msg_pump): Disable debug code.
11547
115482008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11549
11550 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
11551
115522008-02-29 Chong Yidong <cyd@stupidchicken.com>
11553
11554 * xdisp.c (next_overlay_string): Don't set
11555 overlay_strings_at_end_processed_p if we're currently reading from
11556 a display string.
11557
115582008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
11559
11560 * xdisp.c (get_overlay_strings_1): Fix typo.
11561
115622008-02-29 Chong Yidong <cyd@stupidchicken.com>
11563
11564 * xdisp.c (get_overlay_strings_1): Add missing argument type.
11565
115662008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
11567
11568 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
11569
11570 * xdisp.c (display_mode_element): Cancel the previous change.
11571 (decode_mode_spec): Likewise.
11572 (handle_auto_composed_prop): Don't make composition if it->string
11573 is a string.
11574
115752008-02-27 Kim F. Storm <storm@cua.dk>
11576
11577 * lisp.h (GLYPH): Change type from int to struct with separate char
11578 and face_id members.
11579 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
11580 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
11581 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
11582 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
11583 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
11584 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
11585 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
11586 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
11587 handle new Lisp glyph code encoding, either an integer or a cons.
11588
11589 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
11590 (GLYPH_ALIAS): Delete.
11591 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
11592 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
11593 (GLYPH_FROM_CHAR): Replace macro by ...
11594 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
11595
11596 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
11597 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
11598 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
11599 (GLYPH_INVALID_P): New macro.
11600 (spec_glyph_lookup_face): Update prototype.
11601
11602 * dispnew.c (line_draw_cost): Adapt to new glyph type.
11603 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
11604 new glyph code encoding.
11605 (spec_glyph_lookup_face): No return value; update passed glyph instead.
11606 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
11607
11608 * xdisp.c (get_next_display_element, next_element_from_display_vector):
11609 Adapt to new glyph type and new glyph code encoding.
11610
11611 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
11612
11613 * indent.c (current_column, current_column_1, Fmove_to_column)
11614 (compute_motion): Adapt to new glyph code encoding.
11615
11616 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
11617
116182008-02-27 Chong Yidong <cyd@stupidchicken.com>
11619
11620 * process.c (wait_reading_process_output): Check for window
11621 changes caused by timers.
11622 Suggested by Johan Bockgård.
11623
116242008-02-27 Glenn Morris <rgm@gnu.org>
11625
11626 * emacs.c (USAGE1): Add `--disable-font-backend'.
11627
116282008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
11629
11630 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
11631 is made to the buffer.
11632
116332008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11634
11635 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
11636 (face_at_string_position):
11637 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
11638 (face_at_string_position):
11639 * xdisp.c (display_string, next_overlay_change):
11640 * buffer.h (overlays_at):
11641 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
11642 Update callers.
11643
116442008-02-26 Chong Yidong <cyd@stupidchicken.com>
11645
11646 * editfns.c (Fformat): Doc fix.
11647
116482008-02-26 Juanma Barranquero <lekktu@gmail.com>
11649
11650 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
11651 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
11652 (Ffont_otf_alternates, Fquery_font): Doc fixes.
11653
116542008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11655
11656 * buffer.c (Fbuffer_swap_text): New function.
11657 (syms_of_buffer): Defsubr it.
11658
116592008-02-25 Chong Yidong <cyd@stupidchicken.com>
11660
11661 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11662
116632008-02-25 Jason Rumney <jasonr@gnu.org>
11664
11665 * w32font.c (w32font_draw): Draw one character at a time when padding.
11666
116672008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11668
11669 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11670 Handle a nil arg. Use run_window_configuration_change_hook.
11671 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11672 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11673 Use run_window_configuration_change_hook.
11674
116752008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11676
11677 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11678 1-pixel width.
11679
116802008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11681
11682 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11683 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11684 if the glyph in the font is zero pixel with.
11685
11686 * dispextern.h (struct glyph_string): New member padding_p.
11687
11688 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11689
11690 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11691
11692 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11693
11694 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11695
11696 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11697
116982008-02-25 Jason Rumney <jasonr@gnu.org>
11699
11700 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11701
117022008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11703
11704 Allow fine-grained image-cache flushing.
11705 * dispextern.h (struct image): Add `dependencies' field.
11706 (clear_image_caches): Change arg to Lisp_Object.
11707 * image.c (make_image): Initialize `dependencies' field.
11708 (clear_image_cache): Change arg to allow fine-grained flushing.
11709 Perform the flush even if image-cache-eviction-delay is nil.
11710 (clear_image_caches): Change arg to Lisp_Object.
11711 (Fclear_image_cache): Expand meaning of the argument.
11712 (mark_image): Mark `dependencies' field.
11713 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11714 (lface_hash): Use XHASH rather than XFASTINT.
11715 (face_at_buffer_position): Fix int -> EMACS_INT position.
11716 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11717 (select_frame_for_redisplay): Remove code duplication.
11718 (redisplay_internal): Adapt arg to call to clear_image_caches.
11719
117202008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11721
11722 * s/vms4-0.h:
11723 * s/vms4-2.h:
11724 * s/vms4-4.h:
11725 * s/vms5-5.h: Remove, unused.
11726
11727 * s/irix5-2.h:
11728 * s/irix6-0.h:
11729 * s/riscos5.h:
11730 * s/mach-bsd4-3.h:
11731 * m/mips4.h: Remove files for obsolete systems.
11732
11733 * Makefile.in:
11734 * filelock.c:
11735 * unexmips.c:
11736 * m/hp9000s300.h:
11737 * m/iris4d.h:
11738 * s/aix3-1.h:
11739 * s/hpux.h:
11740 * s/msdos.h:
11741 * s/usg5-0.h:
11742 * s/usg5-2-2.h:
11743 * s/usg5-2.h:
11744 * s/usg5-3.h: Remove references to obsolete variables.
11745
11746 * s/irix5-0.h: Remove, move all the contents ...
11747 * s/irix6-5.h: ... here. Simplify.
11748 * config.in: Regenerate.
11749
117502008-02-24 Jason Rumney <jasonr@gnu.org>
11751
11752 * w32term.c (x_draw_glyph_string_background): Clear the background
11753 manually when cleartype is in use.
11754 (x_draw_glyph_string_foreground): Draw text transparently when
11755 cleartype is in use.
11756
11757 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11758 a font into it unless we have to.
11759
117602008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11761
11762 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11763 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11764
aac0c6e3
MR
117652008-02-18 Jason Rumney <jasonr@gnu.org>
11766
11767 * w32fns.c (Fw32_shell_execute): Encode parameters.
11768
117692008-02-09 Eli Zaretskii <eliz@gnu.org>
11770
11771 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11772
117732008-02-05 Juanma Barranquero <lekktu@gmail.com>
11774
11775 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11776
117772008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11778
11779 * xterm.c (x_set_offset): Don't change the gravity if
11780 CHANGE_GRAVITY is -1.
11781
117822008-02-23 Chong Yidong <cyd@stupidchicken.com>
11783
11784 * fileio.c (auto_save_error_occurred): New var.
11785 (auto_save_error): Set it.
11786 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11787 error occurred.
11788
117892008-02-23 Eli Zaretskii <eliz@gnu.org>
11790
11791 * w32.c (globals_of_w32): Add initializations for
11792 g_b_init_get_sid_sub_authority and
11793 g_b_init_get_sid_sub_authority_count.
11794
117952008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11796
11797 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11798 (font_parse_xlfd): Use them for sanity check.
11799 (Finternal_set_font_style_table): Make sure the table is bijective.
11800
11801 Consolidate the image_cache to the terminal struct.
11802 * termhooks.h (P_): Remove redundant def.
11803 (struct terminal): New field `image_cache'.
11804 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11805 of FRAME_X_IMAGE_CACHE.
11806 * xterm.h (struct x_display_info): Remove image_cache field.
11807 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11808 * w32term.h (struct w32_display_info): Remove image_cache field.
11809 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11810 * macterm.h (struct mac_display_info): Remove image_cache field.
11811 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11812 * xterm.c (x_term_init):
11813 * w32term.c (w32_term_init):
11814 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11815 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11816 Remove declarations.
11817 (clear_image_caches, mark_image_cache): New declarations.
11818 * xfaces.c (clear_face_cache):
11819 * xdisp.c (redisplay_internal): Use clear_image_caches.
11820 * image.c (clear_image_cache): Don't check that a frame is on
11821 a window-system before checking if it shares the same cache.
11822 (clear_image_caches): New function.
11823 (Fclear_image_cache): Use it.
11824 (mark_image): Move from allo.c.
11825 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11826 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11827 (mark_object): Don't call mark_image_cache for frames.
11828 (mark_terminals): Call mark_image_cache.
11829
11830 * lisp.h (Fdelete_terminal): Declare.
11831
11832 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11833 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11834 wrong_type_argument.
11835
118362008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11837
11838 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11839 malayalam.el, and tamil.el. Add sinhala.el.
11840
118412008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11842
11843 * xterm.c (x_connection_closed): Consolidate identical tests.
11844 (x_delete_terminal): Don't crash if called via x_connection_closed.
11845
118462008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11847
11848 * xdisp.c (decode_mode_spec): New arg string.
11849 (display_mode_element): Adjust for the above change.
11850
118512008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11852
11853 * callint.c (Fcall_interactively): Use AREF.
11854
118552008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11856
11857 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11858
118592008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11860
11861 * xfns.c (Fx_show_tip): Set string to " " if empty.
11862
118632008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11864
11865 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11866 with Qt.
11867
118682008-02-17 Kenichi Handa <handa@m17n.org>
11869
11870 * ftfont.c (ftfont_shape): Return Lispy number.
11871
11872 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11873 for GCs.
11874 (Finternal_set_font_selection_order): Call font_update_sort_order
11875 only when enable_font_backend is set.
11876 (realize_x_face): Set face->font_info to that of default face only
11877 when enable_font_backend is set.
11878
11879 * xdisp.c (handle_composition_prop): Set it->c to the fist
11880 character of the composed region.
11881 (fill_composite_glyph_string): Set base_face->font_info to
11882 s->font_info. Get a face for ascii from base_face->ascii_face.
11883 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11884 with a face already decided.
11885 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11886 non-negative.
11887 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11888 call font_prepare_composition unconditionally.
11889
11890 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11891
11892 * xterm.h (struct x_display_info): New member font.
11893
11894 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11895 (x_set_mouse_face_gc, x_new_font): Likewise.
11896 (x_term_init): Setup display_info->font.
11897 (x_delete_terminal): Free display_info->font.
11898
11899 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11900
11901 * ftxfont.c (ftxfont_default_fid): Delete it.
11902 (ftxfont_open): Set xfont->fid to 0.
11903 (ftxfont_end_for_frame): Clear data specific to the frame and the
11904 font-driver.
11905
11906 * xftfont.c (xftfont_default_fid): Delete it.
11907 (xftfont_open): Set xfont->fid to 0.
11908
11909 * fontset.c (FONTSET_OBJLIST): New macro.
11910 (fontset_find_font): Update font-object list of the fontset.
11911 (free_realized_fontset): New function.
11912 (free_face_fontset): Call free_realized_fontset.
11913 (Ffont_info): Call font_close_object only when enable_font_backend
11914 is set.
11915
11916 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11917 [HAVE_NTGUI]: Include w32term.h.
11918 [MAC_OS]: Include macterm.ch.
11919 (font_otf_ValueRecord): Use make_number.
11920 (font_finish_cache): Fix handling of reference count.
11921 (font_clear_cache): Update num_fonts.
11922 (font_open_entity): Update smallest_char_width and
11923 smallest_font_height of the frame.
11924 (font_close_object): Update num_fonts.
11925 (Fclear_font_cache): Fix finding the target cache data.
11926
119272008-02-16 Glenn Morris <rgm@gnu.org>
11928
11929 * fontset.c (Finternal_char_font): Fix compilation warning.
11930
119312008-02-16 Eli Zaretskii <eliz@gnu.org>
11932
11933 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11934 instead of char arrays. Enlarge the size of array passed to
11935 get_token_information.
11936
11937 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11938 warnings.
11939
119402008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11941
11942 * .gdbinit: Don't set `args', it breaks gdb --args.
11943
119442008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11945
11946 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11947 within a narrowed buffer.
11948
119492008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11950
11951 * coding.c (decode_coding_object, encode_coding_object):
11952 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11953
119542008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11955
11956 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11957 hardcoding 1.
11958 (detect_coding_system):
11959 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11960 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11961 * insdel.c (insert_from_gap):
11962 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11963 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11964 (string_to_multibyte):
11965 * character.c (chars_in_text, multibyte_chars_in_text):
11966 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11967
11968 * character.h (FETCH_STRING_CHAR_ADVANCE)
11969 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11970 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11971 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11972
11973 * casefiddle.c (casify_region): Only call after-change and composition
11974 functions on the part of the region that was changed.
11975
11976 * keyboard.c (read_avail_input):
11977 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11978
119792008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11980
11981 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11982 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11983
119842008-02-11 Juanma Barranquero <lekktu@gmail.com>
11985
11986 * w32menu.c (push_submenu_start, push_submenu_end)
11987 (push_left_right_boundary, push_menu_pane, push_menu_item):
11988 * keyboard.c (read_key_sequence): Don't pass args with side effects
11989 to AREF, it fails when compiling with -DENABLE_CHECKING.
11990
119912008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11992
11993 * Makefile.in (${lispsource}international/charprop.el):
11994 Delete this target.
11995
11996 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11997 emacs-unicode-2.
11998
119992008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
12000
12001 * terminal.c (Fdelete_terminal): Clean up the `force' path.
12002
120032008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12004
12005 * frame.c (Qnoelisp): New symbol.
12006 (syms_of_frame): Initialize it.
12007 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
12008 harmless Elisp code, from a strong `force' from x_connection_closed.
12009 * frame.h (Qnoelisp): Declare.
12010 * xterm.c (x_connection_closed): Pass `noelisp'.
12011
12012 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
12013 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
12014 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
12015 rather than `int' for the type of `type'.
12016
120172008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
12018
12019 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
12020
12021 * Makefile.in (GNUC): Remove support for gcc-1.x.
12022
120232008-02-10 Richard Stallman <rms@gnu.org>
12024
12025 * lisp.h (ASET): Use AREF, not ASLOT.
12026
120272008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
12028
12029 * lisp.h (ASET): Check bounds.
12030
120312008-02-10 Glenn Morris <rgm@gnu.org>
12032
12033 * buffer.c (mode-name): Doc fix.
12034
120352008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12036
12037 * Makefile.in:
12038 * emacs.c:
12039 * gmalloc.c:
12040 * keyboard.c:
12041 * lisp.h:
12042 * m/ibm370aix.h:
12043 * process.c:
12044 * regex.c:
12045 * s/hpux.h:
12046 * sysdep.c:
12047 * sysselect.h:
12048 * systty.h:
12049 * unexec.c:
12050 * w32term.c:
12051 * xsmfns.c:
12052 * xterm.c: Remove code that deals with obsolete variables.
12053
12054 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
12055
12056 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
12057 nothing else needs it anymore.
12058
120592008-02-09 Eli Zaretskii <eliz@gnu.org>
12060
12061 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
12062 instead of unibyte_char_to_multibyte.
12063
120642008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
12065
12066 * s/gnu-linux.h: Remove commented out code.
12067
12068 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
12069
12070 * Makefile.in: Update what RMS says about using autoconf.
12071 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
12072 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
12073 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
12074 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
12075
120762008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
12077
12078 * keymap.c (Fkey_description): Move side effect outside of macro call.
12079
12080 * xfaces.c (Finternal_make_lisp_face):
12081 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
12082
12083 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
12084 (syms_of_fontset): Use ASET.
12085
12086 * fns.c (concat): Move side effect outside of macro call.
12087 (hash_clear): Use ASET.
12088
120892008-02-08 Richard Stallman <rms@gnu.org>
12090
12091 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
12092 If FORCE, and frame has a surrogate minibuffer for another frame,
12093 delete the other frame first.
12094
120952008-02-07 Timo Savola <timo.savola@iki.fi>
12096
12097 * xterm.c (x_detect_focus_change): Handle embed client message.
12098 (handle_one_xevent): Ditto.
12099 (handle_one_xevent): If embedded and we get a button press/release,
12100 request focus.
12101 (xembed_set_info, xembed_send_message): New functions.
12102 (x_make_frame_visible): Call xembed_set_info if embedded.
12103 (x_make_frame_invisible): Call xembed_set_info if embedded.
12104 (x_term_init): Initialize Xatom_XEMBED.
12105 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
12106 (x_iconify_frame): Ditto.
12107
12108 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
12109 (enum xembed_info, enum xembed_message, enum xembed_focus)
12110 (enum xembed_modifier, enum xembed_accelerator): New.
12111 (xembed_set_info, xembed_send_message): Declare.
12112 (FRAME_X_EMBEDDED_P): New.
12113
12114 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
12115 gtk_plug_new.
12116
12117 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
12118 window ID of a frame.
12119 (x_window): Reparent frame if embedded.
12120 (Fx_create_frame): Don't set border width if embedded.
12121
12122 * emacs.c (USAGE3): Add --parent-id.
12123 (standard_args): Ditto.
12124
121252008-02-07 Jan Djärv <jan.h.d@swipnet.se>
12126
12127 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
12128
121292008-02-07 Jim Meyering <meyering@redhat.com>
12130
12131 Use "do...while (0)", not "if (1)...else" in macro definitions.
12132 The latter provokes a warning from gcc about the empty else, when
12133 followed by ";". Also, without that trailing semicolon, it would
12134 silently swallow up any following statement.
12135 * syntax.h (SETUP_SYNTAX_TABLE)
12136 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
12137 * buffer.h (DECODE_POSITION): Likewise.
12138 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
12139 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
12140 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
12141 (FETCH_CHAR_ADVANCE): Likewise.
12142 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
12143
121442008-02-07 Jim Meyering <meyering@redhat.com>
12145
12146 * lread.c [lint]: Don't include <sys/inode.h>.
12147
121482008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
12149
12150 * xselect.c (x_handle_dnd_message):
12151 * xmenu.c (digest_single_submenu, xmenu_show):
12152 * xdisp.c (with_echo_area_buffer_unwind_data)
12153 (format_mode_line_unwind_data, unwind_format_mode_line)
12154 (display_menu_bar):
12155 * eval.c (Ffetch_bytecode):
12156 * doc.c (store_function_docstring):
12157 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
12158 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
12159 * buffer.c (add_overlay_mod_hooklist): Use ASET.
12160
121612008-02-07 Kenichi Handa <handa@m17n.org>
12162
12163 * ftxfont.c (ftxfont_open): Don't set
12164 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
12165
12166 * ftfont.c (ftfont_open): Fix previous change.
12167
121682008-02-06 Jason Rumney <jasonr@gnu.org>
12169
12170 * w32font.c (w32font_text_extents): Fill in lbearing metric.
12171 Use cached metrics for ASCII characters.
12172 (w32font_open_internal): Don't set font's owning_frame.
12173 Cache metrics for ASCII characters.
12174
12175 * w32font.h (struct w32font_info): Add ascii_metrics.
12176 Remove owning_frame.
12177
121782008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
12179
12180 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
12181 to negative value.
12182
12183 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
12184
12185 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
12186
12187 * charset.c (syms_of_charset): Set QCtest and Qeq.
12188
121892008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
12190
12191 * process.c (Fstart_process):
12192 * callproc.c (Fcall_process): Handle the case where
12193 Funhandled_file_name_directory returns nil.
12194
12195 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
12196 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
12197 * font.c (check_gstring): Use them and AREF to access the vector before
12198 we know it's really a gstring.
12199 (Ffont_shape_text): Fix typo.
46e722a9 12200 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
12201
12202 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
12203 Declare.
12204
12205 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
12206
122072008-02-05 Jason Rumney <jasonr@gnu.org>
12208
12209 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
12210 Set smallest_font_height and smallest_char_width in display info.
12211
122122008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
12213
12214 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
12215
122162008-02-05 Miles Bader <miles@gnu.org>
12217
12218 * xfaces.c (get_lface_attributes, merge_named_face)
12219 (lookup_named_face, lookup_derived_face, realize_named_face):
12220 Revert 2008-02-01 change by cyd@stupidchicken.com.
12221
122222008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
12223
12224 * fontset.c (Ffontset_info): Handle the case of inhibitting the
12225 fallback fonts.
12226 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
12227
122282008-02-04 Jason Rumney <jasonr@gnu.org>
12229
12230 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
12231 set full_name.
12232 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
12233
122342008-02-03 Jason Rumney <jasonr@gnu.org>
12235
12236 * makefile.w32-in (OBJ1): Include font.o here.
12237 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
12238
122392008-02-02 Jason Rumney <jasonr@gnu.org>
12240
12241 * makefile.w32-in (temacs): Bump EMHEAP to 21.
12242
122432008-02-01 Jason Rumney <jasonr@gnu.org>
12244
12245 * s/cygwin.h: Define VIRT_ADDR_VARIES.
12246
12247 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
12248
122492008-02-01 Andreas Schwab <schwab@suse.de>
12250
12251 * Makefile.in (shortlisp, lisp): Update for rename of
12252 ../lisp/language/myanmar.el.
12253
122542008-02-01 Chong Yidong <cyd@stupidchicken.com>
12255
12256 * xfaces.c (get_lface_attributes): Delete function.
12257 (merge_named_face, lookup_named_face, lookup_derived_face)
12258 (realize_named_face): Call lface_from_face_name directly, and use
12259 the fact that merge_face_vectors does not alter its FROM argument.
12260
122612008-02-01 Jason Rumney <jasonr@gnu.org>
12262
12263 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
12264 input in the default locale. Handle non-Unicode multibyte input.
12265
122662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12267
12268 * fontset.c (reorder_font_vector): Exclude nil elements from the
12269 font group. Don't try multiple fonts.
12270 (fontset_font): Adjust for the above change.
12271 (Finternal_char_font): Return nil if the found font doesn't
12272 contain the character ch.
12273
12274 * Makefile.in (lisp, shortlisp): Add cham.el.
12275
122762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12277
12278 * font.h (FONTP): Make it return 1 also for a font-object.
12279
12280 * .gdbinit (xfontset): New function.
12281
12282 * font.c (font_find_for_lface): Check if the character C is
12283 supported or not only for the first font.
12284
12285 * fontset.c (reorder_font_vector): Fix typo.
12286 (fontset_find_font): Don't add a font-spec specifying a script.
12287 Use 0 (not Qt) for the indication of empty font-group. Change the
12288 format of RFONT-DEF. Return Qt if no font in the font-group
12289 support the character.
12290 (fontset_font): Adjust for the above change. If no font was
12291 found the character, remember that.
12292 (face_for_char): Adjust for the change of RFONT-DEF.
12293 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
12294 no font for the target.
12295 (Finternal_char_font): Adjust for the change of RFONT-DEF.
12296
122972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12298
12299 * font.c (font_load_for_face): Handle the case that the font in
12300 face->lface is a string.
12301
123022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12303
12304 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
12305
123062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12307
12308 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
12309 Fix previous change. If the frame is not on a window system,
12310 signal an error.
12311
123122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12313
12314 * coding.c (decode_coding_object, encode_coding_object): Adjust
12315 marker positions after conversion.
12316
12317 * lisp.h (struct Lisp_Marker): New member need_adjustment.
12318
123192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12320
12321 * font.c (font_find_for_lface): Fix the handling of the return
12322 value of font_has_char.
12323 (Ffont_shape_text): Fix previous change.
12324
12325 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
12326 (fontset_ref_and_range): Delete it.
12327 (fontset_find_font): Call char_table_ref_and_range instead of
12328 FONTSET_REF_AND_RANGE.
12329 (make_fontset): Don't setup font groups of Latin here.
12330 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
12331 (new_fontset_from_font): Make the specified font the default for
12332 all Latin characters.
12333
123342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12335
12336 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
12337 is on a window system before accessing the fontset of the frame.
12338
123392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12340
12341 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
12342
12343 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
12344 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
12345
12346 * font.c (Ffont_shape_text): If the font driver doesn't have a
12347 shaper function, make zero-width glyphs to have at least one-pixel
12348 width. Fix setting of `to' field of glyphs.
12349
123502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12351
12352 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
12353 glyphs.
12354
12355 * font.h (struct font_driver): Improve docstring of member `shape'.
12356
123572008-02-01 Kenichi Handa <handa@m17n.org>
12358
12359 * composite.c (syms_of_composite): Fix docstring of
12360 auto-composition-function.
12361
12362 * font.h (LGLYPH_SIZE): New macro.
12363
12364 * font.c (Ffont_fill_gstring): Stop filling when a character not
12365 supported by the font is found.
12366 (Ffont_shape_text): When a shape callback function returns nil,
12367 try at most two more times with larger gstring.
12368 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
12369
12370 * xdisp.c (handle_auto_composed_prop): Change the argument to
12371 auto-composition-function.
12372
12373 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
12374 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
12375 Lispy glyph and store it in the lgstring.
12376
12377 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
12378
12379 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
12380
123812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12382
12383 * font.c (Ffont_shape_text): Avoid unnecessary composition.
12384
12385 * fontset.c (Vfont_encoding_charset_alist): New variable.
12386 (syms_of_fontset): DEFVAR it.
12387 (reorder_font_vector, fontset_find_font): Optimize for the case of
12388 no need of reordering.
12389 (face_for_char): Map the charset property by
12390 Vfont_encoding_charset_alist.
12391
123922008-02-01 Jason Rumney <jasonr@gnu.org>
12393
12394 * w32font.c (logfonts_match): Don't check adstyle here.
12395 (font_matches_spec): Check here against physical font instead.
12396 (add_font_entity_to_list): Avoid some substitutions.
12397
12398 * font.c (font_parse_fcname): Default weight and slant to normal.
12399 (font_score): Prefer normal fonts if weight or slant unspecified.
12400 (font_score) [WINDOWSNT]: Scale weight difference down to closer
12401 match freetype scores.
12402
124032008-02-01 Jason Rumney <jasonr@gnu.org>
12404
12405 * w32font.c (w32font_text_extents): Don't use the frame stored in the
12406 font, as it may have been deleted.
12407 (w32_enumfont_pattern_entity): Map generic family to adstyle using
12408 most common hyphenless variation.
12409 (logfonts_match): Check generic family.
12410 (font_matches_spec): Don't check generic family here.
12411 (fill_in_logfont): Set generic family based on adstyle.
12412
12413 * w32font.h (w32font_get_cache): Update declaration.
12414
124152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12416
12417 * ftfont.c (ftfont_get_cache): Adjust the argument type.
12418
12419 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
12420 If none of the new drivers are available, call font_update_drivers
12421 with the old drivers.
12422
12423 * w32font.c (w32font_get_cache): Adjust the argument type.
12424
12425 * xfont.c (xfont_get_cache): Adjust the argument type.
12426
12427 * font.h (struct font_driver): Change argument type of get_cache.
12428
12429 * xftfont.c (xftfont_start_for_frame): Delete prototype.
12430
12431 * font.c (Ffont_get): Fix arguments to Fassoc.
12432 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
12433 (font_clear_cache): New function.
12434 (font_list_entities, font_matching_entity): Use font_get_cache.
12435 (font_update_drivers): Call font_clear_cache when finishing a driver.
12436
12437 * fontset.c (fontset_find_font): Fix previous change.
12438
124392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12440
12441 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
12442 dpyinfo->font_table.
12443 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
12444 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
12445
12446 * font.c (font_at): Handle the case that the arg C is negative.
12447 Handle the unibyte case.
12448 (Ffont_at): Call font_at with the arg C -1.
12449
12450 * xdisp.c (handle_auto_composed_prop): Don't get a character at
12451 the position here, and call font_at with the arg C -1.
12452 Don't check the range of the existing composition at the point.
12453
124542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12455
12456 * fontset.c (fontset_add): New args charset_id and family.
12457 Change caller.
12458 (load_font_get_repertory, fontset_find_font): Assume that
12459 font_spec is always a font-spec object.
12460 (Fset_fontset_font): Always store a font-spec object in a fontset.
12461
12462 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
12463 instead of get_property_and_range.
12464
124652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12466
12467 * xftfont.c (struct xftfont_info): Delete the member ft_face.
12468 (xftfont_open): Don't keep locking face.
12469 (xftfont_close): Don't unlock face.
12470 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
12471
12472 * fontset.c (fontset_find_font): Don't prefer a font of
12473 supplementary charset.
12474
124752008-02-01 Kenichi Handa <handa@m17n.org>
12476
12477 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
12478 script, langsys_tag to langsys, new member script.
12479 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 12480 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
12481 listing to the script specified in that property. Fix arg to
12482 OTF_check_features.
12483
124842008-02-01 Jason Rumney <jasonr@gnu.org>
12485
12486 * w32font.h: New file.
12487
12488 * w32font.c: Include it.
12489 (struct w32font_info): Add owning_frame field. Move to w32font.h.
12490 (w32font_open): Set owning_frame.
12491 (w32font_text_extents): Use owning_frame.
12492 (struct font_callback_data): Add opentype_only field.
12493 (add_font_entity_to_list): Use it to filter fonts.
12494 Don't check against full name.
12495 (w32font_list_internal): New function.
12496 (w32font_list): Use it.
12497 (w32font_match_internal): New function.
12498 (w32font_match): Use it.
12499 (w32font_open_internal): New function.
12500 (w32font_open): Use it.
12501 (w32font_get_cache, w32font_close, w32font_has_char)
12502 (w32font_encode_char, w32font_text_extents, w32font_draw):
12503 Make non-static.
12504
12505 * makefile.w32-in (w32font.o): Depend on w32font.h.
12506
125072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12508
12509 * charset.c (Fdefine_charset_internal): Record a supplementary
12510 charset at the tail of Vcharset_order_list.
12511
12512 * font.c (Ffont_shape_text): Fix the return value.
12513
12514 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
12515
12516 * xdisp.c (handle_auto_composed_prop): Fix previous change.
12517
125182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12519
12520 * ftfont.c (struct OpenTypeSpec): New struct.
12521 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
12522 (ftfont_get_open_type_spec): New function.
12523 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
12524
12525 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
12526
125272008-02-01 Jason Rumney <jasonr@gnu.org>
12528
12529 * w32font.c (add_font_entity_to_list): Compare only the beginning
12530 of full name.
12531
125322008-02-01 Kenichi Handa <handa@m17n.org>
12533
12534 * xdisp.c (handle_auto_composed_prop): Simplify the code.
12535 Never return HANDLED_RECOMPUTE_PROPS.
12536
125372008-02-01 Kenichi Handa <handa@m17n.org>
12538
12539 * font.c (font_gstring_produce): Delete it.
12540
12541 * composite.h (COMPOSITION_METHOD):
12542 Handle COMPOSITION_WITH_GLYPH_STRING.
12543
125442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12545
12546 * xfont.c (Qx): Delete.
12547 (syms_of_xfont): Don't initialize Qx.
12548
12549 * composite.h (enum composition_method):
12550 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
12551
125522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12553
12554 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
12555 (choose_face_font): Accept new form of font-spec.
12556
12557 * frame.h (font_driver_list): Declare it unconditionally.
12558 (struct frame): Define members font_driver_list and font_data_list
12559 unconditionally.
12560
12561 * fontset.c: Include "font.h" unconditionally.
12562 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
12563 (Fset_fontset_font): Accept a font-spec object.
12564
12565 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
12566 PIXEL_SIZE part a wild card.
12567
12568 * dispextern.h (struct glyph_string): Define members clip and
12569 num_clips unconditionally.
12570 (struct face): Define members font_info and extra unconditionally.
12571
12572 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
12573 ftfont_info only when HAVE_LIBOTF is defined.
12574
125752008-02-01 Andreas Schwab <schwab@suse.de>
12576
12577 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
12578 and end.
12579
125802008-02-01 Jason Rumney <jasonr@gnu.org>
12581
12582 * w32font.c (w32font_driver): Add new fields.
12583
125842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12585
12586 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
12587 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
12588 (LIBES): Add @M17N_FLT_CFLAGS@.
12589
12590 * composite.c (compose_text): Don't treat the new style
12591 composition specially.
12592
12593 * emacs.c (main): Call syms_of_font unconditionally.
12594
12595 * font.h (FONT_ENTITY_NOT_LOADABLE)
12596 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
12597 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
12598 (struct font_driver): New member shape.
12599 (font_registry_charsets): Extern it.
12600 (font_find_for_lface, font_prepare_composition): Adjust prototype.
12601 (font_otf_capability, font_drive_otf): Delete their externs.
12602
12603 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
12604 (font_charset_alist, font_registry_charsets): Move from xfont.c
12605 and rename.
12606 (font_prop_validate_otf): New function.
12607 (font_property_table): Register it for QCotf.
12608 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
12609 (font_drive_otf): Delete.
12610 (font_prepare_composition): New arg F. Adjust for the change of
12611 lispy gstring.
12612 (font_find_for_lface): New arg C.
12613 (font_load_for_face): Adjust for the change of font_find_for_lface.
12614 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
12615 lispy gstring.
12616 (Ffont_shape_text): New function.
12617 (Fopen_font): If the font size is not given, use 12-pixel.
12618 (Ffont_at): New arg STRING.
12619 (syms_of_font): Initalize font_charset_alist.
12620 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
12621 conditionally.
12622
12623 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
12624 fonts of the same font-spec. Change the format of RFONT-DEF.
12625 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
12626 Adjust for the change of RFONT-DEF.
12627 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
12628
12629 * ftfont.h: New file.
12630
12631 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
12632 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12633 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12634 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
12635 font_otf_capability and font_drive_otf, set ftfont_shape.
12636 (ftfont_list): Adjust for the change of :otf property value.
12637 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
12638 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
12639 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
12640 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12641 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
12642 (otf_gstring, gstring, m17n_flt_initialized): New variables.
12643
12644 * w32term.c (x_draw_composite_glyph_string_foreground):
12645 Adjust for the change of lispy gstring.
12646
12647 * xdisp.c (handle_composition_prop): Adjust for the change of
12648 lispy gstring. Call a function for auto-composition with the
12649 third arg it->window.
12650 (fill_composite_glyph_string): Adjust for the change of lispy string.
12651 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
12652
12653 * xfaces.c (set_font_frame_param): Adjust for the change of
12654 font_find_for_lface.
12655
12656 * xfont.c (x_font_charset_alist): Move to font.c and rename.
12657 (xfont_registry_charsets): Likewise. Change caller.
12658 (syms_of_xfont): Don't handle x_font_charset_alist.
12659
12660 * xftfont.c: Include "ftfont.h".
12661 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12662 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12663 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12664 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12665 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12666 Set xftfont_driver.shape to xftfont_shape.
12667
12668 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12669 the change of lispy gstring.
12670
126712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12672
12673 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12674
126752008-02-01 Jason Rumney <jasonr@gnu.org>
12676
12677 * w32font.c (w32font_draw): Fill background manually.
12678
126792008-02-01 Jason Rumney <jasonr@gnu.org>
12680
12681 * font.c (Qfontp): Remove unused symbol.
12682 (QCantialias): New symbol.
12683 (syms_of_font): Define it.
12684 (font_property_table): Set a validator for QCantialias.
12685
12686 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12687 Define if not already.
12688 (QCfamily): Share with xfaces.c.
12689 (Qstandard, Qsubpixel, Qnatural): New symbols.
12690 (syms_of_w32font): Define them. Don't define QCfamily here.
12691 (w32_antialias_type, lispy_antialias_type): New functions.
12692 (w32_enumfont_pattern_entity): New arg requested_font.
12693 Set antialias parameter if non-default was requested.
12694 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12695
126962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12697
12698 * lread.c (read1): Undo the previous change.
12699
127002008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12701
12702 * frame.c (Fdelete_frame): Call font_update_drivers only when
12703 USE_FONT_BACKEND is defined.
12704
127052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12706
12707 * font.h (struct font_bitmap): New member bits_per_pixel.
12708 (struct font_driver): New members start_for_frame and end_for_frame.
12709 (struct font_data_list): New struct.
12710 (font_put_frame_data, font_get_frame_data): Extern them.
12711
12712 * frame.h (struct frame): New member font_data_list.
12713
12714 * font.c (font_update_drivers): Call driver->start_for_frame and
12715 driver->end_for_frame at proper timings.
12716 (font_put_frame_data, font_get_frame_data): New functions.
12717 (Ffont_spec): Add usage in the docstring.
12718
12719 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12720 (Fdelete_frame): Call font_update_drivers.
12721
12722 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12723 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12724 (xftfont_get_xft_draw): New function.
12725 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12726 (xftfont_end_for_frame): New function.
12727 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12728
12729 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12730 Change argument. Cache GCs in the per-frame data.
12731 (struct ftxfont_frame_data): New struct.
12732 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12733 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12734 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12735 (ftxfont_end_for_frame): New function.
12736 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12737
12738 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12739
127402008-02-01 Kenichi Handa <handa@m17n.org>
12741
12742 * xselect.c (Vselection_coding_system)
12743 (Vnext_selection_coding_system): Delete them.
12744 (syms_of_xselect): Don't declare selection-coding-system and
12745 next-selection-coding-system. They are declared in select.el.
12746
127472008-02-01 Jason Rumney <jasonr@gnu.org>
12748
12749 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12750
12751 * w32fns.c: Include imm.h.
12752 (get_composition_string_fn, get_ime_context_fn): New optional
12753 system functions.
12754 (globals_of_w32fns): Load them from imm32.dll.
12755 (ignore_ime_char): New flag.
12756 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12757 WM_IME_ENDCOMPOSITION messages.
12758
12759 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12760 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12761
127622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12763
12764 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12765 (READCHAR_REPORT_MULTIBYTE): New macro.
12766 (readchar): New 2nd arg MULTIBYTE.
12767 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12768 Make symbol's name multibyte according to the multibyteness of the
12769 source.
12770
127712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12772
12773 * xfaces.c (face_for_overlay_string): Call lookup_face with
12774 correct arguments (fix of synching with the trunk).
12775
127762008-02-01 Kenichi Handa <handa@m17n.org>
12777
12778 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12779 (font_prop_validate_non_neg, font_prop_validate_spacing):
12780 Delete argument prop_index.
12781 (font_property_table): Change arguments to validater. Change Callers.
12782 (font_lispy_object): Delete.
12783 (font_at): Use font_find_object instead fo font_lispy_object.
12784
127852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12786
12787 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12788 and file names.
12789
127902008-02-01 Jason Rumney <jasonr@gnu.org>
12791
12792 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12793 (font_matches_spec): Remove debug output.
12794 (add_font_entity_to_list): Avoid using substituted fonts.
12795
127962008-02-01 Jason Rumney <jasonr@gnu.org>
12797
12798 * doc.c (Fsnarf_documentation):
12799 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12800
128012008-02-01 Miles Bader <miles@gnu.org>
12802
12803 * dispextern.h (struct glyph_row): Only define "clip" field if
12804 HAVE_WINDOW_SYSTEM is defined.
12805
128062008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12807
12808 Fix up multi-tty merge.
12809
12810 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12811 and indentation.
12812
12813 * xfaces.c (free_realized_face, clear_face_gcs):
12814 Include font_done_for_face in the input_blocked section, just in case.
12815
12816 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12817 (get_char_face_and_encoding): Undo last change and remove the *other*
12818 duplicate definition (i.e. keep the one that's better scoped and that
12819 includes code for the font-backend).
12820
12821 * terminal.c (create_terminal): Default keyboard_coding to
12822 `no-conversion' and terminal_coding to `undecided'.
12823
12824 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12825
12826 * fontset.c (free_realized_fontsets): Check that the table entry does
12827 contain a fontset before trying to compare it to `base'.
12828
12829 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12830 syms_of_charset, and syms_of_coding earlier because init_window_once
12831 now needs Vcoding_system_hash_table to be setup.
12832
12833 * coding.h (default_buffer_file_coding): Remove.
12834
12835 * coding.c (default_buffer_file_coding): Remove.
12836 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12837 than ->symbol, and use the terminal-local coding system.
12838 (syms_of_coding): Don't setup the coding-systems that are not
12839 terminal-local.
12840 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12841
12842 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12843 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12844
12845 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12846 in chartab.c and were re-added here by mistake.
12847 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12848
12849 * doc.c (Fsnarf_documentation):
12850 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12851 src to etc.
12852
12853 * ChangeLog.10: Add mistakenly removed entry.
12854
128552008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12856
12857 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12858
128592008-02-01 Miles Bader <miles@gnu.org>
12860
12861 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12862 Add extra args to FACE_FOR_CHAR.
12863
128642008-02-01 Kenichi Handa <handa@m17n.org>
12865
12866 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12867 in sequence.
12868
12869 * chartab.c (map_sub_char_table, map_char_table): If the range
12870 contains just one character, call the function with that character
12871 even if the depth is not 3.
12872
128732008-02-01 Jason Rumney <jasonr@gnu.org>
12874
12875 * w32font.c (w32font_text_extents): Calculate metrics for the
12876 whole string.
12877
128782008-02-01 Jason Rumney <jasonr@gnu.org>
12879
12880 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12881
128822008-02-01 Jason Rumney <jasonr@gnu.org>
12883
12884 * w32term.c (x_set_glyph_string_clipping): Use
12885 get_glyph_string_clip_rects.
12886 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12887 Adjust for the change of struct glyph_string.
12888
12889 * w32font.c (w32font_draw): Do clipping here.
12890
128912008-02-01 Kenichi Handa <handa@m17n.org>
12892
12893 * xftfont.c (xftfont_draw): Adjust for the change of struct
12894 glyph_string.
12895
12896 * xterm.c (x_set_glyph_string_clipping): Use
12897 get_glyph_string_clip_rects.
12898 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12899 Adjust for the change of struct glyph_string.
12900
12901 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12902 the resulting clip(s}.
12903 (expose_overlaps): Add arg r. Change callers. Set it to
12904 row->clip temporarily.
12905 (expose_window): Redraw rows overlapping the exposed area.
12906
12907 * dispextern.h (struct glyph_row): New member clip.
12908 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12909 clip_height, new member clip, and num_clips.
12910
129112008-02-01 Kenichi Handa <handa@m17n.org>
12912
12913 * data.c (Fchar_or_string_p): Fix docstring.
12914
129152008-02-01 Kenichi Handa <handa@m17n.org>
12916
12917 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12918 create a temporary XftDraw object.
12919
129202008-02-01 Kenichi Handa <handa@m17n.org>
12921
12922 * font.c (Ffontp): Fix docstring.
12923
12924 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12925 strong evidence of ISO-2022.
12926
129272008-02-01 Kenichi Handa <handa@m17n.org>
12928
12929 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12930 SYNTAX_ENTRY_FOLLOW_PARENT.
12931
129322008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12933
12934 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12935 its type.
12936 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12937 Update to the new type of weak_hash_tables and next_weak.
12938
12939 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12940 a plain C pointer to Lisp_Hash_Table.
12941
12942 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12943 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12944 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12945 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12946 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12947 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12948 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12949 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12950 (GC_EQ): Remove since they've been identical to their non-GC_
12951 alter-egos ever since the markbit was eradicated.
12952
12953 * alloc.c:
12954 * buffer.c:
12955 * buffer.h:
12956 * data.c:
12957 * fileio.c:
12958 * filelock.c:
12959 * fns.c:
12960 * frame.h:
12961 * lisp.h:
12962 * macterm.c:
12963 * print.c:
12964 * process.c:
12965 * w32fns.c:
12966 * w32menu.c:
12967 * w32term.c:
12968 * xfns.c:
12969 * xmenu.c:
12970 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12971
129722008-02-01 Kenichi Handa <handa@m17n.org>
12973
12974 * chartab.c (map_sub_char_table): Make it work for the top-level
12975 char-table. Fix handling of parent char-table.
12976 (map_char_table): Adjust for the above change.
12977
129782008-02-01 Jason Rumney <jasonr@gnu.org>
12979
12980 * w32font.c (Qgdi): Rename from Qw32.
12981
129822008-02-01 Jason Rumney <jasonr@gnu.org>
12983
12984 * w32bdf.c (get_quoted_string): Make function static.
12985
129862008-02-01 Kenichi Handa <handa@m17n.org>
12987
12988 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12989 bigger ascent and descent than those of the font, use them as
12990 font's ascent and descent.
12991
129922008-02-01 Kenichi Handa <handa@m17n.org>
12993
12994 * Makefile.in (${lispsource}international/charprop.el): Move this
12995 target within "#ifdef HAVE_UNIDATA" and "#endif".
12996
129972008-02-01 Kenichi Handa <handa@m17n.org>
12998
12999 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
13000 (shortlisp): Add ../lisp/language/tai-viet.el.
13001
130022008-02-01 Ulrich Mueller <ulm@gentoo.org>
13003
13004 * Makefile.in (${lispsource}international/charprop.el): Depend on
13005 temacs${EXEEXT}.
13006
130072008-02-01 Jason Rumney <jasonr@gnu.org>
13008
13009 * w32font.c (w32font_close): Delete the GDI font object.
13010
13011 * w32menu.c: Include character.h.
13012
13013 * w32proc.c: Likewise.
13014
13015 * w32select.c: Likewise.
13016
13017 * makefile.w32-in (w32proc.o): Depend on character.h.
13018
130192008-02-01 Jason Rumney <jasonr@gnu.org>
13020
13021 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
13022
13023 * w32menu.c (syms_of_w32menu): Likewise.
13024
13025 * w32proc.c (syms_of_ntproc): Likewise.
13026
13027 * w32select.c (syms_of_w32select): Likewise.
13028
13029 * w32term.c (syms_of_w32term): Likewise.
13030
130312008-02-01 Jason Rumney <jasonr@gnu.org>
13032
13033 * w32font.c (w32font_draw): Delete brush after using it.
13034
130352008-02-01 Jason Rumney <jasonr@gnu.org>
13036
13037 * w32font.c (w32font_open): Don't set font_idx.
13038 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
13039 to font settings.
13040 (w32font_draw): Fill background explicitly.
13041
130422008-02-01 Jason Rumney <jasonr@gnu.org>
13043
13044 * w32term.c (w32_initialize): Don't call w32font_initialize.
13045
13046 * w32font.c (w32font_info): Remove subranges.
13047 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
13048 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
13049 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
13050 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
13051 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
13052 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
13053 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
13054 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
13055 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
13056 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
13057 New symbols.
13058 (font_callback_data): New struct.
13059 (w32font_list, w32font_match): Use it.
13060 (w32font_open): Don't populate subranges.
13061 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
13062 (w32font_encode_char): Always return unicode code-point as-is.
13063 (w32font_text_extents): Supply a transformation matrix to
13064 GetGlyphOutline. Never look up by glyph index. Avoid looping
13065 twice. Use unicode version of GetTexExtentPoint32 instead of
13066 glyph index version.
13067 (set_fonts_frame): Remove.
13068 (w32_enumfont_pattern_entity): Add frame parameter, use it to
13069 set frame parameter. Use backward compatible fake foundries.
13070 Save generic family in extra slot under QCfamily. Make width slot
13071 constant. Save QCspacing value. Save list of scripts instead of
13072 binary subranges.
13073 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
13074 (add_font_entity_to_list): Use font_callback_data struct. Filter
13075 unwanted fonts.
13076 (add_one_font_entity_to_list): Use font_callback_data struct.
13077 (w32_registry): Default to iso10646_1.
13078 (fill_in_logfont): Use dpi from extra slot. Don't bother with
13079 string font registries. Don't fill in font name if it is a generic
13080 family name, fill family instead. Use spacing, family and script
13081 extra info to fill pitch, family and charset fields.
13082 (list_all_matching_fonts): Use font_callback_data struct.
13083 (unicode_range_for_char): Remove.
13084 (font_supported_scripts): New function.
13085 (w32font_initialize): Remove.
13086 (syms_of_w32font): Update which symbols are defined.
13087
130882008-02-01 Jason Rumney <jasonr@gnu.org>
13089
13090 * font.c (font_pixel_size): Reverse assq_no_quit args.
13091
13092 * w32term.h (FONT_WIDTH): Report max width, not average.
13093 (FONT_MAX_WIDTH): Remove.
13094 (FONT_AVG_WIDTH): New macro.
13095
13096 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
13097 redefinition of FONT_WIDTH.
13098
13099 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
13100 (w32_cache_char_metrics): Use FONT_WIDTH.
13101
13102 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
13103
131042008-02-01 Jason Rumney <jasonr@gnu.org>
13105
13106 * w32font.c (w32font_open): Make lfHeight negative.
13107
13108 * w32fns.c (x_default_font_parameter): Use new style font name.
13109 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
13110
131112008-02-01 Jason Rumney <jasonr@gnu.org>
13112
13113 * w32font.c (QCsubranges): New symbol.
13114 (w32font_open, w32font_has_char): Get subranges from subproperty
13115 of extra.
13116 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
13117 (syms_of_w32font): Define :subranges symbol.
13118
13119 * font.c (font_put_extra): Expose externally.
13120
13121 * font.h (font_put_extra): Move declaration from font.c.
13122
13123 * font.c (Ffont_get): Use font driver to determine otf capability.
13124 (adjust_anchor): Check if driver defines anchor_point before using.
13125
13126 * w32font.c (w32font_open): Handle size, height and pixel_size better.
13127 (w32font_draw): Use options.
13128 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
13129 Fix detection of truetype fonts.
13130 (registry_to_w32_charset): Handle charsets other than iso8859-1
13131 expressed as lisp symbols.
13132 (w32_registry): Express charset as lisp symbol.
13133 (fill_in_logfont): Reverse pixel and point height logic.
13134 Don't set width here. Set quality to default.
13135
13136 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
13137 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
13138
13139 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13140 Remove redundant loop and allocation.
13141
13142 * makefile.w32-in (font.o, w32font.o): New objects.
13143 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
13144 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
13145
13146 * xdisp.c (fill_composite_glyph_string): Make the first arg to
13147 STORE_XCHARB a valid l-value.
13148
13149 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
13150 calculations for non-Truetype fonts.
13151 (x_draw_glyph_string): Sync with xterm.c.
13152 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
13153 Remove redundant code.
13154 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
13155
13156 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
13157 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
13158
13159 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
13160 (x_to_w32_charset, w32_to_x_charset): Expose externally.
13161
13162 * w32font.c: New file for w32 font backend.
13163
131642008-02-01 Kenichi Handa <handa@m17n.org>
13165
13166 * term.c: Don't include "buffer.h" twice.
13167
131682008-02-01 Kenichi Handa <handa@m17n.org>
13169
13170 * character.c (Funibyte_string): New function.
13171 (syms_of_character): Defsubr it.
13172
131732008-02-01 Jason Rumney <jasonr@gnu.org>
13174
13175 * w32term.c [USE_FONT_BACKEND]:
13176 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
13177 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
13178 (x_draw_glyph_string, x_draw_glyph_string_foreground)
13179 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
13180 (x_free_frame_resources): Sync with xterm.c.
13181
131822008-02-01 Andreas Schwab <schwab@suse.de>
13183
13184 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
13185 char-table size.
13186
131872008-02-01 Kenichi Handa <handa@m17n.org>
13188
13189 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
13190
131912008-02-01 Kenichi Handa <handa@m17n.org>
13192
13193 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
13194 font_otf_gpos, add font_drive_otf.
13195
13196 * fontset.c (fontset_find_font): Pay attention to font size
13197 specified for a font.
13198 (reorder_font_vector): Check contents of font_def.
13199
13200 * font.c (struct otf_list): Delete it.
13201 (otf_list): Make it a lisp variable.
13202 (otf_open): Use lispy otf_list.
13203 (generate_otf_features): Rename from parse_gsub_gpos_spec.
13204 (check_otf_features): New function.
13205 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
13206 New functions.
13207 (font_drive_otf): New function merging font_otf_gsub and
13208 font_otf_gpos.
13209 (font_open_for_lface): New arg spec. Change argument order.
13210 (font_load_for_face): Adjust for the change of font_open_for_lface.
13211 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
13212 Ffont_otf_gpos.
13213 (syms_of_font): Staticpro otf_list. Delete defsubr of
13214 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
13215
13216 * xfaces.c (set_font_frame_param): Adjust for the change of
13217 font_open_for_lface.
13218
13219 * font.h (font_open_for_lface): Adjust prototype.
13220 (struct font_driver): Delete members otf_gsub and otf_gpos, add
13221 member otf_drive.
13222 (font_otf_gsub, font_otf_gpos): Delete externs.
13223 (font_drive_otf): Extern it.
13224
132252008-02-01 Kenichi Handa <handa@m17n.org>
13226
13227 * font.c (font_at): If the window W is not on a window system,
13228 return Qnil.
13229
13230 * coding.c (produce_chars, encode_coding): Don't call
13231 insert_from_gap if no characters to produce.
13232
132332008-02-01 Kenichi Handa <handa@m17n.org>
13234
13235 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
13236 Fclear_face_cache.
13237
13238 * xfaces.c (face_for_font): Check also face->font==font->font.font.
13239
132402008-02-01 Miles Bader <miles@gnu.org>
13241
13242 * emacs.c (main): Change default value of `enable_font_backend' to 1.
13243 Parse "--disable-font-backend" option.
13244 (standard_args): Add "--disable-font-backend" option.
13245
132462008-02-01 Kenichi Handa <handa@m17n.org>
13247
13248 * fontset.c (fontset_find_font): New function.
13249 (fontset_font): Use fontset_find_font.
13250 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
13251 Register the specified font for all Latin characters.
13252 (new_fontset_from_font): Register the specified font for all Latin
13253 characters.
13254 (dump_fontset): For a realized fontset, include the base fontset
13255 name in the returned vector.
13256
132572008-02-01 Kenichi Handa <handa@m17n.org>
13258
13259 * character.h (CHAR_STRING): Cast C to unsigned on calling
13260 char_string.
13261
13262 * character.c (char_string): Type of arg C changed to unsigned.
13263 Signal an error if C is an invalid character code.
13264
13265 * editfns.c (general_insert_function, Fchar_to_string):
13266 Use CHARACTERP, not INTEGERP.
13267
132682008-02-01 Kenichi Handa <handa@m17n.org>
13269
13270 * character.h (MIN_MULTIBYTE_LEADING_CODE)
13271 (MAX_MULTIBYTE_LEADING_CODE): New macros.
13272
13273 * regex.c (analyse_first): Fix for multibyte characters in "case
13274 charset:" and "case categoryspec:".
13275
132762008-02-01 Andreas Schwab <schwab@suse.de>
13277
13278 * Makefile.in (LIBES): Move standard libraries to the end.
13279
132802008-02-01 Kenichi Handa <handa@m17n.org>
13281
13282 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
13283 nonzero, don't shrink the buffer nextb.
13284
13285 * buffer.h (struct buffer_text): New member inhibit_shrinking.
13286
13287 * coding.c (coding_alloc_by_making_gap): New arg offset.
13288 (alloc_destination): Call coding_alloc_by_making_gap with the arg
13289 offset.
13290 (decode_coding_iso_2022): Update coding->safe_charsets.
13291 (decode_coding_gap): Temporarily set
13292 current_buffer->text->inhibit_shrinking to 1.
13293
132942008-02-01 Kenichi Handa <handa@m17n.org>
13295
13296 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
13297 indexing into elements of s->cmp and s->char2b.
13298
132992008-02-01 Juanma Barranquero <lekktu@gmail.com>
13300
13301 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
13302
133032008-02-01 Kenichi Handa <handa@m17n.org>
13304
13305 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
13306 target_multibyte instead of multibyte.
13307 (re_match_2_internal): Call bcmp_translate with target_multibyte.
13308 (bcmp_translate): Change the argument name from multibyte to
13309 target_multibyte.
13310
133112008-02-01 Kenichi Handa <handa@m17n.org>
13312
13313 These changes are to compile a regexp into a pattern that can be
13314 used both for multibyte and unibyte targets.
13315
13316 * Makefile.in (search.o): Depend on charset.h.
13317
13318 * character.c (multibyte_char_to_unibyte_safe): New function.
13319
13320 * search.c: Include "charset.h".
13321 (compile_pattern_1): Delete argument multibyte. Don't set
13322 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
13323 (compile_pattern): Don't compare cp->buf.target_multibyte.
13324 Compare cp->buf.charset_unibyte.
13325 (compile_pattern): Set cp->buf.target_multibyte.
13326
13327 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
13328
13329 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
13330
13331 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
13332 multibyte. Change callers.
13333 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
13334 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
13335 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
13336 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
13337 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
13338 (regex_compile): Make the compiled pattern usable both for
13339 multibyte and unibyte targets.
13340 (analyse_first): Make the fastmap usable both for multibyte and
13341 unibyte targets.
13342 (TRANSLATE_VIA_MULTIBYTE): Delete.
13343 (re_match_2_internal): Pay attention to the case that the
13344 multibyteness of bufp and target may be different.
13345
133462008-02-01 Kenichi Handa <handa@m17n.org>
13347
13348 * xdisp.c (x_produce_glyphs): When a font is not found, make the
13349 empty box occupy at least one column width.
13350
133512008-02-01 Miles Bader <miles@gnu.org>
13352
13353 * Makefile.in: Remove redundant HAVE_XFT clause.
13354
133552008-02-01 Kenichi Handa <handa@m17n.org>
13356
13357 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
13358
133592008-02-01 Kenichi Handa <handa@m17n.org>
13360
13361 * fontset.c (Finternal_char_font): Fix for the case of POSITION
13362 being nil.
13363
133642008-02-01 Kenichi Handa <handa@m17n.org>
13365
13366 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
13367
133682008-02-01 Kenichi Handa <handa@m17n.org>
13369
13370 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
13371
133722008-02-01 Kenichi Handa <handa@m17n.org>
13373
13374 * search.c (simple_search): Fix previous change.
13375
133762008-02-01 Kenichi Handa <handa@m17n.org>
13377
13378 * xftfont.c (ftfont_font_format): Extern declaration.
13379
13380 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
13381
13382 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
13383 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
13384
13385 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
13386 (ftfont_font_format): Fix previous change.
13387
13388 * font.h (Ffont_xlfd_name): EXFUN it.
13389
13390 * font.c (font_parse_xlfd): Fix the array size of `f'.
13391 (register_font_driver): Use EQ to compare driver->type.
13392
13393 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
13394 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
13395 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
13396
133972008-02-01 Kenichi Handa <handa@m17n.org>
13398
13399 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
13400 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
13401
134022008-02-01 Kenichi Handa <handa@m17n.org>
13403
13404 * xfont.c (xfont_open): Set font->format.
13405
13406 * xftfont.c (xftfont_open): Set font->format.
13407
13408 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
13409 (ftfont_list): Include FC_FONTFORMAT in FcObject.
13410 (ftfont_open): Set font->format.
13411 (ftfont_font_format): New function.
13412
13413 * font.h (struct font): New member format.
13414
13415 * font.c (Qopentype): New variable.
13416 (syms_of_font): Defsym it.
13417 (Fquery_font): Change the format of the last element of the return
13418 value.
13419
134202008-02-01 Kenichi Handa <handa@m17n.org>
13421
13422 * xfns.c (xic_create_xfontset): Try the default fontset name as a
13423 last resort.
13424
134252008-02-01 Kenichi Handa <handa@m17n.org>
13426
13427 * coding.c (detect_coding_charset): Fix detection of multi-byte
13428 charset.
13429
134302008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
13431
13432 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
13433
134342008-02-01 Kenichi Handa <handa@m17n.org>
13435
13436 * xdisp.c (get_next_display_element): Set it->face_id for the
13437 first component of a composition.
13438 (x_produce_glyphs): Check if the font is changed or not for composition.
13439
134402008-02-01 Kenichi Handa <handa@m17n.org>
13441
13442 * fontset.c (Qlatin): New variable.
13443 (syms_of_fontset): Define it as a lisp symbol.
13444 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
13445
134462008-02-01 Kenichi Handa <handa@m17n.org>
13447
13448 * font.c (font_unparse_fcname): Pay attention to the case that
13449 some of font property is a null string.
13450
134512008-02-01 Kenichi Handa <handa@m17n.org>
13452
13453 * term.c: Include "composite.h".
13454 (encode_terminal_code): Output all components of composition.
13455 Check the size of encode_terminal_src.
13456 (produce_glyphs): For composition, call produce_composite_glyph.
13457 (append_composite_glyph, produce_composite_glyph): New functions.
13458
13459 * xdisp.c (x_produce_glyphs): In handling composition, if a font
13460 is not found, get font_info from the current ascii face.
13461
134622008-02-01 Kenichi Handa <handa@m17n.org>
13463
13464 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
13465 buffer-file-name to Qnil before calling insert_from_buffer.
13466
13467 * font.c (font_unparse_fcname): Pay attention to the case that
13468 foundry is a null string.
13469
134702008-02-01 Kenichi Handa <handa@m17n.org>
13471
13472 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
13473
13474 * font.c (Qunicode_sip): New variable.
13475 (syms_of_font): Declare it as a Lisp symbol.
13476
13477 * font.h (Qunicode_sip): Extern it.
13478
134792008-02-01 Kenichi Handa <handa@m17n.org>
13480
13481 * composite.c (get_composition_id): Pay attention to TAB component.
13482
13483 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
13484 TAB. Adjust for the change of s->char2b which always points to
13485 the first element of allocated memory.
13486
13487 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
13488
13489 * xdisp.c (handle_composition_prop): Set it->c to the first
13490 non-TAB component.
13491 (fill_composite_glyph_string): Change argument.
13492 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
13493 (x_produce_glyphs): Fix handling of left/right padding.
13494
134952008-02-01 Kenichi Handa <handa@m17n.org>
13496
13497 * coding.c (detect_coding_system): Fix for handling off
13498 inhibit_iso_escape_detection. Fix for the case that no coding
13499 system is defined for a specific coding category.
13500
135012008-02-01 Kenichi Handa <handa@m17n.org>
13502
13503 * font.c (font_matching_entity): Delete unused local var.
13504
13505 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
13506 opening a font.
13507
13508 * fileio.c (Finsert_file_contents): On recovering a file, assume
13509 Unix-like eol.
13510 (choose_write_coding_system): On auto-saving a file, force
13511 Unix-like eol.
13512
13513 * coding.c (setup_coding_system): Fix setting of
13514 coding->common_flags based on eol_type.
13515 (coding_inherit_eol_type): If PARENT is not nil, be sure to
13516 inherit from it.
13517
135182008-02-01 Kenichi Handa <handa@m17n.org>
13519
13520 * alloc.c (NSTATICS): Increas to 0x600.
13521
135222008-02-01 Kenichi Handa <handa@m17n.org>
13523
13524 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
13525 (ftfont_list): Don't check :name property.
13526 (ftfont_match): New function.
13527 (ftfont_pattern_entity): If the pattern doesn't contain
13528 FC_SPACING, don't assume FC_MONO.
13529
13530 * font.h (struct font_driver): New member `match'.
13531 (font_update_drivers): Adjust prototype.
13532
13533 * font.c (font_parse_fcname, font_parse_name): Don't change :name
13534 property of FONT.
13535 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
13536 them unconditionally.
13537 (font_matching_entity): New function.
13538 (font_open_by_name): Try font_matching_entity if exact match is
13539 not found.
13540 (font_update_drivers): Delete the arg FONT. Return a list of
13541 actually used backends. Don't free faces, font caches here.
13542 Don't store data in frame parameters. Don't call x_set_font.
13543 (Ffont_spec): Store :name property as is.
13544 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
13545 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
13546 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
13547 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
13548 Call font->driver->otf_gsub instead of font_otf_gsub.
13549
13550 * frame.c (x_set_font_backend): Do more works that were done in
13551 font_update_drivers before.
13552
13553 * xfont.c (xfont_match): New function.
13554 (xfont_driver): Set xfont_driver.match to xfont_match.
13555 (xfont_draw): Set font in GC if necessary.
13556
13557 * ftxfont.c (ftxfont_match): New function.
13558 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
13559
13560 * xftfont.c (xftfont_match): New function.
13561 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
13562
135632008-02-01 Kenichi Handa <handa@m17n.org>
13564
13565 * font.h (struct font): New member scalable.
13566 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
13567 (font_otf_gsub): Adjust prototype.
13568
13569 * font.c (font_otf_capability): Fix handling of the default langsys.
13570 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
13571 Check the contents of SPEC.
13572 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
13573 (check_gstring): New function.
13574 (REPLACEMENT_CHARACTER): New macro.
13575 (font_otf_gsub): New arg alternate_subst. Be sure to set all
13576 glyph codes of GSTRING.
13577 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
13578 (font_prepare_composition): Set cmp->glyph_len.
13579 (font_open_entity): Set font->scalable.
13580 (Ffont_get): Handle :otf property.
13581 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
13582 functions.
13583 (Fquery_font): Use font->font.full_name.
13584 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
13585 Sfont_otf_alternates.
13586
13587 * ftfont.c (ftfont_open): Set font->font.full_name and
13588 font->font.name properly. Fix calculation of font->font.height
13589 and font->min_width.
13590
13591 * ftxfont.c (ftxfont_create_gcs): New function.
13592 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
13593 (ftxfont_draw_backgrond): Fix filling region.
13594 (ftxfont_default_fid): New function.
13595 (ftxfont_open): Set xfont->fid to the return value of
13596 ftxfont_default_fid.
13597 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
13598 (ftxfont_done_face): Free only GCs that are created by
13599 ftxfont_create_gcs.
13600 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
13601
13602 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
13603 Clip to src->width, etc (not src->clip_XXX).
13604
13605 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
13606 FontBackend frame parameter.
13607
136082008-02-01 Kenichi Handa <handa@m17n.org>
13609
13610 * font.h (struct font_driver_list): New member `on'.
13611 (Fclear_font_cache): EXFUN it.
13612 (font_update_drivers): Extern it.
13613
13614 * font.c (font_unparse_fcname): Fix typo (swidth->width).
13615 (font_list_entities): Check driver_list->on.
13616 (register_font_driver): Initalize `on' member to 0.
13617 (font_update_drivers): New function.
13618 (Fclear_font_cache): Check driver_list->on.
13619
13620 * frame.h (Qfont_backend): Extern it.
13621 (x_set_font_backend): Extern it.
13622
13623 * frame.c (Qfont_backend): New variable.
13624 (frame_parms): New element for font-backend.
13625 (x_set_font_backend): New function.
13626
13627 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
13628 FontBackend frame parameter.
13629 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
13630 x_set_font_backend.
13631
13632 * xfont.c (xfont_list): Don't try listing by :name property if the
13633 name is not for XLFD.
13634
136352008-02-01 Kenichi Handa <handa@m17n.org>
13636
13637 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
13638 (LGLYPH_SET_TO): New macros.
13639 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
13640 element of G is vector or not.
13641 (font_at): Extern it.
13642
13643 * font.c: Include window.h.
13644 (font_lispy_object): New function.
13645 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
13646 end of valid glyph.
13647 (font_close_object): Fix getting (struct font *).
13648 (font_at): New function.
13649 (Ffont_get): If FONT is a font-object, get entity from it.
13650 (Ffont_make_gstring): Initialize elements of glyphs with nil.
13651 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
13652 range check.
13653 (Ffont_at): New function.
13654 (syms_of_font): Defsubr Sfont_at.
13655
13656 * xdisp.c (it_props): Move the entry for Qauto_composed to just
13657 before the entry for Qcomposition.
13658 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
13659 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
13660 the font in gstring.
13661 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13662 LGLYPH_FORM (g) to detect the end of valid glyph.
13663 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13664 we are composing with gstring.
13665
13666 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13667 Check if adjustment is vector or not.
13668
13669 * Makefile.in (font.o): Make it depends on window.h.
13670
136712008-02-01 Kenichi Handa <handa@m17n.org>
13672
13673 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13674 adjustment is vector or not.
13675
136762008-02-01 Miles Bader <miles@gnu.org>
13677
13678 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13679
136802008-02-01 Kenichi Handa <handa@m17n.org>
13681
13682 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13683 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13684 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13685
13686 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13687 (DEVICE_DELTA): Fix typo.
13688 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13689 LGLYPH format.
13690
13691 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13692 the change of LGLYPH format.
13693
136942008-02-01 Kenichi Handa <handa@m17n.org>
13695
13696 * ftfont.c (ftfont_list): Fix typo.
13697 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13698
136992008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13700
13701 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13702
13703 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13704 xftface_info is non-NULL.
13705
137062008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13707
13708 * ftfont.c (ftfont_list): Move misplaced #endif.
13709
137102008-02-01 Kenichi Handa <handa@m17n.org>
13711
13712 * ftfont.c (ftfont_list): Pay attention to the case that
13713 FC_CAPABILITY is not defined.
13714
137152008-02-01 Kenichi Handa <handa@m17n.org>
13716
13717 * xftfont.c (xftfont_open): Set charset related members to -1.
13718
13719 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13720 QCname.
13721 (ftfont_open): Set charset related members to -1.
13722
13723 * fontset.c (Votf_script_alist): New variable.
13724 (syms_of_fontset): Initialize it.
13725 (fontset_font): Delete unused variable.
13726
13727 * fontset.h (Votf_script_alist): Extern it.
13728
13729 * font.c (font_find_for_lface): Optimize code.
13730
13731 * font.h (font_close_object, font_merge_old_spec): Extern them.
13732
137332008-02-01 Kenichi Handa <handa@m17n.org>
13734
13735 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13736 (syms_of_font): Initialize them.
13737 (font_pixel_size): Allow float value in dpi.
13738 (font_prop_validate_type): Delete.
13739 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13740 Change caller.
13741 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13742 (font_prop_validate_extra): Delete.
13743 (font_prop_validate_spacing): New function.
13744 (font_property_table): Add elements for all known properties.
13745 (get_font_prop_index): Rename from check_font_prop_name. New
13746 argument FROM. Change caller.
13747 (font_prop_validate): Validate all known properties.
13748 (font_put_extra): Delete argument force. Change caller.
13749 (font_expand_wildcards): Make it static. Fix the way of shrinking
13750 the possible range.
13751 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13752 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13753 Change caller.
13754 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13755 (font_parse_fcname): Delete argument merge. Fix parsing of point
13756 size. Don't validate properties values here. Change caller.
13757 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13758 (font_open_by_name): Delete unused variable.
13759 (Ffont_spec): Likewise. Validate property values.
13760 (Ffont_match_p): New function.
13761
13762 * font.h (QCscalable): Extern it.
13763 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13764
13765 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13766
13767 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13768 (xfont_list_pattern): New function.
13769 (xfont_list): Use xfont_list_pattern.
13770
137712008-02-01 Kenichi Handa <handa@m17n.org>
13772
13773 * font.h (Flist_fonts): EXFUN it.
13774
137752008-02-01 Jason Rumney <jasonr@gnu.org>
13776
13777 * w32term.c (w32_initialize): Add back smoothing_type and
13778 smoothing_enabled definitions.
13779
137802008-02-01 Kenichi Handa <handa@m17n.org>
13781
13782 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13783 s->face->font on determining underline position.
13784
137852008-02-01 Kenichi Handa <handa@m17n.org>
13786
13787 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13788 (font_has_char): Accept font-object too.
13789 (font_find_for_lface): Try at first with a size specified in face.
13790
137912008-02-01 Kenichi Handa <handa@m17n.org>
13792
13793 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13794 font_open_by_name.
13795
137962008-02-01 Kenichi Handa <handa@m17n.org>
13797
13798 * font.h (QCspacing, QCdpi): Extern them.
13799 (enum font_spacing): New enum.
13800 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13801
13802 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13803 (QCspacing, QCdpi): New variables.
13804 (syms_of_font): Initialize them.
13805 (font_pixel_size): New function.
13806 (font_put_extra): New function.
13807 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13808 in FONT_EXTRA.
13809 (font_parse_fcname): Handle enumerated values (e.g. bold).
13810 Fix handling font size. Add QCname property that contains only
13811 unknown properties.
13812 (font_score): Change argument. Change caller. Pay attention to
13813 FONT_PIXEL_SIZE_QUANTUM.
13814 (font_sort_entites, font_list_entities, font_find_for_lface)
13815 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13816 (Ffont_spec): Add QCname property that contains only unknown properties.
13817
13818 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13819 include weight in listing pattern, instead check weight of each
13820 listed font. Don't include scalable in pattern. Pay attention to
13821 FONT_PIXEL_SIZE_QUANTUM.
13822
138232008-02-01 Kenichi Handa <handa@m17n.org>
13824
13825 * font.c (font_parse_fcname): Fix parsing of point-size.
13826 (font_unparse_fcname): Produce symbolic names for style properties.
13827 (font_list_entities): Handle float size correctly.
13828 (font_open_by_name): Prefer `normal' property values if the name
13829 doesn't specify them.
13830
13831 * fontset.c (Finternal_char_font): Use font_get_name, not
13832 Ffont_xlfd_name.
13833
13834 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13835 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13836 pattern. Don't force scalable.
13837
13838 * xftfont.c (xftfont_open): For generating a name, start from
13839 96-byte buffer.
13840
138412008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13842
13843 * frame.h (x_new_fontset2): Fix prototype.
13844
138452008-02-01 Kenichi Handa <handa@m17n.org>
13846
13847 * font.h (struct font_driver): Delete member parse_name.
13848 (font_match_p, font_get_spec, font_parse_fcname)
13849 (font_unparse_fcname): Extern them.
13850 (font_get_name): Adjust prototype.
13851
13852 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13853 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13854 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13855 unnecessary checks for weight, slant, and swidth.
13856 (font_parse_fcname): New function.
13857 (font_unparse_fcname): New function.
13858 (font_parse_name): New function.
13859 (font_match_p): New function.
13860 (font_get_name): Change return value to Lisp string.
13861 (font_get_spec): New function.
13862 (Qunspecified, Qignore_defface): Don't extern them.
13863 (font_find_for_lface): Assume that LFACE is fully specified.
13864 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13865 object, use it for FACE.
13866 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13867 driver->parse_name.
13868 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13869
13870 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13871 prototype.
13872
13873 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13874 argument F. Don't call Fnew_fontset. Instead, directly call
13875 make_fontset.
13876
13877 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13878
13879 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13880 of x_new_fontset2.
13881
13882 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13883 (Qsans__serif): New variables.
13884 (ftfont_generic_family_list): New variable.
13885 (syms_of_ftfont): Initialize the above variables.
13886 (ftfont_pattern_entity): Delete argument NAME.
13887 (ftfont_list_generic_family): New function.
13888 (ftfont_parse_name): Delete this function.
13889 (ftfont_list): Try generic family only when FcFontList found no font.
13890 (ftfont_list_family): Fix args to FcObjectSetBuild.
13891
13892 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13893 object in attrs[LFACE_FONT_INDEX].
13894 (set_lface_from_font_name): Cancel all changes for font-backend.
13895 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13896 function.
13897 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13898 font object in QCfont attribute.
13899 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13900 (realize_default_face) [USE_FONT_BACKEND]: Call
13901 set_lface_from_font_and_fontset.
13902
13903 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13904 "fixed", and signal error here if no suitable font was found.
13905
13906 * xfont.c (xfont_parse_name): Delete this function.
13907
13908 * xftfont.c (xftfont_open): Change coding style of error
13909 handling. Generate fontconfig's fontname pattern.
13910
13911 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13912 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13913
13914 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13915 Both args FONTSET and FONT_OBJECT must be existing ones.
13916
139172008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13918
13919 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13920
139212008-02-01 Kenichi Handa <handa@m17n.org>
13922
13923 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13924
13925 * font.h (struct font): Fix typo.
13926
13927 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13928 XLFD_XXX_INDEX.
13929 (enum xlfd_field_mask): New enum.
13930 (intern_font_field): Changed argument. Change caller. If digits
13931 are followed by non-digits, return a symbol.
13932 (font_expand_wildcards): New function.
13933 (font_parse_xlfd): Fix wildcard handling.
13934 (Ffont_spec): If :name is specified, reflect the info in the other
13935 properties.
13936
13937 * ftfont.c (ftfont_pattern_entity): Fix typo.
13938 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13939 locale.
13940
139412008-02-01 Kenichi Handa <handa@m17n.org>
13942
13943 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13944
13945 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13946 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13947 registry doesn't specify encoding part.
13948 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13949 (font_open_by_name): At first try parsing the name.
13950 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13951 as Lisp symbols.
13952
13953 * fontset.c (reorder_font_vector): Pay attention to the case that
13954 the 3rd element of font_def is nil.
13955 (fontset_font): For the default fontset, append one more fontset
13956 elements for a script-based font specification. Don't add script
13957 attribute on finding a font.
13958 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13959 font name.
13960 (fontset_ascii_font): If a font can't be opened, return nil.
13961
13962 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13963 (ftfont_pattern_entity): New function.
13964 (ftfont_get_cache): Assume that freetype_font_cache is already
13965 initialized.
13966 (ftfont_list): Handle the case that a file is specified in font
13967 name. Use ftfont_pattern_entity to generate entities.
13968 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13969 (syms_of_ftfont): Initialize freetype_font_cache.
13970
13971 * xftfont.c (xftfont_open): Make the font name fontconfig's
13972 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13973 (xftfont_close): Free font->font.name if not NULL.
13974
13975 * xfont.c (xfont_list): If script is specified for a font, return
13976 null_vector.
13977 (xfont_list_family): Declare argument type.
13978
13979 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13980 name, set LFACE_FONT (lface) to nil.
13981
13982 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13983 return Qnil.
13984
139852008-02-01 Kenichi Handa <handa@m17n.org>
13986
13987 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13988 (standard_args): Add "-enable-font-backend".
13989
139902008-02-01 Kenichi Handa <handa@m17n.org>
13991
13992 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13993 (struct xftdraw_list, xftdraw_list): Delete them.
13994 (register_xftdraw, check_xftdraw): Delete them.
13995 (xftfont_prepare_face): Don't call register_xftdraw.
13996 (xftfont_done_face): Don't call check_xftdraw.
13997 (xftfont_draw): Get background color only when with_background is
13998 nonzero.
13999
14000 * xfont.c (xfont_encode_char): Fix calculation of char2b.
14001
140022008-02-01 Kenichi Handa <handa@m17n.org>
14003
14004 These changes are for the new font handling codes.
14005
14006 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
14007 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
14008 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
14009 (FONTSRC, FONTOBJ): New variables.
14010 (obj): Add $(FONTOBJ).
14011 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
14012 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
14013 @LIBOTF_LIBS@.
14014 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
14015 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
14016
14017 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
14018
14019 * character.h (Vscript_representative_chars): Extern it.
14020
14021 * character.c (Vscript_representative_chars): New variable.
14022 (syms_of_character): Declare it as a Lisp variable.
14023
14024 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
14025 enable_font_backend is nonzero, accept the composition method
14026 COMPOSITION_WITH_GLYPH_STRING.
14027
14028 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
14029 enumeration COMPOSITION_WITH_GLYPH_STRING.
14030
14031 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
14032 members clip_x, clip_y, clip_width, and clip_height.
14033 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
14034
14035 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
14036 --enable-font-backend. Call syms_of_font.
14037
14038 * fns.c (assoc_no_quit): New function.
14039
14040 * fontset.h (FONT_INFO_FROM_FACE): New macro.
14041 (face_for_font, new_fontset_from_font)
14042 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
14043
14044 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
14045 (fontset_font, fontset_ascii, face_for_char)
14046 (make_fontset_for_ascii_face, Ffont_info)
14047 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
14048 is nonzero, use font-backend mechanism.
14049 (find_font_encoding): Make it non-static.
14050 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
14051 New functions.
14052
14053 * frame.h (struct frame): New members resx and resy.
14054 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
14055 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
14056
14057 * frame.c [USE_FONT_BACKEND]: Include "font.h".
14058 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
14059
14060 * lisp.h (assoc_no_quit): Extern it.
14061
14062 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
14063 Through out the file, use FONT_INFO_FROM_FACE instead of
14064 FONT_INFO_FROM_ID, use get_per_char_metric instead of
14065 rif->per_char_metric.
14066 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
14067 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
14068 (get_glyph_face_and_encoding, fill_composite_glyph_string)
14069 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14070 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
14071 nonzero, use font-backend mechanism.
14072 (get_per_char_metric): New function.
14073
14074 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
14075 (set_lface_from_font_name)
14076 (set_font_frame_param, free_realized_face)
14077 (prepare_face_for_display, clear_face_gcs)
14078 (Finternal_set_font_selection_order, realize_x_face)
14079 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
14080 font-backend mechanism.
14081 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
14082 (load_face_font) [USE_FONT_BACKEND]: Abort.
14083 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
14084 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
14085
14086 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
14087 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
14088 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
14089 nonzero, register all available font drivers. Call
14090 x_default_font_parameter for deciding a font.
14091 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
14092
14093 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
14094 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
14095 (x_set_glyph_string_clipping_exactly)
14096 (x_compute_glyph_string_overhangs)
14097 (x_draw_glyph_string_foreground)
14098 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
14099 (x_free_frame_resources) [USE_FONT_BACKEND]: If
14100 enable_font_backend is nonzero, use font-backend mechanism.
14101 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
14102
141032008-02-01 Kenichi Handa <handa@m17n.org>
14104
14105 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
14106 system_eol_type.
14107 (syms_of_coding): Initialize system_eol_type.
14108
14109 * process.c (Fset_process_coding_system): Inherit system's eol
14110 format if necessary.
14111
141122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14113
14114 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
14115
141162008-02-01 Kenichi Handa <handa@m17n.org>
14117
14118 * coding.c (decode_eol): Pay attention to buffer relocation in
14119 del_range_2.
14120 (decode_coding): Call decode_eol before restoring undo_list.
14121
141222008-02-01 Kenichi Handa <handa@m17n.org>
14123
14124 * charset.c (Fdefine_charset_internal): Fix setting of
14125 emacs_mule_bytes.
14126
141272008-02-01 Kenichi Handa <handa@m17n.org>
14128
14129 * keyboard.c (read_char): Check if C is a character or not before
14130 looking up Vkeyboard_translate_table.
14131
141322008-02-01 Kenichi Handa <handa@m17n.org>
14133
14134 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
14135 condition to terminate the loop.
14136
141372008-02-01 Kenichi Handa <handa@m17n.org>
14138
14139 * coding.c (produce_composition): Compare charbuf[i] instead of
14140 args[i] against 0.
14141 (Fterminal_coding_system): Use EQ to compare Lisp objects.
14142
141432008-02-01 Kenichi Handa <handa@m17n.org>
14144
14145 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
14146 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
14147 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
14148 detect_coding.
14149 (emacs_mule_char): Handle old style (Emacs 20) component character
14150 of a composition.
14151 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
14152 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
14153 composition rule.
14154 (decode_coding_emacs_mule): Handle invalid bytes correctly.
14155
141562008-02-01 Kenichi Handa <handa@m17n.org>
14157
14158 * coding.c (encode_coding_ccl): Allocate destination dynamically
14159 when necessary.
14160
141612008-02-01 Kenichi Handa <handa@m17n.org>
14162
14163 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
14164 the loop. When quitted, show a proper error message.
14165
141662008-02-01 Kenichi Handa <handa@m17n.org>
14167
14168 * xterm.c (x_set_glyph_string_clipping_exactly): Set
14169 src->clip_head and src->clip_tail temporarily instead of src->hl.
14170
14171 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
14172 character sequence.
14173 (Fccl_execute_on_string): Use ASET, not XSET.
14174
141752008-02-01 Kenichi Handa <handa@m17n.org>
14176
14177 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
14178
141792008-02-01 Kenichi Handa <handa@m17n.org>
14180
14181 * coding.c (decode_coding): Fix the condition of terminating the
14182 decoding loop.
14183
141842008-02-01 Kenichi Handa <handa@m17n.org>
14185
14186 * data.c (Faset): On setting a character bigger than 255 in a
14187 unibyte string, signal an error instead of make the string multibyte.
14188
141892008-02-01 Kenichi Handa <handa@m17n.org>
14190
14191 * charset.c (map_charset_chars): Fix for ascii-compatible charset
14192 made by a mapping table.
14193
141942008-02-01 Kenichi Handa <handa@m17n.org>
14195
14196 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
14197 not.
14198 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
14199 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
14200
14201 * xterm.c (x_draw_composite_glyph_string_foreground): Check
14202 s->face is NULL or not.
14203
142042008-02-01 Kenichi Handa <handa@m17n.org>
14205
14206 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
14207 (x_draw_glyph_string): Fix drawing of right_overhang and
14208 left_overhang around/on cursor.
14209
14210 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
14211
142122008-02-01 Kenichi Handa <handa@m17n.org>
14213
14214 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
14215
142162008-02-01 Kenichi Handa <handa@m17n.org>
14217
14218 * coding.c (Fdefine_coding_system_internal)
14219 (Fdefine_coding_system_alias): Avoid a duplicated element in
14220 Vcoding_system_alist.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
14225
14226 * coding.c (Qcoding_system_define_form): New variable.
14227 (syms_of_coding): Intern and staticpro it.
14228 (Fcoding_system_p): Check Qcoding_system_define_form.
14229 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
14230
14231 * coding.h (CODING_SYSTEM_P): If ID is not available, call
14232 Fcoding_system_p.
14233 (CHECK_CODING_SYSTEM): If ID is not available, call
14234 Fcheck_coding_system.
14235 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
14236 Try also Fcheck_coding_system.
14237
142382008-02-01 Kenichi Handa <handa@m17n.org>
14239
14240 * coding.c (code_conversion_restore): GCPRO arg.
14241
142422008-02-01 Kenichi Handa <handa@m17n.org>
14243
14244 * character.c (lisp_string_width): Check multibyteness of STRING.
14245
142462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14247
14248 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
14249 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
14250 (decode_mac_font_name): Use decode_coding_c_string instead of
14251 decode_coding.
14252 (x_load_font): Initialize fontp->fontset to -1. Set
14253 fontp->encoding_type.
14254
142552008-02-01 Kenichi Handa <handa@m17n.org>
14256
14257 * search.c (search_buffer): Give up BM search on case-fold-search
14258 if one of a target character has a case-equivalence of different
14259 byte length even if that target charcter is an ASCII.
14260 (simple_search): Fix calculation of byte length of matched text.
14261 (boyer_moore): Fix handling of case-equivalent multibyte characters.
14262
142632008-02-01 Kenichi Handa <handa@m17n.org>
14264
14265 * coding.c (decode_coding): Fix handling of invalid bytes.
14266
142672008-02-01 Kenichi Handa <handa@m17n.org>
14268
14269 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
14270 Unicode characters.
14271
142722008-02-01 Kenichi Handa <handa@m17n.org>
14273
14274 * coding.c (encode_coding_object): If a pre-write-conversion
14275 function makes a new buffer, kill it.
14276
142772008-02-01 Kenichi Handa <handa@m17n.org>
14278
14279 * coding.c (QCascii_compatible_p): New variable.
14280 (syms_of_coding): Initialize it.
14281 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
14282 calling string_char.
14283 (record_conversion_result): Add `default:' case.
14284 (coding_charset_list): Delete unused variable `coding_type'.
14285 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
14286 property in the plist of the coding system.
14287 (Fcoding_system_put): Check QCascii_compatible_p.
14288
142892008-02-01 Miles Bader <miles@gnu.org>
14290
14291 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
14292 removed calculation of frame `f', as it's now used.
14293
142942008-02-01 Kenichi Handa <handa@m17n.org>
14295
14296 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
14297 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
14298 (UNIDATA): New variable.
14299 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
14300 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
14301 $(RUN_TEMACS) unconditionally.
14302
143032008-02-01 Kenichi Handa <handa@m17n.org>
14304
14305 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
14306 (admindir): New variable.
14307 ($(lispsource)international/charprop.el): New target.
14308
143092008-02-01 Miles Bader <miles@gnu.org>
14310
14311 * character.c (chars-in-region): Remove obsolete function.
14312 (syms_of_character): Remove its initialization.
14313
143142008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
14315
14316 * w32select.c (validate_coding_system)
14317 (setup_windows_coding_system): New functions.
14318 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
14319 setup_windows_coding_system.
14320 (setup_config, Fw32_get_clipboard_data): Use
14321 validate_coding_system.
14322 (Fx_selection_exists): Move call to setup_config to a place
14323 where signals are allowed.
14324
14325 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
14326 (Fcheck_coding_system): Add declarations.
14327
143282008-02-01 Kenichi Handa <handa@m17n.org>
14329
14330 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
14331
143322008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14333
14334 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
14335 string as the second argument for x_new_fontset.
14336
143372008-02-01 Kenichi Handa <handa@m17n.org>
14338
14339 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
14340 (encode_coding_object): Use safe_call instead of call2.
14341
143422008-02-01 Kenichi Handa <handa@m17n.org>
14343
14344 * fontset.c (Fset_fontset_font): Check family element of a given vector.
14345
14346 * Makefile.in (lisp): Include charprop.el.
14347
143482008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14349
14350 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
14351 Not sure if it's unnecessary.
14352
143532008-02-01 Steven Tamm <steventamm@mac.com>
14354
14355 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
14356 some possibly unnecessary fontset checking code that crashed
14357 when creating a new frame.
14358
143592008-02-01 Kenichi Handa <handa@m17n.org>
14360
14361 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
14362 lookup_face.
14363
14364 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
14365
14366 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
14367
143682008-02-01 Kenichi Handa <handa@m17n.org>
14369
14370 * coding.c: Cancel the change done in HEAD on 2008-02-01.
14371 (coding_charset_list): New function.
14372
14373 * coding.h (coding_charset_list): Extern it.
14374
143752008-02-01 Kenichi Handa <handa@m17n.org>
14376
14377 * fontset.c (Fset_fontset_font): Call find_font_encoding with
14378 concatenation of family and registry.
14379
143802008-02-01 Kenichi Handa <handa@m17n.org>
14381
14382 * character.h (BYTE8_STRING): Fix typo.
14383
14384 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
14385 string to multibyte (sync to HEAD).
14386
14387 * casefiddle.c (casify_region): Handle changes in byte-length
14388 using replace_range_2 (sync to HEAD).
14389
143902008-02-01 Andreas Schwab <schwab@suse.de>
14391
14392 * chartab.c (map_char_table): GCPRO table and arg.
14393
143942008-02-01 Kenichi Handa <handa@m17n.org>
14395
14396 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
14397 already at limit.
14398
143992008-02-01 Kenichi Handa <handa@m17n.org>
14400
14401 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
14402 instead of fast_c_string_match_ignore_case.
14403 (find_font_encoding): Change argument to Lisp_Object. Use
14404 fast_string_match_ignore_case instead of
14405 fast_c_string_match_ignore_case. Change caller.
14406
144072008-02-01 Kenichi Handa <handa@m17n.org>
14408
14409 * xdisp.c (get_next_display_element): In unibyte case, decide to
14410 display in octal form by checking a character by
14411 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
14412
14413 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
14414
14415 * character.c (unibyte_has_multibyte_table): New variable.
14416
14417 * character.h (unibyte_has_multibyte_table): Extern it.
14418 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
14419
144202008-02-01 Kenichi Handa <handa@m17n.org>
14421
14422 * coding.c (encode_coding_iso_2022): Fix handling of charset
14423 annotation.
14424
144252008-02-01 Kenichi Handa <handa@m17n.org>
14426
14427 * coding.c (setup_coding_system): If coding_system is nil, use
14428 Qundecided.
14429 (Fterminal_coding_system): Return nil if terminal coding system is
14430 `undecided'.
14431 (syms_of_coding): Define coding-system `undecided' here. Setup
14432 terminal_coding as `undecided'.
14433
144342008-02-01 Kenichi Handa <handa@m17n.org>
14435
14436 * xdisp.c (message_dolog, set_message_1): Call
14437 unibyte_char_to_multibyte with arg type int.
14438
14439 * lread.c (read1): Fix reading of a char-table.
14440
14441 * print.c (print_object): Include sub char-table in circularities
14442 detection.
14443
144442008-02-01 Kenichi Handa <handa@m17n.org>
14445
14446 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
14447 Append the found sequences in car of ARGS instead of prepending.
14448
144492008-02-01 Kenichi Handa <handa@m17n.org>
14450
14451 * fileio.c (report_file_error): Make a unibyte string from
14452 strerror (errorno).
14453 (Fsubstitute_in_file_name): Fix the arg to
14454 unibyte_char_to_multibyte. It is evaluated twice.
14455
144562008-02-01 Kenichi Handa <handa@m17n.org>
14457
14458 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
14459
144602008-02-01 Kenichi Handa <handa@m17n.org>
14461
14462 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
14463 BOM is not found.
14464 (detect_coding, detect_coding_system): Optimization for ISO-2022
14465 when no 8-bit data is found.
14466
144672008-02-01 Jason Rumney <jasonr@gnu.org>
14468
14469 * w32fns.c (x_to_w32_font): Update to use new coding struct.
14470
144712008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
14474 CHARS.
14475
144762008-02-01 Steven Tamm <steventamm@mac.com>
14477
14478 * macterm.c (mac_encode_char): Add charset argument and update
14479 to use encoding_type.
14480 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
14481 switch to pure fontset.
14482 (decode_mac_font_name): Temporarily remove decoding.
14483 (x_font_name_to_mac_font_name): Temporarily remove encoding.
14484 (x_load_font): Temporarily remove encoding.
14485
144862008-02-01 Kenichi Handa <handa@m17n.org>
14487
14488 * xfaces.c (Fface_font): If frame is not on a window system,
14489 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
14490 refer to face->font.
14491 (split_font_name_into_vector, build_font_name_from_vector)
14492 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
14493 when HAVE_WINDOW_SYSTEM is defined.
14494
144952008-02-01 Kenichi Handa <handa@m17n.org>
14496
14497 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
14498 (x_produce_glyphs): Fix setting of members of cmp in case
14499 cmp->glyph_len is zero.
14500
14501 * fontset.c (Fset_fontset_font): Fix docstring.
14502 (Ffontset_info): Make it backward compatible. New arg ALL.
14503
145042008-02-01 Kim F. Storm <storm@cua.dk>
14505
14506 * process.c (read_process_output): Grow decoding_buf when needed;
14507 this could cause a crash in allocate_string and compact_small_strings.
14508
145092008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
14512
145132008-02-01 Kenichi Handa <handa@m17n.org>
14514
14515 * coding.c (setup_coding_system): Set coding->common_flags
14516 correctly for raw-text.
14517 (consume_chars): On encoding unibyte text by raw-text, don't check
14518 multibyte form.
14519 (encode_coding): On encoding by raw-text, never use translation tables.
14520
14521 * fileio.c (e_write): Short cut for the case of no encoding.
14522
145232008-02-01 Kenichi Handa <handa@m17n.org>
14524
14525 * coding.c (detect_coding, detect_coding_system): Delete unused
14526 variables.
14527
145282008-02-01 Kenichi Handa <handa@m17n.org>
14529
14530 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
14531 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
14532
145332008-02-01 Kenichi Handa <handa@m17n.org>
14534
14535 * coding.c (Ffind_coding_systems_region_internal): Include
14536 raw-text and no-conversion in the result.
14537
145382008-02-01 Kenichi Handa <handa@m17n.org>
14539
14540 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
14541 (load_font_get_repertory): Delete unnecessary check of ENCODING of
14542 FONT_DEF.
14543 (font_def_arg, add_arg, from_arg, to_arg): New args.
14544 (set_fontset_font): Change argument.
14545 (Fset_fontset_font): Fix for the case that TARGET is a script
14546 name and charset name.
14547 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
14548
145492008-02-01 Kenichi Handa <handa@m17n.org>
14550
14551 * fontset.c (fontset_font): Rename from fontset_face. Change return
14552 value.
14553 (face_suitable_for_char_p, face_for_char): Adjust for the change
14554 of fontset_font.
14555 (make_fontset_for_ascii_face): Fix setting of the fontset element
14556 for ASCII.
14557 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
14558 to get a font name.
14559 (Ffontset_info): Adjust for the change of fontset_font.
14560
14561 * coding.c (emacs_mule_char): Check invalid code more rigidly.
14562
14563 * character.h (LEADING_CODE_LATIN_1_MIN)
14564 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
14565
145662008-02-01 Kenichi Handa <handa@m17n.org>
14567
14568 * editfns.c (check_translation): New function.
14569 (Ftranslate_region_internal): Handle M:N mapping.
14570
145712008-02-01 Kenichi Handa <handa@m17n.org>
14572
14573 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
14574
145752008-02-01 Kenichi Handa <handa@m17n.org>
14576
14577 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
14578 goto invalid_code.
14579 (decode_coding_iso_2022): Fix handling of invalid designation.
14580
14581 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
14582 after calling code_conversion_save.
14583
145842008-02-01 Kenichi Handa <handa@m17n.org>
14585
14586 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
14587
14588 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
14589
14590 * fontset.c: Include "intervals.h".
14591 (fontset_face): Fix comparing of Lisp_Objects.
14592 (free_face_fontset, new_fontset_from_font_name): Fix
14593 Lisp_Object/int mixup.
14594
14595 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
14596
14597 * coding.c: Add many prototypes for static functions.
14598 (get_translation_table): Allow max_lookup to be NULL.
14599 (decode_coding, Ffind_coding_systems_region_internal)
14600 (Funencodable_char_position, Fcheck_coding_systems_region): Call
14601 get_translation_table with max_lookup NULL.
14602
146032008-02-01 Kenichi Handa <handa@m17n.org>
14604
14605 * coding.c (get_translation_table): Declare it as Lisp_Object.
14606 (LOOKUP_TRANSLATION_TABLE): New macro.
14607 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
14608 instead of CHAR_TABLE_REF.
14609
146102008-02-01 Kenichi Handa <handa@m17n.org>
14611
14612 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
14613 annotation data format.
14614 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
14615 Change arguments FROM and TO to single argument NCHARS. Change caller.
14616 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
14617 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14618 (decode_coding_ccl, decode_coding_charset): Pay attention to
14619 coding->charbuf_used.
14620 (get_translation): New function.
14621 (produce_chars): New arguments translation_table and last_block.
14622 Translate characters here. Return number of carryover chars.
14623 Change caller.
14624 (produce_composition): New argument pos. Change caller.
14625 Adjust for the change of annotation data format.
14626 (produce_charset, produce_annotation): Likewise.
14627 (decode_coding, encode_coding): Don't call translate_chars.
14628 (consume_chars): New arg translation_table. Change caller.
14629 (translate_chars): Delete.
14630 (syms_of_coding): Make translation-table's number of extra slots 2.
14631
146322008-02-01 Kenichi Handa <handa@m17n.org>
14633
14634 * search.c (simple_search): Fix setting this_pos_byte in backward
14635 search.
14636
14637 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
14638 byte sequence.
14639 (detect_coding_ccl): Fix setting of the variable valids.
14640
146412008-02-01 Kenichi Handa <handa@m17n.org>
14642
14643 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
14644
14645 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
14646
14647 * editfns.c (Ftranslate_region_internal): Rename from
14648 Ftranslate_region. Accept a char-table in TABLE.
14649 (syms_of_editfns): Defsubr Stranslate_region_internal.
14650
14651 * xfaces.c (set_lface_from_font_name): If a font is specified for
14652 a frame, generate a fontset from the font.
14653 (build_scalable_font_name): If the scalable font is requested for
14654 a specific size, don't change that size.
14655 (try_font_list): Try a scalable font also in the case that a
14656 pattern string is specified.
14657
146582008-02-01 Kenichi Handa <handa@m17n.org>
14659
14660 * xfaces.c (Fface_font): New optional arg CHARACTER.
14661
146622008-02-01 Kenichi Handa <handa@m17n.org>
14663
14664 * charset.h (CHARSET_OFFSET): New macro.
14665
146662008-02-01 Kenichi Handa <handa@m17n.org>
14667
14668 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14669
14670 * fontset.c (fontset_face): Handle the case that repertory is a
14671 char-table.
14672 (find_font_encoding): Return nil for unknown encoding.
14673 (Fset_fontset_font): Ignore a font of unknown encoding.
14674
146752008-02-01 Kenichi Handa <handa@m17n.org>
14676
14677 * keymap.c (describe_vector): Handle default value of a char table.
14678
14679 * fontset.c (fontset_face): Handle fallback fonts correctly.
14680 (Ffontset_info): Return infomation about fallback fonts.
14681
146822008-02-01 Kenichi Handa <handa@m17n.org>
14683
14684 * fontset.c (FONTSET_DEFAULT): New macro.
14685 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14686 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14687 the case that it is nil.
14688 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14689 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14690
14691 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14692 subset or superset.
14693
146942008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * emacs.c (main): Call init_charset after syms_of_XXX.
14697
14698 * charset.c (Vcharset_map_directory): Delete.
14699 (Vcharset_map_path): New variable.
14700 (load_charset_map_from_file): Use Vcharset_map_path instead.
14701 (init_charset): Initialize Vcharset_map_path.
14702 (syms_of_charset): Delete declaration of "charset-map-directory",
14703 add declaration of "charset-map-path".
14704
147052008-02-01 Kenichi Handa <handa@m17n.org>
14706
14707 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14708 ASCII only string.
14709
14710 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14711
14712 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14713 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14714
147152008-02-01 Kenichi Handa <handa@m17n.org>
14716
14717 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14718
14719 * coding.c (QCmnemonic, QCdefalut_char)
14720 (QCdecode_translation_table, QCencode_translation_table)
14721 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14722 (get_translation_table): Return a list of translation tables if
14723 necessary.
14724 (decode_coding): Call get_translation_table with ENCODEP 0.
14725 (char_encodable_p): If translation_table is non-nil, always call
14726 translate_char.
14727 (Fdefine_coding_system_internal): Accept list of translation
14728 tables as :encode-translation-table and :decode-translation-table.
14729 (Fcoding_system_put): New function.
14730 (syms_of_coding): Declare new symbols. Defsubr
14731 Scoding_system_put.
14732 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14733 typically JISX0212.
14734
14735 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14736 when the charset is superset type.
14737
14738 * character.c (translate_char): Accept list of translation tables.
14739
147402008-02-01 Kenichi Handa <handa@m17n.org>
14741
14742 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14743 (CODING_ATTR_TRANS_TBL): New macro.
14744
14745 * coding.c (get_translation_table): New function.
14746 (translate_chars): Fix the bug of skipping annotation data.
14747 (decode_coding, encode_coding): Utilize get_translation_table.
14748 (char_encodable_p, Funencodable_char_position): Translate char if
14749 necessary.
14750 (Ffind_coding_systems_region_internal)
14751 (Fcheck_coding_systems_region): Setup translation table for encode
14752 in a coding system attribute vector in advance.
14753 (Fdefine_coding_system_internal): Allow a symbol as translation
14754 table. For shift-jis type coding system, allow 4th charset.
14755
147562008-02-01 Kenichi Handa <handa@m17n.org>
14757
14758 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14759
14760 * xdisp.c (get_next_display_element): Pass -1 as POS to
14761 FACE_FOR_CHAR if displaying a C-string.
14762
147632008-02-01 Kenichi Handa <handa@m17n.org>
14764
14765 * composite.c (get_composition_id): Handle xoff and yoff in a
14766 composition rule.
14767
14768 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14769 (struct composition): New member lbearing and rbearing.
14770
14771 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14772 (x_get_glyph_overhangs): Handle a composition glyph.
14773 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14774
14775 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14776 composition glyph.
14777
147782008-02-01 Kenichi Handa <handa@m17n.org>
14779
14780 * print.c: Include charset.h.
14781 (Vprint_charset_text_property): New variable.
14782 (Qdefault): Extern it.
14783 (PRINT_STRING_NON_CHARSET_FOUND)
14784 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14785 (print_check_string_result): New variable.
14786 (print_check_string_charset_prop): New function.
14787 (print_prune_charset_plist): New variable.
14788 (print_prune_string_charset): New function.
14789 (print_object): Call print_prune_string_charset if
14790 Vprint_charset_text_property is not t.
14791 (print_interval): Print nothing if interval->plist is nil.
14792 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14793 variable. Init and staticpro print_prune_charset_plist.
14794
147952008-02-01 Kenichi Handa <handa@m17n.org>
14796
14797 * fontset.c (new_fontset_from_font_name): Use the specified font
14798 for all characters in the new fontset.
14799
14800 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14801 OBJECT args.
14802
14803 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14804 OBJECT args for composition too.
14805
14806 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14807 OBJECT args.
14808
148092008-02-01 Kenichi Handa <handa@m17n.org>
14810
14811 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14812
14813 * fontset.c (reorder_font_vector): Adjust for the change of
14814 FONT_DEF format.
14815 (fontset_face): New arg id. Change caller.
14816 (face_for_char): New args pos and object.
14817 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14818 (fs_query_fontset): Check NAME by Fassoc too.
14819 (Fset_fontset_font): Allow non-XLFD font name.
14820 (Ffontset_info): Adjust for the change of FONT_DEF format.
14821
14822 * fontset.h (face_for_char): Adjust prototype.
14823
14824 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14825 (append_space, extend_face_to_end_of_line)
14826 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14827 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14828
14829 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14830 POS and OBJECT args.
14831
14832 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14833 POS and OBJECT args.
14834
148352008-02-01 Jason Rumney <jasonr@gnu.org>
14836
14837 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14838 of GlobalAlloc'ed memory.
14839
148402008-02-01 Kenichi Handa <handa@m17n.org>
14841
14842 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14843
14844 * charset.h (charset_table_used): Delete extern.
14845
14846 * charset.c (charset_table_used): Make it static.
14847 (map_charset_chars): Fix args to c_function with.
14848
14849 * chartab.c (map_sub_char_table_for_charset): Fix args to
14850 c_function with.
14851
14852 * coding.h (enum coding_result_code): Delete
14853 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14854
14855 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14856 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14857 (Vlast_code_conversion_error): New variables.
14858 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14859 (ONE_MORE_BYTE): Record error if any instead of signaling an
14860 error. If non-ASCII multibyte char is found, return the negative
14861 value of the code. All callers changed to check it.
14862 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14863 (record_conversion_result): New function. Change all codes setting
14864 coding->result to call this function.
14865 (detect_coding_utf_8, decode_coding_utf_8)
14866 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14867 Don't use the local variable incomplete.
14868 (emacs_mule_char): Change the second arg to `const'.
14869 (decode_coding): Fix of flushing out unprocessed data.
14870 (make_conversion_work_buffer): Fix making of a work buffer.
14871 (decode_coding_object): Return coding->dst_object.
14872
14873 * fontset.c (set_fontset_font): Fix args.
14874
14875 * lisp.h (CHARACTERBITS): Define as 22.
14876
14877 * process.c (send_process): Be sure to set coding->src_multibyte.
14878
14879 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14880
148812008-02-01 Kenichi Handa <handa@m17n.org>
14882
14883 * xdisp.c (handle_auto_composed_prop): Give limit to
14884 Fnext_single_char_property_change.
14885
148862008-02-01 Kenichi Handa <handa@m17n.org>
14887
14888 * composite.c (syms_of_composite): Don't make the composition hash
14889 table weak.
14890
14891 * fontset.c (Fset_fontset_font): Fix docstring.
14892
14893 * lisp.h (detect_coding_system): Adjust prototype.
14894
14895 * fileio.c (kill_workbuf_unwind): Delete this function.
14896 (Finsert_file_contents): Adjust the call of detect_coding_system.
14897 Get conversion_buffer by code_conversion_save. Use the macro
14898 CODING_MAY_REQUIRE_DECODING. After decoding, update
14899 coding_system.
14900
14901 * coding.h (make_conversion_work_buffer): Delete extern.
14902 (code_conversion_save): Extern it.
14903
14904 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14905 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14906 (decode_coding_utf_8): Don't do eol converion.
14907 (detect_coding_utf_16): Check coding->src_chars, not
14908 coding->src_bytes. Add heuristics for those that have no signature.
14909 (decode_coding_emacs_mule, decode_coding_iso_2022)
14910 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14911 Don't do eol converion.
14912 (adjust_coding_eol_type): Return a new coding system.
14913 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14914 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14915 each change.
14916 (decode_coding): Pay attention to undo_list. Do eol conversion for
14917 all types of coding-systems (if necessary).
14918 (Vcode_conversion_work_buf_list): Delete it.
14919 (Vcode_conversion_reused_workbuf): Rename from
14920 Vcode_conversion_reused_work_buf.
14921 (Vcode_conversion_workbuf_name): New variable.
14922 (reused_workbuf_in_use): New variable.
14923 (make_conversion_work_buffer): Delete the arg DEPTH.
14924 (code_conversion_restore): Change argument to cons.
14925 (code_conversion_save): Delete the argument BUFFER. Change callers.
14926 (detect_coding_system): New argument src_chars. Change callers.
14927 Fix for utf-16 detection.
14928 (init_coding_once): Don't use ISO_carriage_return.
14929 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14930 reused_workbuf_in_use.
14931
149322008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * keymap.c (store_in_keymap): Pay attention to the case that idx
14935 is a cons specifying a character range.
14936
149372008-02-01 Kenichi Handa <handa@m17n.org>
14938
14939 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14940 HANDLED_RECOMPUTE_PROPS.
14941
14942 * coding.c (Fdefine_coding_system_internal): Fix checking of
14943 ascii compatibility.
14944
149452008-02-01 Kenichi Handa <handa@m17n.org>
14946
14947 * charset.c (find_charsets_in_text): Delete unused locale variable.
14948 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14949
14950 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14951 Resync charset_list to Vemacs_mule_charset_list.
14952
14953 * keymap.c (store_in_keymap): Pay attention to the case that idx
14954 is a cons specifying a character range.
14955
149562008-02-01 Kenichi Handa <handa@m17n.org>
14957
14958 * composite.c (update_compositions): Bind inhibit-read-only, etc
14959 to t before calling remove-list-of-text-properties.
14960
14961 * print.c (print_object): Always print ASCII chars as is.
14962
149632008-02-01 Kenichi Handa <handa@m17n.org>
14964
14965 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14966
14967 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14968 is a char table.
14969
149702008-02-01 Kenichi Handa <handa@m17n.org>
14971
14972 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14973
149742008-02-01 Kenichi Handa <handa@m17n.org>
14975
14976 * xfaces.c (set_lface_from_font_name): Fix for the case that
14977 FONTNAME is not fontset name.
14978
149792008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * fns.c (base64_encode_1): Fix previous change.
14982
149832008-02-01 Kenichi Handa <handa@m17n.org>
14984
14985 * fontset.c (set_fontset_font): New function.
14986 (Fset_fontset_font): If a font is specified for a charset, use
14987 map_charset_chars to store the font spec in a fontset.
14988
149892008-02-01 Kenichi Handa <handa@m17n.org>
14990
14991 * fontset.c (fontset_face): Create a fallback fontset on demand.
14992 (make_fontset): Don't create a fallback fontset here.
14993 (free_face_fontset): Free a fallback fontset (if any) too.
14994 (n_auto_fontsets): Delete this variable.
14995 (auto_fontset_alist): New variable.
14996 (new_fontset_from_font_name): Check auto_fontset_alist.
14997 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14998 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14999 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
15000 Defsubr Sfontset_list_all.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
15005
150062008-02-01 Kenichi Handa <handa@m17n.org>
15007
15008 * fontset.c (Fnew_fontset): Check NAME more rigidly.
15009
150102008-02-01 Kenichi Handa <handa@m17n.org>
15011
15012 * editfns.c (Fgoto_char): Fix docstring.
15013
150142008-02-01 Kenichi Handa <handa@m17n.org>
15015
15016 * insdel.c (insert_from_gap): Adjust intervals correctly.
15017
150182008-02-01 Jason Rumney <jasonr@gnu.org>
15019
15020 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
15021 (pfnGetFontUnicodeRanges): New dynamically loaded function.
15022 (w32_initialize): Try to load it.
15023 (x_get_font_repertory): Use it if available.
15024 (w32_encode_char): Add shortcut for unicode output.
15025
15026 * w32fns.c (w32_load_system_font): Default charset to -1.
15027 (x_to_w32_charset): Match all fonts for unicode.
15028 (w32_to_x_charset): New parameter matching. Don't return partial
15029 or wildcard charsets.
15030 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
15031 (w32_codepage_for_font): Return CP_UNICODE for unicode.
15032 (w32_to_x_font): Match charset to real charset.
15033 (enum_font_cb2): Always list unicode versions.
15034
15035 * makefile.w32-in (temacs): Increase EMHEAP.
15036
150372008-02-01 Jason Rumney <jasonr@gnu.org>
15038
15039 * w32term.c (w32_encode_char): New charset parameter.
15040 font_info.encoding becomes encoding_type.
15041 (x_get_font_repertory): New function. Warning: stub only!
15042 (x_new_font): Return quickly if font already set.
15043 (x_new_fontset): fontsetname parameter is Lisp_Object.
15044 Use new fs_query_fontset. Try new_fontset_from_font_name.
15045 Use fontset_name for return value.
15046
15047 * w32term.h: Declare x_get_font_repertory.
15048
15049 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
15050 place of find_charset_in_text. Use encode_coding_object in place
15051 of encode_coding.
15052 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
15053 decode_coding.
15054
15055 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
15056 of x_new_fontset.
15057 (w32_load_system_font): Initialize charset as unicode.
15058 font_info.encoding becomes encoding_type.
15059 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
15060 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
15061 (syms_of_w32fns): Set get_font_repertory_func.
15062
15063 * w32console.c: Include character.h. Use terminal_encode_buffer
15064 from term.c.
15065 (write_glyphs): Use new version of encode_terminal_code. Use
15066 encode_coding_object in place of encode_coding.
15067
15068 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
15069 encoding becomes encoding_type.
15070
15071 * term.c (terminal_encode_buffer): Make externally visible.
15072
15073 * makefile.w32-in: Add character.h dependancies.
15074 (character.o, chartab.o): New targets.
15075
150762008-02-01 Kenichi Handa <handa@m17n.org>
15077
15078 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
15079 CODING_ID_EOL_TYPE.
15080
150812008-02-01 Andreas Schwab <schwab@suse.de>
15082
15083 * coding.c (produce_chars): Revert last change.
15084
150852008-02-01 Kenichi Handa <handa@m17n.org>
15086
15087 * charset.h (charset_unicode): Extern it.
15088
15089 * charset.c (string_xstring_p): Check by (C >= 0x100).
15090 (find_charsets_in_text): Change format of the arc CHARSETS. New
15091 arg MULTIBYTE.
15092 (Ffind_charset_region, Ffind_charset_string): Adjust for the
15093 change of find_charsets_in_text.
15094 (Fsplit_char): Fix doc. Never return unknown.
15095
15096 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
15097
15098 * coding.c (Fdefine_coding_system_alias): Update
15099 Vcoding_system_list.
15100
15101 * fontset.c (load_font_get_repertory): Pay attention to the case
15102 that ENCODING of a font is specified by a char-table.
15103
15104 * xterm.c (x_get_font_repertory): Handle the case that the
15105 encoding of font is other than Unicode.
15106
151072008-02-01 Kenichi Handa <handa@m17n.org>
15108
15109 * term.c (encode_terminal_code): Don't handle glyph-table. Check
15110 if a character is encodable by the terminal coding system. If
15111 not, produces proper number of `?'s. Update
15112 terminal_encode_buffer and terminal_encode_buf_size if necessary.
15113 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
15118 variables.
15119 (encode_terminal_code): Change argument. Encode multiple
15120 characters at once. Store the result of encoding in
15121 terminal_encode_buffer.
15122 (write_glyphs, insert_glyphs): Adjust for the change of
15123 encode_terminal_code.
15124 (term_init): Initialize terminal_encode_buffer and
15125 terminal_encode_buf_size.
15126
15127 * coding.c (consume_chars): If coding->src_object is nil, don't
15128 check annotation.
15129
151302008-02-01 Kenichi Handa <handa@m17n.org>
15131
15132 * character.c (char_string): Use ASCII_CHAR_P instead of
15133 SINGLE_BYTE_CHAR_P.
15134
151352008-02-01 Kenichi Handa <handa@m17n.org>
15136
15137 * xdisp.c (handle_auto_composed_prop): Check if the last
15138 characters of auto-composed region is newly composed with the
15139 following characters.
15140 (handle_composition_prop): Fix checking of point being inside
15141 composition.
15142
151432008-02-01 Kenichi Handa <handa@m17n.org>
15144
15145 * fns.c (concat): Don't change multibyteness of the result by
15146 concatenating an 8-bit character.
15147
15148 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
15149 multibyteness of the result when newelt is an 8-bit character.
15150
151512008-02-01 Dave Love <fx@gnu.org>
15152
15153 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
15154 EMACS_INT.
15155
15156 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
15157
15158 * xfaces.c (face_numeric_value): Declare dim size_t.
15159 (Finternal_lisp_face_equal_p): Remove unused f.
15160
15161 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
15162 (MATRIX_ROW): Remove unused vars.
15163 (draw_glyphs, x_insert_glyphs, fast_find_position)
15164 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
15165 byte/char counts.
15166
15167 * regex.c (regex_compile): Remove unused var.
15168
15169 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15170
15171 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
15172 (Faccessible_keymaps, where_is_internal): Remove unused vars.
15173
15174 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
15175
15176 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
15177
15178 * fileio.c (Fwrite_region): Remove unused var.
15179
15180 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
15181 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
15182
15183 * composite.c (Fremove_list_of_text_properties): Declare.
15184
15185 * coding.c (inhibit_pre_post_conversion): Remove (unused).
15186 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
15187 (coding_inherit_eol_type): Remove unused attrs.
15188 (detect_coding): Cast arg of detect_eol.
15189
15190 * charset.c (syms_of_charset): Remove unused var p.
15191 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
15192 byte/char counts.
15193
15194 * casetab.c (set_case_table): Remove unused var.
15195
15196 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
15197 unused vars.
15198
151992008-02-01 Dave Love <fx@gnu.org>
15200
15201 * xterm.c (x_bitmap_mask): Declare.
15202
152032008-02-01 Dave Love <fx@gnu.org>
15204
15205 * xterm.c (x_term_init): Fix type error.
15206
15207 * lisp.h: Add Funibyte_char_to_multibyte.
15208
15209 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
15210 (Fset_coding_system_priority): Doc fix.
15211
15212 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
15213
15214 * indent.c (check_composition): Make start and end EMACS_INT.
15215
15216 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
15217
15218 * xdisp.c (handle_composition_prop, check_point_in_composition):
15219 Make buffer positions EMACS_INT.
15220
15221 * composite.c (find_composition, run_composition_function)
15222 (update_compositions, Ffind_composition_internal): Make buffer
15223 positions EMACS_INT.
15224
15225 * composite.h (find_composition, update_compositions): Make
15226 position args EMACS_INT.
15227
15228 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
15229
15230 * intervals.c (get_property_and_range):
15231 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
15232
15233 * unexalpha.c: Don't include varargs.h.
15234
152352008-02-01 Dave Love <fx@gnu.org>
15236
15237 * coding.h (ENCODE_UTF_8): New.
15238
15239 * Makefile.in (gtkutil.o): Depend on coding.h.
15240
15241 * coding.c (Fset_coding_system_priority): Doc fix.
15242
152432008-02-01 Kenichi Handa <handa@m17n.org>
15244
15245 * fileio.c (Finsert_file_contents): Call setup_coding_system in
15246 the case of auto saving.
15247
152482008-02-01 Andreas Schwab <schwab@suse.de>
15249
15250 * chartab.c (map_char_table, map_char_table_for_charset): Protect
15251 `range' from GC.
15252
152532008-02-01 Kenichi Handa <handa@m17n.org>
15254
15255 * coding.c (decode_coding_sjis): Check bytes more rigidly.
15256
152572008-02-01 Kenichi Handa <handa@m17n.org>
15258
15259 * fileio.c (choose_write_coding_system): Return a decided coding system.
15260 (Fwrite_region): Set Vlast_coding_system_used to the return value
15261 of choose_write_coding_system.
15262
152632008-02-01 Kenichi Handa <handa@m17n.org>
15264
15265 * charset.c (Fset_charset_priority): Pay attention to duplicated
15266 arguments.
15267
15268 * coding.c (QCcategory): New variable.
15269 (syms_of_coding): Defsym it. Set all elements of
15270 Vcoding_category_table and their symbol values.
15271 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
15272 coding-category-XXX, and coding-category-list.
15273 (Fdefine_coding_system_internal): Add category in the plist.
15274
152752008-02-01 Kenichi Handa <handa@m17n.org>
15276
15277 * callproc.c (Fcall_process): Handle carryover correctly.
15278
15279 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
15280 (raw_text_coding_system): Check NILP (coding_system).
15281 (coding_inherit_eol_type): Check NILP (coding_system) and
15282 NILP (parent).
15283 (consume_chars): Fix for the case of raw-text.
15284
15285 * process.c (read_process_output): Handle carryover correctly.
15286
152872008-02-01 Dave Love <fx@gnu.org>
15288
15289 * regex.c (re_search_2): Fix last change.
15290
152912008-02-01 Kenichi Handa <handa@m17n.org>
15292
15293 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
15294 target_multibyte. Even in a unibyte case, return a converted
15295 multibyte char.
15296 (GET_CHAR_AFTER): New macro.
15297 (PATFETCH): Translate via multibyte char.
15298 (HANDLE_UNIBYTE_RANGE): Delete this macro.
15299 (SETUP_MULTIBYTE_RANGE): New macro.
15300 (regex_compile): Setup compiled code so that its multibyteness
15301 matches that of a target. Fix the handling of "[X-YZ]" using
15302 SETUP_MULTIBYTE_RANGE.
15303 (analyse_first) <charset>: For filling fastmap for all multibyte
15304 characters, don't check by BASE_LEADING_CODE_P.
15305 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
15306 the same as RE_MULTIBYTE_P (bufp) now.
15307 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
15308 (TARGET_CHAR_AND_LENGTH): Delete this macro.
15309 (TRANSLATE_VIA_MULTIBYTE): New macro.
15310 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
15311 It is the same as RE_MULTIBYTE_P (bufp) now.
15312 <exactn>: Translate via multibyte.
15313 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
15314 translate it.
15315 <charset, charset_not>: Fetch a character by
15316 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
15317 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
15318 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
15319 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
15320 by GET_CHAR_AFTER.
15321 (bcmp_translate): Likewise.
15322
15323 * search.c (compile_pattern): Check the member target_multibyte,
15324 not the member multibyte of buf.
15325
15326 * lread.c (read1): While reading a string, set force_singlebyte
15327 and force_multibyte correctly.
15328
15329 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
15330 up of unibyte_to_multibyte_table.
15331
153322008-02-01 Kenichi Handa <handa@m17n.org>
15333
15334 * coding.c (setup_coding_system): If coding has
15335 post-read-conversion or pre-write-conversion, set
15336 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
15337 respectively.
15338 (decode_coding_gap): Run post-read-conversion if any.
15339
15340 * fileio.c (Finsert_file_contents): Even if we read into a
15341 unibyte buffer, check if we must decode the result or not.
15342
153432008-02-01 Kenichi Handa <handa@m17n.org>
15344
15345 * coding.c (make_conversion_work_buffer): Change the work buffer
15346 name to the same one as that of Emacs 21.
15347
153482008-02-01 Kenichi Handa <handa@m17n.org>
15349
15350 * coding.h (make_conversion_work_buffer): Adjust prototype.
15351 (code_conversion_restore): Don't extern it.
15352
15353 * coding.c (detected_mask): Delete unused variable.
15354 (decode_coding_iso_2022): Pay attention to the byte sequence of
15355 CTEXT extended segment, and retain those bytes as is.
15356 (decode_coding_ccl): Delete unused variable `valids'.
15357 (setup_coding_system): Delete unused variable `category'.
15358 (consume_chars): Delete unused variable `category'. Make it work
15359 for non-multibyte case.
15360 (make_conversion_work_buffer): Change argument.
15361 (saved_coding): Delete unused variable.
15362 (code_conversion_restore): Don't check saved_coding->destination.
15363 (code_conversion_save): New function.
15364 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
15365 instead of record_unwind_protect.
15366 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
15367 (detect_coding_system): Delete unused variable `mask'.
15368 (Fdefine_coding_system_internal): Delete unused variable id.
15369
15370 * fileio.c (kill_workbuf_unwind): New function.
15371 (Finsert_file_contents): On replacing, call
15372 make_conversion_work_buffer with correct args, and call
15373 record_unwind_protect with the first arg kill_workbuf_unwind.
15374
15375 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
15376
153772008-02-01 Kenichi Handa <handa@m17n.org>
15378
15379 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
15380 (fontset_add): Fix for the case that TO is less than TO1.
15381 (Ffontset_info): Don't use fallback fontset on checking the
15382 default fontset.
15383 (dump_fontset): New function for debugging.
15384
15385 * coding.c (Fdefine_coding_system_internal): Fix for the case that
15386 coding_type is Qcharset.
15387
153882008-02-01 Kenichi Handa <handa@m17n.org>
15389
15390 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
15391 (map_char_table): Don't inherit the value from the parent on
15392 initializing VAL. Adjust for the above change.
15393
153942008-02-01 Kenichi Handa <handa@m17n.org>
15395
15396 * coding.c (Qsignature, Qendian): Delete these variables.
15397 (syms_of_coding): Don't initialize them.
15398 (CATEGORY_MASK_UTF_16_AUTO): New macro.
15399 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
15400 detect_info->found.
15401 (decode_coding_utf_16): Don't detect BOM here.
15402 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
15403 is NOT utf_16_without_bom.
15404 (setup_coding_system): For a coding system of type utf-16, check
15405 if the attribute :endian is Qbig or not (not nil or not), and set
15406 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
15407 (detect_coding): If coding type is utf-16 and BOM detection is
15408 required, detect it.
15409 (Fdefine_coding_system_internal): For a coding system of type
15410 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
15411
154122008-02-01 Kenichi Handa <handa@m17n.org>
15413
15414 * coding.c (coding_set_source): Fix for the case that the current
15415 buffer is different from coding->src_object.
15416 (decode_coding_object): Don't use the conversion work buffer if
15417 DST_OBJECT is a buffer.
15418
154192008-02-01 Dave Love <fx@gnu.org>
15420
15421 * lread.c (read_emacs_mule_char) [len==2]: Index
15422 emacs_mule_charset correctly.
15423
154242008-02-01 Dave Love <fx@gnu.org>
15425
15426 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
15427 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
15428 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
15429 treated specially.)
15430 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
15431 (detected_mask): Remove Big5 bits.
15432
154332008-02-01 Kenichi Handa <handa@m17n.org>
15434
15435 The following changes are to make the font rescaling facility
15436 compatible with Emacs 21.
15437
15438 * xfaces.c (Vface_font_rescale_alist): Rename from
15439 Vface_resizing_fonts.
15440 (struct font_name): Rename member resizing_ratio to rescale_ratio.
15441 (font_rescale_ratio): Rename from font_resizing_ratio.
15442 (split_font_name): Set font->rescale_ratio.
15443 (better_font_p): Pay attention to font->rescale_ratio.
15444 (build_scalable_font_name): Likewise. Change RESX, and RESY
15445 fields.
15446 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
15447
154482008-02-01 Kenichi Handa <handa@m17n.org>
15449
15450 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
15451 (Qutf_16_le): Remove these variables.
15452 (syms_of_coding): Don't DEFSYM them.
15453 (decode_coding_utf_16): Fix handling of BOM.
15454 (encode_coding_utf_16): Fix handling of BOM.
15455
154562008-02-01 Kenichi Handa <handa@m17n.org>
15457
15458 * fileio.c (Finsert_file_contents): On replacing, before decoding
15459 the file into the work buffer, set point of the work buffer to the end.
15460
154612008-02-01 Dave Love <fx@gnu.org>
15462
15463 * coding.c (Fcheck_coding_systems_region): Fix type errors.
15464
154652008-02-01 Dave Love <fx@gnu.org>
15466
15467 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15468 and fix C types.
15469
154702008-02-01 Kenichi Handa <handa@m17n.org>
15471
15472 * xdisp.c (SKIP_GLYPHS): New macro.
15473 (set_cursor_from_row): Pay attention to string display properties.
15474
15475 * category.c (copy_category_entry): Fix for the case that RANGE
15476 is an integer.
15477
15478 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
15479
15480 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
15481
154822008-02-01 Kenichi Handa <handa@m17n.org>
15483
15484 * charset.c (Fcharset_id_internal): New function.
15485 (syms_of_charset): Defsubr it.
15486
15487 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
15488 with the last arg charset_list acquired from coding.
15489 (Fdefine_coding_system_internal): For ccl-based coding system, fix
15490 the attribute coding_attr_ccl_valids.
15491
15492 * coding.h (enum define_coding_ccl_arg_index): Set the first
15493 member coding_arg_ccl_decoder to coding_arg_max.
15494
15495 * ccl.h (ccl_driver): Adjust prototype.
15496
15497 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
15498 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 15499 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
15500 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
15501 last arg Qnil.
15502
155032008-02-01 Kenichi Handa <handa@m17n.org>
15504
15505 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
15506 call encode_char.
15507
15508 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
15509
155102008-02-01 Dave Love <fx@gnu.org>
15511
15512 * composite.c (syms_of_composite): Make composition_hash_table weak.
15513
155142008-02-01 Kenichi Handa <handa@m17n.org>
15515
15516 * dispextern.h (check_face_attributes, generate_ascii_font_name)
15517 (font_name_registry): Don't extern them.
15518 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
15519
15520 * fontset.h (Qfontset): Don't extern it.
15521 (new_fontset_from_font_name): Extern it.
15522
15523 * fontset.c: Give 8 extra slots to fontset objects.
15524 (Qfontset_info): New variable.
15525 (syms_of_fontset): Defsym it.
15526 (FONTSET_FALLBACK): New macro.
15527 (fontset_face): Try also the default fontset.
15528 (make_fontset): Realize a fallback fontset from the default fontset.
15529 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
15530 using split_font_name_into_vector and build_font_name_from_vector.
15531 (Fset_fontset_font): Access the elements of font_spec by enum
15532 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
15533 name by using split_font_name_into_vector.
15534 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
15535 generate a proper font name from the fontset name. Update
15536 Vfontset_alias_alist.
15537 (n_auto_fontsets): New variable.
15538 (new_fontset_from_font_name): New function.
15539 (Ffont_info): Store the information about fonts generated from the
15540 default fontset in the first extra slot of the returned char-table.
15541
15542 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
15543 (font_name_registry): Delete function.
15544 (split_font_name_into_vector): New function.
15545 (build_font_name_from_vector): New function.
15546 (font_list): The argument REGISTRY is now a list of registry names.
15547 (choose_face_font): If we are choosing an ASCII font, and ATTRS
15548 specifies an explicit font name, return the name as is. Make a
15549 list of registy names.
15550
15551 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
15552 of x_new_fontset.
15553 (Fx_create_frame): Don't call x_new_fontset here. Just use
15554 x_list_fonts to check the existence of fonts.
15555
15556 * xterm.h (x_new_fontset): Adjust prototype.
15557
15558 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
15559 string. Use new_fontset_from_font_name to create a fontset from a
15560 font name.
15561
155622008-02-01 Kenichi Handa <handa@m17n.org>
15563
15564 * syntax.c (Vfind_word_boundary_function_table): New name for
15565 Vnext_word_boundary_function_table.
15566 (find-word-boundary-function-table): New name for
15567 next-word-boundary-function-table.
15568
155692008-02-01 Dave Love <fx@gnu.org>
15570
15571 * Makefile.in: Fix some dependencies.
15572
15573 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
15574 set it to nil before returning.
15575
15576 * composite.c (update_compositions): Fix type error.
15577
15578 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
15579
155802008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * xterm.c (x_new_font): Optimize for the case that the font is
15583 already set for the frame.
15584
155852008-02-01 Kenichi Handa <handa@m17n.org>
15586
15587 * chartab.c (char_table_ascii): Check if the char table contents
15588 is sub-char-table or not.
15589 (char_table_set, char_table_set_range): Fix argument to
15590 char_table_ascii.
15591
15592 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
15593 (detect_coding_utf_8, detect_coding_utf_16)
15594 (detect_coding_emacs_mule, detect_coding_iso_2022)
15595 (detect_coding_sjis, detect_coding_big5)
15596 (detect_coding_ccl, detect_coding_charset): Change argument MASK
15597 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
15598 sequence is valid in this coding system. Change callers.
15599 (MAX_ANNOTATION_LENGTH): New macro.
15600 (ADD_ANNOTATION_DATA): New macro.
15601 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
15602 ADD_ANNOTATION_DATA. Change the format of annotation data.
15603 (ADD_CHARSET_DATA): New macro.
15604 (emacs_mule_char): New argument ID. Change callers.
15605 (decode_coding_emacs_mule, decode_coding_iso_2022)
15606 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
15607 Produce charset annotation data in coding->charbuf.
15608 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
15609 to charset annotation data in coding->charbuf.
15610 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
15611 coding->common_flags if the coding system is iso-2022 based and
15612 uses designation.
15613 (produce_composition): Adjust for the new annotation data format.
15614 (produce_charset): New function.
15615 (produce_annotation): Handle charset annotation.
15616 (handle_composition_annotation, handle_charset_annotation): New
15617 functions.
15618 (consume_chars): Handle charset annotation. Utilize the above two
15619 functions.
15620 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
15621 buffer, get the deleted text as a string and set
15622 coding->src_object to that string.
15623 (detect_coding, detect_coding_system): Use the new struct
15624 coding_detection_info.
15625
15626 * coding.h (struct coding_detection_info): New structure.
15627 (struct coding_system): Adjust prototype of the member `detector'.
15628 (CODING_ANNOTATE_CHARSET_MASK): New macro.
15629
156302008-02-01 Kenichi Handa <handa@m17n.org>
15631
15632 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
15633
156342008-02-01 Dave Love <fx@gnu.org>
15635
15636 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
15637 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
15638 to new local and nullify apropos_accumulate before returning.
15639 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
15640
156412008-02-01 Kenichi Handa <handa@m17n.org>
15642
15643 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
15644 correctly.
e3eea1fc 15645
aac0c6e3
MR
156462008-02-01 Dave Love <fx@gnu.org>
15647
15648 * fns.c (Flanginfo): Call synchronize_system_time_locale.
15649
156502008-02-01 Kenichi Handa <handa@m17n.org>
15651
15652 The following changes are to make character composition happen
15653 automatically on displaying.
15654
15655 * Makefile.in (lisp, shortlisp): Add composite.elc.
15656
15657 * composite.h (Qauto_composed, Vauto_composition_function)
15658 (Qauto_composition_function): Extern them.
15659
15660 * composite.c (Vcomposition_function_table)
15661 (Qcomposition_function_table): Delete variables.
15662 (Qauto_composed, Vauto_composition_function)
15663 (Qauto_composition_function): New variables.
15664 (run_composition_function): Don't call
15665 compose-chars-after-function.
15666 (update_compositions): Clear `auto-composed' text property.
15667 (compose_chars_in_text): Delete this function.
15668 (syms_of_composite): Staticpro Qauto_composed and
15669 Qauto_composition_function. Declare Vauto_composition_function as
15670 a Lisp variable.
15671
15672 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15673
15674 * xdisp.c (it_props): Add an entry for Qauto_composed.
15675 (handle_auto_composed_prop): New function.
15676
15677 * xselect.c (selection_data_to_lisp_data): Don't call
15678 compose_chars_in_text.
15679
156802008-02-01 Dave Love <fx@gnu.org>
15681
15682 * keyboard.c (read_char): Modify checking around use of
15683 Vkeyboard_translate_table.
15684
15685 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15686 and fix C types.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15691 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15692 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15693 the case that the last byte is '\r' correctly.
15694 (decode_coding): Flush out the unprocessed data correctly.
15695 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15696
156972008-02-01 Dave Love <fx@gnu.org>
15698
15699 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15700 Add XK_ISO... case.
15701 (xaw_scroll_callback): Revert last change.
15702
157032008-02-01 Kenichi Handa <handa@m17n.org>
15704
15705 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15706
157072008-02-01 Kenichi Handa <handa@m17n.org>
15708
15709 * xfaces.c (Vface_resizing_fonts): New variable.
15710 (struct font_name): New member `resizing_ratio'.
15711 (font_resizing_ratio): New function.
15712 (split_font_name): Set font->resizing_ratio.
15713 (better_font_p): Pay attention to font->resizing_ratio.
15714 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15715 RESX, and RESY fields.
15716 (try_alternative_families): Try scalable fonts if
15717 Vscalable_fonts_allowed is not Qt.
15718 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15719
157202008-02-01 Dave Love <fx@gnu.org>
15721
15722 * xterm.c (xaw_scroll_callback): Cast correctly.
15723
157242008-02-01 Dave Love <fx@gnu.org>
15725
15726 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15727 (lispy_kana_keys): Comment out.
15728 (make_lispy_event) [XK_kana_A]: Comment out.
15729
15730 * xterm.c (xaw_scroll_callback): Cast call_data.
15731 (XTread_socket): Deal with ASCII keysyms.
15732 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15733
157342008-02-01 Dave Love <fx@gnu.org>
15735
15736 * xterm.c (Vx_keysym_table): New.
15737 (syms_of_xterm): Initialize it.
15738 (XTread_socket): Use it.
15739 From head: Eliminate incorrect optimization that tried to avoid
15740 decoding the output of X*LookupString.
15741 (x_get_font_repertory): Delete charset declaration.
15742
157432008-02-01 Kenichi Handa <handa@m17n.org>
15744
15745 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15746 return 0.
15747 (Fdefine_coding_system_internal): Setup
15748 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15749
157502008-02-01 Dave Love <fx@gnu.org>
15751
15752 * coding.c (Fcheck_coding_system): Doc fix.
15753
15754 * editfns.c (Finsert_byte): Return a proper value.
15755
157562008-02-01 Kenichi Handa <handa@m17n.org>
15757
15758 * coding.c (decode_coding): Fix args to translate_chars. Pay
15759 attention to Vstandard_translation_table_for_decode.
15760 (encode_coding): Fix args to translate_chars. Pay attention to
15761 Vstandard_translation_table_for_encode.
15762
15763 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15764 SINGLE_BYTE_CHAR_P.
15765
15766 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15767 not by SINGLE_BYTE_CHAR_P.
15768
15769 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15770 SINGLE_BYTE_CHAR_P.
15771
15772 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15773 SINGLE_BYTE_CHAR_P.
15774
15775 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15776 by SINGLE_BYTE_CHAR_P.
15777
15778 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15779 SINGLE_BYTE_CHAR_P.
15780
157812008-02-01 Dave Love <fx@gnu.org>
15782
15783 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15784
157852008-02-01 Dave Love <fx@gnu.org>
15786
15787 * fns.c (Flanginfo): Fix typo.
15788
15789 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15790
157912008-02-01 Kenichi Handa <handa@m17n.org>
15792
15793 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15794 (detect_coding_emacs_mule, detect_coding_iso_2022)
15795 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15796 incomplete byte sequence. Don't update *mask when correctly detected.
15797 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15798 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15799 (detect_coding, detect_coding_system): Adjust for the changes above.
15800
158012008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * character.c (char_string): Rename from
15804 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15805 (string_char): Rename from string_char.
15806
15807 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15808 if C is greater than MAX_3_BYTE_CHAR.
15809 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15810 string_char instead of string_char_with_unification.
15811
158122008-02-01 Dave Love <fx@gnu.org>
15813
15814 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15815
158162008-02-01 Kenichi Handa <handa@m17n.org>
15817
15818 * keymap.c (push_key_description): Pay attention to force_multibyte.
15819
15820 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15821
158222008-02-01 Dave Love <fx@gnu.org>
15823
15824 * charset.c (define_charset_internal): Rename `supprementary'.
15825
15826 * Makefile.in (lisp, shortlisp): Remove latin-N.
15827
158282008-02-01 Dave Love <fx@gnu.org>
15829
15830 * xfns.c (x_window, x_window): Use use_xim.
15831
15832 * xterm.c (use_xim): Initialize.
15833 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15834 (x_term_init): Maybe set use_xim.
15835
15836 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15837
158382008-02-01 Kenichi Handa <handa@m17n.org>
15839
15840 * search.c (search_buffer): Fix case-fold-search of multibyte
15841 characters.
15842 (boyer_moore): Rename the last argument to char_high_bits.
15843
158442008-02-01 Kenichi Handa <handa@m17n.org>
15845
15846 * xdisp.c (display_string): Fix for the case of zero width glyph.
15847
15848 * xfns.c (x_set_font): Change the error message of the case that
15849 x_new_fontset returns Qt.
15850
15851 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15852 (Finternal_set_lisp_face_attribute): Use signal_error for the
15853 error of invalid fontset.
15854
15855 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15856 fontset, return Qt.
15857
158582008-02-01 Dave Love <fx@gnu.org>
15859
15860 * unexelf.c (unexec): Make .got handling not SGI-specific.
15861
15862 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15863
15864 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15865
15866 * keyboard.c (read_key_sequence): Fix type error.
15867
15868 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15869 type error.
15870
15871 * fontset.c (fontset_add): Return Lisp_Object.
15872
158732008-02-01 Dave Love <fx@gnu.org>
15874
15875 * charset.h (charset_ordered_list_tick): Declare extern.
15876
158772008-02-01 Kenichi Handa <handa@m17n.org>
15878
15879 The following changes (and some of 2008-02-01 changes of mine) are
15880 for handling syntax, category, and case conversion for unibyte
15881 characters by converting them to multibyte on the fly. With these
15882 changes, we don't have to setup syntax and case tables for unibyte
15883 characters in each language environment.
15884
15885 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15886 multibyte if necessary.
15887
15888 * bytecode.c (Fbyte_code): Likewise.
15889
15890 * character.h (LEADING_CODE_LATIN_1_MIN)
15891 (LEADING_CODE_LATIN_1_MAX): New macros.
15892 (unibyte_to_multibyte_table): Extern it.
15893 (unibyte_char_to_multibyte): New macro.
15894 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15895 (CHAR_LEADING_CODE): New macro.
15896 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15897
15898 * character.c (unibyte_to_multibyte_table): New variable.
15899 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15900 (multibyte_char_to_unibyte): If C is an eight-bit character,
15901 convert it to the corresponding byte value.
15902
15903 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15904 not 1, signals an error. Update the elements of
15905 unibyte_to_multibyte_table.
15906 (init_charset_once): Initialize unibyte_to_multibyte_table.
15907 (syms_of_charset): Define the charset `iso-8859-1'.
15908
15909 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15910 as is without converting it to unibyte. In a unibyte buffer,
15911 convert C to multibyte before checking the syntax.
15912
15913 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15914
15915 * minibuf.c (Fminibuffer_complete_word): Use the macro
15916 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15917
15918 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15919
15920 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15921 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15922 that is zero, convert an eight-bit char to multibyte.
15923 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15924 non-emacs case.
15925 (PATFETCH): Convert an eight-bit char to multibyte.
15926 (HANDLE_UNIBYTE_RANGE): New macro.
15927 (regex_compile): Setup the compiled pattern for multibyte chars
15928 even if the given regex string is unibyte. Use PATFETCH_RAW
15929 instead of PATFETCH in many places. To handle `charset'
15930 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15931 only for ASCII chars.
15932 (analyse_first) <exactn>: Simplify because the compiled pattern
15933 is multibyte.
15934 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15935 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15936 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15937 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15938 multibyte always 1.
15939 (re_search_2): In emacs, set the locale variable multibyte to 1,
15940 otherwise to 0. New local variable target_multibyte. Check it
15941 to decide the multibyteness of STR1 and STR2. If
15942 target_multibyte is zero, convert unibyte chars to multibyte
15943 before translating and checking fastmap.
15944 (TARGET_CHAR_AND_LENGTH): New macro.
15945 (re_match_2_internal): In emacs, set the locale variable multibyte
15946 to 1, otherwise to 0. New local variable target_multibyte. Check
15947 it to decide the multibyteness of STR1 and STR2. Use
15948 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15949 <charset, charset_not>: If multibyte is nonzero, check fastmap
15950 only for ASCII chars. Call bcmp_translate with
15951 target_multibyte, not with multibyte.
15952 <begline>: Declare the local variable C as `unsigned'.
15953 (bcmp_translate): Change the last arg name to target_multibyte.
15954
15955 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15956 the regexp pattern and the matching target. Set cp->buf.multibyte
15957 to the multibyteness of the regexp pattern. Set
15958 cp->but.target_multibyte to the multibyteness of the matching target.
15959 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15960 FETCH_STRING_CHAR_ADVANCE.
15961 (Freplace_match): Convert unibyte chars to multibyte.
15962
15963 * syntax.c (char_quoted, back_comment, scan_words)
15964 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15965 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15966 unibyte chars to multibyte.
15967 (skip_chars): Delete the arg syntaxp, and move the code for
15968 handling syntaxes to skip_syntaxes. Change callers.
15969 Fix the case that the multibyteness of STRING and the current
15970 buffer doesn't match.
15971 (skip_syntaxes): New function.
15972 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15973 SINGLE_BYTE_CHAR_P.
15974
159752008-02-01 Kenichi Handa <handa@m17n.org>
15976
15977 * xfaces.c (QCfontset): New variable.
15978 (LFACE_FONTSET): New macro.
15979 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15980 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15981 (Finternal_set_lisp_face_attribute)
15982 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15983 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15984 check also LFACE_FONTSET_INDEX.
15985 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15986 attrs[LFACE_FONT_INDEX].
15987 (syms_of_xfaces): Intern and staticpro QCfontset.
15988
15989 * dispextern.h (enum lface_attribute_index): New member
15990 LFACE_FONTSET_INDEX.
15991
15992 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15993
159942008-02-01 Kenichi Handa <handa@m17n.org>
15995
15996 * coding.c (coding_set_destination): Fix coding->destination for
15997 the case converting a region.
15998 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15999 (encode_coding_object): Fix coding->dst_pos and
16000 coding->dst_pos_byte for the case converting a region.
16001
16002 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
16003
16004 * character.h (BYTE8_STRING): New macro.
16005
16006 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
16007
160082008-02-01 Kenichi Handa <handa@m17n.org>
16009
16010 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
16011 characters by octal form.
16012
16013 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16014
16015 * buffer.h (_fetch_multibyte_char_len): Delete extern.
16016 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
16017 _fetch_multibyte_char_len.
16018 (FETCH_CHAR_AS_MULTIBYTE): New macro.
16019
16020 * casetab.c (set_canon, set_identity, shuffle): Simplify.
16021
16022 * casefiddle.c (casify_object): Simplify. Handle the case that
16023 the case conversion change the byte length.
16024 (casify_region): Likewise.
16025
16026 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
16027
16028 * character.c (_fetch_multibyte_char_len): Delete this variable.
16029 (syms_of_character): Setup Vprintable_chars.
16030
16031 * editfns.c (Fchar_equal): Fix for the unibyte case.
16032 (Finsert_byte): New function.
16033 (syms_of_editfns): Defsubr it.
16034
16035 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
16036 of direct code 0x3ffff.
16037
16038 * search.c (Freplace_match): Fix for the unibyte case.
16039
160402008-02-01 Kenichi Handa <handa@m17n.org>
16041
16042 * lread.c (safe_to_load_p): Fix the logic.
16043
16044 * syntax.c (scan_words): Don't treat characters belonging to
16045 different scripts as constituting a word.
16046
16047 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16048
16049 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
16050
16051 * emacs.c (main): In the case of --unibyte, instead of aborting on
16052 finding non-empty buffer, make it unibyte.
16053
160542008-02-01 Kenichi Handa <handa@m17n.org>
16055
16056 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
16057 to create a fontset.
16058
160592008-02-01 Dave Love <fx@gnu.org>
16060
16061 * character.c (Funibyte_char_to_multibyte): Doc fix.
16062
16063 * xfns.c [HAVE_STDLIB_H]: Fix last change.
16064
160652008-02-01 Kenichi Handa <handa@m17n.org>
16066
16067 * fontset.c (fontset_add): Make the type `int'.
16068 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
16069
16070 * character.c (unibyte_char_to_multibyte)
16071 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
16072 charset_unibyte, not charset_primary.
16073
16074 * charset.h (charset_unibyte): Extern it instead of charset_primary.
16075
16076 * charset.c (charset_unibyte): Rename from charset_primary.
16077 (Funibyte_charset): Rename from Fprimary_charset.
16078 (Fset_unibyte_charset): Rename from Fset_primary_charset.
16079 (syms_of_charset): Adjust for the above changes.
16080
16081 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16082 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16083 it->multibyte_p is zero.
16084
16085 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
16086 Delete extern.
16087
160882008-02-01 Kenichi Handa <handa@m17n.org>
16089
16090 * coding.c (Fdefine_coding_system_internal): Fix category setting
16091 for a coding system of type iso-2022.
16092
160932008-02-01 Kenichi Handa <handa@m17n.org>
16094
16095 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
16096
160972008-02-01 Kenichi Handa <handa@m17n.org>
16098
16099 * syntax.c (Vnext_word_boundary_function_table): New variable.
16100 (next-word-boundary-function-table): Declare it as a Lisp variable
16101 in syms_of_syntax.
16102 (scan_words): Call functions in Vnext_word_boundary_function_table
16103 if any.
16104
16105 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
16106
16107 * fontset.c (fs_load_font): If fontp->charset is not negative,
16108 return fontp without setting its members.
16109
161102008-02-01 Dave Love <fx@gnu.org>
16111
16112 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
16113
16114 * m/sparc.h (HAVE_ALLOCA): Delete.
16115
16116 * s/irix6-5.h: Don't include strings.h.
16117 (bcopy, bzero, bcmp): Don't undef.
16118
16119 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
16120
16121 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
16122 (TIOCSIGSEND): Don't test IRIX6.
16123 (bcopy, bzero, bcmp): Define conditionally.
16124
161252008-02-01 Kenichi Handa <handa@m17n.org>
16126
16127 * buffer.c (Qas, Qmake, Qto): New variables.
16128 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
16129 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
16130
16131 * callproc.c (Fcall_process): Don't call insert_1_both directly if
16132 we are inserting a process output into a multibyte buffer.
16133
16134 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
16135 multibyte_char_to_unibyte.
16136
16137 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
16138 by the primary charset, make it eight-bit char.
16139 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
16140
16141 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
16142 (charset_8_bit__control, charset_8_bit_graphic)
16143 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
16144 (define_charset_internal): New function.
16145 (syms_of_charset): Call define_charset_internal for pre-defined
16146 charsets.
16147
16148 * charset.h (charset_8_bit): Extern it.
16149
16150 * coding.c (make_conversion_work_buffer): Adjust for the change
16151 of Fset_buffer_multibyte.
16152 (encode_coding_raw_text): Increment p0 in the loop.
16153
16154 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
16155
16156 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
16157 for the change of Fset_buffer_multibyte.
16158
16159 * fns.c (Fstring_to_multibyte): New function.
16160 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
16161
161622008-02-01 Dave Love <fx@gnu.org>
16163
16164 * xfns.c (x_put_x_image): Declare args.
16165
16166 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
16167 (try_font_list): Declare an arg.
16168
16169 * xdisp.c (message2_nolog, set_message): Declare an arg.
16170
16171 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
16172
16173 * syntax.c (scan_sexps_forward): Declare an arg.
16174
16175 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
16176 Declare an arg.
16177
16178 * lisp.h (Fnew_fontset): Declare.
16179
16180 * keymap.c (push_key_description): Call CHARACTERP correctly.
16181
16182 * fontset.c (fontset_add): Declare args. Call make_number correctly.
16183 (face_for_char): Delete unused vars.
16184 (Fset_fontset_font): Doc fix. Delete unused vars.
16185
16186 * doc.c (Fsubstitute_command_keys): Delete unused vars.
16187
16188 * composite.c (update_compositions): Declare arg.
16189
16190 * cm.c (calccost, cmgoto): Declare args.
16191
16192 * charset.c: Remove `emacs' conditional. Doc fixes.
16193 (map_char_table_for_charset): Declare.
16194
16195 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
16196
16197 * ccl.c: Remove `emacs' conditional.
16198
161992008-02-01 Kenichi Handa <handa@m17n.org>
16200
16201 The following changes are to allow specifying multiple font
16202 patterns for a character range (specified by script or charset).
16203
16204 * Makefile.in (abbrev.o): Depend on syntax.h.
16205 (xfaces.o): Depend on charset.h.
16206
16207 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
16208 SINGLE_BYTE_CHAR_P.
16209
16210 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
16211
16212 * character.h (Vchar_script_table): Extern it.
16213
16214 * character.c (Vscript_alist): Delete.
16215 (Vchar_script_table, Qchar_script_table): New variable.
16216 (syms_of_character): Declare Vchar_script_table as a lisp variable
16217 and initialize it.
16218
16219 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
16220 have property char-table-extra-slots, make no extra slot.
16221
16222 * dispextern.h (struct face): Delete member `charset'.
16223 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
16224 SINGLE_BYTE_CHAR_P.
16225 (choose_face_font, lookup_non_ascii_face, font_name_registry):
16226 Add prototypes.
16227 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
16228 (generate_ascii_font_name): Rename from generate_ascii_font.
16229
16230 * fontset.h (get_font_repertory_func): New prototype.
16231 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
16232 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
16233
16234 * fontset.c (Qprepend, Qappend): New variables.
16235 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
16236 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
16237 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
16238 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
16239 (fontset_ref_and_range, fontset_add, reorder_font_vector)
16240 (load_font_get_repertory): New functions.
16241 (fontset_set): Delete.
16242 (fontset_face): New arg FACE. Return face ID, not face.
16243 Complete re-write to handle new fontset structure. Change caller.
16244 (free_face_fontset): Use ASET istead of AREF (X) = Y.
16245 (face_for_char): Don't call lookup_face.
16246 (make_fontset_for_ascii_face): New arg FACE.
16247 (fs_load_font): New arg CHARSET_ID. Don't check
16248 Vfont_encoding_alist here.
16249 (find_font_encoding): New function.
16250 (list_fontsets): Use STRINGP, not ! NILP.
16251 (accumulate_script_ranges): New function.
16252 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
16253 re-written to handle new fontset structure.
16254 (Ffontset_font): Return a copy of element.
16255 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
16256 docstring of font-encoding-alist.
16257
16258 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
16259 (Fset_fotset_font): Fix arguments to 5.
16260
16261 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
16262
16263 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
16264 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16265 (highlight_trailing_whitespace): Adjust for the change of
16266 lookup_named_face.
16267
16268 * xfaces.c: Include charset.h.
16269 (load_face_font): Delete argument C. Change caller.
16270 (generate_ascii_font_name): Rename from generate_ascii_font.
16271 (font_name_registry): New function.
16272 (cache_face): Store ascii faces before non-ascii faces in buckets.
16273 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
16274 Lookup only ascii faces.
16275 (lookup_non_ascii_face): New function.
16276 (lookup_named_face): Delete argument C. Change caller.
16277 (lookup_derived_face): Delete argument C. Change caller.
16278 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
16279 a string, just call font_list with it.
16280 (choose_face_font): Delete arguments FACE and C. New arg
16281 FONT_SPEC. Change caller.
16282 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
16283 Change caller.
16284 (realize_non_ascii_face): New function.
16285 (realize_x_face): Call load_face_font here.
16286 (realize_tty_face): Delete argument C. Change caller.
16287 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
16288 get a face ID.
16289 (dump_realized_face): Don't print charset of FACE.
16290
16291 * xfns.c (x_set_font): Always call x_new_fontset and
16292 store_frame_parameter.
16293 (Fx_create_frame): Call x_new_fontset, not x_new_font.
16294 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
16295
16296 * xterm.h (x_get_font_repertory): Extern it.
16297
16298 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
16299 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
16300 it->multibyte_p is zero.
16301 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
16302 (x_new_fontset): If FONTSETNAME doesn't match any existing
16303 fontsets, create a new one.
16304 (x_get_font_repertory): New function.
16305
163062008-02-01 Kenichi Handa <handa@m17n.org>
16307
16308 * coding.c (Ffind_coding_systems_region_internal): Detect an
16309 ASCII only string correctly.
16310
16311 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
16312 version is 0.
16313
163142008-02-01 Kenichi Handa <handa@m17n.org>
16315
16316 * lread.c: Include "coding.h".
16317 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
16318 (load_each_byte, unread_char): New variables.
16319 (readchar_backlog): Delete.
16320 (readchar): Return a character unless load_each_byte is nonzero.
16321 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
16322 cons. If unread_char is not -1, simply return it.
16323 (unreadchar): Handle the case that readcharfun is
16324 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
16325 (read_multibyte): Delete.
16326 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
16327 (read_emacs_mule_char): New functions.
16328 (Fload): Even if the file doesn't have the extension ".elc", if
16329 safe_to_load_p returns a positive version number, assume that the
16330 file contains bytecompiled code. If the version is less than 22,
16331 load the file while decoding multibyte sequences by emacs-mule.
16332 (readevalloop): Don't use readchar_backlog.
16333 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
16334 (Fread_from_string): Pay attention to the case that STREAM is a cons.
16335 (read_escape): Delete the arg BYTEREP.
16336 (read1): Set load_each_byte to 1 temporarily while handling
16337 #@NUMBER. Don't call read_multibyte.
16338 (read_vector): Call Fread with a cons. If readcharfun is
16339 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
16340 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
16341 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
16342 and Qload_force_doc_strings.
16343
163442008-02-01 Kenichi Handa <handa@m17n.org>
16345
16346 * xdisp.c (face_before_or_after_it_pos): Call
16347 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16348
163492008-02-01 Kenichi Handa <handa@m17n.org>
16350
16351 * character.h (TRAILING_CODE_P): New macro.
16352 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
16353 (string_char_with_unification): Fix prototype.
16354 (Vscript_alist): Extern it.
16355
16356 * character.c (Vscript_alist): New variable.
16357 (string_char_with_unification, str_as_unibyte)
16358 (string_escape_byte8): Add `const' to local variables.
16359 (syms_of_character): Declare script-alist as a Lisp variable.
16360
16361 * charset.h (Vcharset_ordered_list): Extern it.
16362 (charset_ordered_list_tick): Extern it.
16363 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
16364 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
16365 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
16366 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
16367 (Funify_charset): Adjust for the change of Funify_charset.
16368
16369 * charset.c (charset_ordered_list_tick): New variable.
16370 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
16371 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
16372 deunify intead of unify a charset.
16373 (string_xstring_p): Add `const' to local variables.
16374 (find_charsets_in_text): Add `const' to arguments and local variables.
16375 (encode_char): Adjust for the change of Funify_charset. Fix
16376 detecting of invalid code.
16377 (Fset_charset_priority): Increment charset_ordered_list_tick.
16378 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
16379 and TO_CODE.
16380
16381 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
16382 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
16383 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
16384 (decode_coding_ccl, consume_chars)
16385 (Ffind_coding_systems_region_internal)
16386 (Fcheck_coding_systems_region): Add `const' to local variables.
16387
16388 * print.c (print_object): Use octal form for printing the
16389 contents of a bool vector.
16390
163912008-02-01 Dave Love <fx@gnu.org>
16392
16393 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
16394 <version == 20>: Refuse to load.
16395
163962008-02-01 Dave Love <fx@gnu.org>
16397
16398 * fns.c: Move coding.h.
16399 (Qcodeset, Qdays, Qmonths): New.
16400 (concat): Use CHARACTERP instead of INTEGERP.
16401 (Flocale_codeset): Delete.
16402 (Flanginfo): New function.
16403 (syms_of_fns): Change accordingly.
16404
16405 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
16406
164072008-02-01 Dave Love <fx@gnu.org>
16408
16409 * casetab.c (init_casetab_once, init_casetab_once): Fix
16410 CHAR_TABLE_SET call.
16411
16412 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
16413
16414 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
16415
16416 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
16417 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
16418 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
16419
16420 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
16421
16422 * coding.c (ENCODE_DESIGNATION, decode_eol)
16423 (make_conversion_work_buffer, code_conversion_restore)
16424 (Fdefine_coding_system_internal): Convert Lisp types.
16425 (code_conversion_restore): Use EQ, not ==.
16426 (Fencode_coding_string): Fix code_convert_string call.
16427
16428 * coding.h (code_convert_region): Fix prototype.
16429
16430 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
16431
16432 * fontset.c (fontset_ref, fontset_set, fs_load_font)
16433 (Ffontset_info): Convert Lisp types.
16434
16435 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
16436
16437 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
16438
16439 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
16440
16441 * chartab.c: Include "...h", not <...h> in some cases.
16442
16443 * callproc.c (Fcall_process): Remove unused variables.
16444
164452008-02-01 Dave Love <fx@gnu.org>
16446
16447 * coding.c (Fset_coding_system_priority): Allow null arg list.
16448
164492008-02-01 Dave Love <fx@gnu.org>
16450
16451 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16452 (Fself_insert_and_exit): Use CHARACTERP.
16453
16454 * callproc.c (Fcall_process): Remove unused vars.
16455
16456 * xterm.c (XTread_socket): Add extra dead keysyms.
16457
16458 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
16459
16460 * dispextern.h: Remove prototypes for redraw_frame,
16461 redraw_garbaged_frames.
16462
16463 * cmds.c (Fself_insert_command): Use CHARACTERP.
16464
16465 * chartab.c (make_sub_char_table): Remove unused var.
16466 (Fset_char_table_default, Fmap_char_table): Doc fix.
16467
16468 * keymap.c (access_keymap): Remove generic char code.
16469 (push_key_description): Use CHARACTERP.
16470
164712008-02-01 Dave Love <fx@gnu.org>
16472
16473 * charset.c: Doc fixes.
16474 (Funify_charset): Extra checking.
16475
164762008-02-01 Dave Love <fx@gnu.org>
16477
16478 * lread.c: Remove some unused variables.
16479 (safe_to_load_p): If safe, return the magic number version byte.
16480 (Fload): Maybe use load-with-code-conversion.
16481
164822008-02-01 Kenichi Handa <handa@m17n.org>
16483
16484 * category.c (Fmodify_category_entry): Don't modify the contents
16485 of category_set for characters out of the range. Avoid
16486 unnecessary modification.
16487
16488 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
16489 Vchar_unify_table. The default value of the table is now nil.
16490
16491 * character.c (syms_of_character): Setup Vchar_width_table for
16492 eight-bit-control and raw-byte chars.
16493
16494 * charset.h (enum define_charset_arg_index): Delete
16495 charset_arg_parents and add charset_arg_subset and
16496 charset_arg_superset.
16497 (enum charset_attr_index): Delete charset_parents and add
16498 charset_subset and charset_superset.
16499 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
16500 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
16501 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
16502 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
16503 (CHARSET_SUPERSET): New macros.
16504 (charset_work): Extern it.
16505 (ENCODE_CHAR): Use charset_work.
16506 (CHAR_CHARSET_P): Adjust for the change of encoder format.
16507 (map_charset_chars): Extern it.
16508
16509 * charset.c (load_charset_map): Set the default value of encoder
16510 and deunifier char-tables to nil.
16511 (map_charset_chars): Change argument. Change callers. Use
16512 map_char_table_for_charset instead of map_char_table.
16513 (Fmap_charset_chars): New optional args from_code and to_code.
16514 (Fdefine_charset_internal): Adjust for the change of
16515 `define-charset' (:parents -> :subset or :superset).
16516 (charset_work): New variable.
16517 (encode_char, syms_of_charset): Adjust for the change of
16518 Fdefine_charset_internal.
16519 (Ffind_charset_string): Setup the vector `charsets' correctly.
16520
16521 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
16522 the previous change.
16523 (char_table_ref_and_range): Adjust for the above change.
16524 (map_sub_char_table_for_charset): New function.
16525 (map_char_table_for_charset): New function.
16526
16527 * keymap.c (describe_vector): Handle a char-table directly here.
16528 (describe_char_table): Delete.
16529
16530 * lisp.h (map_charset_chars): Delete.
16531
165322008-02-01 Dave Love <fx@gnu.org>
16533
16534 * fns.c (count_combining): Comment out (unused).
16535 (Flocale_codeset): New.
16536 (syms_of_fns): Defsubr it.
16537
16538 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
16539 (size_t): Remove.
16540
165412008-02-01 Dave Love <fx@gnu.org>
16542
16543 * Makefile.in (chartab.o): Depend on charset.h.
16544
165452008-02-01 Kenichi Handa <handa@m17n.org>
16546
16547 * character.c (syms_of_character): Set the default value of
16548 Vprintable_chars to Qnil.
16549
165502008-02-01 Dave Love <fx@gnu.org>
16551
16552 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
16553
165542008-02-01 Kenichi Handa <handa@m17n.org>
16555
16556 * charset.c (load_charset_map): Handle the case that from < to
16557 correctly.
16558
16559 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
16560 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
16561 Pay attention to raw-8-bit chars.
16562
165632008-02-01 Kenichi Handa <handa@m17n.org>
16564
16565 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
16566 It is not bytecompiled now.
16567
16568 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
16569 (charset_jisx0208): New variables.
16570 (Fdefine_charset_internal): Setup them if appropriate.
16571 (init_charset_once): Initialize them to -1.
16572
16573 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
16574 (charset_jisx0208): Extern them.
16575
16576 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
16577 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
16578 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
16579 (setup_iso_safe_charsets): Fix arguments to Fassq.
16580 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
16581 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
16582 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
16583 (encode_coding_iso_2022): Change the 1st arg to
16584 ENCODE_ISO_CHARACTER to a variable.
16585
165862008-02-01 Kenichi Handa <handa@m17n.org>
16587
16588 * charset.h (enum define_charset_arg_index): New enums
16589 charset_arg_min_code and charset_arg_max_code.
16590 (struct charset): New member char_index_offset.
16591
16592 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
16593 Take charset->char_index_offset into account.
16594 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
16595 args[charset_arg_max_code]. Setup charset.char_index_offset.
16596 (syms_of_charset): Fix args to Fdefine_charset_internal.
16597
165982008-02-01 Dave Love <fx@gnu.org>
16599
16600 * coding.c (decode_coding_utf_8): Reject overlong sequences.
16601
166022008-02-01 Dave Love <fx@gnu.org>
16603
16604 * coding.c: Doc fixes.
16605 (Fcoding_system_aliases): Fix return value.
16606 (Qmac): Remove (duplicated) definition.
16607
166082008-02-01 Dave Love <fx@gnu.org>
16609
362654a6
JB
16610 * charset.c (Fcharset_priority_list, Fset_charset_priority):
16611 New functions.
aac0c6e3
MR
16612
16613 * character.c (Fstring): Doc fix.
16614
16615 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
16616
362654a6 16617 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
16618 (font-encoding-alist): Doc fix.
16619
166202008-02-01 Dave Love <fx@gnu.org>
16621
16622 * term.c (costs_set): Declare static, non-initialized for pcc.
16623 (encode_terminal_code): Remove unused var.
16624
16625 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
16626 for K&R.
16627
16628 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
16629
16630 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
16631 (suffixes): Move out of make_subsidiaries for K&R.
16632
16633 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
16634
16635 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
16636
166372008-02-01 Dave Love <fx@gnu.org>
16638
16639 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
16640
16641 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
16642
166432008-02-01 Yong Lu <lyongu@asia-infonet.com>
16644
16645 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
16646
16647 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
16648
166492008-02-01 Kenichi Handa <handa@m17n.org>
16650
16651 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
16652 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
16653
166542008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * coding.c (decode_coding_charset): Adjust for the change of
16657 Fdefine_coding_system_internal.
16658 (Fdefine_coding_system_internal): For a coding system of
16659 `charset' type, store a list of charset IDs in
16660 `charset_attr_charset_valids' element of coding attributes.
16661
166622008-02-01 Kenichi Handa <handa@m17n.org>
16663
16664 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16665 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16666 caller. Handle 2-byte and 3-byte charsets correctly.
16667 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16668 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16669 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16670 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16671 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16672 sequence.
16673 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16674 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16675 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16676 and alt&rule composition.
16677 (decode_coding_iso_2022): Handle composition correctly.
16678 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16679
16680 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16681 re-defining a charset. If the charset has :emacs-mule-id, setup
16682 emacs_mule_bytes.
16683 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16684
166852008-02-01 Kenichi Handa <handa@m17n.org>
16686
16687 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16688 (encode_coding_big5, encode_coding_charset): If coding requires safe
16689 encoding, produce a character specified by
16690 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16691
166922008-02-01 Dave Love <fx@gnu.org>
16693
16694 * xterm.c (XSetIMValues): Declare.
16695
16696 * process.c: Conditionally include sys/wait.h, pty.h.
16697
16698 * print.c (print_object): Fix print format for 64-bit systems.
16699
16700 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16701
16702 * buffer.c (emacs_strerror): Declare.
16703
16704 * fontset.c (Fclear_face_cache): Declare.
16705 (accumulate_font_info): Comment-out (unused).
16706 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16707 variables.
16708
16709 * character.h (string_escape_byte8): Declare.
16710
16711 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16712 unused vars.
16713 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16714 (Fmap_charset_chars): Doc fix.
16715
16716 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16717 (Fset_coding_system_priority, Fset_coding_system_priority)
16718 (Fdefine_coding_system_internal): Doc fix.
16719
167202008-02-01 Dave Love <fx@gnu.org>
16721
16722 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16723
167242008-02-01 Kenichi Handa <handa@m17n.org>
16725
16726 * character.c (string_escape_byte8): Make multibyte string with
16727 correct size.
16728
16729 * charset.c (Fmake_char): Delete unnecessary code.
16730
167312008-02-01 Kenichi Handa <handa@m17n.org>
16732
16733 * xfns.c (x_encode_text): Allocate coding.destination here, and
16734 call encode_coding_object with dst_object Qnil.
16735
16736 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16737 multibyte form correctly.
16738
16739 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16740 against Vfont_encoding_alist.
16741
16742 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16743 handling of charset list.
16744 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16745 (decode_coding_object): Move point to coding->dst_pos before
16746 calling post-read-conversion function.
16747 (encode_coding_object): Give correct arguments to
16748 pre-write-conversion. Ignore the return value of
16749 pre-write-conversion function. Pay attention to the case that
16750 pre-write-conversion changes the current buffer. If dst_object is
16751 Qt, even if coding->src_bytes is zero, allocate at least one byte
16752 to coding->destination.
16753
16754 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16755
16756 * charset.c (Fmake_char): Make it more backward compatible.
16757 (Fmap_charset_chars): Fix docstring.
16758
167592008-02-01 Dave Love <fx@gnu.org>
16760
16761 * coding.c: Doc fixes.
16762 (Fdefine_coding_system_alias): Use names, not symbols, in
16763 coding-system-alist.
16764
167652008-02-01 Kenichi Handa <handa@m17n.org>
16766
16767 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16768 of calling free_realized_face.
16769
167702008-02-01 Yong Lu <lyongu@asia-infonet.com>
16771
16772 * charset.c (read_hex): Don't treat SPC as a comment starter.
16773 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16774 (Fdecode_char): Fix typo.
16775
167762008-02-01 Kenichi Handa <handa@m17n.org>
16777
16778 * charset.h (struct charset): New member `code_space_mask'.
16779
16780 * coding.c (coding_set_source): Delete the local variable beg_byte.
16781 (encode_coding_charset, Fdefine_coding_system_internal):
16782 Delete the local variable charset.
16783 (Fdefine_coding_system_internal): Setup
16784 attrs[coding_attr_charset_valids] correctly.
16785
16786 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16787 member to check if CODE is valid or not.
16788 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16789 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16790 is within the range of charset->min_code and carset->max_code.
16791
167922008-02-01 Dave Love <fx@gnu.org>
16793
16794 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16795
16796 * dispextern.h (generate_ascii_font): Fix return type.
16797
16798 * xfaces.c (generate_ascii_font): Fix arg declaration.
16799
16800 * coding.c (coding_inherit_eol_type)
16801 (Fset_terminal_coding_system_internal)
16802 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16803
168042008-02-01 Kenichi Handa <handa@m17n.org>
16805
16806 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16807 multiple charsets correctly.
16808
168092008-02-01 Kenichi Handa <handa@m17n.org>
16810
16811 * search.c (boyer_moore): Fix handling of multibyte character
16812 translation.
16813
16814 * xdisp.c (display_mode_element): When the variable `elt' is
16815 changed, update `this' and `lisp_string'.
16816
168172008-02-01 Kenichi Handa <handa@m17n.org>
16818
16819 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16820
16821 * callproc.c (Fcall_process): Be sure to give the current buffer
16822 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16823
16824 * charset.c (struct charset_map_entries): New struct.
16825 (load_charset_map): Rename from parse_charset_map. New args
16826 entries and n_entries. Change caller.
16827 (load_charset_map_from_file): Rename from load_charset_map.
16828 Change caller. New arg control_flag. Call load_charset_map at
16829 the tail.
16830 (load_charset_map_from_vector): New function.
16831 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16832 (encode_char): If the charset is compact, change a character index
16833 to a code point.
16834
16835 * coding.c (coding_alloc_by_making_gap): Check the case that the
16836 source and destination are the same correctly.
16837 (decode_coding_raw_text): Set coding->consumed_char and
16838 coding->consumed to 0.
16839 (produce_chars): If coding->chars_at_source is nonzero, update
16840 coding->consumed_char and coding->consumed before calling
16841 alloc_destination.
16842 (Fdefine_coding_system_alias): Register ALIAS in
16843 Vcoding_system_alist.
16844 (syms_of_coding): Define `no-conversion' coding system at the tail.
16845
16846 * fileio.c (Finsert_file_contents): Set coding_system instead of
16847 val. If the current buffer is multibyte, always call
16848 decode_coding_gap.
16849
16850 * xfaces.c (try_font_list): Give higher priority to fontset's
16851 family than face's family.
16852
168532008-02-01 Kenichi Handa <handa@m17n.org>
16854
16855 * callproc.c (Fcall_process): Be sure to give the current buffer
16856 to decode_coding_c_string.
16857
16858 * xfaces.c (try_font_list): Give a family specified in a fontset
16859 higher priority than a family specified in a face.
16860
168612008-02-01 Kenichi Handa <handa@m17n.org>
16862
16863 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16864 Fix arguments to insert_from_buffer.
16865
16866 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16867
168682008-02-01 Kenichi Handa <handa@m17n.org>
16869
16870 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16871 (decode_coding_gap): Set coding->dst_multibyte correctly.
16872
168732008-02-01 Kenichi Handa <handa@m17n.org>
16874
16875 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16876 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16877 (encode_coding_utf_16): Substitute coding->default_char for
16878 non-Unicode characters.
16879 (decode_coding): Don't call record_insert here.
16880 (setup_coding_system): Initialize `surrogate' of
16881 coding->spec.utf_16 to 0.
16882 (EMIT_ONE_BYTE): Fix for multibyte case.
16883
16884 * insdel.c (insert_from_gap): Call record_insert.
16885
168862008-02-01 Kenichi Handa <handa@m17n.org>
16887
16888 * casefiddle.c (casify_region): Fix multibyte case.
16889
16890 * character.c (c_string_width): Add return type `int'.
16891 (char_string_with_unification): Delete arg ADVANCED.
16892
16893 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16894 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16895 (CHAR_STRING_ADVANCE): Make it do-while statement.
16896
16897 * chartab.c (sub_char_table_set_range): Optimize for the case
16898 DEPTH == 3. Add workaround code for a GCC optimization bug.
16899
16900 * charset.c (parse_charset_map): Remove an unused variable.
16901
16902 * coding.c: Delete unused variables.
16903
16904 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16905 earlier. If inserted is zero and the coding system doesn't
16906 require flushing, don't call decode_coding_gap.
16907
16908 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16909
169102008-02-01 Kenichi Handa <handa@m17n.org>
16911
16912 The following changes are for using Unicode as an internal
16913 character model, and use UTF-8 format for buffer/string
16914 representation.
16915
16916 * .gdbinit (xchartable): Adjust for the change of char table structure.
16917 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16918
16919 * Makefile.in (obj): Add character.o and chartab.o.
16920 (lisp, shortlisp): Remove utf-8.elc.
16921 (*.o): For many files, change dependency on charset.h to
16922 character.h, and add dependency on character.h.
16923 (character.o, chartab.o): New targets.
16924
16925 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16926 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16927 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16928 of "charset.h".
16929
16930 * dired.c, filelock.c: Include "character.h".
16931
16932 * alloc.c: Include "character.h" instead of "charset.h".
16933 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16934 (syms_of_alloc): Remove defsubr for Smake_char_table.
16935
16936 * buffer.c: Include "character.h" instead of "charset.h", don't
16937 include "coding.h".
16938 (Fset_buffer_multibyte): Adjust for UTF-8.
16939
16940 * buffer.h: EXFUN Fbuffer_live_p.
16941
16942 * callproc.c: Include "character.h" instead of "charset.h".
16943 (Fcall_process): Big change for the new code-conversion APIs.
16944
16945 * casetab.c: Include "character.h" instead of "charset.h".
16946 (set_canon, set_identity, shuffle): Adjust for the new
16947 map_char_table spec.
16948 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16949 accessing the char table structure.
16950
16951 * chartab.c: New file that implements char table.
16952
16953 * category.c: Include "character.h".
16954 (copy_category_entry): New function.
16955 (copy_category_table): Call map_char_table and copy_category_entry.
16956 (Fmake_category_table): Initialize all top-level slots.
16957 (char_category_set): New function.
16958 (modify_lower_category_set): Delete.
16959 (Fmodify_category_entry): Call char_table_ref_and_range.
16960
16961 * category.h (CATEGORY_SET): Just call char_category_set.
16962
16963 * ccl.c: Include "character.h".
16964 (Qccl, Qcclp): New variables.
16965 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16966 it's less than 256.
16967 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16968 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16969 and DST type.
16970 (ccl_driver): Change types of argument, adjust code accordingly.
16971 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16972 ccl_driver.
16973 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16974
16975 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16976 New members src_multibyte, dst_multibyte, consumed, and produced.
16977 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16978 (CODING_SPEC_CCL_PROGRAM): New macro.
16979 (ccl_driver): Update prototype.
16980 (Qccl, Qcclp, Fccl_program_p): Extern them.
16981 (CHECK_CCL_PROGRAM): New macro.
16982
16983 * character.c, character.h, chartab.c: New files.
16984
16985 * charset.c: Mostly re-written. Move character and multibyte sequence
16986 handling codes to character.c.
16987
16988 * charset.h: Mostly re-written. Move character and multibyte sequence
16989 handling codes to character.h.
16990
16991 * coding.c, coding.h: Mostly re-written.
16992
16993 * composite.c: Include "character.h" instead of "charset.h".
16994 (CHAR_WIDTH): Move to character.h.
16995 (HASH_KEY, HASH_VALUE): Delete.
16996
16997 * composite.h (enum composition_method): Change order of enumeration
16998 symbols.
16999
17000 * data.c: Include "character.h" instead of "charset.h".
17001 (Faref): Call CHAR_TABLE_REF for a char table.
17002 (Faset): Call CHAR_TABLE_SET for a char table.
17003
17004 * dispextern.h (free_realized_face, check_face_attribytes)
17005 (generate_ascii_font): Extern them.
17006 (free_realized_multibyte_face): Delete extern.
17007
17008 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
17009 table structure.
17010
17011 * editfns.c: Include "character.h" instead of "charset.h".
17012 (Fchar_to_string): Always call CHAR_STRING.
17013
17014 * emacs.c (main): Call init_charset_once, init_charset,
17015 syms_of_chartab, and syms_of_character.
17016
17017 * fileio.c: Include "character.h" instead of "charset.h".
17018 (Finsert_file_contents): Big change for the new code-conversion API.
17019 (choose_write_coding_system, Fwrite_region): Likewise.
17020 (build_annotations_2): Delete.
17021 (e_write): Big change for the new code-conversion API.
17022
17023 * fns.c: Include "character.h" instead of "charset.h".
17024 (copy_sub_char_table): Move to chartab.c.
17025 (Fcopy_sequence): Call copy_char_table for a char table.
17026 (concat): Delete codes calling count_multibyte.
17027 (string_char_to_byte, string_byte_to_char): Adjust for the new
17028 multibyte form.
17029 (internal_equal): Adjust for the change of char table structure.
17030 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
17031 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
17032 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
17033 (char_table_translate, optimize_sub_char_table)
17034 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
17035 chartab.c.
17036 (char_table_ref_and_index): Delete.
17037 (HASH_KEY, HASH_VALUE): Move to lisp.h.
17038 (Fmd5): Call preferred_coding_system instead of accessing
17039 Vcoding_category_list. Adjust for the new code-conversion API.
17040 (syms_of_fns): Move defsubr for char table related functions to
17041 chartab.c.
17042
17043 * fontset.c: Mostly re-written.
17044
17045 * fontset.h (struct font_info): Change type of the member encoding_type.
17046 (enum FONT_SPEC_INDEX): New enum.
17047 (fontset_font_pattern, fs_load_font): Update prototype.
17048 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
17049
17050 * indent.c: Include "character.h" instead of "charset.h".
17051 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
17052
17053 * insdel.c: Include "character.h" instead of "charset.h".
17054 (copy_text): Don't refer to Vnonascii_translation_table.
17055 (insert_from_gap): New function.
17056
17057 * keyboard.c: Include "character.h" instead of "charset.h".
17058 (command_loop_1): Never call direct_output_forward_char before
17059 a non-ASCII character.
17060 (read_char): If Vkeyboard_translate_table is a char table, always
17061 translate a character.
17062
17063 * keymap.c: Include "character.h".
17064 (store_in_keymap): Handle the case that IDX is a cons.
17065 (Fdefine_key): Handle the case that KEY is a cons and the car part
17066 is also a cons (range).
17067 (push_key_description): Adjust for the new character code.
17068 (describe_vector): Call describe_char_table for a char table.
17069 (describe_char_table): New function.
17070
17071 * keymap.h (describe_char_table): Extern it.
17072
17073 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
17074 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
17075 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
17076 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
17077 Delete.
17078 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
17079 structure.
17080 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
17081 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
17082 (CHARTAB_SIZE_BITS_3): New macros.
17083 (chartab_size): Extern it.
17084 (struct Lisp_Char_Table): Re-design.
17085 (struct Lisp_Sub_Char_Table): New structure.
17086 (HASH_KEY, HASH_VALUE): Move from fns.c.
17087 (CHARACTERBITS): Define as 22.
17088 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
17089 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
17090 (GC_SUB_CHAR_TABLE_P): New macro.
17091 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
17092 (code_convert_string_norecord): Deleted extern.
17093 (init_character_once, syms_of_character, init_charset)
17094 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
17095
17096 * lread.c: Include "character.h".
17097 (read_multibyte): New arg NBYTES.
17098 (read_escape): Change the meaning of returned *BYTEREP.
17099 (to_multibyte): Delete.
17100 (read1): Adjust the handling of char table and string.
17101
17102 * print.c: Include "character.h" instead of "charset.h".
17103 (print_string): Convert 8-bit raw bytes to octal form by
17104 string_escape_byte8.
17105 (print_object): Adjust for the new multibyte form. Print 8-bit
17106 raw bytes always in octal form. Handle sub char table correctly.
17107
17108 * process.c: Include "character.h" instead of "charset.h".
17109 (read_process_output, send_process): Adjust for the new
17110 code-conversion API.
17111
17112 * puresize.h (BASE_PURESIZE): Increase.
17113
17114 * regex.c: Include "character.h" instead of "charset.h".
17115 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
17116 (regex_compile): Accept a range whose starting and ending
17117 character have different leading bytes.
17118 (analyse_first): Adjust for the above change.
17119
17120 * search.c: Include "character.h" instead of "charset.h".
17121 (search_buffer, boyer_moore): Adjust for the new multibyte form.
17122 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
17123
17124 * syntax.c: Include "character.h" instead of "charset.h".
17125 (syntax_parent_lookup): Delete.
17126 (Fmodify_syntax_entry): Accept a cons as CHAR.
17127 (skip_chars): Adjust for the new multibyte form.
17128 (init_syntax_once): Call char_table_set_range instead of directly
17129 accessing the structure of a char table.
17130
17131 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
17132 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
17133 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
17134 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
17135
17136 * term.c: Include "buffer.h" and "character.h".
17137 (encode_terminal_code, write_glyphs): Adjust for the new
17138 code-conversion API.
17139 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
17140
17141 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
17142
17143 * xdisp.c: Include "character.h".
17144 (get_next_display_element): Adjust for the new multibyte form.
17145 (disp_char_vector): Adjust for the new char table structure.
17146 (decode_mode_spec_coding): Adjust for the new structure of
17147 coding system.
17148 (decode_mode_spec): Adjust for the new code-conversion API.
17149
17150 * xfaces.c: Include "character.h" instead of "charset.h".
17151 (load_face_font): Adjust for the change of choose_face_font and
17152 FS_LOAD_FONT.
17153 (generate_ascii_font): New function.
17154 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
17155 (set_font_frame_param): Adjust for the change of choose_face_font.
17156 (free_realized_face): Make it public.
17157 (free_realized_faces_for_fontset): Rename from
17158 free_realized_multibyte_face. Free also faces realized for ASCII.
17159 (choose_face_font): Change arguments. Adjust for the change of
17160 fontset_font_pattern and FS_LOAD_FONT.
17161
17162 * xfns.c: Include "character.h".
17163 (x_encode_text): Adjust for the new code-conversion API.
17164
17165 * xselect.c: Don't include "charset.h".
17166 (selection_data_to_lisp_data): Adjust for the new code conversion API.
17167
17168 * xterm.c: Include "character.h".
17169 (x_encode_char): New argument CHARSET. Change caller.
17170 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
17171 Call ENCODE_CHAR instead of SPLIT_CHAR.
17172 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
17173 CHAR_WIDTH instead of CHARSET_WIDTH.
17174 (XTread_socket): Adjust for the new code-conversion API.
17175 (x_new_font): Adjust for the change of FS_LOAD_FONT.
17176 (x_load_font): Adjust for the change of struct font.
17177
171782008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
17179
17180 * xfaces.c (face_at_buffer_position): Remove unused vars.
17181
171822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17183
17184 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
17185 Fix overflow checking.
17186
171872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
17188
17189 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
17190 Cancel previous change.
17191
171922008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17193
17194 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
17195 ccl->eight_bit_control. Fix check for buffer overflow.
17196 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
17197 (ccl_driver): Initialize extra_bytes to 0.
17198
171992008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
17200
17201 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
17202 return it ORed with ctrl_modifier.
17203
172042008-01-29 Miles Bader <miles@gnu.org>
17205
17206 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
17207
172082008-01-28 Jason Rumney <jasonr@gnu.org>
17209
17210 * w32.c (stat): Don't double check for networked drive.
17211
172122008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
17213
17214 * window.c (run_window_configuration_change_hook): New function.
17215 Code extracted from set_window_buffer. Set the selected frame.
17216 (set_window_buffer): Use it.
17217 * window.h (run_window_configuration_change_hook): Declare.
17218 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
17219
17220 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
17221
172222008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
17223
17224 * Makefile.in: Remove references to unused macros.
17225
172262008-01-26 Eli Zaretskii <eliz@gnu.org>
17227
17228 * w32.c (g_b_init_get_sid_sub_authority)
17229 (g_b_init_get_sid_sub_authority_count): New static variables.
17230 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
17231 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
17232 (init_user_info): Use them to retrieve uid and gid.
17233 Use 500/513, the Windows defaults, as Administrator's uid/gid.
17234 (fstat): Use pw_uid and pw_gid from the_passwd structure for
17235 st_uid and st_gid of the file.
17236
172372008-01-26 Jason Rumney <jasonr@gnu.org>
17238
17239 * w32.c (logon_network_drive): New function.
17240 (stat): Use it.
17241
172422008-01-26 Chong Yidong <cyd@stupidchicken.com>
17243
17244 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
17245 invisible text covered with an ellipsis.
17246
172472008-01-25 Richard Stallman <rms@gnu.org>
17248
17249 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
17250 jump back to beginning. Move some other initializations after that.
17251 (Qwindow_text_change_functions, Vwindow_text_change_functions):
17252 New variables.
17253 (syms_of_xdisp): Init them.
17254
17255 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
17256
17257 * buffer.c (reset_buffer_local_variables):
17258 Implement `permanent-local-hook'.
17259 (Qpermanent_local_hook): New variable.
17260 (syms_of_buffer): Init and staticpro it.
17261
172622008-01-25 Michael Albinus <michael.albinus@gmx.de>
17263
17264 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
17265
172662008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
17267
17268 * fns.c (Fclrhash): Return TABLE.
17269
172702008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17271
17272 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
17273 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
17274 is set even without positional changes.
17275 (x_scroll_bar_clear): Set bar->redraw_needed_p.
17276
17277 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
17278
172792008-01-23 Jason Rumney <jasonr@gnu.org>
17280
17281 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
17282
17283 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
17284 the unicode range available in MULE by locale-coding-system.
17285 Improve dbcs lead byte detection. Set event timestamp and modifiers
17286 earlier.
17287
172882008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17289
17290 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
17291 [MAC_OSX] (init_mac_osx_environment): Initialize it.
17292 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
17293 when used on child processes.
17294
172952008-01-21 Michael Albinus <michael.albinus@gmx.de>
17296
17297 * dbusbind.c (Fdbus_method_return_internal): Rename from
17298 Fdbus_method_return.
17299 (Fdbus_unregister_object): Move to dbus.el.
17300 (Fdbus_call_method, Fdbus_method_return_internal)
17301 (Fdbus_send_signal): Improve debug messages.
17302
173032008-01-20 Martin Rudalics <rudalics@gmx.at>
17304
17305 * undo.c (undo_inhibit_record_point): New variable.
17306 (syms_of_undo): Initialize it.
17307 (record_point): Don't record point when undo_inhibit_record_point
17308 is set.
17309
173102008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
17311
17312 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
17313
17314 * xdisp.c (Qauto_hscroll_mode): New var.
17315 (syms_of_xdisp): Initialize it.
17316 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
17317 window's buffer.
17318 (hscroll_windows): Don't check automatic_hscrolling_p here.
17319
17320 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
17321 vscroll if we're setting window-buffer to the value it already has.
17322
173232008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
17324
17325 * m/intel386.h: Remove references to XENIX.
17326
173272008-01-17 Andreas Schwab <schwab@suse.de>
17328
17329 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
17330 instead of HAVE_X86_64_LIB64_DIR.
17331 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
17332
173332008-01-17 Glenn Morris <rgm@gnu.org>
17334
17335 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
17336 to HAVE_X86_64_LIB64_DIR.
17337
173382008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
17339
17340 * s/irix3-3.h:
17341 * s/irix4-0.h:
17342 * s/386-ix.h:
17343 * s/domain.h:
17344 * s/hpux9-x11r4.h:
17345 * s/hpux9shxr4.h: Remove files for systems no longer supported.
17346
17347 * sysdep.c: Remove code containing references to symbols defined
17348 by unsupported systems.
17349
173502008-01-16 Glenn Morris <rgm@gnu.org>
17351
17352 * coding.c (select-safe-coding-system-function): Doc fix.
17353
173542008-01-15 Glenn Morris <rgm@gnu.org>
17355
17356 * config.in: Revert 2008-01-13 change: this is a generated file.
17357
173582008-01-13 Tom Tromey <tromey@redhat.com>
17359
17360 * lisp.h: Fix typo.
17361
173622008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17363
17364 * m/sequent-ptx.h:
17365 * m/sequent.h:
17366 * s/ptx.h:
17367 * s/ptx4-2.h:
17368 * s/ptx4.h: Remove files for systems no longer supported.
17369
17370 * callproc.c (Fcall_process): Fix previous change.
17371
173722008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
17373
17374 * unexsunos4.c: Remove file, system not supported anymore.
17375
17376 * m/mips.h:
17377 * m/intel386.h:
17378 * callproc.c:
17379 * config.in:
17380 * ecrt0.c:
17381 * emacs.c:
17382 * fileio.c:
17383 * frame.c:
17384 * getpagesize.h:
17385 * keyboard.c:
17386 * lread.c:
17387 * process.c:
17388 * puresize.h:
17389 * sysdep.c:
17390 * systty.h:
17391 * syswait.h:
17392 * unexec.c:
17393 * xdisp.c:
17394 * alloc.c: Remove code containing references to symbols defined by
17395 unsupported systems.
17396
173972008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
17398
17399 * coding.c (detect_coding_mask): Fix previous change.
17400
174012008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
17402
17403 * coding.c (detect_coding_iso2022): New arg
17404 latin_extra_code_state. Allow Latin extra codes only
17405 when *latin_extra_code_state is nonzero.
17406 (detect_coding_mask): If there is a NULL byte, detect the encoding
17407 as UTF-16 or binary. If Latin extra codes exist, detect the
17408 encoding as ISO-2022 only when there's no other proper encoding is
17409 found.
17410
174112008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17412
17413 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
17414 #ifdef MAC_OS.
17415
174162008-01-08 Richard Stallman <rms@gnu.org>
17417
17418 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
17419
174202008-01-06 Nick Roberts <nickrob@snap.net.nz>
17421
17422 * keyboard.c (parse_menu_item): Don't enclose key bindings on
17423 menu bar in parentheses.
17424
174252008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
17426
17427 * m/7300.h:
17428 * m/acorn.h:
17429 * m/alliant-2800.h:
17430 * m/alliant.h:
17431 * m/alliant1.h:
17432 * m/alliant4.h:
17433 * m/altos.h:
17434 * m/amdahl.h:
17435 * m/apollo.h:
17436 * m/att3b.h:
17437 * m/aviion-intel.h:
17438 * m/aviion.h:
17439 * m/celerity.h:
17440 * m/clipper.h:
17441 * m/cnvrgnt.h:
17442 * m/convex.h:
17443 * m/cydra5.h:
17444 * m/delta88k.h:
17445 * m/dpx2.h:
17446 * m/dual.h:
17447 * m/elxsi.h:
17448 * m/f301.h:
17449 * m/gould-np1.h:
17450 * m/gould.h:
17451 * m/i860.h:
17452 * m/ibmps2-aix.h:
17453 * m/ibmrt-aix.h:
17454 * m/ibmrt.h:
17455 * m/irist.h:
17456 * m/is386.h:
17457 * m/isi-ov.h:
17458 * m/mega68.h:
17459 * m/mg1.h:
17460 * m/news-r6.h:
17461 * m/news-risc.h:
17462 * m/news.h:
17463 * m/nh3000.h:
17464 * m/nh4000.h:
17465 * m/ns16000.h:
17466 * m/ns32000.h:
17467 * m/nu.h:
17468 * m/orion.h:
17469 * m/orion105.h:
17470 * m/paragon.h:
17471 * m/pfa50.h:
17472 * m/plexus.h:
17473 * m/pyramid.h:
17474 * m/pyrmips.h:
17475 * m/sh3el.h:
17476 * m/sps7.h:
17477 * m/sr2k.h:
17478 * m/stride.h:
17479 * m/sun1.h:
17480 * m/sun2.h:
17481 * m/sun3-68881.h:
17482 * m/sun3-fpa.h:
17483 * m/sun3-soft.h:
17484 * m/sun3.h:
17485 * m/sun386.h:
17486 * m/symmetry.h:
17487 * m/tad68k.h:
17488 * m/tahoe.h:
17489 * m/targon31.h:
17490 * m/tek4300.h:
17491 * m/tekxd88.h:
17492 * m/tower32.h:
17493 * m/tower32v3.h:
17494 * m/ustation.h:
17495 * m/wicat.h:
17496 * m/xps100.h:
17497 * s/cxux.h:
17498 * s/cxux7.h:
17499 * s/dgux.h:
17500 * s/dgux4.h:
17501 * s/dgux5-4-3.h:
17502 * s/dgux5-4r2.h:
17503 * s/esix.h:
17504 * s/esix5r4.h:
17505 * s/hiuxmpp.h:
17506 * s/hiuxwe2.h:
17507 * s/iris3-5.h:
17508 * s/iris3-6.h:
17509 * s/isc2-2.h:
17510 * s/isc3-0.h:
17511 * s/isc4-0.h:
17512 * s/isc4-1.h:
17513 * s/newsos5.h:
17514 * s/newsos6.h:
17515 * s/osf1.h:
17516 * s/osf5-0.h:
17517 * s/riscix1-1.h:
17518 * s/riscix12.h:
17519 * s/sco4.h:
17520 * s/sco5.h:
17521 * s/sunos4-0.h:
17522 * s/sunos4-1.h:
17523 * s/sunos413.h:
17524 * s/sunos4shr.h:
17525 * s/umax.h:
17526 * s/unipl5-2.h:
17527 * s/xenix.h:
17528 * cxux-crt0.s:
17529 * unexapollo.c:
17530 * unexconvex.c:
17531 * unexenix.c:
17532 * unexsni.c: Remove files for systems no longer supported.
17533
17534 * m/intel386.h: Remove references to unsupported systems.
17535
17536 * w32.c (get_emacs_configuration): Remove reference to i860.
17537
17538 * sysdep.c: Remove dead code.
17539
175402008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
17541
17542 * s/rtu.h:
17543 * m/masscomp.h: Remove files. Platform is obsolete.
17544
175452008-01-04 Michael Albinus <michael.albinus@gmx.de>
17546
17547 * dbusbind.c (Fdbus_method_return): New function.
17548 (xd_read_message): Add the serial number to the event.
17549 (Fdbus_register_method): Activate the function.
17550
175512008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
17552
17553 * keyboard.c (read_key_sequence): Fix typo.
17554
175552008-01-03 Michael Albinus <michael.albinus@gmx.de>
17556
17557 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
17558 (xd_signature, xd_append_arg): Handle element type detection for
17559 empty arrays.
17560 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
17561 SDATA () calls; this must be solved more general.
17562 (Fdbus_register_signal): Use SBYTES instead of strlen.
17563
175642008-01-03 Magnus Henoch <magnus@zemdatav>
17565
17566 * dbusbind.c (xd_append_arg): Use unsigned char instead of
17567 unsigned int for byte values (necessary for big-endian platform).
17568 (Fdbus_call_method): Handle the case of no returned arguments.
17569
175702007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
17571
17572 * dbusbind.c (xd_read_message): Use non-static input_event struct.
17573
175742007-12-31 Magnus Henoch <mange@freemail.hu>
17575
17576 * dbusbind.c (xd_signature): Signature of variant is just "v".
17577
175782007-12-30 Michael Albinus <michael.albinus@gmx.de>
17579
17580 * dbusbind.c: Fix several errors and compiler warnings.
17581 Reported by Tom Tromey <tromey@redhat.com>.
17582 (XD_ERROR, XD_DEBUG_MESSAGE)
17583 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
17584 (xd_append_arg): Part for basic D-Bus types rewritten.
17585 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
17586 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
17587 appropriate.
17588 (xd_read_message): Return Qnil. Don't signal an error; it is not
17589 useful during event reading.
17590 (Fdbus_register_signal): Signal an error if the check for
17591 FUNCTIONP fails.
17592 (Fdbus_register_method): New function. The implementation is not
17593 complete, the call of the function signals an error therefore.
17594 (Fdbus_unregister_object): New function, renamed from
17595 Fdbus_unregister_signal. The initial check signals an error, if
17596 the object is not well formed.
17597
175982007-12-30 Richard Stallman <rms@gnu.org>
17599
17600 * textprop.c (get_char_property_and_overlay):
17601 Signal error if POSITION is out of range in a buffer.
17602
176032007-12-29 Martin Rudalics <rudalics@gmx.at>
17604
17605 * w32fns.c (Fx_create_frame): Make copy of frame parameters
17606 because the original parameters are in pure storage now.
17607
176082007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17609
17610 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
17611
176122007-12-22 Eli Zaretskii <eliz@gnu.org>
17613
17614 * callint.c (syms_of_callint) <command-history>: Add reference to
17615 history-length in the doc string.
17616
176172007-12-17 Jason Rumney <jasonr@gnu.org>
17618
17619 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
17620 before passing as wParam.
17621
176222007-12-22 Michael Albinus <michael.albinus@gmx.de>
17623
17624 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
17625 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
17626 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
17627 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
17628 as number.
17629 (Fdbus_call_method): Fix docstring.
17630
176312007-12-21 Michael Albinus <michael.albinus@gmx.de>
17632
17633 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
17634 New macros.
17635 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
17636 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
17637 Simplify.
17638 (xd_signature): New function.
17639 (xd_append_arg): Compute also signatures. Major rewrite.
17640 (xd_retrieve_arg): Make debug messages friendly.
17641 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
17642 Check for signatures of arguments.
17643
176442007-12-19 Michael Albinus <michael.albinus@gmx.de>
17645
17646 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
17647 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
17648 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
17649 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
17650 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
17651 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
17652 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
17653 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
17654 (xd_retrieve_value): Remove. Functionality included in ...
17655 (xd_append_arg): New function.
17656 (Fdbus_call_method, Fdbus_send_signal): Apply it.
17657
176582007-12-16 Michael Albinus <michael.albinus@gmx.de>
17659
17660 * dbusbind.c (top): Include <stdio.h>.
17661 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17662 dbus_message_new_method_call and dbus_message_new_signal.
17663 (Fdbus_register_signal): Rename unique_name to uname.
17664 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17665 non-existing unique name. Fix typos in matching rule. Return an
17666 object which is useful in Fdbus_unregister_signal.
17667 (Fdbus_unregister_signal): Reimplementation, in order to remove
17668 only the corresponding entry.
17669 (Vdbus_registered_functions_table): Change the order of entries.
17670 Apply these changes in xd_read_message and Fdbus_register_signal.
17671
176722007-12-16 Andreas Schwab <schwab@suse.de>
17673
17674 * fileio.c (Finsert_file_contents): Fix overflow check to not
17675 depend on undefined integer overflow.
17676
176772007-12-14 Jason Rumney <jasonr@gnu.org>
17678
17679 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17680 for characters above 127.
17681
176822007-12-13 Jason Rumney <jasonr@gnu.org>
17683
17684 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17685 before dereferencing array.
17686 (lookup_vk_code): Remove zero comparison.
17687
176882007-12-14 Michael Albinus <michael.albinus@gmx.de>
17689
17690 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17691 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17692 Use `unsigned int' instead of `uint'.
17693 (xd_read_message, Fdbus_register_signal): Split expressions into
17694 multiple lines before operators "&&" and "||", according to the
17695 GNU Coding Standards.
17696
176972007-12-14 Eli Zaretskii <eliz@gnu.org>
17698
17699 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17700
177012007-12-12 Juri Linkov <juri@jurta.org>
17702
17703 * buffer.c (Frename_buffer): In interactive spec replace
17704 `read-buffer' with `read-string' that uses `buffer-name-history'
17705 as history, and the current buffer's name as default.
17706
177072007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17708
17709 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17710 manipulating the backtrace manually.
17711 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17712 (struct backtrace, backtrace_list): Remove.
17713 (command_loop_1): Remove dead var `no_direct'.
17714
17715 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17716 preserve non-built-in buffer-local variables.
17717 (Fkill_all_local_variables): Don't re-create&re-set permanent
17718 buffer-local variables.
17719
177202007-12-09 Juri Linkov <juri@jurta.org>
17721
17722 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17723 Lisp code that uses `read-buffer' with current buffer as default.
17724
177252007-12-08 Michael Albinus <michael.albinus@gmx.de>
17726
17727 * dbusbind.c (xd_read_message): Generate an event for every
17728 registered handler. There might be several handlers registered
17729 for the same signal.
17730 (Fdbus_register_signal): Don't overwrite a registration for the
17731 same signal. Add a new registration if handlers are different.
17732 (Vdbus_registered_functions_table): Rework doc string.
17733
177342007-12-07 Michael Albinus <michael.albinus@gmx.de>
17735
17736 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17737 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17738 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17739 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17740 Unify argument lists.
17741 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17742 arguments and hash table keys. Use unique name for service.
17743 (Fdbus_unregister_signal): Remove checks.
17744 (Vdbus_registered_functions_table): Fix doc string.
17745
177462007-12-05 Magnus Henoch <mange@freemail.hu>
17747
17748 * process.c (make_process): Initialize pty_flag to 0.
17749
177502007-12-05 Jason Rumney <jasonr@gnu.org>
17751
17752 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17753 specified XBMs.
17754
177552007-12-05 Richard Stallman <rms@gnu.org>
17756
17757 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17758
177592007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17760
17761 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17762 New variable.
17763 (mac_try_close_socket) [MAC_OSX]: New function.
17764 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17765 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17766
17767 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17768 Use mac_try_close_socket.
17769
177702007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17771
17772 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17773 reloc_base.
17774 (copy_dysymtab): Compute relocation base here.
17775 (rebase_reloc_address) [__ppc64__]: New function.
17776 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17777 changed.
17778
177792007-12-05 Jason Rumney <jasonr@gnu.org>
17780
17781 * w32proc.c (sys_spawnve): Quote args with wildcards.
17782
177832007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17784
17785 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17786 __objc_* sections.
17787 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17788
177892007-12-05 Michael Albinus <michael.albinus@gmx.de>
17790
17791 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17792 Move check for Vdbus_registered_functions_table to
17793 xd_read_queued_messages.
17794 (xd_read_queued_messages): Protect xd_read_message calls by
17795 internal_condition_case_1.
17796
177972007-12-04 Michael Albinus <michael.albinus@gmx.de>
17798
17799 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17800 Qdbus_system_bus and Qdbus_session_bus, respectively.
17801 (Vdbus_intern_symbols): Remove.
17802 (Vdbus_registered_functions_table): New hash table.
17803 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17804 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17805 Rewrite in order to manage registered functions by hash table
17806 Vdbus_registered_functions_table.
17807
178082007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17809
17810 * xterm.c: Update URL to Window Manager Specification in comment.
17811
178122007-12-02 Michael Albinus <michael.albinus@gmx.de>
17813
17814 * config.in (HAVE_DBUS): Add.
17815
17816 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17817 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17818 (obj): Add $(DBUS_OBJ).
17819 (LIBES): Add $(DBUS_LIBS).
17820 (dbusbind.o): New target.
17821
17822 * dbusbind.c: New file.
17823
17824 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17825
17826 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17827 (Qdbus_event): New Lisp symbol.
17828 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17829 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17830 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17831
17832 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17833
178342007-12-01 Richard Stallman <rms@gnu.org>
17835
17836 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17837
178382007-11-30 Jason Rumney <jasonr@gnu.org>
17839
17840 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17841 (w32con_reset_terminal_modes): Clear screen buffer.
17842 (w32_face_attributes): Don't use color indexes that are out of range.
17843 Only reverse the default colors.
17844
17845 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17846 WINDOWSNT.
17847
17848 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17849
178502007-11-29 Jason Rumney <jasonr@gnu.org>
17851
17852 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17853 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17854 if the terminal colors are initialized.
17855 (unspecified_fg, unspecified_bg): Remove unused declarations.
17856
178572007-11-29 Andreas Schwab <schwab@suse.de>
17858
17859 * keyboard.c (apply_modifiers): Fix typo.
17860
178612007-11-29 Richard Stallman <rms@gnu.org>
17862
17863 * keymap.c (Fcurrent_local_map): Doc fix.
17864
178652007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17866
17867 * s/gnu-kfreebsd.h: New file.
17868
178692007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17870
17871 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17872 Don't cast redundantly.
17873
17874 * keyboard.c (KEY_TO_CHAR): New macro.
17875 (parse_modifiers, apply_modifiers): Accept integer arguments.
17876 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17877 for chars and symbol keys.
17878 After doing such remapping, apply function-key-map again.
17879
178802007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17881
17882 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17883 compiled anymore.
17884
178852007-11-26 Andreas Schwab <schwab@suse.de>
17886
17887 * process.c (list_processes_1): Fix indentation level of the
17888 command column.
17889
178902007-11-23 Andreas Schwab <schwab@suse.de>
17891
17892 * editfns.c (Fformat): Handle %c specially since it requires the
17893 argument to be of type int.
17894
178952007-11-23 Markus Triska <markus.triska@gmx.at>
17896
17897 * emacs.c (main): Call init_editfns before init_process, since
17898 init_process sets Vprocess_connection_type depending on OS release.
17899
179002007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17901
17902 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17903 (find_symbol_value): Use do_symval_forwarding.
17904
17905 * data.c (set_internal): Set the value in the `cons-cell' (for
17906 Buffer_Local_values) not only for frame-local variables.
17907
179082007-11-22 Andreas Schwab <schwab@suse.de>
17909
17910 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17911 values to sprintf.
17912 * keymap.c (Fsingle_key_description): Likewise.
17913 * print.c (print_object): Likewise.
17914
179152007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17916
17917 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17918 file for image is nil.
17919
179202007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17921
17922 * term.c: Include stdarg.h.
17923 (fatal): Implement using varargs.
17924 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17925
179262007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17927
17928 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17929 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17930 Update call to buffer_slot_type_mismatch.
17931 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17932 (buffer_slot_type_mismatch): Update.
17933 * buffer.c (buffer_local_types): Remove.
17934 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17935 (defvar_per_buffer): Set the type in the buffer_objfwd.
17936
179372007-11-21 Jason Rumney <jasonr@gnu.org>
17938
17939 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17940 CreateFileMapping returns NULL on failure.
17941
179422007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17943
17944 * search.c (Fset_match_data): Remove the `evaporate' feature.
17945 (unwind_set_match_data): Don't use the `evaporate' feature.
17946
179472007-11-21 Jason Rumney <jasonr@gnu.org>
17948
17949 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17950
17951 * w32console.c (w32con_write_glyphs): Remove unused variables.
17952
179532007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17954
17955 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17956
17957 * s/darwin.h (MULTI_KBOARD): Remove.
17958
17959 * macfns.c (x_create_tip_frame, Fx_create_frame)
17960 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17961
179622007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17963
17964 * buffer.c (Fbuffer_local_value): Remove redundant test.
17965 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17966 than in `current-buffer' to match the comment.
17967 Do the swap using swap_in_global_binding.
17968
17969 * data.c (store_symval_forwarding, set_internal):
17970 * eval.c (specbind): Remove dead code.
17971
17972 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17973 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17974 Since we do not want to see internal Lisp_*fwd objects here.
17975
179762007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17977
17978 * sysdep.c (init_system_name): Use getaddrinfo if available.
17979
17980 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17981 (x_scroll_bar_note_movement): start, end, with, height in struct
17982 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17983
179842007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17985
17986 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17987
179882007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17989
17990 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17991 This undoes Richard's change of 14-Oct-2002.
17992
17993 * alloc.c (allocate_other_vector):
17994 * lisp.h (allocate_other_vector): Remove.
17995
17996 * window.c (struct save_window_data): Move non-lisp data to the end
17997 and make it `int' rather than Lisp_Object.
17998 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17999 Done wrap/unwrap integer values.
18000 (Fset_window_configuration, compare_window_configurations):
18001 Update use of fields to their new types.
18002
18003 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
18004 Turn integer fields into `int'. Merge x_window_low and x_window_high.
18005 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
18006 (SET_SCROLL_BAR_X_WINDOW): Remove.
18007 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
18008 Access the new x_window field directly.
18009 * xterm.c (x_scroll_bar_create): Use a pseudovector.
18010 Don't wrap/unwrap integers into Lisp_Objects.
18011 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
18012 (x_scroll_bar_report_motion):
18013 Don't wrap/unwrap integers into Lisp_Objects.
18014 (x_term_init): Use SDATA.
18015 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
18016 (x_scroll_bar_set_handle, x_scroll_bar_remove)
18017 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
18018 (x_scroll_bar_report_motion, x_scroll_bar_clear):
18019 * xfns.c (x_set_background_color):
18020 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
18021 Access the new x_window field directly.
18022
18023 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
18024 (allocate_pseudovector): Make non-static.
18025
18026 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
18027 (allocate_pseudovector): Declare.
18028 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
18029
180302007-11-15 Andreas Schwab <schwab@suse.de>
18031
18032 * editfns.c (Fformat): Correctly format EMACS_INT values.
18033 Also take precision into account when formatting an integer.
18034
18035 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
18036
180372007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
18038
18039 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
18040 (syms_of_keyboard): Defsubr it.
18041
18042 * data.c (swap_in_global_binding): Fix longstanding bug where
18043 store_symval_forwarding was not called with the right second argument,
18044 thus causing objfwd-ing from being dropped.
18045
180462007-11-14 Juanma Barranquero <lekktu@gmail.com>
18047
18048 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
18049 (Fx_display_pixel_height, Fx_display_planes)
18050 (Fx_display_color_cells, Fx_server_max_request_size)
18051 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18052 (Fx_display_visual_class, Fx_display_save_under):
18053 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
18054 (Fx_display_pixel_height, Fx_display_planes)
18055 (Fx_display_color_cells, Fx_server_max_request_size)
18056 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18057 (Fx_display_mm_height, Fx_display_mm_width)
18058 (Fx_display_backing_store, Fx_display_visual_class)
18059 (Fw32_select_font, Fx_display_save_under):
18060 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
18061 (Fx_display_pixel_height, Fx_display_planes)
18062 (Fx_display_color_cells, Fx_server_max_request_size)
18063 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
18064 (Fx_display_save_under): Fix typos in docstrings.
18065
180662007-11-14 Juanma Barranquero <lekktu@gmail.com>
18067
18068 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
18069 corresponding to deleted entries; they are an implementation detail.
18070 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
18071 Remove variables.
18072 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
18073 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
18074 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
18075 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
18076 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
18077 (Fw32_define_rgb_color, Fw32_load_color_file)
18078 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
18079 Fix typos in docstrings.
18080 (Fx_server_version): Reflow docstring.
18081 (Fw32_shell_execute): Doc fixes.
18082
180832007-11-13 Juanma Barranquero <lekktu@gmail.com>
18084
18085 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
18086 if w32_parse_hot_key returned nil.
18087
180882007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
18089
18090 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
18091
180922007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 18093
aac0c6e3
MR
18094 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
18095
18096 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
18097
18098 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
18099 Remove W32_SCROLL_BAR_CLICK_EVENT.
18100
18101 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
18102 Add MULTIMEDIA_KEY_EVENT.
18103
18104 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
18105 (lispy_multimedia_keys) [WINDOWSNT]: New array.
18106 (make_lispy_event) [WINDOWSNT]: Use it to translate
18107 MULTIMEDIA_KEY_EVENT.
18108
18109 * w32term.h (WM_APPCOMMAND): Define if not already.
18110 (GET_APPCOMMAND_LPARAM): Likewise.
18111
18112 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
18113 WM_APPCOMMAND.
18114
18115 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
18116 (syms_of_w32fns): Export and initialize it.
18117 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
18118
181192007-11-09 Chong Yidong <cyd@stupidchicken.com>
18120
18121 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
18122 twice.
18123
18124 * xdisp.c (handle_face_prop): Fix last change.
18125
181262007-11-09 Richard Stallman <rms@gnu.org>
18127
18128 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
18129 not just for after-strings and before-strings.
18130 Call face_for_overlay_string and pass the overlay to it.
18131 (handle_display_prop): Determine whether property came from an overlay.
18132 Pass OVERLAY arg to handle_single_display_spec.
18133 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
18134 (load_overlay_strings): Fill in it->string_overlays.
18135 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
18136
18137 * xfaces.c (face_for_overlay_string): Function renamed from
18138 face_at_buffer_position_no_overlays, and add arg OVERLAY.
18139
18140 * dispextern.h (struct it): New elt string_overlays.
18141 New elt from_overlay, also in stack.
18142 Rearrange a few elements.
18143 (face_for_overlay_string): Decl renamed from
18144 face_at_buffer_position_no_overlays, and add argument.
18145
181462007-11-09 Richard Stallman <rms@gnu.org>
18147
18148 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
18149 to get the base face for an overlay string.
18150
18151 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
18152
18153 * xfaces.c (face_at_buffer_position_no_overlays): New function.
18154
18155 * xdisp.c (handle_stop): Move some code out of loop.
18156
181572007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18158
18159 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
18160 Fix conversion from Lisp object to ATSUFontID.
18161
181622007-11-09 Jason Rumney <jasonr@gnu.org>
18163
18164 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
18165
181662007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18167
18168 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
18169 Don't assume regions are aligned to page boundary.
18170 (print_load_command_name): Add LC_UUID if defined.
18171
181722007-11-09 Richard Stallman <rms@gnu.org>
18173
18174 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
18175
181762007-11-07 Jason Rumney <jasonr@gnu.org>
18177
18178 * s/windows95.h: Remove.
18179
181802007-11-06 Jan Djärv <jan.h.d@swipnet.se>
18181
18182 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
18183 abort with a message on unhandled store_type values.
18184
181852007-11-01 Jan Djärv <jan.h.d@swipnet.se>
18186
18187 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
18188 Remove HAVE_X11R5 and HAVE_X11R4.
18189
181902007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18191
18192 * Makefile.in: Remove references to sunfns.c and sunfns.o.
18193
181942007-11-01 Johan Bockgård <bojohan@gnu.org>
18195
18196 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
18197 Don't set s->stippled_p here, since it has already been set by
18198 x_set_glyph_string_gc from x_draw_glyph_string.
18199
182002007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
18201
18202 * sunfns.c: Remove file.
18203
18204 * m/sun386.h:
18205 * m/sun2.h:
18206 * m/sparc.h: Remove Sun windows code.
18207
182082007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
18209
18210 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
18211 (init_keyboard): Set current_kboard's window-system to nil.
18212 (tty_read_avail_input): Typo.
18213 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
18214
182152007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
18216
18217 * s/usg5-4.h:
18218 * s/usg5-3.h:
18219 * s/ptx.h:
18220 * m/is386.h:
18221 * m/ibmps2-aix.h:
18222 * Makefile.in: Remove all mentions of X10.
18223
18224 * dispnew.c (syms_of_display): Don't mention version 10.
18225
182262007-10-28 Juanma Barranquero <lekktu@gmail.com>
18227
18228 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
18229 ($(BLD)/abbrev.$(O)): Remove.
18230
182312007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
18232
18233 Rewrite abbrev.c in Elisp.
18234 * image.c (Qcount): Don't declare as extern.
18235 (syms_of_image): Initialize and staticpro `Qcount'.
18236 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
18237 * emacs.c (main): Don't call syms_of_abbrev.
18238 * Makefile.in (obj): Remove abbrev.o.
18239 (abbrev.o): Remove.
18240 * abbrev.c: Remove.
18241
182422007-10-26 Martin Rudalics <rudalics@gmx.at>
18243
18244 * window.c (window_min_size_2): Don't count header-line.
18245
182462007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
18247
18248 * frame.h (struct frame): Move all bit fields after the first bit
18249 field to take advantage of the available space. Group all the
18250 chars together to reduce wasted space due to padding.
18251
182522007-10-26 Juanma Barranquero <lekktu@gmail.com>
18253
18254 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
18255
18256 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
18257 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
18258 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
18259 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
18260 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
18261 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
18262 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
18263 (last_marked, mark_object_loop_halt): Make static.
18264
18265 * frame.c (syms_of_frame) <delete-frame-functions>:
18266 Fix typo in docstring.
18267
182682007-10-25 Juanma Barranquero <lekktu@gmail.com>
18269
18270 * w32.c (init_environment): Fix tiny memory leak.
18271 (w32_get_resource): Remove unused variable `ok'.
18272
182732007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
18274
18275 Make `window-system' into a keyboard-local variable (rather than
18276 frame-local as done originally by multi-tty).
18277
18278 * keyboard.h (struct kboard): Add Vwindow_system.
18279 * keyboard.c (init_kboard): Set a default for Vwindow_system.
18280 (mark_kboards): Mark Vwindow_system.
18281
18282 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
18283 (init_display): Don't set the obsolete `window-system' frame-param.
18284
18285 * xterm.c (x_term_init):
18286 * w32term.c (w32_create_terminal):
18287 * term.c (init_tty): Set Vwindow_system.
18288 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
18289 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
18290
18291 * xfns.c (Fx_create_frame, x_create_tip_frame):
18292 * w32fns.c (Fx_create_frame, x_create_tip_frame):
18293 * macfns.c (Fx_create_frame):
18294 Don't set the obsolete `window-system' frame-param.
18295
18296 * frame.h (Qwindow_system): Remove.
18297 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
18298 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
18299
183002007-10-24 Richard Stallman <rms@gnu.org>
18301
18302 * frame.c (x_figure_window_size): For fullscreen case,
18303 set USPosition | PPosition without clobbering rest of window_prompting.
18304
18305 * keyboard.c (Fcurrent_idle_time): Doc fix.
18306
18307 * print.c (Fwith_output_to_temp_buffer): Doc fix.
18308
183092007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
18310
18311 * process.c (unwind_request_sigio): Only define if __ultrix__.
18312
18313 * callproc.c (child_setup): Remove spurious *.
18314
18315 * lisp.h (Fget_text_property): Declare.
18316 (have_menus_p): Declare it here rather than in sys-dep header files.
18317 * macterm.h (have_menus_p):
18318 * msdos.h (have_menus_p):
18319 * xterm.h (have_menus_p): Remove.
18320
18321 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
18322 (Fmake_variable_frame_local): Just check the variable's const-ness
18323 rather than checking nil or t.
18324
183252007-10-22 Jason Rumney <jasonr@gnu.org>
18326
18327 * w32fns.c: Include math.h.
18328 (w32_abort): Declaration moved to nt/config.nt.
18329
18330 * s/ms-w32.h (HAVE_STDLIB_H): Define.
18331 (abort): Redefinition moved to nt/config.nt.
18332
18333 * m/windowsnt.h: Remove.
18334
183352007-10-22 Juanma Barranquero <lekktu@gmail.com>
18336
18337 * emacs.c (Fdump_emacs): Fix typo in message.
18338 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
18339 <installation-directory>: Reflow docstring.
18340
183412007-10-22 Juri Linkov <juri@jurta.org>
18342
18343 * minibuf.c: Allow minibuffer default to be a list of default values.
18344 With empty input use the first element of this list as returned default.
18345 (string_to_object)
18346 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
18347 (read_minibuf): If defalt is cons, set histstring to its car.
18348 (Fread_string): If default_value is cons, set val to its car.
18349 (Fread_buffer): If def is cons, use its car.
18350 (Fcompleting_read): If defalt is cons, set val to its car.
18351
183522007-10-21 Michael Albinus <michael.albinus@gmx.de>
18353
18354 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
18355
183562007-10-20 Juanma Barranquero <lekktu@gmail.com>
18357
18358 * doc.c (Fdocumentation): Check for advice in all cases.
18359
183602007-10-19 Chong Yidong <cyd@stupidchicken.com>
18361
18362 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
18363
183642007-10-19 Richard Stallman <rms@gnu.org>
18365
18366 * doc.c (Fdocumentation): Check for and handle an advised function.
18367
183682007-10-19 Juanma Barranquero <lekktu@gmail.com>
18369
18370 * process.c (Fset_process_filter): Doc fix.
18371
183722007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
18373
18374 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
18375 which caused key-translation-map to applied repeatedly (thus breaking
18376 double-mode).
18377
183782007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18379
18380 * xselect.c (x_own_selection, x_handle_selection_clear)
18381 (x_clear_frame_selections):
18382 * w32menu.c (list_of_panes, list_of_items):
18383 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
18384 * textprop.c (validate_plist, interval_has_all_properties)
18385 (interval_has_some_properties, interval_has_some_properties_list)
18386 (add_properties, text_property_list):
18387 * process.c (Fget_buffer_process, list_processes_1, status_notify):
18388 * minibuf.c (Fassoc_string):
18389 * macselect.c (x_own_selection, x_clear_frame_selections)
18390 (Fx_disown_selection_internal):
18391 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
18392 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
18393
183942007-10-17 Chong Yidong <cyd@stupidchicken.com>
18395
18396 * process.c: Link to libs for calling res_init() if available.
18397 (Fmake_network_process): Call res_init() before getaddrinfo or
18398 gethostbyname, if possible.
18399
184002007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
18401
18402 * lread.c (read1): Set pvectype for char_tables.
18403
18404 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
18405 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
18406 Add type checks.
18407 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
18408
18409 * alloc.c (free_misc): Use XMISCTYPE.
18410 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
18411
184122007-10-17 Glenn Morris <rgm@gnu.org>
18413
18414 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
18415 (syms_of_minibuf): Add Qcompletion_ignore_case.
18416 * dired.c (Qcompletion_ignore_case): Change to external.
18417 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
18418 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
18419 (Fread_file_name): Use it rather than intern'ing.
18420
18421 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
18422 (Fread_coding_system): Ignore case of user input.
18423
184242007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18425
18426 * xdisp.c (handle_display_prop): Ignore display specs after
18427 replacing one when string text is being replaced.
18428 (handle_single_display_spec): Pretend as if characters with display
18429 property haven't been consumed only when buffer text is being replaced.
18430
184312007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
18432
18433 * xfns.c (Fx_create_frame, Fx_display_list):
18434 * window.c (window_fixed_size_p, enlarge_window)
18435 (shrink_window_lowest_first):
18436 * macterm.c (init_font_name_table):
18437 * macfns.c (Fx_create_frame, Fx_display_list):
18438 * lread.c (close_load_descs):
18439 * keyboard.c (read_char_x_menu_prompt):
18440 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
18441 * coding.c (code_convert_region_unwind): Test the type of an object
18442 rather than just !NILP before extracting data from it.
18443
18444 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
18445
18446 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
18447 (XMISCANY): New macro.
18448 (XMISCTYPE): Use it.
18449 (struct Lisp_Misc_Any): New type.
18450 (union Lisp_Misc): Use it.
18451 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
18452 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
18453 (find_symbol_value, set_internal, default_value, Fset_default)
18454 (Fmake_variable_buffer_local, Fmake_local_variable)
18455 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
18456 (Flocal_variable_if_set_p, Fvariable_binding_locus):
18457 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
18458 * alloc.c (allocate_buffer): Set the size and tag.
18459 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
18460 Use XMISCANY.
18461 (die): Follow the GNU convention for error messages.
18462 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
18463 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
18464 tag any more.
18465 (set_buffer_internal_1):
18466 * frame.c (store_frame_param):
18467 * eval.c (specbind):
18468 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
18469
18470 * doc.c (Fsnarf_documentation): Simplify.
18471
184722007-10-14 Juanma Barranquero <lekktu@gmail.com>
18473
18474 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
18475 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
18476
184772007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
18478
18479 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
18480
184812007-10-14 Juanma Barranquero <lekktu@gmail.com>
18482
18483 * eval.c (do_autoload): Don't save autoloads.
18484
18485 * data.c (Ffset): Save autoload of the function being set.
18486
184872007-10-07 John Paul Wallington <jpw@pobox.com>
18488
18489 * xfns.c (x_create_tip_frame): Set the `display-type' frame
18490 parameter before setting up faces.
18491
184922007-10-13 Eli Zaretskii <eliz@gnu.org>
18493
18494 * ccl.c (Fregister_code_conversion_map):
18495 * keyboard.c (append_tool_bar_item): Reformat last change.
18496
18497 * lisp.h (eabs): Rename from `abs'. All callers changed.
18498
184992007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
18500
18501 * buffer.c (add_overlay_mod_hooklist):
18502 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
18503 * fontset.c (make_fontset):
18504 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
18505 (append_tool_bar_item):
18506 * macmenu.c (grow_menu_items):
18507 * w32menu.c (grow_menu_items):
18508 * xmenu.c (grow_menu_items): Use larger_vector.
18509
185102007-10-13 Eli Zaretskii <eliz@gnu.org>
18511
18512 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
18513 selected frame'' on MSDOS).
18514
185152007-10-12 Martin Rudalics <rudalics@gmx.at>
18516
18517 * frame.c (Qexplicit_name): New variable.
18518 (x_report_frame_params): Report it in parameter alist.
18519 (syms_of_frame): Intern and staticpro it.
18520
185212007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
18522
18523 * macfns.c (x_create_tip_frame): Set terminal for frame.
18524
185252007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
18526
18527 * frame.c (Qenvironment): Remove.
18528 (syms_of_frame) <Qenvironment>: Don't initialize.
18529 (Fdelete_frame): Don't treat the `environment' param specially.
18530 * frame.h (Qenvironment): Don't declare.
18531 * callproc.c (set_initial_environment): Don't set unused frame param.
18532
18533 * frame.c (Fframe_with_environment): Remove.
18534 (syms_of_frame) <Sframe_with_environment>: Don't declare.
18535
18536 * lisp.h (Fframe_with_environment): Don't declare.
18537
185382007-10-10 Juanma Barranquero <lekktu@gmail.com>
18539
18540 * indent.c (indent_tabs_mode, last_known_column)
18541 (last_known_column_modified): Make static.
18542 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
18543
185442007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
18545
18546 * puresize.h (BASE_PURESIZE): Increase to 1170000.
18547
185482007-10-09 Jason Rumney <jasonr@gnu.org>
18549
18550 * w32term.c (x_set_window_size): Disable code that attempts to tell
18551 Lisp code about a size change before it actually happens.
18552
185532007-10-09 Richard Stallman <rms@gnu.org>
18554
18555 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
18556 return HANDLED_RETURN.
18557
185582007-10-08 Martin Rudalics <rudalics@gmx.at>
18559
18560 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
18561 when there's an unread command event.
18562
18563 * frame.c (focus_follows_mouse): Move here from frame.el to allow
18564 window autoselection act appropriately when leaving selected frame.
18565 (syms_of_frame): Initialize focus_follows_mouse.
18566 * frame.h (focus_follows_mouse): Extern it.
18567 * macterm.c (XTread_socket): When focus_follows_mouse is nil
18568 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
18569 * msdos.c (dos_rawgetc): Likewise.
18570 * w32term.c (w32_read_socket): Likewise.
18571 * xterm.c (handle_one_xevent): Likewise.
18572 * xdisp.c (syms_of_xdisp): In doc-string of
18573 mouse-autoselect-window mention focus-follows-mouse.
18574
185752007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18576
18577 * macterm.c (mac_load_query_font): Fix missing return value.
18578 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
18579 Add BLOCK_INPUT.
18580
185812007-10-08 Richard Stallman <rms@gnu.org>
18582
18583 * xdisp.c (get_window_cursor_type): Implement documented behavior
18584 for cursor-in-non-selected-windows = t.
18585
185862007-10-08 Jason Rumney <jasonr@gnu.org>
18587
18588 * w32.c (w32_get_resource): Always close registry keys.
18589
185902007-10-08 Jason Rumney <jasonr@gnu.org>
18591
18592 * makefile.w32-in (LIBS): Add COMCTL32.
18593
18594 * w32fns.c (globals_of_w32fns): Init common controls.
18595
185962007-10-08 Richard Stallman <rms@gnu.org>
18597
18598 * image.c (our_memory_buffer): Rename from omfib_buffer.
18599
186002007-10-08 Richard Stallman <rms@gnu.org>
18601
18602 * buffer.c (Foverlays_at): Doc fix.
18603
186042007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
18605
18606 * fns.c (Fplist_put): Preserve uneven tail data.
18607
186082007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
18609
18610 * termhooks.h (enum event_kind): Remove trailing comma.
18611
18612 * frame.h (enum): Remove trailing comma.
18613
186142007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
18615
18616 * w32proc.c (delete_child): Don't terminate threads of zombies.
18617
186182007-10-08 Martin Rudalics <rudalics@gmx.at>
18619
18620 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
18621
18622 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
18623 last-repeatable-command.
18624 (init_kboard): Initialize Vlast_repeatable_command.
18625 (command_loop_1): Set it to real_this_command unless that was
18626 bound to an input event.
18627 (mark_kboards): Mark it.
18628
186292007-10-08 Richard Stallman <rms@gnu.org>
18630
18631 * eval.c (condition-case): Doc fix.
18632
186332007-10-08 Masatake YAMATO <jet@gyve.org>
18634
18635 * xfaces.c (tty_supports_face_attributes_p): Fix code
18636 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
18637 was copied and not edited.
18638
186392007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
18640
18641 Add new `input-decode-map' keymap and use it for terminal
18642 escape sequences.
18643 * keyboard.h (struct kboard): Add Vinput_decode_map.
18644 Remove Vlocal_key_translation_map.
18645 * keyboard.c (read_key_sequence): Add support for input-decode-map.
18646 (init_kboard): Init input-decode-map.
18647 Replace local-key-translation-map back with key-translation-map.
18648 (syms_of_keyboard): Declare input-decode-map.
18649 Remove local-key-translation-map. Update docstrings.
18650 (mark_kboards): Mark Vinput_decode_map.
18651 Don't mark Vlocal_key_translation_map.
18652 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
18653 Replace local-key-translation-map back with key-translation-map.
18654 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
18655 Bind in input-decode-map rather than function-key-map.
18656
18657 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
18658 This was made redundant by the previous introduction of XSETPVECTYPE.
18659
186602007-10-09 Richard Stallman <rms@gnu.org>
18661
18662 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18663
186642007-09-29 Richard Stallman <rms@gnu.org>
18665
18666 * eval.c (internal_condition_case_2, internal_condition_case_1)
18667 (internal_condition_case): Reenable abort if x_catching_errors ()
18668 to see if that really happens and why.
18669
186702007-10-06 Andreas Schwab <schwab@suse.de>
18671
18672 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18673
186742007-10-04 Juanma Barranquero <lekktu@gmail.com>
18675
18676 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18677
186782007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18679
18680 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18681
186822007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18683
18684 * window.h (struct window):
18685 * window.c (struct save_window_data, struct saved_window):
18686 * termhooks.h (struct terminal):
18687 * process.h (struct Lisp_Process):
18688 * frame.h (struct frame):
18689 * buffer.h (struct buffer):
18690 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18691 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18692 The size field of (pseudo)vectors is now unsigned.
18693 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18694
18695 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18696 Turn `count' into an integer.
18697
18698 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18699 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18700 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18701 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18702 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18703
18704 * alloc.c (allocate_pseudovector): New fun.
18705 (ALLOCATE_PSEUDOVECTOR): New macro.
18706 (allocate_window, allocate_terminal, allocate_frame)
18707 (allocate_process): Use it.
18708 (mark_vectorlike): New function.
18709 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18710 (mark_terminals): Use it.
18711 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18712 (Fmake_byte_code): Use XSETPVECTYPE.
18713
18714 * frame.c (Fframe_parameters): Minor simplification.
18715
18716 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18717
18718 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18719
18720 * buffer.c (Fget_buffer_create, init_buffer_once):
18721 * lread.c (defsubr):
18722 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18723
18724 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18725 defined differently in the m/*.h files.
18726 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18727 (XSETPVECTYPE): New macro.
18728 (XSETPSEUDOVECTOR): Use it.
18729
18730 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18731 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18732
18733 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18734 * lread.c (defvar_per_buffer):
18735 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18736
18737 * window.c (candidate_window_p): Only consider as visible frames that
18738 are on the same terminal.
18739
18740 * m/ibms390x.h (MARKBIT): Remove unused macro.
18741
187422007-10-01 Juanma Barranquero <lekktu@gmail.com>
18743
18744 * lread.c (Fload): Fix typo in docstring.
18745
187462007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18747
18748 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18749 of a non-zero value can't yield zero.
18750
187512007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18752
18753 * term.c (term_clear_mouse_face, term_mouse_highlight)
18754 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18755
18756 * print.c (safe_debug_print): Use XHASH.
18757
18758 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18759 Lisp elements such as tags.
18760 (XHASH): New macro.
18761 (EQ): Use it.
18762 (SREF, SSET, STRING_COPYIN): Use SDATA.
18763 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18764
18765 * alloc.c (mark_terminal): Remove left-over declaration.
18766 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18767 (allocate_vectorlike): Remove type argument. Adjust callers.
18768 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18769 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18770
18771 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18772 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18773 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18774 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18775 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18776 Use them.
18777
18778 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18779 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18780 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18781
187822007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18783
18784 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18785 loaded by default.
18786
187872007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18788
18789 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18790 on this tty.
18791 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18792
18793 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18794 Update all users.
18795 (handle_one_term_event): Use Gpm_DrawPointer.
18796 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18797 Signal errors instead of returning nil. Always return nil.
18798 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18799 Make it a noop if gpm-mouse was not activated.
18800 (syms_of_term): Update names.
18801
188022007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18803
18804 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18805 (init_sys_modes): Check that gpm_tty is the current tty.
18806
18807 * alloc.c (allocate_terminal): Set the vector size to only count the
18808 lisp fields. Initialize those to nil.
18809 (mark_object): Don't treat terminals specially.
18810 (mark_terminal): Remove.
18811 (mark_terminals): Use mark_object instead.
18812
18813 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18814 the GC to the beginning.
18815
18816 * indent.h:
18817 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18818
18819 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18820
188212007-09-25 Jason Rumney <jasonr@gnu.org>
18822
18823 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18824
18825 * w32console.c (create_w32cons_output): Remove.
18826
18827 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18828
18829 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18830 (reset_sys_modes): Use reset_terminal_modes_hook.
18831
188322007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18833
18834 * eval.c (do_autoload): Don't output any message.
18835
188362007-09-24 Juri Linkov <juri@jurta.org>
18837
18838 * emacs.c (standard_args): Change priority of "--no-splash"
18839 from 40 to 3. Add "--no-desktop" with the same priority.
18840
188412007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18842
18843 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18844 and optimize the case where they are all 1.
18845
188462007-09-23 Johannes Weiner <hannes@saeurebad.de>
18847
18848 * lisp.h (abs): Define if not defined.
18849 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18850 Don't define `abs', since it's defined in lisp.h.
18851
188522007-09-22 Eli Zaretskii <eliz@gnu.org>
18853
18854 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18855 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18856 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18857 (init_tty): Use DEV_TTY instead of "/dev/tty".
18858 [WINDOWSNT]: No need to protect from NAME arg being null.
18859
188602007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18861
18862 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18863 up the tty state.
18864
188652007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18866
18867 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18868 (gpm_tty): Change its type.
18869 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18870 (gpm_tty): Change its type and initialize it.
18871 (Fterm_open_connection): Check the frame is indeed a tty.
18872 Use the new gpm_tty.
18873 (Fterm_close_connection): Use the new gpm_tty.
18874 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18875 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18876
188772007-09-21 Juanma Barranquero <lekktu@gmail.com>
18878
18879 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18880 underline_color, to draw strike-through.
18881
188822007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18883
18884 * lisp.h (allocate_terminal): Declare.
18885
18886 * window.c (candidate_window_p): Consider frames that are being placed
18887 by the user as somewhere between visible and iconified.
18888 (window_loop): Prefer windows on the current frame.
18889 (Fselect_window): Move the use of select-frame to the beginning so we
18890 can just delegate all the work (it'll call us back anyway).
18891
18892 * frame.c (Qdisplay_environment_variable):
18893 * frame.h (Qdisplay_environment_variable): Delete.
18894
18895 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18896 of the first arg, since that value may be a union.
18897
18898 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18899 parameter rather than Qdisplay_environment_variable. If all else
18900 fails, look for DISPLAY in initial-environment.
18901
189022007-09-21 Glenn Morris <rgm@gnu.org>
18903
18904 * Makefile.in (emacstool): Remove target.
18905 (lisp, shortlisp): Remove termdev.elc.
18906
189072007-09-21 Markus Triska <markus.triska@gmx.at>
18908
18909 * xterm.c (x_delete_display): Compile session management conditionally.
18910
189112007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18912
18913 * callproc.c (getenv_internal_1): New function.
18914 (getenv_internal): Use it.
18915 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18916
18917 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18918 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18919 (Fset_terminal_parameter): Work with dead terminals as well.
18920 (Fmodify_terminal_parameters): Remove.
18921
18922 * terminal.c (get_terminal): Handle terminals.
18923 Make sure the terminal returned is live.
18924 (create_terminal): Use allocate_terminal.
18925 (mark_terminals): Move to alloc.c.
18926 (delete_terminal): Use terminal->name as liveness status.
18927 NULL out fields after freeing their contents.
18928 Don't deallocate the object.
18929 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18930 rather than an int.
18931 (Fterminal_live_p): Accept non-integer arguments.
18932 (Fterminal_list): Return terminal objects rather than an ints.
18933
18934 * alloc.c (enum mem_type): New member for `terminal' objects.
18935 (allocate_terminal): New function.
18936 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18937 Handle terminals.
18938 (mark_terminal): New fun.
18939 (mark_terminals): Move from terminal.c.
18940
18941 * term.c (get_tty_terminal): Don't treat output_initial specially.
18942 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18943 (delete_tty): Use terminal->name as liveness status.
18944
18945 * termhooks.h (struct terminal): Make it into a pseudovector.
18946 Remove `deleted' replaced by checking `name's nullness.
18947
18948 * print.c (print_object): Handle terminals.
18949
18950 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18951 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18952
18953 * frame.c (make_terminal_frame):
18954 * keyboard.c (tty_read_avail_input):
18955 * w32term.c (x_delete_terminal):
18956 * xfns.c (Fx_create_frame, x_create_tip_frame):
18957 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18958
189592007-09-20 Glenn Morris <rgm@gnu.org>
18960
18961 * process.c (Fmake_network_process): Doc fix.
18962
189632007-09-19 Jason Rumney <jasonr@gnu.org>
18964
18965 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18966
189672007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18968
18969 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18970 Fix a C warning regarding variable constness.
18971
18972 * xterm.c (handle_one_xevent): Fix a C warning.
18973
189742007-09-18 Jason Rumney <jasonr@gnu.org>
18975
18976 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18977
189782007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18979
18980 * gtkutil.c (gdpy_def): New variable.
18981 (xg_initialize): Initialize gdpy_def.
18982 (xg_display_close): If no other display exists, set gdpy_def to a
18983 new connection.
18984
189852007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18986
18987 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18988 when we have no file name for the icon.
18989 (xg_tool_bar_expose_callback): Remove.
18990 (xg_create_tool_bar): Don't connect expose signal to
18991 xg_tool_bar_expose_callback.
18992 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18993
189942007-09-16 Andreas Schwab <schwab@suse.de>
18995
18996 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18997 values instead of zapping them.
18998
189992007-09-14 Glenn Morris <rgm@gnu.org>
19000
19001 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
19002 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
19003 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
19004 scope and rename to omfib_buffer for clarity.
19005 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
19006
190072007-09-14 Kenichi Handa <handa@m17n.org>
19008
19009 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
19010
190112007-09-13 Jason Rumney <jasonr@gnu.org>
19012
19013 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
19014
19015 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
19016
19017 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
19018 (mac_term_init): Call here instead, passing rif.
19019
190202007-09-13 Glenn Morris <rgm@gnu.org>
19021
19022 * s/hpux.h: No longer define `static' as nothing.
19023
190242007-09-13 Johan Bockgård <bojohan@gnu.org>
19025
19026 * callint.c (Fcall_interactively): Remove unused var `fun'.
19027
190282007-09-12 Romain Francoise <romain@orebokech.com>
19029
19030 * window.c (prefer_window_split_horizontally, display_buffer):
19031 Revert 2007-09-08 change.
19032
190332007-09-12 Glenn Morris <rgm@gnu.org>
19034
19035 * alloca.c: Remove file.
19036 * Makefile.in (alloca): Do not undef.
19037 (allocaobj, alloca.o): Remove.
19038 (otherobj): Remove allocaobj.
19039 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
19040 * regex.c (C_ALLOCA): Remove all references and code that was only
19041 used when this was defined.
19042 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
19043 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
19044 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
19045
19046 * Makefile.in (SOURCES, unlock, relock): Delete.
19047
19048 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
19049 (menu_grab_callback): All uses changed.
19050
19051 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
19052 (x_reply_selection_request): All uses changed.
19053
190542007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
19055
19056 * lread.c (load_warn_old_style_backquotes): Change message to look
19057 better when it appears in the middle of byte-compiler messages.
19058
190592007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
19060
19061 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
19062
19063 * xterm.c (x_create_terminal): Add comment.
19064
19065 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
19066
190672007-09-10 Richard Stallman <rms@gnu.org>
19068
19069 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
19070
190712007-09-10 Michaël Cadilhac <michael@cadilhac.name>
19072
19073 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
19074 (DEFUN): Document `intspec', use it instead of `prompt'.
19075
19076 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
19077
19078 * data.c (Finteractive_form): If the interactive specification starts
19079 with a `(', use it as a Lisp form.
19080
19081 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
19082 name and file modes.
19083
19084 * callint.c (Fcall_interactively): Comment fixes.
19085
190862007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
19087
19088 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
19089 and compiled functions.
19090
190912007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
19092
19093 * window.c (prefer_window_split_horizontally): New variable.
19094 (display_buffer): Consider splitting window horizontally depending
19095 on prefer_window_split_horizontally.
19096
190972007-09-08 Eli Zaretskii <eliz@gnu.org>
19098
19099 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
19100
191012007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19102
19103 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
19104
19105 * frame.c (x_set_frame_parameters): Check number is positive before
19106 using XFASTINT.
19107
19108 * window.c (freeze_window_start): Don't presume selected_window holds
19109 a window object.
19110 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
19111
191122007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
19113
19114 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
19115
191162007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
19117
19118 * window.c (Vsplit_window_preferred_function): New var.
19119 (Fdisplay_buffer): Use it.
19120 (syms_of_window): Export, and initialize it.
19121
191222007-09-06 Pixel <pixel@mandriva.com> (tiny change)
19123
19124 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
19125
191262007-09-06 Glenn Morris <rgm@gnu.org>
19127
19128 * gtkutil.c (menu_grab_callback) <cnt>:
19129 * xselect.c (x_reply_selection_request) <cnt>: Move static
19130 variable to file scope.
19131
191322007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
19133
19134 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
19135 consistent values of selected_frame and selected_window.
19136
191372007-09-04 Jason Rumney <jasonr@gnu.org>
19138
19139 * w32console.c (initialize_w32_display): Zero unused hooks.
19140
191412007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19142
19143 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
19144 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
19145
191462007-09-04 Jason Rumney <jasonr@gnu.org>
19147
19148 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
19149 in w32console.c. Set up input. Remove XXX comments that have been
19150 confirmed as correct.
19151
19152 * s/ms-w32.h (MULTI_KBOARD): Define.
19153
19154 * w32console.c (one_and_only_w32cons): Remove.
19155 (initialize_w32_display): Take terminal argument.
19156
19157 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
19158 initialize_w32_display.
19159 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
19160
19161 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
19162
19163 * keyboard.c (discard_mouse_events): Discard it.
19164 (make_lispy_event): Translate it to a lisp event.
19165 (lispy_wheel_names): Add wheel-left and right events.
19166 (syms_of_keyboard): Enlarge wheel_syms.
19167
19168 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
19169 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
19170
19171 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
19172
19173 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
19174 from WM_MOUSEHWHEEL.
19175 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
19176
19177 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
19178 terminal.
19179
19180 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
19181 keyboard for the terminal.
19182
191832007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
19184
19185 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
19186 (Vresume_tty_hook): Rename from Vresume_tty_functions.
19187 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
19188 and resume-tty-function to resume-tty-hook.
19189 (Fsuspend_tty, Fresume_tty): Use new names.
19190
191912007-09-02 Jan Djärv <jan.h.d@swipnet.se>
19192
19193 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
19194 if it starts with "n:".
19195
191962007-08-31 Jan Djärv <jan.h.d@swipnet.se>
19197
19198 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
19199
192002007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
19201
19202 * frame.h:
19203 * frame.c (Qterm_environment_variable): Remove.
19204 (syms_of_frame): Don't init and staticpro it.
19205
19206 * callproc.c (getenv_internal): Remove special case for $TERM.
19207
19208 * callproc.c (Vinitial_environment): New variable.
19209 (set_initial_environment): Initialize it.
19210 (syms_of_callproc): Declare it.
19211 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
19212 TERM under which a process runs is never related to the TERM in which
19213 Emacs is running.
19214
192152007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19216
19217 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
19218 * s/darwin.h: ... do it here.
19219
192202007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
19221
19222 * lisp.h (set_initial_environment): Rename from set_global_environment.
19223
19224 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
19225 removed by mistake on the multi-tty branch.
19226
19227 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
19228 (Fmodify_frame_parameters): Return a value.
19229
19230 * image.c (png_load): Comment-out var only used in commented-out code.
19231
19232 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
19233 before passing it to mark_object.
19234
19235 * xfaces.c (internal_resolve_face_name): Return a value.
19236 (internal_resolve_face_name, resolve_face_name_error): Comment out.
19237
19238 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
19239 (x_icon): Comment-out var only used in commented-out code.
19240
192412007-08-29 Romain Francoise <romain@orebokech.com>
19242
19243 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
19244 QUIT hasn't been provided.
19245
192462007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
19247
19248 * callproc.c (child_setup, getenv_internal): Use the
19249 display-environment-variable and term-environment-variable frame params.
19250 (set_initial_environment): Initialise Vprocess_environment.
19251
19252 * config.in: Disable multi-keyboard support on a mac.
19253
19254 * frame.c (Qterm_environment_variable)
19255 (Qdisplay_environment_variable): New variables.
19256 (syms_of_frame): Intern and staticpro them.
19257 (Fmake_terminal_frame): Disable output method test.
19258
19259 * frame.h: Declare them here.
19260
19261 * macfns.c (x_set_mouse_color): Get rif from the frame.
19262 (x_set_tool_bar_lines): Don't use updating_frame.
19263 (mac_window): Add 2 new parameters for consistency with other systems.
19264 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
19265 frame parameters following what is done in X11 and w32. Don't use
19266 FRAME_MAC_DISPLAY_INFO.
19267 (Fx_open_connection, start_hourglass): Remove window-system check.
19268 (x_create_tip_frame): Get the keyboard from the terminal.
19269
19270 * macmenu.c: Reorder includes.
19271 (Fx_popup_menu): Use terminal specific mouse_position_hook.
19272
19273 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
19274 terminal parameter.
19275 (x_clear_frame): Add a frame parameter.
19276 (note_mouse_movement): Get rif from the frame.
19277 (mac_term_init): Initialize the terminal.
19278 (mac_initialize): Make static and move terminal initialization ...
19279 (mac_create_terminal): ... to this new function.
19280
19281 * macterm.h (struct mac_display_info): Add terminal.
19282 (mac_initialize): Delete declaration.
19283
19284 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
19285
19286 * sysdep.c: Comment out text after #endif.
19287
19288 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
19289 is defined. Better initialize ttys in windows. Use terminal
19290 specific mouse_position_hook.
19291
19292 * termhooks.h (union display_info): Add mac_display_info.
19293
19294 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
19295 Set the default minibuffer frame, window_system and the rest of the
19296 frame parameters following what is done in X11.
19297
19298 * w32term.c (w32_initialize): Make static.
19299
19300 * xselect.c (x_handle_selection_clear): Only access
19301 terminal->kboard when MULTI_KBOARD is defined.
19302
19303 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
19304 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
19305
193062007-08-29 Jason Rumney <jasonr@gnu.org>
19307
19308 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
19309 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
19310
19311 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
19312 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
19313
19314 * keyboard.c (restore_kboard_configuration): Only define when
19315 MULTI_KBOARD defined.
19316
19317 * makefile.w32-in: Update dependancies from Makefile.in.
19318 (OBJ1): Add terminal.$(O)
19319
19320 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
19321 Don't define function body.
19322 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
19323
19324 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
19325
19326 * w32.c (request_sigio, unrequest_sigio): Remove.
19327
19328 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
19329 (w32con_clear_frame, w32con_clear_end_of_line)
19330 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
19331 (w32con_delete_glyphs, w32con_set_terminal_window)
19332 (scroll_line, w32_sys_ring_bell): Add frame arg.
19333 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
19334 Add terminal arg.
19335 (PICK_FRAME): Remove.
19336 (w32con_write_glyphs): Use frame specific terminal coding.
19337 (one_and_only_w32cons): New global variable.
19338 (initialize_w32_display): Use it for storing hooks.
19339 (create_w32cons_output): New function.
19340
19341 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
19342 arg a frame.
19343
19344 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
19345 Set window_system.
19346 (x_set_tool_bar_lines): Don't use updating_frame.
19347 (Fx_create_frame): Set terminal and ref count.
19348 (Fx_open_connection): Remove window-system check.
19349
19350 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
19351
19352 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
19353 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
19354 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
19355 Add frame arg.
19356 (x_delete_terminal, w32_create_terminal): New functions.
19357 (w32_term_init): Create a terminal.
19358 (w32_initialize): Move terminal specific initialization to
19359 w32_create_terminal.
19360
19361 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
19362 (w32_clear_rect, w32_clear_area): Use background from frame.
19363 (w32_display_info): Add terminal.
19364 (w32_sys_ring_bell, x_delete_display): Declare here.
19365
19366 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
19367
19368 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
19369
193702007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
19371
19372 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
19373 Fix get_named_tty calls for the controlling tty.
19374
193752007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
19376
19377 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
19378
193792007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
19380
19381 * term.c (tty_insert_glyphs): Add missing first parameter.
19382
193832007-08-29 Károly Lőrentey <karoly@lorentey.hu>
19384
19385 * buffer.c (Fbuffer_list, Fbury_buffer):
19386 Take frame->buried_buffer_list into account.
19387
19388 * cm.c (current_tty): New variable, for cmputc().
19389 (cmputc): Use it.
19390 (cmcheckmagic): Add tty parameter, look up terminal streams there.
19391 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
19392 (cmgoto): Add tty parameter. Pass it on to calccost().
19393 Use emacs_tputs() instead of tputs().
19394
19395 * cm.h (emacs_tputs): New macro to set current_tty, and then call
19396 tputs().
19397 (current_tty): New variable, for cmputc().
19398 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
19399
19400 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
19401 (internal_condition_case, internal_condition_case_1)
19402 (internal_condition_case_2): Don't abort when x_catching_errors.
19403
19404 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
19405 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
19406 prevent crashes caused by bogus longjmps in read_char.
19407
19408 * keymap.h (Fset_keymap_parent): Add EXFUN.
19409
19410 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
19411 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19412 Remove redundant definition.
19413
19414 * macfns.c (x_set_mouse_color, x_make_gc):
19415 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19416
19417 * w32term.c (x_free_frame_resources):
19418 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19419 (w32_initialize): Use the accessor macros for terminal characteristics.
19420
19421 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
19422 Use the accessor macros for terminal characteristics.
19423 * msdos.c (internal_terminal_init): Use the accessor macros for
19424 terminal characteristics.
19425 (ScreenVisualBell, internal_terminal_init):
19426 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19427
19428 * termopts.h (no_redraw_on_reenter): Declare.
19429
19430 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
19431 (mark_terminals, mark_ttys): Declare.
19432 (Fgarbage_collect): Call them.
19433 (mark_object): Mark buried_buffer_list.
19434
19435 * prefix-args.c: Include stdlib.h for exit.
19436
19437 * syssignal.h: Add comment.
19438
19439 * indent.c: Include stdio.h.
19440
19441 * window.h (Vinitial_window_system): Declare.
19442 (Vwindow_system): Delete declaration.
19443
19444 * fontset.c (Finternal_char_font): Use FRAME_RIF.
19445
19446 * image.c (lookup_image): Don't initialize `c' until the xasserts
19447 have been run.
19448
19449 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
19450 FRAME_FOREGROUND_PIXEL.
19451
19452 * print.c (print_preprocess): Don't lose print_depth levels while
19453 iterating.
19454
19455 * widget.c (update_from_various_frame_slots):
19456 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19457
19458 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
19459 frames.
19460 (window_internal_height): Remove bogus make_number call.
19461 (init_window_once): Call make_terminal_frame with two zero parameters.
19462
19463 * fileio.c (Fread_file_name): Update comment.
19464
19465 * callint.c (Fcall_interactively):
19466 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
19467 Make sure it is correctly unwound.
19468
19469 * xsmfns.c (x_session_close): New function.
19470
19471 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
19472 Delete declarations.
19473
19474 * xterm.h: Remove declaration for x_fully_uncatch_errors.
19475 (x_output): Remove background_pixel and foreground_pixel fields.
19476 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
19477 (x_delete_device, x_session_close): Declare.
19478
19479 * lread.c: Include setjmp.h. Update declaration of `read_char'.
19480 (read_filtered_event): Call `read_char' with a local
19481 `wrong_kboard_jmpbuf'.
19482
19483 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
19484 Don't call single_kboard_state. Use FRAME_RIF.
19485
19486 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
19487 systems.
19488
19489 * lisp.h (set_process_environment): Rename to `set_global_environment'.
19490 (Fframe_with_environment, Fset_input_meta_mode)
19491 (Fset_quit_char): EXFUN.
19492 (x_create_device, tty_output, terminal, tty_display_info): Declare.
19493 (init_sys_modes, reset_sys_modes): Update prototypes.
19494 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
19495
19496 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
19497 Vlocal_key_translation_map, and Vkeyboard_translate_table.
19498 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
19499 Delete declarations.
19500 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
19501 (temporarily_switch_to_single_kboard, tty_read_avail_input):
19502 New declarations.
19503
19504 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
19505 already does that during init_display(). Call syms_of_keymap
19506 before syms_of_keyboard. Call `syms_of_terminal'.
19507 Call set_initial_environment, not set_process_environment.
19508 (shut_down_emacs): Call reset_all_sys_modes() instead of
19509 reset_sys_modes().
19510
19511 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
19512 (internal_resolve_face_name, resolve_face_name_error): New functions.
19513 (resolve_face_name): Protect against loops and errors thrown by Fget.
19514 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
19515 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
19516
19517 * scroll.c: Replace CURTTY() with local variables throughout the
19518 file (where applicable).
19519 (calculate_scrolling, calculate_direct_scrolling)
19520 (scrolling_1, scroll_cost): Use the accessor macros for terminal
19521 characteristics.
19522
19523 * keymap.c (Vfunction_key_map): Remove.
19524 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
19525 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
19526 (Vkey_translation_map): Remove.
19527 (syms_of_keymap): Remove DEFVAR for key-translation-map.
19528 (Fdescribe_buffer_bindings)
19529 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
19530 Update for terminal-local key-translation-map.
19531
19532 * Makefile.in (callproc.o): Update dependencies.
19533 (lisp, shortlisp): Add termdev.elc.
19534 (obj): Add terminal.o.
19535 (terminal.o): Add dependencies.
19536 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
19537 (data.o, fns.o): Add termhooks.h dependency.
19538 (SOME_MACHINE_LISP): Add dnd.elc.
19539 (minibuf.o): Fix typo.
19540 Update dependencies.
19541
19542 * data.c (do_symval_forwarding, store_symval_forwarding)
19543 (find_symbol_value): Use the selected frame's keyboard, not
19544 current_kboard.
19545
19546 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
19547 Vwindow_system.
19548
19549 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
19550 Fmenu_bar_open.
19551 (syms_of_xmenu): Update defsubr.
19552 (mouse_position_for_popup, Fx_popup_menu)
19553 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
19554 (set_frame_menubar, free_frame_menubar)
b97439ce 19555 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
19556 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
19557 an X frame.
19558
19559 * xselect.c (x_own_selection): Abort if not an X frame.
19560 (some_frame_on_display): Check if it is an X frame.
19561 (x_handle_selection_clear): Deal with MULTI_KBOARD.
19562
19563 * coding.c: Include frame.h and termhooks.h.
19564 (terminal_coding, keyboard_coding): Delete.
19565 (Fset_terminal_coding_system_internal)
19566 (Fset_keyboard_coding_system_internal)
19567 (Fkeyboard_coding_system)
19568 (Fterminal_coding_system): Add a terminal parameter.
19569 Get terminal_coding from the terminal.
19570 (init_coding_once): Don't call setup_coding_system here.
19571
19572 * dispextern.h (set_scroll_region, turn_off_insert)
19573 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
19574 (tty_clear_end_of_line, tty_setup_colors)
19575 (delete_tty, updating_frame)
19576 (produce_special_glyphs, produce_glyphs, write_glyphs)
19577 (insert_glyphs): Remove.
19578 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
19579 (tty_turn_off_highlight, get_tty_size): Add declaration.
19580 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
19581
19582 * frame.h (enum output_method): Add output_initial.
19583 (struct x_output): Delete.
19584 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
19585 Access foreground_pixel and background_pixel directly from the frame.
19586 (tty_display): Delete.
19587 (struct frame): Add buried_buffer_list, foreground_pixel,
19588 background_pixel and terminal. Delete kboard.
19589 (union output_data): Add tty.
19590 (FRAME_KBOARD): Get the kboard from the terminal.
19591 (FRAME_INITIAL_P): New macro.
19592 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
19593 (Qterm_environment_variable, Qdisplay_environment_variable)
19594 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
19595 New declarations.
19596
19597 * termchar.h (tty_output, tty_display_info): New structures.
19598 (tty_list): Declare.
19599 (FRAME_TTY, CURTTY): New macros.
19600 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
19601 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
19602 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
19603 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
19604
19605 * callproc.c: Include frame.h and termhooks.h, for terminal
19606 parameters.
19607 (add_env): New function.
19608 (child_setup): Use it.
19609 (child_setup, getenv_internal): Handle the new Vprocess_environment.
19610 (getenv_internal): Fix get_terminal_param call.
19611 (Fgetenv_internal, egetenv): Update doc.
19612 (syms_of_callproc): Initialize Vprocess_environment to nil.
19613 Register and initialize them. Remove obsolete defvars. Update doc
19614 strings.
19615 (child_setup): Handle Vlocal_environment_variables.
19616 (getenv_internal): Add terminal parameter.
19617 Handle Vlocal_environment_variables.
19618 (Fgetenv_internal): Add terminal parameter.
19619 (child_setup, getenv_internal, Fgetenv_internal): Store the local
19620 environment in a frame (not terminal) parameter. Update doc strings.
19621 (set_initial_environment): Rename from set_global_environment.
19622 Store Emacs environment in initial frame parameter.
19623
19624 * xdisp.c (redisplay_internal): Update references to
19625 `previous_terminal_frame'.
19626 (display_mode_line, Fformat_mode_line): Replace calls to
19627 `push_frame_kboard' with `push_kboard'.
19628 (get_glyph_string_clip_rects): Add extra parentheses and
19629 braces to prevent compiler warnings.
19630 (calc_pixel_width_or_height): Add xassert to check that the
19631 frame is alive. Don't call `lookup_image' on a termcap frame.
19632 (message2_nolog, message3_nolog, redisplay_internal)
19633 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
19634 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
19635 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
19636 (Fx_display_pixel_width, Fx_display_pixel_height)
19637 (Fx_display_planes, Fx_display_color_cells)
19638 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
19639 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
19640 (Fx_display_backing_store, Fx_display_visual_class)
19641 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
19642 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
19643
19644 * xfns.c (x_set_foreground_color x_set_background_color)
19645 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
19646 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19647 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
19648 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
19649 terminal that is being deleted.
19650 (Fx_create_frame): Use `store_frame_param' to set `window-system'
19651 frame parameter, and make sure it overrides any user-supplied setting.
19652 (Fx_close_connection, Fx_synchronize): Unify argument names with
19653 the rest of the DEFUNs.
19654
19655 * dispnew.c (Fsend_string_to_terminal): Update call to
19656 `get_tty_terminal'.
19657 (Fredraw_frame, Fsend_string_to_terminal)
19658 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
19659 FRAME_TERMCAP_P and FRAME_TTY.
19660 (window_change_signal): Don't believe width/height values that are
19661 impossibly small.
19662 (Vinitial_window_system): Rename from Vwindow_system.
19663 (termscript, Wcm, rif): Delete.
19664
19665 * termhooks.h (struct terminal): New struct containing the
19666 previously global text display hooks and new members NAME,
19667 DELETED and PARAM_ALIST.
19668 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19669 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19670 (FRAME_RIF): New macros.
19671 (get_terminal_param, get_device): New declarations.
19672 (termscript): Delete declaration.
19673
19674 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19675 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19676 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19677 FRAME_FOREGROUND_PIXEL.
19678 (x_fully_uncatch_errors): Disable definition.
19679 (x_scroll_bar_expose): Fix reference to foreground pixel.
19680 (XTread_socket): Disable loop on all X displays.
19681 (x_delete_terminal): Don't set terminal->deleted and let
19682 delete_terminal delete the frames on the terminal.
19683 (x_delete_display): Doc update to reflect changes in
19684 delete_terminal.
19685 (x_display_info) <terminal>: Move member earlier in the struct.
19686 (deleting_tty): Remove old variable.
19687 (Fsuspend_tty): Call clear_tty_hooks.
19688 (Fresume_tty, init_tty): Call set_tty_hooks.
19689 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19690 errors on X frames.
19691 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19692 (handle_one_xevent): Initialize `f' to NULL.
19693 (x_delete_terminal, x_create_terminal): New functions.
19694 (XTset_terminal_modes, XTreset_terminal_modes)
19695 (XTread_socket, x_connection_closed, x_term_init)
19696 (x_term_init, x_delete_display): Add terminal parameter.
19697 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19698 X connections.
19699
19700 * frame.c: Include termchar.h.
19701 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19702 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19703 (Qdisplay_environment_variable): New vars.
19704 (Fframep): Deal with output_initial.
19705 (Fframe-live-p): Doc fix.
19706 (Fwindow-system): New function.
19707 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19708 (make_terminal_frame): Don't create frames on a terminal that is
19709 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19710 (store_frame_param): Check for found_for_frame before calling XFRAME.
19711 (Fmake_terminal_frame): Handle NULL tty names correctly.
19712 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19713 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19714 frames to refer to a deleted frame in their 'environment parameter.
19715 (Fframe_with_environment): New function.
19716 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19717 (get_future_frame_param): New function.
19718 (Fmake_terminal_frame): Use it.
19719 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19720
19721 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19722 * sysdep.c (reset_sys_modes): Update for renames.
19723
19724 * keyboard.c (tty_read_avail_input): New function.
19725 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19726 (syms_of_keyboard): Defsubr them.
19727 (Fset_input_meta_mode, Fset_quit_char): New functions.
19728 (Fset_input_mode): Split to above functions.
19729 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19730 parameter. Use it in call to `read_char'.
19731 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19732 Set wrong_kboard_jmpbuf correctly in recursive calls.
19733 Use current_kboard to access Vkeyboard_translate_table.
19734 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19735 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19736 Update longjmp invocations. Remember the original current_kboard,
19737 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19738 changes it. Comment out unnecessary calls to
19739 `record_single_kboard_state' and `any_kboard_state'.
19740 Update recursive calls.
19741 (wrong_kboard_jmpbuf): Remove global variable.
19742 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19743 Handle deleted interrupted_kboards correctly; that is a legal
19744 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19745 and read_char calls. Abort if interrupted_kboard died in read_char.
19746 (any_kboard_state, single_kboard_state)
19747 (push_frame_kboard): Remove function.
19748 (pop_kboard): Switch out of single_kboard mode if the kboard has
19749 been deleted. Remove unused variable. Help debugging by not
19750 changing current_kboard unnecessarily. Set current_kboard to the
19751 kboard of the selected frame when the stored kboard object has
19752 been deleted before pop_kboard.
19753 (temporarily_switch_to_single_kboard): Change first parameter to a
19754 frame pointer. Throw an error when caller wants to change kboards
19755 while in single_kboard mode. Don't push_kboard if we weren't in
19756 single kboard state. Don't pop_kboard if we popped into any
19757 kboard state.
19758 (restore_kboard_configuration): Abort if pop_kboard changed the
19759 kboard in single_kboard mode. Call pop_kboard only after setting
19760 up single_kboard mode.
19761 (Frecursive_edit): Switch to single_kboard mode only in nested
19762 command loops.
19763 (cmd_error, command_loop, command_loop_1, timer_check):
19764 Comment out unnecessary call to `any_kboard_state' and
19765 `record_single_kboard_state'.
19766 (delete_kboard): Exit single_kboard mode if we have just deleted
19767 that kboard. Use FRAME_KBOARD.
19768 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19769 `fatal_error_signal'.
19770 (record_single_kboard_state): Don't push_kboard if we weren't in
19771 single kboard state. Don't pop_kboard if we popped into any
19772 kboard state.
19773 (push_frame_kboard): Rename to push_kboard.
19774 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19775 (read_avail_input): Read input from all terminals.
19776 (mark_kboards): Also mark Vkeyboard_translate_table.
19777 (kbd_buffer_store_event_hold): Simplify condition.
19778 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19779 (Vkeyboard_translate_table): Move to struct kboard.
19780 (init_kboard): Initialize Vkeyboard_translate_table.
19781 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19782 Vkeyboard_translate_table. Update doc strings. Update docs of
19783 local-function-key-map and function-key-map.
19784
19785 * terminal.c: New file.
19786
19787 * term.c: Include errno.h.
19788 (Vring_bell_function, device_list, initial_device)
19789 (next_device_id, ring_bell, update_begin, update_end)
19790 (set_terminal_window, cursor_to, raw_cursor_to)
19791 (clear_to_end, clear_frame, clear_end_of_line)
19792 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19793 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19794 (syms_of_term): Move their initialization to terminal.c.
19795 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19796 (Ftty_display_color_cells)
19797 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19798 (clear_tty_hooks, set_tty_hooks)
19799 (init_tty, maybe_fatal): New functions.
19800 (Ftty_type): Return nil if terminal is not on a tty instead of
19801 throwing an error. Doc update.
19802 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19803 Doc update. Initialize new subrs and variables.
19804 (delete_tty): Use terminal->deleted.
19805 (tty_set_terminal_modes): Rename from set_terminal_modes.
19806 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19807 (set_scroll_region): Rename to `tty_set_scroll_region'.
19808 (turn_on_insert): Rename to `tty_turn_on_insert'.
19809 (turn_off_insert): Rename to `tty_turn_off_insert'.
19810 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19811 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19812 (toggle_highligh): Rename to `tty_toggle_highlight'.
19813 (background_highlight): Rename to `tty_background_highlight'.
19814 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19815 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19816 (tty_set_scroll_region, tty_background_highlight)
19817 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19818 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19819 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19820 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19821 Add static modifier.
19822 (tty_reset_terminal_modes, tty_set_terminal_window)
19823 (tty_set_scroll_region, tty_background_highlight)
19824 (tty_highlight_if_desired, tty_cursor_to)
19825 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19826 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19827 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19828 renames.
19829
198302007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19831
19832 * keyboard.c: Qrtl is new.
19833 (parse_tool_bar_item): Handle :rtl keyword.
19834 (syms_of_keyboard): Intern :rtl keyword.
19835
19836 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19837
19838 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19839 so no Lisp code is executed.
19840 (file_for_image, find_rtl_image): New functions.
19841 (xg_get_image_for_pixmap): Use file_for_image.
19842 (update_frame_tool_bar): If direction is RTL, use RTL image if
19843 defined. Use Gtk stock images if defined.
19844
198452007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19846
19847 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19848 for nonexistent or zero-width glyph in composition glyph.
19849
198502007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19851
19852 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19853
19854 * xdisp.c (Finvisible_p): New function.
19855 (syms_of_xdisp): defsubr it.
19856
198572007-08-24 Juanma Barranquero <lekktu@gmail.com>
19858
19859 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19860 Doc fixes.
19861
198622007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19863
19864 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19865
198662007-08-24 Martin Rudalics <rudalics@gmx.at>
19867
19868 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19869 whether decoding has modified buffer contents.
19870
198712007-08-24 Jason Rumney <jasonr@gnu.org>
19872
19873 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19874 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19875 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19876 (init_svg_functions) [HAVE_NTGUI]: New function.
19877 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19878 (svg_load_image): Use them.
19879 (svg_load_image) [HAVE_NTGUI]: Implement background.
19880
198812007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19882
19883 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19884 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19885 (LIBX): Remove @RSVG_LIBS@.
19886 (LIBES): Add $(RSVG_LIBS).
19887
19888 * image.c (svg_load_image): Blend with specified background if exists.
19889 Use IMAGE_BACKGROUND. Add Mac OS Support.
19890
19891 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19892 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19893 Remove macros.
19894 [MAC_OSX] (socket_callback): Do nothing.
19895 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19896 ReceiveNextEvent.
19897 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19898 socket_callback.
19899 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19900
199012007-08-22 Glenn Morris <rgm@gnu.org>
19902
19903 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19904
199052007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19906
19907 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19908
19909 * image.c: Add support for SVG images. Some additional comments
19910 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19911 (svg_image_p): New function to test for SVG image.
19912 (svg_load): New function to load SVG image.
19913 (svg_load_image): New function, helper for svg_load.
19914 (Qsvg): New Lisp_object.
19915 (svg_keyword_index): New enum.
19916 (svg_format): New static `image_keyword' struct.
19917 (svg_type): New static `image_type' struct.
19918 (librsvg/rsvg.h): Include it.
19919
199202007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19921
19922 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19923
199242007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19925
19926 * lread.c (Qold_style_backquotes): New var.
19927 (syms_of_lread): Init and staticpro it.
19928 (load_warn_old_style_backquotes): New fun.
19929 (Fload): Use them to warn about old style backquotes.
19930 (end_of_file_error, Fload): Remove unused vars.
19931
19932 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19933
19934 * lread.c (Vold_style_backquotes): New var.
19935 (syms_of_lread): Init and export it to Elisp.
19936 (read1): Set it when we find an old-style (back)quote.
19937
199382007-08-22 Jason Rumney <jasonr@gnu.org>
19939
19940 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19941
199422007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19943
19944 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19945
199462007-08-19 Richard Stallman <rms@gnu.org>
19947
19948 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19949
199502007-08-19 Andreas Schwab <schwab@suse.de>
19951
19952 * alloc.c (pure): Round PURESIZE up.
19953
199542007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19955
19956 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19957 active frame.
19958
199592007-08-16 Richard Stallman <rms@gnu.org>
19960
19961 * eval.c (Fcommandp): Add parens to clarify.
19962
19963 * minibuf.c (Fall_completions): Use enum for type of table.
19964
19965 * emacs.c (USAGE2): Improve text.
19966
199672007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19968
19969 * term.c (tty_default_color_capabilities): Declare static
19970 variables in file scope, to avoid HPUX compiler problem.
19971
199722007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19973
19974 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19975 to gtk_toolbar_insert.
19976
199772007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19978
19979 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19980
19981 * insdel.c (reset_var_on_error): New fun.
19982 (signal_before_change, signal_after_change):
19983 Use it to reset (after|before)-change-functions to nil in case of error.
19984 Bind inhibit-modification-hooks to t.
19985 Don't bind (after|before)-change-functions to nil while they run.
19986
199872007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19988
19989 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19990 filling pixmap with stippled background.
19991
199922007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19993
19994 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19995 Don't use invisible frame as parent window for repositioning.
19996
199972007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19998
19999 * print.c (new_backquote_output): Rename from old_backquote_output.
20000 (print): Inverse its logic (according to its name) so as to match the
20001 behavior of new_backquote_flag in lread.c.
20002
200032007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20004
20005 * gmalloc.c (posix_memalign): New function.
20006
20007 * macterm.c (frame_highlight, frame_unhighlight): Don't call
20008 ActivateControl/DeactivateControl here.
20009 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
20010 frame-notice-user-settings is non-nil.
20011 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
20012 for kEventParamFMFontStyle.
20013 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
20014 mac_pass_command_to_system and mac_pass_control_to_system here.
20015 (XTread_socket): Call ActivateControl/DeactivateControl here.
20016 (XTread_socket) [TARGET_API_MAC_CARBON]:
20017 Check mac_pass_command_to_system and mac_pass_control_to_system here.
20018 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
20019 for window repositioning.
20020
200212007-08-08 Glenn Morris <rgm@gnu.org>
20022
20023 * Replace `iff' in doc-strings and comments.
20024
200252007-08-07 Chong Yidong <cyd@stupidchicken.com>
20026
20027 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
20028
200292007-08-07 Martin Rudalics <rudalics@gmx.at>
20030
20031 * fileio.c (Finsert_file_contents): Run format-decode and
20032 after_insert_file_functions on entire buffer when REPLACE is
20033 non-nil and inhibit modification_hooks and point_motion_hooks.
20034 For consistency, run after_insert_file_functions iff something
20035 got inserted. Move signal_after_change and update_compositions
20036 after code running after_insert_file_functions. Make sure that
20037 undo_list doesn't record intermediate steps of the decoding process.
20038
200392007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20040
20041 * emacs.c (main)
20042 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
20043 Call malloc_enable_thread on interactive startup.
20044
20045 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
20046 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
20047 [USE_PTHREAD]: Conditionalize with it.
20048 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
20049 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
20050 New functions.
20051
200522007-08-06 Chong Yidong <cyd@stupidchicken.com>
20053
20054 * xdisp.c (redisplay_window): When restoring original buffer
20055 position, make sure it is still valid.
20056
20057 * image.c (png_load): Ignore png-supplied background color.
20058
200592007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20060
20061 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
20062 Use kCFAbsoluteTimeIntervalSince1970.
20063
20064 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
20065 New variable.
20066 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
20067 event loop should be quit.
20068 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
20069 Quit dialog event loop if quit_dialog_event_loop is set.
20070
20071 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
20072 (Selection): New typedef. Use instead of ScrapRef.
20073 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
20074 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
20075 (mac_clear_selection): Rename from clear_scrap.
20076 (get_flavor_type_from_symbol): New argument SEL and subsume function of
20077 scrap_has_target_type. All uses changed.
20078 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
20079 (mac_selection_has_target_p): New functions.
20080 (mac_put_selection_value): Rename from put_scrap_string.
20081 (mac_get_selection_value): Rename from get_scrap_string.
20082 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
20083 (put_scrap_private_timestamp, scrap_has_target_type)
20084 (get_scrap_private_timestamp): Remove functions.
20085 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
20086 (x_own_selection, x_get_local_selection):
20087 Use mac_valid_selection_value_p.
20088 (x_own_selection): Don't use put_scrap_private_timestamp.
20089 Record OWNERSHIP-INFO into Vselection_alist instead.
20090 (x_get_local_selection): Don't check type if request is local.
20091 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
20092 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
20093
200942007-08-04 Jan Djärv <jan.h.d@swipnet.se>
20095
20096 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
20097 add comment explaining why.
20098
200992007-08-03 Richard Stallman <rms@gnu.org>
20100
20101 * fileio.c (Fvisited_file_modtime): Use make_time.
20102
201032007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
20104
20105 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
20106 build.
20107
201082007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
20109
20110 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
20111
201122007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
20113
20114 * puresize.h (BASE_PURESIZE): Increase to 1130000.
20115
201162007-07-30 Richard Stallman <rms@gnu.org>
20117
20118 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
20119
201202007-07-29 Jan Djärv <jan.h.d@swipnet.se>
20121
20122 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
20123
201242007-07-28 Nick Roberts <nickrob@snap.net.nz>
20125
20126 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
20127 remote default-directory.
20128
20129 * buffer.c (mode-line-format): Update doc string.
20130
201312007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20132
20133 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
20134 scroll bar gap.
20135 (x_scroll_bar_create): Set bar->fringe_extended_p.
20136 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
20137 on frame edge. Check fringe background extension. Don't clear
20138 extended fringe background area.
20139
20140 * w32term.h (struct scroll_bar): New member fringe_extended_p.
20141 (w32_fill_area): Enclose multiple statements with do ... while (0).
20142
20143 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
20144 Extend fringe background to scroll bar gap.
20145 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
20146 Set bar->fringe_extended_p.
20147 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20148 Put leftmost/rightmost scroll bars on frame edge. Check fringe
20149 background extension. Don't clear extended fringe background area.
20150
20151 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
20152 New member fringe_extended_p.
20153
201542007-07-25 Glenn Morris <rgm@gnu.org>
20155
20156 * Relicense all FSF files to GPLv3 or later.
20157
20158 * COPYING: Switch to GPLv3.
20159
201602007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
20161
20162 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
20163
20164 * data.c (Finteractive_form): Check for the presence of an
20165 `interactive-form' symbol property more thoroughly.
20166
20167 * data.c (Finteractive_form): Use an `interactive-form' property if
20168 present, analogous to the function-documentation property.
20169
201702007-07-24 Jason Rumney <jasonr@gnu.org>
20171
20172 * w32fns.c (x_real_positions): Get real position from OS instead of
20173 calculating it.
20174
201752007-07-23 Jason Rumney <jasonr@gnu.org>
20176
20177 * filelock.c (current_lock_owner): Allow for @ sign in username.
20178
201792007-07-22 Nick Roberts <nickrob@snap.net.nz>
20180
20181 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
20182 remote default-directory.
20183
20184 * buffer.c (mode-line-format): Describe above case in doc string.
20185
201862007-07-20 Eli Zaretskii <eliz@gnu.org>
20187
20188 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
20189 Define if not defined.
20190
201912007-07-18 Jason Rumney <jasonr@gnu.org>
20192
20193 * w32proc.c (w32_executable_type): Handle 64 bit executables.
20194
201952007-07-18 Richard Stallman <rms@gnu.org>
20196
20197 * data.c (Fsetq_default): Doc fix.
20198
20199 * eval.c (Fsetq): Doc fix.
20200
202012007-07-18 Juanma Barranquero <lekktu@gmail.com>
20202
20203 * coding.c (Ffind_operation_coding_system):
20204 * eval.c (For, Fand): Doc fixes.
20205 Reported by Johan Bockgård.
20206
202072007-07-18 Jan Djärv <jan.h.d@swipnet.se>
20208
20209 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
20210
20211 * xterm.h: Declare x_ewmh_activate_frame.
20212
20213 * xterm.c (x_ewmh_activate_frame): New function.
20214 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
20215
202162007-07-17 Martin Rudalics <rudalics@gmx.at>
20217
20218 * window.c (Fdisplay_buffer): If largest or LRU window is the
20219 only window, split it even if it is not eligible for splitting.
20220 This restores the original behavior broken by the 2007-07-15
20221 change.
20222
202232007-07-17 Glenn Morris <rgm@gnu.org>
20224
20225 * abbrev.c (abbrev_check_chars): New function.
20226 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20227 Call abbrev_check_chars to check abbrev characters are word
20228 constituents. Doc fix.
20229
202302007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
20231
20232 * process.c (Fstart_process, Fmake_network_process)
20233 (read_process_output): Fix up last changes.
20234
202352007-07-16 Eli Zaretskii <eliz@gnu.org>
20236
20237 * makefile.w32-in (clean): Don't delete *~.
20238
202392007-07-16 Andreas Schwab <schwab@suse.de>
20240
20241 * window.c (Fdisplay_buffer): Use NILP.
20242 (Fset_window_scroll_bars): Likewise.
20243
202442007-07-15 Martin Rudalics <rudalics@gmx.at>
20245
20246 * window.c (window_min_size_2): New function.
20247 (window_min_size_1, size_window, Fdisplay_buffer)
20248 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
20249 windows without mode- or header-lines when window-min-height is
20250 too small.
20251 (size_window): Reset nodelete_p after testing it, following an
20252 earlier note by Kim F. Storm.
20253 (display_buffer): Do not set split_height_threshold to twice the
20254 value of window_min_height to avoid changing the value of a
20255 customizable variable. Rather explicitly check whether the
20256 height of the window that shall be splitted is at least as large
20257 as split_height_threshold.
20258 (Fwindow_full_width_p): New defun.
20259 (syms_of_window): Defsubr it.
20260
20261 * window.h: Add EXFUN for Fwindow_full_width_p.
20262
202632007-07-14 Jason Rumney <jasonr@gnu.org>
20264
20265 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
20266
202672007-07-14 Richard Stallman <rms@gnu.org>
20268
20269 * eval.c (maybe_call_debugger): New function.
20270 (find_handler_clause): Use maybe_call_debugger.
20271 Call it when the handler says `debug'.
20272 Eliminate DEBUGGER_VALUE_PTR.
20273 (Fsignal): Eliminate debugger_value.
20274 (Qdebug): New variable.
20275 (syms_of_eval): Initialize it.
20276
202772007-07-14 Juanma Barranquero <lekktu@gmail.com>
20278
20279 * eval.c (Fprogn):
20280 * keyboard.c (Ftrack_mouse):
20281 * print.c (Fwith_output_to_temp_buffer):
20282 * window.c (Fsave_window_excursion): Doc fix.
20283
202842007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
20285
20286 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
20287
202882007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
20289
20290 * process.h (struct Lisp_Process): Turn slots infd, outfd,
20291 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
20292 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
20293 read_output_delay, and read_output_skip from Lisp_Objects to ints.
20294 Remove unused encoding_carryover.
20295 * process.c: Adjust all functions accordingly.
20296
202972007-07-12 Richard Stallman <rms@gnu.org>
20298
20299 * term.c: Include unistd.h only if HAVE_UNISTD_H.
20300
203012007-07-11 Jason Rumney <jasonr@gnu.org>
20302
20303 * makefile.w32-in (LIBS): Include OLE32.
20304
20305 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
20306 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
20307
203082007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
20309
20310 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
20311 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
20312 from a Lisp_Object into a bare pointer.
20313 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
20314 Adjust the code correspondingly.
20315
20316 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
20317
20318 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
20319 (term_show_mouse_face): Remove unused var `j'.
20320 (handle_one_term_event): Remove unused vars `i' and `j'.
20321 Don't cast return value of ttyname since it's not necessary.
20322
203232007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
20324
20325 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
20326 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
20327
20328 * fns.c (map_char_table): Use an array of int for `indices' rather than
20329 an array of Lisp_Objects (which are only ever integers anyway).
20330 (Fmap_char_table): Update caller.
20331 * lisp.h: Update prototype.
20332 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
20333 * fontset.c (Ffontset_info):
20334 * casetab.c (set_case_table): Update callers.
20335
20336 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
20337
20338 * keymap.c (struct accessible_keymaps_data)
20339 (struct where_is_internal_data): New structures.
20340 (accessible_keymaps_1, where_is_internal_1): Use them to change
20341 interface to adhere to the one used by map_keymap.
20342 (Faccessible_keymaps, where_is_internal): Use map_keymap.
20343 (accessible_keymaps_char_table, where_is_internal_2): Remove.
20344
20345 * keymap.h (map_keymap_function_t): More informative prototype.
20346
203472007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
20348
20349 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
20350 (looking_at_1): Don't change search_regs and last_thing_searched
20351 if `inhibit-changing-match-data' is non-nil.
20352 (string_match_1, search_buffer, set_search_regs): Likewise.
20353 (syms_of_search): Add Lisp level definition for
20354 `inhibit-changing-match-data' and set it to nil.
20355 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
20356 start and end of the match, instead of using values in search_regs.
20357
203582007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
20359
20360 * minibuf.c (Fcompleting_read): New value `confirm-only'
20361 for `require-match'.
20362
203632007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
20364
20365 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
20366 part of the 2007-06-27 change to syms_of_fileio.
20367
203682007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20369
20370 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
20371 Check WINDOWP before using XWINDOW. Consolidate return statements.
20372
203732007-06-27 Richard Stallman <rms@gnu.org>
20374
20375 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
20376
203772007-06-27 Juanma Barranquero <lekktu@gmail.com>
20378
20379 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
20380
203812007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20382
20383 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
20384 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
20385 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
20386 (_free_internal, memalign): Use them.
20387 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
20388 Initialize to PTHREAD_MUTEX_INITIALIZER.
20389 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
20390 (morecore_nolock): Rename from morecore. All uses changed.
20391 Use only nolock versions of internal allocation functions.
20392 (_malloc_internal_nolock, _realloc_internal_nolock)
20393 (_free_internal_nolock): New functions created from
20394 _malloc_internal, _realloc_internal, and _free_internal.
20395 (_malloc_internal, _realloc_internal, _free_internal): Use them.
20396 Copy hook value to automatic variable before its use.
20397 (memalign): Copy hook value to automatic variable before its use.
20398
203992007-06-26 Kenichi Handa <handa@m17n.org>
20400
20401 * coding.c (Ffind_operation_coding_system): Docstring improved.
20402 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
20403
204042007-06-25 David Kastrup <dak@gnu.org>
20405
20406 * keymap.c (Fcurrent_active_maps): Add `position' argument.
20407 (Fwhere_is_internal): Adjust call to `current-active-maps' to
20408 cater for additional parameter.
20409
20410 * keymap.h: Adjust number of parameters to `current-active-maps'.
20411
20412 * doc.c (Fsubstitute_command_keys): Adjust call of
20413 `current-active-maps'.
20414
204152007-06-25 David Kastrup <dak@gnu.org>
20416
20417 * callint.c (Fcall_interactively): Make the parsing of interactive
20418 specs somewhat more readable.
20419
204202007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20421
20422 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
20423 to scroll bar gap also when bitmap fills fringe. Draw only foreground
20424 if extended background has already been filled.
20425
204262007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20427
20428 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
20429 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
20430
20431 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
20432 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
20433 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
20434 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
20435 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
20436 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
20437 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
20438 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
20439 Run timers during dialog popup.
20440 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
20441
204422007-06-21 Jason Rumney <jasonr@gnu.org>
20443
20444 * image.c (convert_mono_to_color_image): Swap fore and background.
20445
204462007-06-20 Jason Rumney <jasonr@gnu.org>
20447
20448 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
20449 (w32_free_bdf_font): Unmap memory not handle.
20450
204512007-06-20 Sam Steingold <sds@gnu.org>
20452
20453 * gmalloc.c (__morecore): Fix the declaration to comply with the
20454 definition.
20455
204562007-06-20 Juanma Barranquero <lekktu@gmail.com>
20457
20458 * w32term.c (w32_delete_display): Remove leftover declaration.
20459 (w32_define_cursor, w32_initialize): Make static.
20460
20461 * w32.c (_wsa_errlist): Fix typo in error message.
20462 (init_environment): Ignore any environment variable from the
20463 registry having a null value.
20464
204652007-06-20 Glenn Morris <rgm@gnu.org>
20466
20467 * Makefile.in (LIBGIF): Default to -lgif.
20468
204692007-06-17 Jason Rumney <jasonr@gnu.org>
20470
20471 * w32menu.c (add_menu_item): Don't use multibyte string functions on
20472 unicode strings.
20473
204742007-06-16 Juanma Barranquero <lekktu@gmail.com>
20475
20476 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
20477 Fix typo in docstring.
20478
204792007-06-16 Eli Zaretskii <eliz@gnu.org>
20480
20481 * w32menu.c (add_menu_item): Escape `&' characters in menu items
20482 and their keybindings.
20483
204842007-06-15 Chong Yidong <cyd@stupidchicken.com>
20485
20486 * composite.c (update_compositions): Fix last fix.
20487
204882007-06-14 Jason Rumney <jasonr@gnu.org>
20489
20490 * w32.c (get_process_times_fn): New function pointer.
20491 (globals_of_w32): Intialize it if present in kernel32.dll.
20492 (w32_get_internal_run_time): New function.
20493
20494 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
20495
204962007-06-14 Kenichi Handa <handa@etlken.m17n.org>
20497
20498 * composite.c (update_compositions): Check the validness of
20499 compositions.
20500
205012007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20502
20503 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
20504 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
20505
20506 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
20507 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
20508
20509 * macgui.h (USE_MAC_TOOLBAR): New define.
20510
20511 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20512 Return immediately unless popup is activated.
20513
20514 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
20515 background to scroll bar gap.
20516 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
20517 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
20518 scroll bars on frame edge. Check fringe background extension.
20519 Don't clear extended fringe background area.
20520 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
20521 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
20522 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
20523 [USE_MAC_TOOLBAR]: New macros.
20524 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
20525 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
20526 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
20527 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
20528 [USE_MAC_TOOLBAR]: New functions.
20529 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
20530 manually if previous repositioning has failed.
20531 (mac_handle_keyboard_event): Use precomputed event kind.
20532 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
20533 as tool bar item click. Handle mouse movement over tool bar items.
20534
20535 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
20536 toolbar_win_gravity.
20537 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
20538 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
20539 Add externs.
20540
20541 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
20542 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
20543
205442007-06-14 Chong Yidong <cyd@stupidchicken.com>
20545
20546 * image.c (search_image_cache): Remove unused variable.
20547
205482007-06-13 Chong Yidong <cyd@stupidchicken.com>
20549
20550 * xfns.c, xmenu.c: Link to xaw3d if available.
20551
205522007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20553
20554 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
20555 frame_foreground and frame_background.
20556
20557 * image.c (lookup_image): Save frame foreground and background colors.
20558 (search_image_cache): Check if saved and current frame colors match.
20559
205602007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20561
20562 * regex.c (regex_compile): Remove the `regnum' counter.
20563 Use bufp->re_nsub instead. Add support for \(?N:RE\).
20564
205652007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20566
20567 * term.c: Include intervals.h to declare Fget_text_property.
20568
205692007-06-10 Jason Rumney <jasonr@gnu.org>
20570
20571 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
20572
205732007-06-08 Juanma Barranquero <lekktu@gmail.com>
20574
20575 * callint.c (Fcall_interactively):
20576 * editfns.c (Fdelete_and_extract_region):
20577 * fileio.c (Fread_file_name):
20578 * fns.c (Fmapconcat):
20579 * keyboard.c (cmd_error_internal):
20580 * keymap.c (Fkey_description):
20581 * lread.c (openp):
20582 * minibuf.c (read_minibuf):
20583 * search.c (wordify):
20584 * sunfns.c (sel_read):
20585 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
20586 * xfns.c (x_default_scroll_bar_color_parameter):
20587 * xmenu.c (menu_help_callback):
20588 * xselect.c (Fx_get_atom_name):
20589 * xterm.c (x_term_init): Use empty_unibyte_string.
20590
205912007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
20592
20593 * alloc.c (init_strings): Initialize canonical empty strings.
20594 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
20595 canonical empty string when the requested size is 0.
20596
20597 * emacs.c (empty_unibyte_string): Rename from empty_string.
20598 (empty_multibyte_string): New canonical empty string.
20599 (syms_of_emacs): Don't initialize empty_string.
20600
20601 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
20602 string, if appropriate.
20603 (empty_unibyte_string, empty_multibyte_string): New externs.
20604 (empty_string): Remove extern.
20605
20606 * lread.c (syms_of_lread): Use empty_unibyte_string.
20607
206082007-06-07 Jason Rumney <jasonr@gnu.org>
20609
20610 * s/ms-w32.h: Don't define HAVE_TZNAME.
20611
20612 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
20613
206142007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20615
20616 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
20617
20618 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
20619 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
20620
20621 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
20622 Don't call next handler.
20623 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
20624 Remove argument. Install handler to application.
20625 (set_frame_menubar): Don't change deep_p.
20626 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
20627 FRAME_OUTER_TO_INNER_DIFF_Y.
20628 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
20629 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
20630 [HAVE_DIALOGS]: New macros.
20631 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
20632 Use them.
20633 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
20634
20635 * macselect.c [MAC_OSX] (install_service_handler): Rename from
20636 init_service_handler. All callers changed. Return OSStatus value.
20637
20638 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
20639 All callers changed so as not to call SetPortWindowPort.
20640 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
20641 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
20642 mac_draw_string_common.
20643 (mac_draw_image_string_qd): Likewise.
20644 (mac_draw_string_common): Use them. Add INLINE.
20645 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
20646 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
20647 GetGlobalMouse.
20648 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
20649 and FRAME_OUTER_TO_INNER_DIFF_Y.
20650 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
20651 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
20652 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
20653 repositioning window to mac_handle_window_event.
20654 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
20655 saving window location to mac_handle_window_event
20656 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
20657 (install_menu_target_item_handler): Remove argument in extern.
20658 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
20659 Also accept command events.
20660 (do_keystroke): New function created from XTread_socket.
20661 (init_command_handler): Remove functions.
20662 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20663 and save window location by kEventWindowShowing and kEventWindowHiding
20664 handlers here. Don't call next handler for window state change and
20665 focus events.
20666 (mac_handle_application_event, mac_handle_keyboard_event)
20667 [TARGET_API_MAC_CARBON]: New functions.
20668 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20669 kEventWindowShowing and kEventWindowHiding events. Move installation
20670 of mouse, font, text input and menu target item handlers to
20671 install_application_handler.
20672 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20673 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20674 New function.
20675 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20676 Register it.
20677 (XTread_socket) [TARGET_API_MAC_CARBON]:
20678 Consolidate SendEventToEventTarget calls.
20679 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20680 Move application activation handler to mac_handle_application_event.
20681 Move keyboard handler to mac_handle_keyboard_event.
20682 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20683 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20684 init_command_handler. Call install_application_handler.
20685
20686 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20687 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20688
206892007-06-07 Glenn Morris <rgm@gnu.org>
20690
20691 * emacs.c (main): Use `emacs-copyright' in --version output.
20692
206932007-06-06 Chong Yidong <cyd@stupidchicken.com>
20694
20695 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20696
206972007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20698
20699 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20700
20701 * macgui.h: Replace WindowPtr with WindowRef.
20702
20703 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20704 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20705 Replace ControlHandle with ControlRef.
20706 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20707
20708 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20709 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20710 Replace ControlHandle with ControlRef.
20711 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20712 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20713
20714 * macterm.h (struct scroll_bar): Rename member control_handle_low
20715 and control_handle_high to control_ref_low and control_ref_high.
20716 All uses changed.
20717 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20718 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20719 respectively. All uses changed.
20720 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20721 (install_window_handler, remove_window_handler): Replace WindowPtr
20722 with WindowRef in externs.
20723
207242007-06-05 Juanma Barranquero <lekktu@gmail.com>
20725
20726 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20727
207282007-06-03 Nick Roberts <nickrob@snap.net.nz>
20729
20730 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20731
20732 * frame.c (Fmouse_position, Fmouse_pixel_position):
20733 Condition on HAVE_GPM too.
20734
20735 * term.c (term_mouse_highlight): Remove unused variables.
20736 (Fterm_open_connection): Set gpm_zerobased to 1.
20737 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20738 Use zero based co-ordinates.
20739 (handle_one_term_event): Report a drag as mouse movement too.
20740
20741 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20742
207432007-06-03 Chong Yidong <cyd@stupidchicken.com>
20744
20745 * image.c (search_image_cache): New function. Require background
20746 color match if background color is unspecified in the image spec.
20747 (uncache_image, lookup_image): Use it.
20748
207492007-06-01 Juanma Barranquero <lekktu@gmail.com>
20750
20751 * window.c (Fshrink_window): Reflow docstring.
20752
207532007-06-02 Chong Yidong <cyd@stupidchicken.com>
20754
20755 * Version 22.1 released.
20756
207572007-06-01 Richard Stallman <rms@gnu.org>
20758
20759 * xfns.c (x_encode_text): Add GCPRO.
20760
207612007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20762
20763 * xfns.c (x_set_name_internal): Save encoded name before
20764 x_encode_text in case string data is relocated.
20765
207662007-05-31 Richard Stallman <rms@gnu.org>
20767
20768 * buffer.c (syms_of_buffer): Doc fix.
20769
207702007-05-30 Nick Roberts <nickrob@snap.net.nz>
20771
20772 * sysdep.c (init_sys_modes): Add rather than replace with
20773 O_NONBLOCK.
20774
20775 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20776 term_mouse_moveto.
20777
20778 * termhooks.h (term_mouse_moveto): New extern.
20779
20780 * term.c (mouse_face_window): Rename...
20781 (Qmouse_face_window): ...to this.
20782 (term_show_mouse_face, term_clear_mouse_face)
20783 (term_mouse_highlight): Use Qmouse_face_window.
20784 (term_mouse_moveto): New function.
20785 (term_mouse_position): Make it work.
20786 (syms_of_term): Uncomment assignment to mouse_position_hook.
20787 Staticpro Qmouse_face_window.
20788
207892007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20790
20791 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20792 around current_column call.
20793
207942007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20795
20796 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20797 * xdisp.c (next_element_from_buffer):
20798 * window.c (delete_window):
20799 * term.c (term_mouse_highlight):
20800 * msdos.c (getdefdir):
20801 * macterm.c (mac_create_bitmap_from_bitmap_data)
20802 (init_font_name_table):
20803 * fns.c (Fsxhash):
20804 * data.c (Fmake_local_variable):
20805 * ccl.c (ccl_driver): Likewise.
20806
208072007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20808
20809 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20810 Call mac_wakeup_from_rne on window size change.
20811
208122007-05-25 Chong Yidong <cyd@stupidchicken.com>
20813
20814 * image.c (uncache_image): Fix typo.
20815
208162007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20817
20818 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20819
208202007-05-22 Richard Stallman <rms@gnu.org>
20821
20822 * xterm.c (x_connection_closed): Remove NO_RETURN.
20823
208242007-05-22 Martin Rudalics <rudalics@gmx.at>
20825
20826 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20827
208282007-05-21 Chong Yidong <cyd@stupidchicken.com>
20829
20830 * image.c (uncache_image): New function.
20831 (Fimage_refresh): New function.
20832
208332007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20834
20835 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20836
208372007-05-20 Nick Roberts <nickrob@snap.net.nz>
20838
20839 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20840 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20841
208422007-05-20 Nick Roberts <nickrob@snap.net.nz>
20843
20844 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20845 conditional on [HAVE_GPM_H].
20846
208472007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20848
20849 * syntax.c (skip_chars): Update syntax-table only after we checked that
20850 the new location is valid.
20851
208522007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20853
20854 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20855 mac_get_window_bounds.
20856
208572007-05-20 Nick Roberts <nickrob@snap.net.nz>
20858
20859 * Makefile.in (LIBGPM): Allow it to be set from configure.
20860 If set then link Emacs with it.
20861
20862 * config.in: Regenerate.
20863
20864 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20865 New externs.
20866
20867 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20868 Include gpm.h.
20869 (handle_one_term_event, term_gpm): New externs.
20870
20871 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20872 and allow it to be interrupted by SIGIO.
20873
20874 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20875 (wait_reading_process_output): Wait on gpm_fd too.
20876 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20877 (add_gpm_wait_descriptor_called_flag): New variable.
20878 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20879
20880 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20881 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20882 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20883 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20884 (make_lispy_event): Add case GPM_CLICK_EVENT.
20885 (read_avail_input): Handle mouse input.
20886
20887 * term.c (write_glyphs_with_face): New function.
20888 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20889 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20890 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20891 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20892 (last_mouse_x, last_mouse_y): New variables.
20893 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20894 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20895 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20896 (Fterm_close_connection): New functions.
20897 (term_init): Initialise mouse_face_window.
20898
208992007-05-19 Chong Yidong <cyd@stupidchicken.com>
20900
20901 * xdisp.c (redisplay_window): If first window line is a
20902 continuation line, recompute the new window start instead of
20903 recentering.
20904
209052007-05-18 Glenn Morris <rgm@gnu.org>
20906
20907 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20908 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20909
209102007-05-17 Glenn Morris <rgm@gnu.org>
20911
20912 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20913
209142007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20915
20916 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20917 dead key repeat and up events.
20918
209192007-05-14 Chong Yidong <cyd@stupidchicken.com>
20920
20921 * image.c (pbm_load): Check image size for monochrome pbm.
20922
209232007-05-13 Chong Yidong <cyd@stupidchicken.com>
20924
20925 * xterm.c (XTread_socket): Revert last change.
20926
209272007-05-12 Chong Yidong <cyd@stupidchicken.com>
20928
20929 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20930
20931 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20932
209332007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20934
20935 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20936 mixup (YAILOM).
20937
209382007-05-07 Andreas Schwab <schwab@suse.de>
20939
20940 * keymap.c (Flookup_key): Fix typo in last change.
20941
209422007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20943
20944 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20945 mapping for unibyte strings.
20946
209472007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20948
20949 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20950 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20951
209522007-04-29 Richard Stallman <rms@gnu.org>
20953
20954 * insdel.c (replace_range): For undo, record insertion first.
20955
209562007-04-29 Andreas Schwab <schwab@suse.de>
20957
20958 * lisp.h (VECSIZE): Use OFFSETOF.
20959
209602007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20961
20962 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20963 disabled lines.
20964
209652007-04-28 Richard Stallman <rms@gnu.org>
20966
20967 * lread.c (read_escape): In a string, \s is always space.
20968
209692007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20970
20971 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20972
20973 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20974 submenu for menu bar items.
20975
20976See ChangeLog.10 for earlier changes.
20977
20978;; Local Variables:
20979;; coding: utf-8
20980;; add-log-time-zone-rule: t
aac0c6e3
MR
20981;; End:
20982
76b6f707 20983 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20984
20985 This file is part of GNU Emacs.
20986
20987 GNU Emacs is free software: you can redistribute it and/or modify
20988 it under the terms of the GNU General Public License as published by
20989 the Free Software Foundation, either version 3 of the License, or
20990 (at your option) any later version.
20991
20992 GNU Emacs is distributed in the hope that it will be useful,
20993 but WITHOUT ANY WARRANTY; without even the implied warranty of
20994 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20995 GNU General Public License for more details.
20996
20997 You should have received a copy of the GNU General Public License
20998 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20999
21000;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40